/* Header Styles */

#topInfoBar {
    display: block;
}

header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 250;
    transition: background 0.5s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Мобильный: скрывается при скролле вниз */
@media (max-width: 768px) {
    header {
        transform: translateY(0);
        transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease;
    }
    header.header-scroll-hidden {
        transform: translateY(-110%);
        pointer-events: none;
    }
    body.mobile-menu-open header.header-scroll-hidden {
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 380px) {
    header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .header-logo-image-left {
        height: 40px;
    }
}

header .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

@media (max-width: 1100px) {
    header .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    header .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* ===== НОВЫЙ МАКЕТ ХЕДЕРА: grid nav|logo|actions (все страницы) ===== */
.header-main {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-areas: "nav logo actions" !important;
    align-items: center !important;
    padding: 1.5rem 0 !important;
    position: relative !important;
    min-height: 5rem !important;
}

.header-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
    grid-area: logo !important;
    position: static !important;
    transform: translateY(-3px) !important;
    left: auto !important;
    justify-self: center !important;
    transition: opacity 0.2s ease !important;
}

.header-nav {
    grid-area: nav !important;
    position: static !important;
}

.header-actions {
    grid-area: actions !important;
    position: static !important;
    justify-self: end !important;
    transform: translateY(3px) !important;
    right: auto !important;
}

/* ≤ 1402px: burger + logo center + actions — global (все страницы) */
@media (max-width: 1402px) {
    .header-main {
        display: flex !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem 2rem !important;
        min-height: 5rem !important;
    }

    .header-nav {
        display: none !important;
    }

    .header-menu-toggle {
        display: flex !important;
        position: absolute !important;
        left: calc(1rem + 4px) !important;
        top: 50% !important;
        transform: translateY(calc(-50% + 4px)) !important;
        z-index: 10 !important;
        margin: 0 !important;
    }

    .header-logo {
        position: static !important;
        left: auto !important;
        transform: translateY(-3px) !important;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
    }

    .header-actions {
        display: flex !important;
        position: absolute !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(calc(-50% + 3px)) !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .header-menu-toggle {
        left: calc(-0.2rem + 4px) !important;
    }
}

/* (old logo-center rule removed — handled by grid/flex layout) */

.header-logo-image-left {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Главная: белый лого на тёмном градиентном хедере */
body.home-page .header-logo-image-left {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .header-logo-image-left {
        height: 41px;
    }
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    padding: 0;
    margin: 0;
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.header-nav-link:hover {
    color: white;
}

/* Dropdown Menu */
.header-nav-item-dropdown {
    position: relative;
}

.header-nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.header-nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 30px 30px 30px 30px;
    width: 100%;
    min-height: 280px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

header .container .header-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: block;
    padding: 0.625rem 2rem;
    color: var(--secondary-900);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-radius 0.22s ease;
    border-radius: 0;
    margin: 0.25rem 0.5rem;
    border-radius: 12px;
    position: relative;
}

.header-dropdown-item:hover {
    background: rgba(9, 35, 124, 0.07);
    color: #09237C;
    border-radius: 12px;
    transform: translateX(4px);
}

.header-dropdown-item::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: #09237C;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
}

.header-dropdown-item:hover::after {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
}

.header-dropdown-item:nth-last-child(1),
.header-dropdown-item:nth-last-child(2) {
    margin-bottom: 0;
}

/* Последние элементы в меню "Экспертизы" — только margin, без особых скруглений */
.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(1) {
    margin-right: 0;
}

.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(2) {
    margin-left: 0.5rem;
}

/* Убираем отступы margin-left для предпоследних элементов в меню "Компания" и "Оценка" */
.header-dropdown-menu-company .header-dropdown-item:nth-last-child(2),
.header-dropdown-menu-evaluation .header-dropdown-item:nth-last-child(2) {
    margin-left: 0.5rem;
}

.header-dropdown-menu-company .header-dropdown-item:nth-last-child(1),
.header-dropdown-menu-evaluation .header-dropdown-item:nth-last-child(1) {
    margin-right: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

@media (max-width: 950px) {
    .header-actions {
        display: none !important;
    }
}

/* Search Field */
.header-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: relative;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.header-search-field {
    position: absolute;
    right: 0;
    top: 1px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 5;
}

.header-search-field.active {
    width: 300px;
    opacity: 1;
}

.header-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background 0.3s ease;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
}

.header-nav-link-hideable {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-nav-item-hideable {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-action {
    position: relative;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.header-action:hover {
    color: white;
}

.header-action svg {
    width: 1.75rem;
    height: 1.75rem;
}

.header-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 0 0 auto;
    order: -1;
    position: relative;
    z-index: 300;
    width: 40px;
    height: 40px;
    transform: none;
    transition: color 0.3s ease;
}

.header-menu-toggle.active {
    z-index: 302 !important;
}

@media (max-width: 1400px) {
    .header-menu-toggle {
        display: block;
    }
}

.header-menu-toggle:hover {
    color: white;
}

.header-menu-icon {
    position: absolute;
    top: calc(50% - 4px); /* чуть выше центра */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27px;
    height: 27px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease, transform 0.25s ease;
    pointer-events: none;
    /* Делаем PNG-иконки белыми поверх синего хедера */
    filter: brightness(0) invert(1);
}

.header-menu-icon-open {
    opacity: 1;
}

.header-menu-icon-close {
    opacity: 0;
    /* тот же базовый размер, что и у бургера */
    transform: translate(-50%, -50%);
}

.header-menu-toggle.active .header-menu-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.header-menu-toggle.active .header-menu-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ================================================================
   SIDEBAR — dark navy, slides from left, active pill overflows right
   Referencing Apple-style sidebar design
   ================================================================ */

/* Full-screen overlay container */
.header-mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 240;
    visibility: hidden;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    transform: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
    transition: visibility 0s 0.45s;
}

.header-mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}

/* Backdrop */
.sidebar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 40, 0.55);
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.header-mobile-menu.active .sidebar-backdrop { opacity: 1; }

/* ---- Sidebar panel ---- */
.sidebar-panel {
    position: absolute;
    top: 5rem;
    left: 0;
    bottom: 0;
    width: 78%;
    max-width: 340px;
    background: #ffffff;
    border-radius: 0 28px 0 0;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.06, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 48px rgba(9, 35, 124, 0.18);
}

.header-mobile-menu.active .sidebar-panel { transform: translateX(0); }

/* Inner scrollable area (panel itself is overflow:visible for pill bleed) */
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

/* При открытом сайдбаре: блокируем скролл страницы */
body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

/* При открытом сайдбаре: хедер держит затемнение как на сайте */
body.mobile-menu-open header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 251 !important;
    border-radius: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
    box-shadow: none !important;
}

