* {
    box-sizing: border-box;
}

:root {
    --rp-gray: #f01f3a;
    --rp-gray-dark: #a90920;
    --rp-gray-light: #fff0f3;
    --rp-bg: #f8f4f6;
    --rp-white: #ffffff;
    --rp-text: #2b171d;
    --rp-muted: #78656b;
    --rp-line: #f0d9df;
    --rp-success: #32774b;
    --rp-error: #9e3131;
    --rp-radius: 8px;
}

html {
    min-height: 100%;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    background:
        radial-gradient(circle at 6% 3%, rgba(255, 71, 111, .22), transparent 26rem),
        radial-gradient(circle at 92% 13%, rgba(255, 37, 71, .18), transparent 30rem),
        radial-gradient(circle at 66% 80%, rgba(208, 144, 255, .14), transparent 31rem),
        var(--rp-bg);
    color: var(--rp-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, .68);
    border-bottom: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 9px 32px rgba(147, 23, 55, .1);
    backdrop-filter: blur(18px) saturate(150%);
}

.site-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand-rp {
    width: 62px;
    height: 39px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff3e58, #c40d2a);
    box-shadow: 0 0 22px rgba(240, 31, 58, .4);
    color: var(--rp-white);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.site-brand-name {
    color: #4b1724;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .025em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav > a,
.site-nav-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #654551;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.site-nav > a:hover,
.site-nav-button:hover {
    color: var(--rp-gray);
}

.site-nav-register {
    padding: 9px 13px !important;
    border: 1px solid rgba(240, 31, 58, .35) !important;
}

.site-nav-register:hover {
    background: rgba(240, 31, 58, .09);
}

.site-nav-form {
    margin: 0;
}

.site-main {
    min-height: 0;
    flex: 1 0 auto;
}

.site-page {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 55px;
}

.site-page-narrow {
    width: min(720px, calc(100% - 40px));
    margin: 40px auto 60px;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading .eyebrow {
    margin-bottom: 9px;
    color: var(--rp-gray);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
}

.page-heading h1 {
    margin: 0;
    color: var(--rp-text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.page-heading p {
    max-width: 700px;
    margin: 11px 0 0;
    color: var(--rp-muted);
    font-size: 15px;
    line-height: 1.55;
}

.rp-card {
    background: var(--rp-white);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .035);
}

.rp-card-body {
    padding: 24px;
}

.rp-card + .rp-card {
    margin-top: 18px;
}

.rp-card h2,
.rp-card h3 {
    margin-top: 0;
}

.rp-button,
.account-button,
.add-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rp-gray);
    border-radius: 5px;
    padding: 0 17px;
    background: var(--rp-gray);
    color: var(--rp-white);
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.rp-button:hover,
.account-button:hover,
.add-button:hover {
    border-color: var(--rp-gray-dark);
    background: var(--rp-gray-dark);
    color: var(--rp-white);
}

.rp-button-secondary {
    background: var(--rp-white);
    color: var(--rp-gray-dark);
    border-color: #b8babd;
}

.rp-button-secondary:hover {
    background: var(--rp-gray-light);
    color: var(--rp-gray-dark);
}

.rp-link,
.account-link {
    color: #414448;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rp-link:hover,
.account-link:hover {
    color: #111;
}

.account-form p {
    margin: 0 0 16px;
}

.account-form label {
    display: block;
    margin-bottom: 6px;
    color: #35373a;
    font-size: 13px;
    font-weight: 800;
}

.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bfc2c5;
    border-radius: 5px;
    outline: none;
    background: var(--rp-white);
    color: var(--rp-text);
    font: inherit;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: #73767a;
    box-shadow: 0 0 0 2px rgba(85, 88, 92, .08);
}

.account-form input[readonly] {
    background: #eceeef;
    color: #6b6e72;
    cursor: not-allowed;
}

.errorlist {
    margin: 0 0 7px;
    padding-left: 20px;
    color: var(--rp-error);
    font-size: 13px;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eceeef;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row strong {
    color: #3c3f42;
}

.account-status-active {
    color: var(--rp-success);
    font-weight: 800;
}

.account-status-inactive {
    color: var(--rp-error);
    font-weight: 800;
}

.site-footer {
    margin-top: 0;
    flex: 0 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(18px) saturate(140%);
}

.site-footer-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #846773;
    font-size: 13px;
}

.site-footer-inner strong {
    color: #4b1724;
}

.site-footer-separator {
    margin: 0 8px;
}

.site-footer a {
    color: #76525f;
    font-weight: 700;
}

@media (max-width: 850px) {
    .site-header-inner {
        min-height: 70px;
        align-items: flex-start;
        padding: 15px 0;
        flex-direction: column;
        gap: 13px;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 13px 17px;
    }
}

@media (max-width: 560px) {
    .site-header-inner,
    .site-page,
    .site-page-narrow,
    .site-footer-inner {
        width: min(100% - 26px, 1180px);
    }

    .site-brand-rp {
        width: 56px;
        height: 35px;
        font-size: 14px;
    }

    .site-brand-name {
        font-size: 18px;
    }

    .site-page {
        margin-top: 24px;
    }

    .site-page-narrow {
        margin-top: 28px;
    }

    .rp-card-body {
        padding: 18px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer-inner {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* V78 – číslo verze objednávkového systému v patičce */
.site-footer-version {
    white-space: nowrap;
    font-weight: 700;
    color: var(--rp-muted);
}


/* V89 – košík je plnohodnotná položka hlavního menu. */
.site-nav-cart {
    position: relative;
    min-width: 38px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 7px !important;
    border-radius: 7px;
}

.site-nav-cart-icon {
    font-size: 20px;
    line-height: 1;
}

.site-nav-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #b3261e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.order-help-page{width:min(920px,calc(100% - 40px));margin:28px auto 55px}.order-help-card{background:#fff;border:1px solid #d9dcde;border-radius:10px;padding:26px 30px}.order-help-card h1{margin-top:0}.order-help-card h2{margin:24px 0 7px;font-size:17px}.order-help-card p{margin:0;line-height:1.55;color:#555b5f}.order-help-intro{margin-bottom:18px!important}.order-help-actions{margin-top:26px}.order-help-actions a{display:inline-flex;padding:10px 14px;border-radius:7px;background:#303236;color:#fff;text-decoration:none;font-weight:800}

/* V93 – barevný easter egg, 3× klik na „Objednávkový systém“ ve footeru. */
#order-system-easter-trigger {
    cursor: default;
    user-select: none;
}

.parapet-easter-egg {
    position: fixed;
    left: -230px;
    bottom: 18px;
    z-index: 99999;
    width: 205px;
    height: 185px;
    pointer-events: none;
    opacity: 0;
}

.parapet-easter-egg.is-running {
    opacity: 1;
    animation: parapetWalkAcross 9s linear forwards;
}

.egg-shadow {
    position: absolute;
    left: 43px;
    bottom: 4px;
    width: 110px;
    height: 13px;
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    filter: blur(2px);
    animation: eggShadow .34s ease-in-out infinite alternate;
}

.parapet-man {
    position: absolute;
    left: 55px;
    bottom: 10px;
    width: 88px;
    height: 150px;
    animation: parapetBob .34s ease-in-out infinite alternate;
}

.parapet-head {
    position: absolute;
    left: 29px;
    top: 4px;
    width: 35px;
    height: 37px;
    border: 3px solid #263238;
    border-radius: 48% 48% 46% 46%;
    background: #f3b77d;
    box-sizing: border-box;
    z-index: 5;
}

.egg-hair {
    position: absolute;
    left: 29px;
    top: 1px;
    width: 36px;
    height: 15px;
    border-radius: 55% 55% 25% 25%;
    background: #4e342e;
    transform: rotate(-5deg);
    z-index: 7;
}

.egg-eye {
    position: absolute;
    top: 14px;
    width: 3px;
    height: 4px;
    border-radius: 50%;
    background: #263238;
}
.egg-eye-left { left: 9px; }
.egg-eye-right { right: 9px; }

.egg-smile {
    position: absolute;
    left: 12px;
    top: 23px;
    width: 9px;
    height: 5px;
    border-bottom: 2px solid #8d3c2e;
    border-radius: 50%;
}

.egg-shirt {
    position: absolute;
    left: 26px;
    top: 39px;
    width: 41px;
    height: 47px;
    border: 3px solid #263238;
    border-radius: 9px 9px 5px 5px;
    background: #e53935;
    box-sizing: border-box;
    z-index: 3;
}

.egg-overalls {
    position: absolute;
    left: 34px;
    top: 50px;
    width: 25px;
    height: 36px;
    border-radius: 4px;
    background: #1976d2;
    z-index: 4;
}
.egg-overalls::before,
.egg-overalls::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 5px;
    height: 17px;
    border-radius: 3px;
    background: #1976d2;
}
.egg-overalls::before { left: 3px; transform: rotate(-13deg); }
.egg-overalls::after { right: 3px; transform: rotate(13deg); }

.parapet-arm {
    position: absolute;
    top: 49px;
    width: 8px;
    height: 45px;
    border: 3px solid #263238;
    border-radius: 8px;
    background: #f3b77d;
    box-sizing: border-box;
    transform-origin: top center;
    z-index: 2;
}
.parapet-arm-left { left: 25px; transform: rotate(55deg); }
.parapet-arm-right { left: 61px; transform: rotate(-55deg); }

.egg-hand {
    position: absolute;
    top: 78px;
    width: 12px;
    height: 12px;
    border: 2px solid #263238;
    border-radius: 50%;
    background: #f3b77d;
    z-index: 8;
}
.egg-hand-left { left: 5px; }
.egg-hand-right { right: 4px; }

.parapet-leg {
    position: absolute;
    top: 82px;
    width: 10px;
    height: 48px;
    border: 3px solid #263238;
    border-radius: 7px;
    background: #1565c0;
    box-sizing: border-box;
    transform-origin: top center;
    z-index: 1;
}
.parapet-leg-left {
    left: 34px;
    animation: parapetLegLeft .45s ease-in-out infinite alternate;
}
.parapet-leg-right {
    left: 50px;
    animation: parapetLegRight .45s ease-in-out infinite alternate;
}

.egg-shoe {
    position: absolute;
    top: 122px;
    width: 20px;
    height: 10px;
    border: 3px solid #263238;
    border-radius: 8px 8px 5px 5px;
    background: #5d4037;
    z-index: 6;
}
.egg-shoe-left {
    left: 22px;
    transform-origin: center center;
    animation: eggShoeLeft .45s ease-in-out infinite alternate;
}
.egg-shoe-right {
    left: 52px;
    transform-origin: center center;
    animation: eggShoeRight .45s ease-in-out infinite alternate;
}

.parapet-board {
    position: absolute;
    left: -55px;
    top: 68px;
    width: 205px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 3px solid #263238;
    border-radius: 5px;
    background: linear-gradient(180deg, #f5f5f5 0%, #d7d7d7 100%);
    box-shadow: 0 4px 0 rgba(0,0,0,.14);
    color: #263238;
    transform: rotate(-4deg);
    z-index: 7;
}
.parapet-board::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 3px;
    height: 3px;
    border-radius: 3px;
    background: #b71c1c;
}
.parapet-board b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 19px;
    border-radius: 4px;
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    letter-spacing: -.3px;
}
.parapet-board em {
    color: #263238;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 1.1px;
}

.egg-spark {
    position: absolute;
    color: #f9a825;
    font-size: 18px;
    font-weight: 900;
    opacity: 0;
    animation: eggSpark .9s ease-in-out infinite;
}
.egg-spark-1 { left: 18px; top: 35px; animation-delay: .1s; }
.egg-spark-2 { right: 5px; top: 20px; animation-delay: .4s; }
.egg-spark-3 { right: 18px; top: 88px; animation-delay: .7s; }

@keyframes parapetWalkAcross {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 460px)); }
}
@keyframes parapetBob {
    from { transform: translateY(0) rotate(-1.5deg); }
    to { transform: translateY(-7px) rotate(1.5deg); }
}
@keyframes parapetLegLeft {
    from { transform: rotate(31deg); }
    to { transform: rotate(-31deg); }
}
@keyframes parapetLegRight {
    from { transform: rotate(-31deg); }
    to { transform: rotate(31deg); }
}
@keyframes eggShadow {
    from { transform: scaleX(1); opacity: .22; }
    to { transform: scaleX(.76); opacity: .12; }
}
@keyframes eggSpark {
    0%,100% { transform: scale(.45) rotate(0deg); opacity: 0; }
    45% { transform: scale(1.15) rotate(90deg); opacity: 1; }
}

.parapet-board em {
    font-size: 11px;
    letter-spacing: .8px;
    white-space: nowrap;
}

@keyframes eggShoeLeft {
    from { transform: translate(-7px, 1px) rotate(-15deg); }
    to { transform: translate(12px, -4px) rotate(18deg); }
}

@keyframes eggShoeRight {
    from { transform: translate(10px, -4px) rotate(18deg); }
    to { transform: translate(-8px, 1px) rotate(-15deg); }
}

/* V95 – globální upozornění na pilotní provoz. */
.pilot-banner {
    position: relative;
    z-index: 19;
    background: linear-gradient(90deg, #a90920, #e01a35, #a90920);
    color: #fff;
    border-bottom: 1px solid #8d2020;
}

.pilot-banner-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
}

.pilot-banner-inner strong {
    font-weight: 900;
}

@media (max-width: 620px) {
    .pilot-banner-inner {
        width: min(100% - 26px, 1180px);
        display: block;
        padding: 8px 0;
    }

    .pilot-banner-inner strong {
        display: block;
        margin-bottom: 2px;
    }
}
