/* Mobile header navigation fix */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
    .header-inner {
        position: relative;
        min-height: 72px;
        gap: 12px;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo img {
        height: 44px;
        width: auto;
        max-width: 70vw;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 3;
        margin-left: auto;
        z-index: 1002;
    }

    .header-right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px 20px 22px;
        background: rgba(255,255,255,.98);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 32px rgba(0,0,0,.10);
        z-index: 1001;
    }

    .header.mobile-menu-open .header-right {
        display: flex;
    }

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

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

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

    .header-right nav,
    .header-right .menu {
        width: 100%;
    }

    .header-right .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .header-right .menu a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 9px 10px;
        border-radius: 10px;
        font-size: 15px;
    }

    .header-right .menu a.active::after {
        display: none;
    }

    .header-right .menu a.menu-models {
        padding: 9px 12px;
    }

    .header-right .languages {
        width: 100%;
        justify-content: flex-start;
        padding-top: 4px;
        font-size: 14px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        min-height: 68px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo img {
        height: 38px;
        max-width: 64vw;
    }

    .header-right {
        padding-left: 14px;
        padding-right: 14px;
    }
}