/* Лого остаётся белым — хедер тёмный */
body.mobile-menu-open .header-logo-image-left { filter: brightness(0) invert(1) !important; }

/* Бургер-крестик белый на тёмном хедере */
body.mobile-menu-open .header-menu-icon-close {
    filter: brightness(0) invert(1) !important;
}

body.mobile-menu-open .top-info-bar,
body.mobile-menu-open #topInfoBar .top-info-bar {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ---- Sidebar Header — hidden, no logo/close block ---- */
.sidebar-header { display: none; }
.sidebar-logo-wrap, .sidebar-logo-icon, .sidebar-close-btn { display: none; }

/* ---- Sidebar Search ---- */
.sidebar-search {
    padding: 1rem 1rem 0.875rem;
    flex-shrink: 0;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(175, 171, 171, 0.1);
    border: 1.5px solid transparent;
    border-radius: 16px;
    color: #1e293b;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.sidebar-search-input::placeholder { color: #AFABAB; }

.sidebar-search-input:focus {
    border-color: rgba(9, 35, 124, 0.3);
    background: rgba(9, 35, 124, 0.04);
}

/* ---- Sidebar Navigation ---- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.375rem 0.75rem 1rem;
    flex: 1;
}

/* Nav item */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0.60rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    position: relative;
}

.sidebar-nav-item:active { transform: scale(0.975); transition: transform 0.1s; }

@media (hover: hover) {
    .sidebar-nav-item:hover:not(.active) {
        background: rgba(9, 35, 124, 0.06);
        color: #09237C;
    }
}

/* Active item — blue left border, no fill */
.sidebar-nav-item.active {
    background: rgba(9, 35, 124, 0.07);
    color: #09237C;
    font-weight: 600;
    border-radius: 16px;
    border-left: 3px solid #09237C;
    margin-right: 0;
    padding-right: 1rem;
}

/* Staggered entry animations */
@keyframes sidebarItemSlideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes sidebarActivePop {
    0%   { transform: scaleX(0.92); opacity: 0.6; }
    65%  { transform: scaleX(1.02); }
    100% { transform: scaleX(1); opacity: 1; }
}

