/* v0.9.30 – jednotná mobilní hlavička a vysouvací navigace */

.mobile-header-actions,
.mobile-nav-backdrop,
.mobile-nav-drawer {
    display: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 800px) {
    html.mobile-nav-open,
    html.mobile-nav-open body {
        overflow: hidden;
    }

    /* Mobil nepotřebuje samostatnou horní utility lištu – služby jsou v menu. */
    .utility-bar {
        display: none;
    }

    header {
        position: sticky;
        z-index: 70;
        top: 0;
        height: 64px;
        border-bottom-color: #dbe7e1;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 4px 18px rgba(15, 45, 33, .06);
        backdrop-filter: blur(12px);
    }

    header .nav {
        height: 64px;
        gap: 10px;
    }

    header .brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 9px;
    }

    header .brand img {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    header .brand > span {
        min-width: 0;
    }

    header .brand small {
        color: #557066;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .08em;
        line-height: 1.1;
        text-transform: uppercase;
    }

    header .brand b {
        display: block;
        overflow: hidden;
        color: #143126;
        font-size: 15px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
    }

    .mobile-header-user,
    .mobile-nav-toggle,
    .mobile-nav-close {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid #d7e4de;
        border-radius: 11px;
        background: #fff;
        color: #075f3f;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-header-user {
        max-width: 128px;
        gap: 6px;
        padding: 0 9px;
        font-size: 12px;
    }

    .mobile-header-user span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-header-user svg,
    .mobile-nav-toggle svg,
    .mobile-nav-close svg {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-header-user svg {
        fill: currentColor;
        stroke: none;
    }

    .mobile-header-user.is-authenticated {
        position: relative;
        border-color: #b9d8c9;
        background: #eef7f2;
    }

    .mobile-header-user.is-authenticated::after {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 7px;
        height: 7px;
        border: 2px solid #eef7f2;
        border-radius: 999px;
        background: #12a465;
        content: '';
    }

    .mobile-header-user:hover,
    .mobile-header-user:focus-visible,
    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus-visible,
    .mobile-nav-close:hover,
    .mobile-nav-close:focus-visible {
        border-color: #9bc8b2;
        background: #eff7f3;
        outline: 3px solid rgba(8, 113, 72, .12);
        outline-offset: 1px;
    }

    .mobile-nav-backdrop {
        position: fixed;
        z-index: 89;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(7, 27, 19, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .mobile-nav-drawer {
        position: fixed;
        z-index: 90;
        top: 0;
        right: 0;
        display: flex;
        width: min(360px, 90vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        overflow: hidden;
        border-left: 1px solid #d8e5df;
        background: #fff;
        box-shadow: -18px 0 46px rgba(8, 35, 24, .18);
        transform: translateX(102%);
        transition: transform .24s ease;
    }

    html.mobile-nav-open .mobile-nav-backdrop {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    html.mobile-nav-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-nav-drawer__head {
        display: flex;
        min-height: 64px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 14px 9px 17px;
        border-bottom: 1px solid #e2ebe7;
    }

    .mobile-nav-drawer__brand {
        display: grid;
        gap: 1px;
        min-width: 0;
    }

    .mobile-nav-drawer__brand small {
        color: #6e8077;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mobile-nav-drawer__brand strong {
        overflow: hidden;
        color: #153126;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-drawer__scroll {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 15px 14px 24px;
    }

    .mobile-nav-section + .mobile-nav-section {
        margin-top: 18px;
        padding-top: 17px;
        border-top: 1px solid #e4ece8;
    }

    .mobile-nav-section__label {
        display: block;
        margin: 0 7px 7px;
        color: #75867e;
        font-size: 11px;
        font-weight: 850;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mobile-nav-list {
        display: grid !important;
        gap: 3px;
    }

    .mobile-nav-item {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 11px 12px;
        border-radius: 10px;
        color: #18372b;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.25;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus-visible,
    .mobile-nav-item.is-active {
        background: #eef7f2;
        color: #076441;
        outline: none;
    }

    .mobile-nav-item.is-active {
        box-shadow: inset 3px 0 0 #087148;
    }

    .mobile-nav-item__arrow {
        color: #7b9187;
        font-size: 18px;
        font-weight: 500;
    }

    .mobile-nav-feature {
        display: flex;
        min-height: 58px;
        align-items: center;
        gap: 11px;
        padding: 10px 11px;
        border: 1px solid #dce8e2;
        border-radius: 12px;
        background: #f8fbf9;
        color: #17372a;
    }

    .mobile-nav-feature + .mobile-nav-feature {
        margin-top: 7px;
    }

    .mobile-nav-feature:hover,
    .mobile-nav-feature:focus-visible {
        border-color: #a9cfbc;
        background: #eff7f3;
        outline: none;
    }

    .mobile-nav-feature__icon {
        display: grid;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        place-items: center;
        border-radius: 10px;
        background: #e5f2eb;
        color: #087148;
    }

    .mobile-nav-feature__icon svg {
        width: 21px;
        height: 21px;
        fill: currentColor;
    }

    .mobile-nav-feature strong,
    .mobile-nav-feature small {
        display: block;
    }

    .mobile-nav-feature strong {
        font-size: 14px;
        line-height: 1.2;
    }

    .mobile-nav-feature small {
        margin-top: 3px;
        color: #6f8077;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.3;
    }

    .mobile-nav-account-card {
        padding: 12px;
        border: 1px solid #dce8e2;
        border-radius: 12px;
        background: #f8fbf9;
    }

    .mobile-nav-account-card__identity {
        display: grid;
        gap: 2px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e2ebe7;
    }

    .mobile-nav-account-card__identity strong {
        overflow: hidden;
        color: #153126;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-account-card__identity small {
        overflow: hidden;
        color: #708178;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-account-actions {
        display: grid;
        gap: 7px;
    }

    .mobile-nav-account-actions a,
    .mobile-nav-account-actions button {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 9px 12px;
        border: 1px solid #bfd8cb;
        border-radius: 10px;
        background: #fff;
        color: #075f3f;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        cursor: pointer;
    }

    .mobile-nav-account-actions a:hover,
    .mobile-nav-account-actions a:focus-visible,
    .mobile-nav-account-actions button:hover,
    .mobile-nav-account-actions button:focus-visible {
        background: #edf7f2;
        outline: none;
    }

    .mobile-nav-account-actions .is-primary {
        border-color: #087148;
        background: #087148;
        color: #fff;
    }

    .mobile-nav-account-actions .is-primary:hover,
    .mobile-nav-account-actions .is-primary:focus-visible {
        background: #06643f;
    }

    .mobile-nav-account-actions .is-logout {
        border-color: #edd0d0;
        color: #a43b3b;
    }

    .mobile-nav-account-actions form {
        margin: 0;
    }
}

@media (max-width: 430px) {
    .mobile-header-user {
        width: 44px;
        padding: 0;
    }

    .mobile-header-user span {
        display: none;
    }

    header .brand b {
        font-size: 14px;
    }
}

@media (max-width: 350px) {
    header .brand small {
        display: none;
    }

    header .brand b {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-backdrop,
    .mobile-nav-drawer {
        transition: none;
    }
}
