@media (max-width: 768px) {
    #drawerBackdrop,
    #mobileDrawer {
        display: none !important;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(17, 24, 39, 0.42);
        backdrop-filter: blur(2px);
    }

    .header {
        position: relative;
        z-index: 100;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #fff;
        transition: border-radius 0.24s ease, box-shadow 0.24s ease;
    }

    .header .header-center {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
    }

    .header .logo {
        height: 44px;
    }

    .header .company-name {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
    }

    .header .header-left,
    .header .header-right {
        display: none;
    }

    .header .menu-toggle {
        display: inline-flex;
        order: 2;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: 6px;
        padding: 11px;
        border: 1px solid #e6eaf0;
        border-radius: 999px;
        background: #f6f8fb;
    }

    .header .menu-toggle:focus {
        outline: none;
    }

    .header .menu-toggle:focus-visible {
        outline: 2px solid #b8c2cf;
        outline-offset: 2px;
    }

    .menu-toggle-bar {
        width: 20px;
        border-radius: 999px;
        transform-origin: center;
    }

    .header.nav-open {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        z-index: 100;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top));
        padding: 18px 16px 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 12px;
        box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
    }

    @supports not (height: 100dvh) {
        .header.nav-open {
            max-height: calc(100vh - 24px - env(safe-area-inset-top));
        }
    }

    .header.nav-open .header-center {
        flex: 1 1 calc(100% - 58px);
        padding-right: 12px;
    }

    .header.nav-open .logo {
        height: 42px;
        margin-bottom: 4px;
    }

    .header.nav-open .company-name {
        color: #111827;
        font-size: 14px;
    }

    .header.nav-open .menu-toggle {
        order: 2;
        margin-left: auto;
        background: #fff;
    }

    .header.nav-open .menu-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header.nav-open .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .header.nav-open .menu-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header.nav-open .header-left,
    .header.nav-open .header-right {
        display: flex;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0;
        border-top: 1px solid #eceff3;
    }

    .header.nav-open .header-left {
        order: 3;
        margin-top: 14px;
    }

    .header.nav-open .header-right {
        order: 4;
        margin-top: 8px;
    }

    .header.nav-open .nav-link,
    .header.nav-open .header-left .nav-link,
    .header.nav-open .header-right .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        padding: 13px 12px;
        border: 0;
        border-radius: 8px;
        color: #111827;
        font-size: 16px;
        line-height: 1.25;
        text-decoration: none;
        white-space: normal;
    }

    .header.nav-open .nav-link::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-left: auto;
        border-right: 1px solid #9aa4b2;
        border-bottom: 1px solid #9aa4b2;
        transform: rotate(-45deg);
    }

    .header.nav-open .nav-link:hover,
    .header.nav-open .nav-link:focus-visible {
        color: #111;
        background: #f4f6f8;
        outline: none;
    }

    .header.nav-open .nav-link.active {
        padding: 13px 12px;
        border-bottom: 0;
        background: #f4f6f8;
        color: #111827;
        font-weight: 600;
    }

    .header.nav-open .lang-switcher {
        order: -1;
        width: 100%;
        margin: 0;
        padding: 12px 0 4px;
    }

    .header.nav-open .lang-switcher select {
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #d8dee6;
        border-radius: 8px;
        background: #fff;
        color: #111827;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header.nav-open {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        left: 10px;
        max-height: calc(100dvh - 20px - env(safe-area-inset-top));
        padding: 16px 14px 14px;
    }
}