.header-mobile-menu.active .sidebar-nav > *:nth-child(1) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.05s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(2) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.10s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(3) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.15s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(4) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.20s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(5) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.25s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(6) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.30s both; }
.header-mobile-menu.active .sidebar-nav > *:nth-child(7) { animation: sidebarItemSlideIn 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.35s both; }

.header-mobile-menu.active .sidebar-nav-item.active {
    animation: sidebarActivePop 0.48s cubic-bezier(0.34,1.2,0.64,1) 0.28s both;
    transform-origin: left center;
}

/* Icon badge */
.sidebar-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(9, 35, 124, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sidebar-nav-item.active .sidebar-nav-icon { background: rgba(9, 35, 124, 0.1); }

.sidebar-nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: #09237C;
    transition: stroke 0.2s ease;
}

.sidebar-nav-item.active .sidebar-nav-icon svg { stroke: #09237C; }

.sidebar-nav-label { flex: 1; }

/* Dropdown arrow */
.sidebar-dropdown-arrow {
    width: 14px;
    height: 14px;
    stroke: #AFABAB;
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.2s ease;
}

.sidebar-nav-item-dropdown.open > .sidebar-nav-item .sidebar-dropdown-arrow,
.sidebar-nav-item-dropdown.open > button .sidebar-dropdown-arrow {
    transform: rotate(180deg);
    stroke: #09237C;
}

.sidebar-nav-item.active .sidebar-dropdown-arrow { stroke: #09237C; }

/* Sub-dropdown */
.sidebar-dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0 0.25rem 0 1rem;
    transition:
        max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-item-dropdown.open .sidebar-dropdown-menu {
    max-height: 520px;
    opacity: 1;
    margin: 4px 0.25rem 4px 1rem;
}

.sidebar-dropdown-item {
    display: block;
    padding: 0.5625rem 0.875rem 0.5625rem 1rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    margin: 1px 0;
}

.sidebar-dropdown-item:hover {
    background: rgba(9, 35, 124, 0.06);
    color: #09237C;
}

.sidebar-dropdown-item.active {
    color: #09237C;
    font-weight: 600;
    background: rgba(9, 35, 124, 0.06);
}

/* ---- Sidebar Footer ---- */
.sidebar-footer {
    flex-shrink: 0;
    padding: 0.875rem 1.125rem 2.5rem;
    border-top: 1px solid rgba(175, 171, 171, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.sidebar-footer-item svg {
    width: 13px;
    height: 13px;
    stroke: #AFABAB;
    flex-shrink: 0;
}

.sidebar-footer-item a {
    color: #17265F;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-footer-item span { color: #94a3b8; }

/* City selector */
.sidebar-city-selector {
    position: relative;
    margin-top: 0.25rem;
}

.sidebar-city-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(9, 35, 124, 0.05);
    border: 1px solid rgba(9, 35, 124, 0.1);
    border-radius: 10px;
    color: #17265F;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    box-sizing: border-box;
}

.sidebar-city-btn:hover { background: rgba(9, 35, 124, 0.1); }

.sidebar-city-btn svg {
    width: 13px;
    height: 13px;
    stroke: #17265F;
    flex-shrink: 0;
}

.sidebar-city-name { flex: 1; }

.sidebar-city-arrow { transition: transform 0.3s ease; margin-left: auto; }

.sidebar-city-selector.active .sidebar-city-arrow { transform: rotate(180deg); }

.sidebar-city-dropdown {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(9, 35, 124, 0.1);
    border-radius: 12px;
    box-shadow: 0 -8px 24px rgba(9, 35, 124, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10;
}

.sidebar-city-selector.active .sidebar-city-dropdown {
    max-height: 240px;
    opacity: 1;
    visibility: visible;
    padding: 0.3rem;
}

.sidebar-city-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.sidebar-city-dropdown-item:hover {
    background: rgba(9, 35, 124, 0.06);
    color: #09237C;
}

/* legacy stubs — no longer rendered, kept for safety */
.header-mobile-top-info { display: none; }
.header-mobile-top-info-item { display: none; }
.header-mobile-city-selector { display: none; }
.header-mobile-nav { display: none; }
.header-mobile-actions { display: none; }
.header-mobile-search-container { display: none; }

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-menu-toggle.active {
        z-index: 302;
    }
    
    .header-menu-toggle {
        z-index: 302;
        width: 25px !important;
        height: 25px !important;
    }
    
    .header-menu-toggle span {
        height: 2px !important;
    }
    
    .header-menu-toggle span:nth-child(2) {
        top: 7px !important;
    }
    
    .header-menu-toggle.active span:nth-child(1),
    .header-menu-toggle.active span:nth-child(2) {
        top: 3.5px !important;
    }
}

/* Скрыть чат и счетчик при открытом мобильном меню */
body.mobile-menu-open .chat-button,
body.mobile-menu-open .deals-counter {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* City Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.modal-close:hover {
    color: #1e293b;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-city-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.modal-city-btn:hover {
    background-color: var(--secondary-100);
}

/* Contacts Modal */
.contacts-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contacts-modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.contact-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-city {
    font-size: 1.25rem;
    font-weight: 700;
    color: #17255F;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: #17255F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-phone:hover {
    color: #1e40af;
    text-decoration: underline;
}

.contact-address {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.contact-hours {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.contact-email {
    font-size: 0.9375rem;
    color: #17255F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contacts-modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .contacts-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
}

/* Login Modal - Glassmorphism */
.login-modal {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.login-modal.active {
    display: flex;
}

body.login-modal-open {
    overflow: hidden;
}

body.login-modal-open .hero-video video {
    pointer-events: none !important;
}

body.login-modal-open main {
    pointer-events: none;
}

body.login-modal-open main * {
    pointer-events: none;
}

.login-modal.active ~ * {
    pointer-events: none;
}

.login-modal.active * {
    pointer-events: auto;
}

/* ── Login Modal: white split-screen ─────────────────────────────────────── */
.lm-wrapper {
    display: flex;
    width: min(940px, 96vw);
    height: min(630px, 92vh);
    border-radius: 41px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,0.38), 0 6px 20px rgba(0,0,0,0.12);
    position: relative;
}

/* ── Left panel — white container with floating image card ── */
.lm-left {
    flex: 0 0 54%;
    background: #fff;
    display: flex;
    align-items: stretch;
    padding: 10px 0 10px 10px;
}

/* Floating showcase card — true bezier curves via SVG clipPath (objectBoundingBox) */
.lm-floating-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    clip-path: url(#lm-card-clip);
}

.lm-floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.lm-card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lm-card-topbar,
.lm-card-bottom,
.lm-quotes-carousel { position: relative; z-index: 2; }

.lm-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.lm-card-logo {
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lm-card-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.lm-card-nav-link {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
}

.lm-card-nav-btn {
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 50px;
    padding: 0.26rem 0.7rem;
    transition: background 0.2s;
}
.lm-card-nav-btn:hover { background: rgba(255,255,255,0.26); }

.lm-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lm-card-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.lm-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    padding: 5px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.lm-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.lm-card-role {
    font-size: 0.63rem;
    color: rgba(255,255,255,0.56);
    margin-top: 1px;
}

.lm-card-arrows {
    display: flex;
    gap: 0.5rem;
}

.lm-arrow-btn {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lm-arrow-btn:hover { background: rgba(255,255,255,0.24); }

/* ── Quotes carousel ── */
.lm-quotes-carousel {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.6rem 0 1rem 0;
    overflow: hidden;
}

.lm-quote-item {
    text-align: left;
    max-width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.lm-quote-text {
    color: rgba(255,255,255,0.93);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.35rem 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.lm-quote-author {
    display: block;
    color: rgba(255,255,255,0.58);
    font-size: 0.7rem;
    font-weight: 500;
    font-style: normal;
}

.lm-quote-author em {
    font-style: normal;
    color: rgba(255,255,255,0.38);
}

/* ── Right panel — white form area ── */
.lm-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem 1.5rem 1.4rem;
    overflow-y: auto;
}

.lm-right-top { display: none; }

.lm-close-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: transparent;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    z-index: 10;
}
.lm-close-btn:hover { border-color: #09237C; color: #09237C; }

.lm-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 300px;
    width: 100%;
    padding: 0.5rem 0;
}

.lm-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.22rem;
}

.lm-subtitle {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 1.35rem;
}

.lm-form { display: flex; flex-direction: column; }

.lm-field-group { margin-bottom: 0.6rem; }

.lm-input {
    width: 100%;
    padding: 0.66rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
}
.lm-input:focus {
    border-color: #e5383b;
    box-shadow: 0 0 0 3px rgba(229,56,59,0.09);
}
.lm-input::placeholder { color: #c4cad4; }

.lm-forgot {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: #e5383b;
    text-decoration: none;
    margin-top: 0.15rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.lm-forgot:hover { text-decoration: underline; }

.lm-or {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    color: #9ca3af;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}
.lm-or::before,
.lm-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.lm-submit {
    width: 100%;
    padding: 0.78rem;
    background: #09237C;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.lm-submit:hover {
    background: #17265F;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229,56,59,0.38);
}
.lm-submit:active { transform: none; }

.lm-signup {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.6rem;
}
.lm-signup a {
    color: #FD7100;
    text-decoration: none;
    font-weight: 500;
}
.lm-signup a:hover { text-decoration: underline; }

.lm-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 0.6rem;
}

.lm-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.lm-social-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.2s, opacity 0.2s;
}

.lm-social-icon:hover .lm-social-img {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 825px) {
    .lm-card-nav-link { display: none; }
}

@media (max-width: 700px) {
    .lm-wrapper { flex-direction: column; width: 96vw; height: auto; min-height: 78vh; border-radius: 20px; }
    .lm-left { flex: none; height: 250px; padding: 10px; }
    .lm-floating-card {
        border-radius: 14px;
        clip-path: none;
    }
    .lm-card-nav-link { display: none; }
    .lm-right { flex: 1; padding: 0rem 1.5rem 1.25rem; }
    .lm-title { font-size: 1.6rem; }
    .lm-form-wrap { max-width: 100%; }
}

/* Отступ сверху для фиксированного хедера — все внутренние страницы */
.site-container {
    padding-top: 90px;
}

/* ==========================================================================
   HOME PAGE OVERLAY HEADER — Apple-style minimal design
   ========================================================================== */

/* Remove site-container width/padding constraints on home page */
body.home-page .site-container {
    max-width: 100% !important;
    padding: 0 0 100px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

body.home-page {
    overflow-x: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html, body {
    overflow-x: clip !important;
}


/* Home page: transparent gradient over full-screen banner */
body.home-page header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.55s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.home-page header.header-has-bg {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

/* Белые элементы над блоком консультации (тёмное видео) */
body.home-page header.header-white-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}
body.home-page header.header-white-overlay .header-logo-image-left {
    filter: brightness(0) invert(1) !important;
}
body.home-page header.header-white-overlay .header-nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}
body.home-page header.header-white-overlay .header-action {
    color: rgba(255, 255, 255, 0.92) !important;
}
body.home-page header.header-white-overlay .header-menu-icon {
    filter: brightness(0) invert(1) !important;
}

/* Liquid glass — после прохождения нижней грани слайдера */
body.home-page header.header-glass {
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 rgba(9, 35, 124, 0.08) !important;
    border-bottom: none !important;
}

/* Лого — синий, элементы — синие */
body.home-page header.header-glass .header-logo-image-left {
    filter: brightness(0) saturate(100%) invert(14%) sepia(71%) saturate(1300%) hue-rotate(213deg) brightness(82%) !important;
}
body.home-page header.header-glass .header-nav-link {
    color: #09237C !important;
}
body.home-page header.header-glass .header-nav-link:hover {
    color: #17265F !important;
}
body.home-page header.header-glass .header-action {
    color: #09237C !important;
}
body.home-page header.header-glass .header-menu-icon {
    filter: brightness(0) saturate(100%) invert(14%) sepia(71%) saturate(1300%) hue-rotate(213deg) brightness(82%) !important;
}

/* Открытый сайдбар — тёмный градиент как на странице */
body.mobile-menu-open header,
body.home-page.mobile-menu-open header,
body.home-page.mobile-menu-open header.header-glass,
body.home-page.mobile-menu-open header.header-white-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Header layout: grid — nav | logo | actions */
body.home-page .header-main {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-areas: "nav logo actions" !important;
    align-items: center !important;
    padding: 1.5rem 2rem !important;
    min-height: auto !important;
    gap: 0 !important;
    position: relative !important;
}

/* Nav: left column */
body.home-page .header-nav {
    grid-area: nav !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: -5rem !important;
    flex: none !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
}

body.home-page .header-nav-link {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    padding: 0.5rem 0.875rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

body.home-page .header-nav-link:hover {
    color: #fff !important;
}

/* Logo: center column */
body.home-page .header-logo {
    grid-area: logo !important;
    position: static !important;
    transform: translateY(-3px) !important;
    left: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Actions: right column */
body.home-page .header-actions {
    grid-area: actions !important;
    position: static !important;
    transform: translateY(3px) !important;
    right: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-right: -5rem !important;
}

/* Desktop: nav visible, burger hidden */
body.home-page .header-menu-toggle {
    display: none !important;
}

/* ≤ 1402px: hide nav, show burger on left, logo center, actions right */
@media (max-width: 1402px) {
    body.home-page .header-main {
        display: flex !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem 2rem !important;
        grid-template-columns: unset !important;
        grid-template-areas: unset !important;
        min-height: 5rem !important;
    }

    body.home-page .header-nav {
        display: none !important;
    }

    /* Burger: absolutely pinned to the left */
    body.home-page .header-menu-toggle {
        display: flex !important;
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(calc(-50% + 4px)) !important;
        grid-column: unset !important;
        grid-area: unset !important;
        z-index: 2 !important;
        margin: 0 !important;
    }

    /* Logo: stays in the center via flex justify-content:center */
    body.home-page .header-logo {
        position: static !important;
        left: auto !important;
        transform: translateY(-3px) !important;
        grid-area: unset !important;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
    }

    /* Actions: absolutely pinned to the right */
    body.home-page .header-actions {
        display: flex !important;
        position: absolute !important;
        right: 2rem !important;
        top: 50% !important;
        transform: translateY(calc(-50% + 3px)) !important;
        grid-column: unset !important;
        grid-area: unset !important;
        margin: 0 !important;
    }
}

/* ≤ 768px: tighter burger/actions offsets on phones */
@media (max-width: 768px) {
    body.home-page .header-menu-toggle {
        left: 0.5rem !important;
    }
    body.home-page .header-actions {
        right: 0.5rem !important;
    }
}

/* ≤ 950px: hide action icons */
@media (max-width: 950px) {
    body.home-page .header-actions {
        display: none !important;
    }
}

/* ===== Все страницы кроме главной: синие элементы, светлый хедер ===== */
body:not(.home-page) header {
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(9, 35, 124, 0.08) !important;
}

body:not(.home-page) header.header-has-bg {
    background: rgba(255, 255, 255, 0.95) !important;
}

body:not(.home-page) .header-nav-link {
    color: #09237C;
}
body:not(.home-page) .header-nav-link:hover {
    color: #17265F;
}

body:not(.home-page) .header-action {
    color: #09237C;
}
body:not(.home-page) .header-action:hover {
    color: #17265F;
}

/* Бургер и крестик — синие */
body:not(.home-page) .header-menu-icon {
    filter: brightness(0) saturate(100%) invert(14%) sepia(71%) saturate(1300%) hue-rotate(213deg) brightness(82%);
}

/* Поле поиска — под синий хедер */
body:not(.home-page) .header-search-input {
    background: rgba(9, 35, 124, 0.07);
    color: #09237C;
}
body:not(.home-page) .header-search-input::placeholder {
    color: rgba(9, 35, 124, 0.45);
}
body:not(.home-page) .header-search-input:focus {
    background: rgba(9, 35, 124, 0.1);
}

/* Поле поиска — когда хедер стал белым (glass) на главной */
header.header-glass .header-search-input {
    background: rgba(9, 35, 124, 0.07);
    color: #09237C;
    border: 1px solid rgba(9, 35, 124, 0.15);
}
header.header-glass .header-search-input::placeholder {
    color: rgba(9, 35, 124, 0.45);
}
header.header-glass .header-search-input:focus {
    background: rgba(9, 35, 124, 0.1);
}

/* ===== Сайдбар открыт на НЕ-главных страницах: тёмный градиент как на главной ===== */
body:not(.home-page).mobile-menu-open header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

body:not(.home-page).mobile-menu-open .header-logo-image-left {
    filter: brightness(0) invert(1) !important;
}

body:not(.home-page).mobile-menu-open .header-menu-icon {
    filter: brightness(0) invert(1) !important;
}

body:not(.home-page).mobile-menu-open .header-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

body:not(.home-page).mobile-menu-open .header-action {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Лого и крестик белые при открытом сайдбаре на главной (override header-glass specificity 0,3,2) */
body.home-page.mobile-menu-open header .header-logo-image-left {
    filter: brightness(0) invert(1) !important;
}
body.home-page.mobile-menu-open header .header-menu-icon {
    filter: brightness(0) invert(1) !important;
}
body.home-page.mobile-menu-open .header-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.home-page.mobile-menu-open .header-action {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Крестик всегда белый когда сайдбар открыт (все страницы) */
body.mobile-menu-open header .header-menu-icon-close {
    filter: brightness(0) invert(1) !important;
}