/* ION Heat — Header */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--fon2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header {
    max-width: calc(1640px + var(--section-padding-x) * 2);
    padding: 0 var(--section-padding-x);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 76px;
}

/* ── Лого ───────────────────────────────────────────────────── */
.header__logo {
    flex-shrink: 0;
    width: 250px;
    height: 76px;
    display: flex;
    align-items: center;
}

.header__logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Навигация ──────────────────────────────────────────────── */
.header__nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.nav-item__label {
    color: var(--fon2);
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    line-height: var(--menu-line-height);
    font-weight: var(--menu-font-weight);
    white-space: nowrap;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-item:hover .nav-item__label {
    color: var(--main);
}

.nav-item__arrow-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nav-item:hover .nav-item__arrow-icon {
    transform: rotate(180deg);
}

/* Подменю */
.nav-item__submenu {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    transition-delay: 0s;

    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--fon2);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-item:hover .nav-item__submenu {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s; /* появляется сразу */
}

.nav-item__submenu:hover {
    visibility: visible;
    opacity: 1;
}

/* Мост — невидимая зона между пунктом и подменю */
.nav-item__submenu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.nav-item:hover .nav-item__submenu {
    display: flex;
}

.nav-item__submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--fon2);
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    font-weight: var(--menu-font-weight);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-item__submenu a:hover {
    color: var(--main);
    background: #f9f9f9;
}

/* ── Правая часть хедера ────────────────────────────────────── */
.header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* Телефон */
.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fon2);
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    font-weight: var(--menu-font-weight);
    transition: color 0.2s;
}

.header__phone:hover {
    color: var(--main);
}

.header__phone img {
    width: 20px;
    height: 20px;
}

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

.header__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.header__socials a:hover {
    opacity: 0.7;
}

.header__socials img {
    width: 24px;
    height: 24px;
}

/* ── Кнопка ─────────────────────────────────────────────────── */
.header__btn {
    background: var(--main);
    border-radius: 100px;
    padding: 12px 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
}

.header__btn:hover {
    opacity: 0.9;
}

.header__btn span {
    color: var(--white);
    font-family: var(--button-font-family);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
    font-weight: var(--button-font-weight);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Бургер (скрыт на десктопе) ─────────────────────────────── */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fon2);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__burger.is-open span:nth-child(2) {
    opacity: 0;
}
.header__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Мобильное меню ─────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 24px var(--section-padding-x);
    flex-direction: column;
    gap: 0;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
    text-decoration: none;

}

.mobile-nav-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    text-decoration: none;
}
.mobile-nav-item__top a{
 
    text-decoration: none;
}

.mobile-nav-item__top span {
    color: var(--fon2);
    font-family: var(--menu-font-family);
    font-size: 18px;
    font-weight: var(--menu-font-weight);
    text-decoration: none;
}

.mobile-nav-item__top .nav-item__arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.mobile-nav-item.is-open .mobile-nav-item__top .nav-item__arrow-icon {
    transform: rotate(180deg);
}

.mobile-nav-item__submenu {
    display: none;
    flex-direction: column;
    padding: 0 0 12px 16px;
    gap: 4px;
}

.mobile-nav-item.is-open .mobile-nav-item__submenu {
    display: flex;
}

.mobile-nav-item__submenu a {
    padding: 10px 0;
    color: var(--fon2);
    font-family: var(--menu-font-family);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
    text-decoration: none;
}

.mobile-nav-item__submenu a:hover {
    color: var(--main);
}

.mobile-menu__bottom {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
.mobile-menu__bottom .header__btn{display:flex;width:100%;}

.mobile-menu__socials {
    display: flex;
    gap: 16px;
}

.mobile-menu__socials a img {
    width: 28px;
    height: 28px;
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .header__nav,
    .header__phone,
    .header__socials,
    .header__btn {
        display: none;
    }

    .header__burger {
        display: flex;
    }
}