.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(13, 18, 28, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 90px;
    width: 100%;
}

/* ===== Логотип ===== */

.site-header__logo {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== Основное меню (десктоп) ===== */

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu > li {
    position: relative;
}

.site-header__menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header__menu > li > a:hover {
    color: var(--color-gold-500);
}

.site-header__menu > li.menu-item-has-children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}

.site-header__menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* Выпадающее подменю (десктоп) */
.site-header__menu .sub-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    background: rgba(13, 18, 28, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.site-header__menu li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__menu .sub-menu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold-500);
}

/* ===== Правый блок: поиск, CTA, бургер ===== */

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.site-header__search-toggle:hover {
    color: var(--color-gold-500);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid var(--color-gold-500);
    border-radius: 999px;
    color: var(--color-gold-500);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta:hover {
    background: var(--color-gold-500);
    color: var(--color-dark-950);
    box-shadow: var(--shadow-glow);
}

/* ===== Бургер ===== */

.site-header__burger {
    position: relative;
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.site-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ===== Мобильное меню (offcanvas) ===== */

.site-header__mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: rgba(7, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 110px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.site-header__mobile-menu.is-open {
    transform: translateX(0);
}

.site-header__mobile-menu-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-header__mobile-menu-list a {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
}

.site-header__mobile-menu-list .sub-menu a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: none;
    padding: 8px 0;
}

.site-header__cta--mobile {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 1199px) {
    .site-header__nav,
    .site-header__actions .site-header__cta,
    .site-header__actions .site-header__search-toggle {
        display: none;
    }
    .site-header__burger {
        display: flex;
    }
}
