/* ==========================================================================
   HEADER — ARCHITECTURAL LUXURY (DESKTOP + RESPONSIVE BURGER)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(18, 21, 26, 0.94) 0%, rgba(13, 15, 18, 0.90) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: height 0.3s ease;
}

.header-inner {
    height: 100%;
    position: relative;
    z-index: 1002;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* 1. БРЕНД И ЛОГОТИП */
.brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    height: 100%;
}

.brand-mark-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 100%;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(126, 174, 200, 0.2));
    transition: transform 0.4s ease;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
    height: 44px;
}

.brand-title {
    font-family: var(--font-base);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-descriptor {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #7b8794;
    text-transform: uppercase;
    margin-top: 0.3rem;
    font-weight: 400;
}

/* 2. ДЕСКТОП НАВИГАЦИЯ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.75rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-num {
    font-size: 0.65rem;
    color: #526071;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-ice);
    box-shadow: 0 0 8px var(--accent-ice);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { color: #ffffff; }
.nav-link:hover .nav-num { color: var(--accent-ice); }
.nav-link:hover::after { width: 100%; }

/* 3. ДЕСКТОП ДЕЙСТВИЯ (Жесткая фиксация в одну строку) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem; /* Слегка уменьшили отступ, чтобы всему хватало места */
    flex-shrink: 0; /* Запрещаем сжимать этот блок */
}

.header-phone {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #ffffff;
    white-space: nowrap; /* ГАРАНТИРУЕТ, ЧТО НОМЕР НЕ РАЗОБЬЕТСЯ НА 2 СТРОКИ */
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--accent-ice);
}

.btn-luxury {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    background: rgba(126, 174, 200, 0.05);
    border: 1px solid rgba(126, 174, 200, 0.35);
    border-radius: 1px;
    text-decoration: none;
    white-space: nowrap; /* Текст кнопки тоже строго в одну строку */
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.btn-luxury span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.btn-luxury:hover {
    border-color: var(--accent-ice);
    background: rgba(126, 174, 200, 0.12);
    box-shadow: 0 0 25px rgba(126, 174, 200, 0.2);
}

/* 4. КНОПКА БУРГЕРА (По умолчанию скрыта) */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    padding: 10px;
    justify-content: center;
    align-items: center;
    z-index: 1005;
}

.burger-line {
    position: absolute;
    width: 24px;
    height: 1.5px;
    background: #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease;
}

.top-line { top: 16px; }
.bottom-line { top: 26px; }

/* Анимация бургера в крестик */
.burger-btn.active .top-line {
    top: 21px;
    transform: rotate(45deg);
    background: var(--accent-ice);
}
.burger-btn.active .bottom-line {
    top: 21px;
    transform: rotate(-45deg);
    background: var(--accent-ice);
}

/* 5. ВЫДВИЖНАЯ МОБИЛЬНАЯ ПАНЕЛЬ */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1001;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
    padding: 100px 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.35rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e5e9f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link .nav-num {
    font-size: 0.85rem;
    color: var(--accent-ice);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-phone-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-phone-link {
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.mobile-address {
    font-size: 0.8rem;
    color: #6c7989;
}

.mobile-cta-btn {
    width: 100%;
    text-align: center;
    padding: 1.1rem;
}

/* ==========================================================================
   АДАПТИВНЫЕ МЕДИАЗАПРОСЫ
   ========================================================================== */

/* Переключаем в бургер чуть раньше (на 1180px), чтобы на небольших ноутбуках верстка не теснилась */
@media (max-width: 1180px) {
    .desktop-nav { display: none; }
    .desktop-actions { display: none; }
    .burger-btn { display: flex; }
    .site-header { height: 70px; }

    .brand-mark-wrapper { height: 60px; }
    .brand-text-group { height: 38px; padding-left: 0.85rem; }
    .brand-title { font-size: 1.05rem; }
    .brand-descriptor { font-size: 0.58rem; }
}

@media (max-width: 540px) {
    .brand-descriptor { font-size: 0.58rem; }
    .brand-text-group { border-left: none; padding-left: 0.5rem; }
}