/* header.css - SOHO Exact Match Header */

:root {
    --brand-dark:   #232323;
    --brand-purple: #4B1C4F;
    --brand-plum:   #6B2D70;
    --text-muted:   rgba(35, 35, 35, 0.5);
    --card-bg:      #FFFFFF;
    --bg-light:     #EAEAEA;
    --frame-color:  rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: var(--bg-light);
    color: var(--brand-dark);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 14px clamp(40px, 6vw, 140px);
    background: transparent;
}

/* Состояние при скролле — белый фон + тень */
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Левая часть: Логотип + меню */
.h-left {
    display: flex;
    align-items: center;
    gap: 60px; /* Расстояние от лого до меню */
}

/* Логотип в квадратной рамке как в SOHO */
.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 2px solid var(--brand-dark);
    padding: 6px 8px;
    font-family: 'El Messiri', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.1em;
    color: var(--brand-dark);
    text-align: center;
}

/* Навигация (меню) рядом с логотипом */
.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a.active-link {
    color: var(--brand-purple);
    font-weight: 700;
}

/* Правая часть: Ссылки и иконки */
.h-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-right {
    text-decoration: none;
    color: var(--brand-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link-right:hover {
    opacity: 0.6;
}

.h-right svg {
    cursor: pointer;
    transition: opacity 0.3s;
}

.h-right svg:hover {
    opacity: 0.6;
}

/* ===== Burger Menu ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1010;
}
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mobile-nav.open {
    display: flex;
    opacity: 1;
}
.mobile-nav a {
    text-decoration: none;
    color: var(--brand-dark);
    font-family: 'El Messiri', sans-serif;
    font-size: 28px;
    font-weight: 600;
    transition: color 0.3s;
}
.mobile-nav a:hover {
    color: var(--brand-purple);
}
.mobile-nav .mobile-contacts {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }
    .nav-link-right {
        display: none;
    }
    .h-right {
        gap: 12px;
    }
    .logo-grid {
        font-size: 12px;
        padding: 4px 6px;
    }
}
