/* Базовые стили ПК */
.main-header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important;
     height: 80px;
    background: rgba(10, 11, 13, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color); 
    z-index: 99999 !important; 
    transform: none !important;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    height: 100%; 
    position: relative; 
}

.logo-link { 
    text-decoration: none; 
    color: inherit; 
}

.logo { 
    font-size: 20px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    font-family: 'Syncopate', sans-serif; 
    text-transform: uppercase; 
}

.logo span { 
    color: var(--accent); 
}

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

.nav-menu a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 400; 
    letter-spacing: 0.5px; 
    transition: color 0.3s ease; 
}

.nav-menu a:hover { 
    color: var(--accent); 
}

.header-right-side { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

.header-socials { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.header-social-icon { 
    width: 34px; 
    height: 34px; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    -webkit-tap-highlight-color: transparent; 
}

.header-social-icon svg { 
    width: 15px; 
    height: 15px; 
    fill: var(--text-muted);
    transition: fill 0.3s ease; 
}

.header-social-icon:hover { 
    background: rgba(197, 168, 128, 0.06); 
    border-color: rgba(197, 168, 128, 0.3); 
    transform: translateY(-1px); 
}

.header-social-icon:hover svg { 
    fill: var(--accent); 
}

.header-phone { 
    font-family: 'Syncopate', sans-serif; 
    font-size: 13px; 
    font-weight: 700; 
    color: #ffffff !important; 
    text-decoration: none; 
    letter-spacing: -0.5px; 
    transition: color 0.3s ease; 
}

.header-phone:hover { 
    color: var(--accent) !important; 
}

/* КНОПКА БУРГЕРА (УПРАВЛЕНИЕ) */
.mobile-burger {
    display: none; 
    flex-direction: column; 
    justify-content: space-between;
    width: 26px; 
    height: 16px;
    background: transparent !important; 
    border: none !important; 
    cursor: pointer; 
    padding: 0;
    
    /* УЛЬТИМАТИВНЫЙ ТРИГГЕР КЛИКОВ */
    z-index: 99999999 !important; /* Поднимаем кнопку на самый верхний слой во всей Вселенной */
    pointer-events: auto !important; /* Разрешаем принимать клики, даже если сверху что-то налипло */
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important; 
}
.mobile-burger span { 
    width: 100%; 
    height: 3px; /* Увеличили с 2px до 3px для удобства тапа */
    background-color: #ffffff !important; 
    transition: all 0.3s ease; 
}

/* МАТОВОЕ ОКНО МОБИЛЬНОГО МЕНЮ */
.mobile-menu-overlay {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh;
    background: rgba(10, 11, 13, 0.95); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    z-index: 999999 !important; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-overlay.active { 
    right: 0; 
}

.mobile-menu-close { 
    position: absolute; 
    top: 25px;
    right: 25px; 
    background: transparent; 
    border: none; 
    color: var(--text-muted); 
    font-size: 42px; 
    cursor: pointer; 
    -webkit-tap-highlight-color: transparent; 
}

.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
}

.mobile-nav-links a { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 22px; 
    font-weight: 300; 
    color: #ffffff; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: color 0.3s ease; 
    -webkit-tap-highlight-color: transparent; 
}

.mobile-nav-links a:hover { 
    color: var(--accent); 
}

.mobile-menu-footer { 
    margin-top: 50px; 
}

.mobile-menu-phone { 
    font-family: 'Syncopate', sans-serif; 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--accent); 
    text-transform: uppercase; 
    text-decoration: none; 
}

/* АДАПТИВ ШАПКИ ДО ПЛАНШЕТОВ */
@media (max-width: 1100px) {
    .nav-menu { gap: 12px; }
    .nav-menu a { font-size: 11px; }
    .header-right-side { gap: 15px; }
}

/* ВКЛЮЧАЕМ БУРГЕР НА ПЛАНШЕТАХ И МОБИЛКАХ */
@media (max-width: 960px) {
    .nav-menu { display: none !important; }
    .header-right-side { display: none !important; } /* Прячем ПК-блок, он уйдет в подвал меню */
    .mobile-burger { display: flex !important; } /* ВКЛЮЧАЕМ ТРИ ПОЛОСКИ */
    
    .main-header { 
        position: fixed !important; 
        height: 75px; 
        padding: 0; 
        display: flex; 
        align-items: center; 
    }

    .header-container { 
        width: 100% !important; 
        max-width: 100% !important; 
        padding: 0 25px !important; 
        flex-direction: row !important; 
        gap: 0 !important; 
    }
}
