/*          Скрытие системного логотипа Helix и вывод поверх логитип BR и теткст */

/* 1. Скрытие системного логотипа Helix  */
#sp-header a.logo,
#sp-header .logo-image,
#sp-header .sp-default-logo {
    display: none !important;
}

/* 2. Вертикальное центрирование содержимого шапки */
#sp-header .row,
#sp-header .sp-column,
#sp-header .logo,
#sp-header .sp-module {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* 3. Блок кастомного брендинга */
.header-custom-brand {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #1a1a1a;
    margin: auto 0 !important;
    padding: 6px 0;
}

.header-custom-brand .brand-icon {
    height: 44px !important;
    width: auto !important;
    display: block;
    flex-shrink: 0;
}

.header-custom-brand .brand-divider {
    width: 1.5px;
    height: 42px;
    background-color: #1a1a1a;
    margin: 0 14px;
}

.header-custom-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.header-custom-brand .brand-title {
    font-size: 16px;
    font-weight: 500;
}

.header-custom-brand .brand-city {
    font-size: 15px;
    font-weight: 400;
}

/* 4. Адаптивность для планшетов и смартфонов (<= 991px) */
@media (max-width: 991px) {
    #sp-header {
        height: auto !important;
        min-height: 60px !important;
        padding: 8px 0 !important;
    }
    .header-custom-brand .brand-icon {
        height: 38px !important;
    }
    .header-custom-brand .brand-divider {
        height: 30px !important;
        margin: 0 10px !important;
    }
    .header-custom-brand .brand-title {
        font-size: 13px !important;
    }
    .header-custom-brand .brand-city {
        font-size: 12px !important;
    }
}




/*              Банер видео на главной                                   */

/* Контейнер баннера */
.video-banner-container {
    position: relative;
    width: 100%;
    height: 950px; /* Высота для мониторов */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Базовые стили для видео */
.video-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Переключение десктоп / мобайл */
.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

/* Затемняющий слой поверх видео */
.video-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.0); /* отключил в 0.0 Регулируйте прозрачность (0.3 - 0.5) */
    z-index: 2;
}

/* Контент по центру */
.video-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 850px;
    padding: 0 20px;
}



/* Мобильная адаптация */
@media (max-width: 768px) {
    .video-banner-container {
        /* На смартфонах вертикальное видео смотрится эффектнее почти во весь экран */
        height: 85vh; 
        height: 85svh; /* Корректная высота с учетом мобильных адресных строк */
    }

    /* Скрываем горизонтальное, включаем вертикальное */
    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

  /* Мобильные видео накладываются друг на друга */
    .video-mobile {
        display: block;
        opacity: 0;
        z-index: 1;
        transition: opacity 0.5s ease-in-out; /* Плавное проявление без рывков */
    }

    /* Активное видео плавно выходит на передний план */
    .video-mobile.is-visible {
        opacity: 1;
        z-index: 2;
    }
    
}