.mobile-nav, .mobile-sheet { display: none; }

@media (max-width: 768px) {
    body .sidebar { display: none; }
    body .wrapper-main {
        margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    html.mobile-navigation-open { overflow: hidden; }
    .mobile-nav {
        display: flex;
        justify-content: center;
        position: fixed;
        inset: auto 0 0;
        z-index: 1000;
        padding: 0 12px env(safe-area-inset-bottom, 0px);
        background: #002b55;
        box-shadow: 0 -3px 16px #001b3d18;
    }
    .mobile-nav__buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        width: min(100%, 300px);
        height: 72px;
    }
    .mobile-nav__button {
        display: flex;
        flex: 0 1 88px;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        border: 0;
        border-top: 3px solid transparent;
        background: transparent;
        color: #d7e2ef;
        font: inherit;
        font-size: 12px;
        line-height: 1.2;
        text-decoration: none;
        cursor: pointer;
    }
    .mobile-nav__button i, .mobile-nav__button svg, .mobile-nav__button strong { font-size: 20px; line-height: 24px; }
    .mobile-nav__button svg { width: 20px; height: 20px; }
    .mobile-nav__button[aria-current], .mobile-nav__button[aria-expanded="true"] {
        color: #ffd700;
        border-top-color: #ffd700;
    }
    .mobile-nav__button:hover { background: #003a70; color: white; }
    .mobile-sheet[open] { display: block; }
    .mobile-sheet {
        position: fixed;
        inset: auto 0 calc(72px + env(safe-area-inset-bottom, 0px));
        margin: 0 auto;
        box-sizing: border-box;
        width: 100%;
        max-width: 520px;
        max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
        padding: 12px 20px 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 22px 22px 0 0;
        background: #fff;
        color: #003a70;
        box-shadow: 0 -8px 32px #001b3d26;
    }
    .mobile-sheet::backdrop { background: #001b3d66; }
    .mobile-sheet__handle { width: 36px; height: 4px; background: #cbd5e1; border-radius: 4px; margin: 0 auto 8px; }
    .mobile-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .mobile-sheet__header h2 { font-size: 20px; font-weight: 600; margin: 0; }
    .mobile-sheet__close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: #003a70; cursor: pointer; }
    .mobile-sheet__links h3 { margin: 16px 12px 4px; color: #64748b; font-size: 12px; font-weight: 600; }
    .mobile-sheet__links a, .mobile-sheet__footer button, .mobile-sheet__languages button {
        display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 12px;
        width: 100%; box-sizing: border-box; border: 0; border-radius: 10px;
        background: transparent; color: #003a70; font: inherit; font-size: 15px;
        text-decoration: none; text-align: left; cursor: pointer;
    }
    .mobile-sheet__links i, .mobile-sheet__links svg, .mobile-sheet__footer i, .mobile-sheet__footer svg { width: 22px; flex-shrink: 0; text-align: center; }
    .mobile-sheet__links a:hover, .mobile-sheet__footer button:hover, .mobile-sheet__languages button:hover { background: #f1f5f9; }
    .mobile-sheet__links a[aria-current], .mobile-sheet__languages button[aria-current] { background: #eaf2fc; font-weight: 600; box-shadow: inset 3px 0 #d2ae27; }
    .mobile-sheet__languages button { justify-content: space-between; }
    .mobile-sheet__footer { border-top: 1px solid #e2e8f0; margin-top: 16px; padding-top: 10px; }
    .mobile-nav__button:focus-visible, .mobile-sheet :focus-visible { outline: 3px solid #d2ae27; outline-offset: -3px; }
    body #toast-container { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .mobile-sheet[open] { animation: mobile-sheet-enter 180ms ease-out; }
    @keyframes mobile-sheet-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
}
