/* ==============================================================
   header.css — шапка и мобильное меню
   ============================================================== */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.logo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--ink);
}
.logo::after { content: '.'; color: var(--accent); }

.header-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-desktop { display: flex; gap: 32px; align-items: center; }
.nav-desktop a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
    display: flex;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
    font-size: 12px;
}
.lang-switch a {
    color: var(--muted-2);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lang-switch a.active { color: var(--ink); }

.header-cta {
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s ease;
}
.header-cta:hover { background: #1F1F1F; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.burger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
    .header-menu { display: none; }
    .burger { display: flex; z-index: 101; }

    .burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .site-header.menu-open .header-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        padding: 40px 24px 24px;
        border-top: 1px solid var(--border-subtle);
        gap: 32px;
        overflow-y: auto;
        align-items: stretch;
        animation: menuFade 0.25s ease;
    }

    @keyframes menuFade {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-header.menu-open .nav-desktop {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        width: 100%;
    }

    .site-header.menu-open .nav-desktop a {
        font-family: 'Inter Tight', sans-serif;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--ink);
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .site-header.menu-open .nav-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        width: 100%;
        margin-top: auto;
        padding-top: 24px;
    }

    .site-header.menu-open .lang-switch {
        display: flex;
        padding-left: 0;
        border-left: none;
        width: 100%;
        gap: 24px;
        font-size: 13px;
        justify-content: center;
    }

    .site-header.menu-open .header-cta {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
    }
}
