/* ----- ШАПКА САЙТА ----- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--text-secondary);
}

.header-phone {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* БУРГЕР МЕНЮ */
.burger {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.burger span {
    position: absolute;
    right: 0;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.burger span:nth-child(1) {
    top: 0;
    width: 100%;
}

.burger span:nth-child(2) {
    top: 11px;
    width: 70%;
}

.burger span:nth-child(3) {
    top: 22px;
    width: 100%;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg);
    z-index: 2000;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: auto;
}

.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 600;
}

.mobile-phone {
    margin-top: var(--space-xl);
    font-size: 1.2rem;
    font-weight: 600;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Кастомное уменьшение интервала меню */
.nav-list {
    gap: 20px;
}

/* Для очень широких экранов */
@media (min-width: 1400px) {
    .nav-list {
        gap: 20px;
    }
}

/* Для средних экранов */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-list {
        gap: 15px;
    }
    
    .nav-list a {
        font-size: 0.85rem;
    }
}