/* ============================================================
   HEADER — фиксированный, заезжает на hero-секцию
   ============================================================ */

/* ── Обёртка хедера ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ──────────────────────────────────────────────────────────
   ВЕРХНЯЯ ПОЛОСА (логотип + навигация + контакты)
   ────────────────────────────────────────────────────────── */
.header-top {
     max-width: 1500px;
    width: 100%;
    padding: 21px 0 ;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* ── Левая группа: лого + меню ── */
.header-top__left {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

/* ── Логотип ── */
.header-logo {
    position: relative;
    isolation: isolate;
  }
  
  .header-logo svg {
    width: 104px;
    height: 91px;
  }
  .header-nav a.is-active {
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subnav a.is-active {
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  
    
}

/* ── Главная навигация ── */
.header-nav {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
}

.header-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.header-nav ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.header-nav ul li:hover {
    border-radius: 6px;
    border: 1px solid  #FFDB73;
}

.header-nav ul li a:hover {
    background: linear-gradient(180deg, #FFDB73 0%, #D9B944 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Разделитель между пунктами меню */
.header-nav ul li + li::before {
    content: '';
    display: block;
    width: 0;
    height: 24px;
    border-left: 1px solid var(--linii);
    flex-shrink: 0;
}

.header-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 15px;
    line-height: 1em;
    font-weight: 600;
    text-transform: uppercase;
    transition: border-color .2s;
    white-space: nowrap;
}


/* ── Правая группа: контакты + кнопка + соцсети ── */
.header-top__right {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

/* Контакты + кнопка */
.header-contacts {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

/* Телефон + подпись */
.header-phone-block {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: flex-end;
}

.header-phone {
    font-family: var(--font-bebas);
    font-size: 28px;
    line-height: 23px;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone__prefix {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-phone__code {
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 4px;
}

.header-phone__number {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* «Мы круглосуточно на связи!» */
.header-phone-note {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.header-phone-note__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
    flex-shrink: 0;
    animation: dot-pulse 2s ease-in-out infinite;
}


@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.75); }
}



.header-phone-note__text {
    font-family: var(--font-myriad);
    font-size: 16px;
    line-height: 23px;
    font-weight: 600;
    white-space: nowrap;
}

.header-phone-note__text .light {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-phone-note__text .gold {
    background: var(--gradient-zheltyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Кнопка «Заказать звонок» */
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    height: 42px;
    background: var(--gradient-zheltyj);
    border-radius: 5px;
    font-family: var(--font-bebas);
    font-size: 20px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-black);
    -webkit-text-fill-color: var(--color-black);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    
    text-transform: uppercase;
}

.header-cta:hover {
    background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%);
}

/* Соцсети */
.header-socials {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.header-socials__item {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-socials__item-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--gradient-zheltyj);
    box-shadow: var(--effekt-1-box-shadow);
    backdrop-filter: var(--effekt-1-backdrop-filter);
}

.header-socials__item img,
.header-socials__item svg {
    position: relative;
    z-index: 1;
    width: 64.86%;
    height: 64.86%;
    object-fit: contain;
}

.header-socials__item:hover .header-socials__item-bg {
    background: linear-gradient(180deg, #C7A21B 0%, #FFDB73 100%);
}

/* ──────────────────────────────────────────────────────────
   НИЖНЯЯ ПОЛОСА (подкатегории)
   ────────────────────────────────────────────────────────── */
.header-subnav {
    width: 100%;
    background: rgba(0,0,0,.35);
    border-top: 1px solid var(--linii);
    border-bottom: 1px solid var(--linii);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 54px;
    padding: 0 var(--section-padding-x);
    justify-content: center;

}

.header-subnav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 1500px;
}

.header-subnav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-right: 1px solid var(--linii);
}

.header-subnav ul li:first-child {
    border-left: 1px solid var(--linii);
}

.header-subnav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
    height: 100%;
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 15px;
    line-height: 17px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background .2s;
}

.header-subnav ul li:hover {
    border-radius: 6px;
    border: 1px solid #363636;
    background: linear-gradient(180deg, #FFDB73 0%, #D9B944 100%);
}

.header-subnav ul li a:hover {
    color: var(--color-black);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-black);
}

/* ──────────────────────────────────────────────────────────
   Hero-отступ: контент под фиксированным хедером
   ────────────────────────────────────────────────────────── */
.hero-section {
    /* Хедер заезжает на hero — отступ не нужен */
    padding-top: 0;
}

/* ──────────────────────────────────────────────────────────
   АДАПТИВ — новая логика с порогом 1024px
   ────────────────────────────────────────────────────────── */

   .header-mobile,
   .header-mobile-menu {
       display: none;
   }




/* Плавное масштабирование до 1024px (десктоп) */
@media (max-width: 1919px) {
    .header-top {
        max-width: 1500px;
        padding: 16px 0;
        padding-left: clamp(14px, 2vw, 24px);
        padding-right: clamp(14px, 2vw, 24px);
        gap: clamp(10px, 1.4vw, 24px);
    }

    .header-top__left,
    .header-top__right {
        gap: clamp(10px, 1.4vw, 24px);
    }

    .header-nav ul li a,
    .header-subnav ul li a {
        font-size: clamp(12px, .8vw, 15px);
        padding-left: clamp(8px, .8vw, 14px);
        padding-right: clamp(8px, .8vw, 14px);
    }

    .header-phone {
        font-size: clamp(22px, 1.4vw, 28px);
    }

    .header-phone-note__text {
        font-size: clamp(13px, .85vw, 16px);
        line-height: 1.2;
    }

    .header-cta {
        font-size: clamp(16px, 1.1vw, 20px);
        padding: 10px 14px;
        height: 40px;
    }
}

/* ── <1024px: переключаемся на мобильный хедер ── */
@media (max-width: 1023px) {

    body.is-mobile-menu-open {
        overflow: hidden;
    }

    /* Скрываем весь десктопный хедер */
    .header-top,
    .header-subnav {
        display: none;
    }

    /* Показываем мобильный хедер */
    .header-mobile {
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--linii);
        background: rgba(5, 5, 5, .9);
    }

    .header-mobile__top {
        padding: 14px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Логотип — чуть крупнее чем на 480, масштабируем */
    .header-mobile__logo {
        width: clamp(66px, 8vw, 100px);
        height: auto;
        flex-shrink: 0;
        overflow: visible;
    }

    .header-mobile__logo svg,
    .header-mobile__logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .header-mobile__logo svg {
        width: clamp(66px, 8vw, 100px);
        height: auto;
        display: block;
    }

    .header-mobile__right {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    /* Телефон + подпись */
    .header-mobile__phone-block {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .header-mobile__phone {
        text-align: right;
        font-family: var(--font-bebas);
        font-size: clamp(22px, 2.5vw, 28px);
        line-height: 1;
        font-weight: 400;
        white-space: nowrap;
    }

    .header-mobile__note {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: flex-start;
    }

    .header-mobile__dot-wrap {
        padding-top: 5px;
        width: 7px;
        height: 8px;
        flex-shrink: 0;
        display: block;
    }

    .header-mobile .header-phone-note__dot {
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--color-green);
        flex-shrink: 0;
    }

    .header-mobile__note-text {
        text-align: right;
        font-family: var(--font-myriad);
        font-size: clamp(13px, 1.2vw, 14px);
        line-height: 1.3;
        font-weight: 600;
    }

    .header-mobile__note-text .light {
        background: var(--gradient-svetlyj);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .header-mobile__note-text .gold {
        background: var(--gradient-zheltyj);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Соцсети в мобильном хедере (новое — не было в оригинале) */
    .header-mobile__socials {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    /* Бургер */
    .header-mobile__burger {
        width: 42px;
        height: 42px;
        position: relative;
        border: 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .header-mobile__burger-bg {
        position: absolute;
        inset: 0;
        border-radius: 50px;
        background: var(--gradient-zheltyj);
        box-shadow: var(--effekt-1-box-shadow);
        backdrop-filter: var(--effekt-1-backdrop-filter);
    }

    .header-mobile__burger-icon {
        position: absolute;
        width: 64.86%;
        height: 64.86%;
        left: 19.5%;
        top: 18.5%;
        z-index: 1;
    }

    .header-mobile__burger-icon--close {
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
         left: 17.5%;
        top: 17.5%;
    }

    .header-mobile__burger-icon--open {
        transition: opacity .2s;
        left: 24%;
        top: 31%;
    }

    .site-header.is-mobile-menu-open .header-mobile__burger-icon--open {
        opacity: 0;
        pointer-events: none;
    }

    .site-header.is-mobile-menu-open .header-mobile__burger-icon--close {
        opacity: 1;
        pointer-events: auto;
    }

    /* Выпадающее меню */
    .header-mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 34px;
        align-items: flex-start;
        width: 100%;
        max-height: calc(100vh - 85px);
        overflow: auto;
        background: var(--color-black) url('https://pro2.kru-web.ru/wp-content/uploads/2026/05/tihii-landsaftnyi-osvetitel-nyi-dvor-2.png')
        center / cover no-repeat;
        border-top: 1px solid var(--linii);
        padding: 24px 0 32px;
        height: 100vh;
    }

    .header-mobile-menu[hidden] {
        display: none;
    }

    .header-mobile-menu__title {
        padding: 0 24px;
        color: #fff;
        font-family: var(--font-bebas);
        font-size: clamp(26px, 3.5vw, 32px);
        line-height: 1.1;
        font-weight: 400;
        text-transform: uppercase;
    }

    .header-mobile-menu__links {
        width: 100%;
        display: flex;
        flex-direction: column;
        
        padding: 0 24px;
    }

    .header-mobile-menu__list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .header-mobile-menu__list li {
        padding: 9px 0;
        border-top: 1px dashed var(--linii);
    }

    .header-mobile-menu__list li:first-child {
        border-top: 0;
    }

    .header-mobile-menu__list li a {
        display: inline-flex;
        border: 1px solid transparent;
        border-radius: 6px;
        padding: 3px 0;
        background: var(--gradient-svetlyj);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: var(--font-myriad);
        font-size: clamp(13px, 1.5vw, 15px);
        line-height: 1.5;
        font-weight: 600;
        text-transform: uppercase;
    }

    .header-mobile-menu__bottom {
        width: 100%;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .header-mobile-menu__cta {
        background: var(--gradient-zheltyj);
        border-radius: 5px;
        border: 0;
        padding: 14px 18px;
        color: var(--color-black);
        font-family: var(--font-bebas);
        font-size: clamp(18px, 2vw, 22px);
        line-height: 1;
        font-weight: 400;
        text-transform: uppercase;
        white-space: nowrap;
        cursor: pointer;
    }

    .header-mobile-menu__socials {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 600px) { .header-mobile__socials { display: none; } }