.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header--scrolled {
    background: rgba(43, 43, 43, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    max-width: var(--content-max-width);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    min-width: 0;
}

.site-header__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    height: 56px;
}

.site-header__logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 56px;
}

.site-header__nav {
    flex: 1 1 0;
    min-width: 0;
}

.site-header__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu-link {
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.site-header__menu-link:hover {
    opacity: 0.75;
}

.site-header__menu-item--dropdown {
    position: relative;
}

.site-header__menu-link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-header__menu-chevron {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.site-header__menu-item--dropdown:hover .site-header__menu-chevron,
.site-header__menu-item--dropdown:focus-within .site-header__menu-chevron,
.site-header__menu-item--dropdown.is-open .site-header__menu-chevron {
    transform: rotate(180deg);
}

.site-header__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 10;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 12px;
    background: rgba(43, 43, 43, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.site-header__menu-item--dropdown:hover .site-header__dropdown,
.site-header__menu-item--dropdown:focus-within .site-header__dropdown,
.site-header__menu-item--dropdown.is-open .site-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-header__dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.site-header__actions {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    min-width: 0;
}

.site-header__action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    transition: opacity 0.2s ease;
}

.site-header__action:hover {
    opacity: 0.75;
}

.site-header__action-icon {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.site-header__action-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
    white-space: nowrap;
}

.site-header__burger {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.site-header__burger:hover {
    opacity: 0.75;
}

.site-header__burger-icon {
    display: block;
    width: 32px;
    height: 32px;
}

/* --------------------------------------------------------------------------
   Sidebar — isolated BEM block (does not restyle .site-header)
   -------------------------------------------------------------------------- */

.site-sidebar,
.site-sidebar *,
.site-sidebar *::before,
.site-sidebar *::after {
    box-sizing: border-box;
}

.site-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.site-header-root.is-menu-open .site-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: min(400px, 100%);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(43, 43, 43, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.35s;
}

.site-header-root.is-menu-open .site-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.site-sidebar__head {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
}

.site-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.site-sidebar__close:hover {
    opacity: 0.75;
}

.site-sidebar__close-icon {
    display: block;
    width: 32px;
    height: 32px;
}

.site-sidebar__nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-sidebar__menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-sidebar__link {
    color: #fff;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    transition: opacity 0.2s ease;
}

.site-sidebar__link:hover {
    opacity: 0.75;
}

.site-sidebar__item {
    width: 100%;
}

.site-sidebar__item--dropdown {
    position: relative;
}

.site-sidebar__link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-sidebar__chevron {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.site-sidebar__item--dropdown.is-open .site-sidebar__chevron {
    transform: rotate(180deg);
}

.site-sidebar__dropdown {
    display: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px;
    list-style: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-sidebar__item--dropdown.is-open .site-sidebar__dropdown {
    display: block;
}

.site-sidebar__dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.site-sidebar__dropdown-link:hover,
.site-sidebar__dropdown-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.site-sidebar__actions {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
}

.site-sidebar__action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    transition: opacity 0.2s ease;
}

.site-sidebar__action:hover {
    opacity: 0.75;
}

.site-sidebar__action-icon {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.site-sidebar__action-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
}

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