.site-header {
    position: relative;
    z-index: 100;
}

/* ===== Верхняя строка ===== */

.site-header__topbar {
    background: var(--color-primary);
    color: #fff;
}

.site-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
}

.site-header__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__contact svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.9;
}

.site-header__topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header__schedule {
    text-align: right;
    line-height: 1.4;
    opacity: 0.95;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: #1f2937;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}
.site-header__cta:hover {
    background: var(--color-accent-dark);
}

/* ===== Нижняя строка (лого + меню) ===== */

.site-header__main {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}
.site-header__main.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.site-header__main-spacer {
    display: none;
}
.site-header__main-spacer.is-active {
    display: block;
}

.site-header__main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.site-header__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.site-header__logo-text-top {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.site-header__logo-text-bottom {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
}

.site-header__menu {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.site-header__menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.site-header__menu-link:hover {
    color: var(--color-primary);
}

.site-header__menu-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-header__menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header__menu-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

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

.site-header__burger {
    display: none;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.site-header__burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    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(340px, 88vw);
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    padding: 90px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    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-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.site-header__mobile-menu-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-header__mobile-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header__mobile-cta {
    margin-top: 20px;
    text-align: center;
}

.site-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}
.site-header__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Адаптив ===== */

@media (max-width: 1199px) {
    .site-header__menu {
        display: none;
    }
    .site-header__burger {
        display: flex;
    }
}

@media (max-width: 767px) {
    .site-header__topbar-inner {
        justify-content: center;
        text-align: center;
    }
    .site-header__topbar-right {
        justify-content: center;
        width: 100%;
    }
    .site-header__schedule {
        text-align: center;
    }
}
