

.hero-main-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: linear-gradient(135deg, #1C1C1C 0%, #333333 100%);
}

.hero-banner-container {
    position: relative;
    height: 1070px; /* Десктоп высота */
}

.hero-banner-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner-item.active {
    display: block;
}

.hero-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #EBEBEB;
    z-index: 3;
    display: none; /* Показывается JS при загрузке */
}

.loading-spinner {
    border: 4px solid rgba(235, 235, 235, 0.3);
    border-top: 4px solid #EBEBEB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-banner-fallback {
    height: 655px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #EBEBEB;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-banner-container, .hero-banner-fallback {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-banner-container, .hero-banner-fallback {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-banner-container, .hero-banner-fallback {
        height: 300px;
    }
    .hero-main-banner {
        margin-left: 0;
    }
}
/* hero-video.css */
.hero-video {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #1C1C1C;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.hero-video-item.active {
    display: block;
}

.hero-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay для затемнения видео, если нужно добавить текст поверх */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Легкое затемнение */
    z-index: 1;
    display: none; /* Скрыто по умолчанию, можно включить при необходимости */
}

/* Контент поверх видео (если понадобится в будущем) */
.hero-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    display: none; /* Скрыто по умолчанию */
}

.hero-video-content h1 {
    font-size: 3rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-video-content p {
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Fallback изображение, если видео не загружается */
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1C1C1C 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EBEBEB;
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    z-index: 0;
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .hero-video {
        height: 80vh; /* Немного уменьшаем высоту на планшетах */
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 70vh; /* Уменьшаем высоту на мобильных */
    }

    .hero-video-content h1 {
        font-size: 2rem;
    }

    .hero-video-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-video {
        height: 60vh; /* Еще больше уменьшаем на маленьких экранах */
    }

    .hero-video-content h1 {
        font-size: 1.5rem;
    }

    .hero-video-content p {
        font-size: 0.9rem;
    }
}

/* Анимация загрузки */
.hero-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #EBEBEB;
    font-family: 'Raleway', sans-serif;
    z-index: 3;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(235, 235, 235, 0.3);
    border-radius: 50%;
    border-top-color: #EBEBEB;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Стили для отсутствия видео */
.no-videos-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #EBEBEB;
    font-family: 'Raleway', sans-serif;
    z-index: 2;
}

.no-videos-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.no-videos-message p {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .no-videos-message h2 {
        font-size: 1.5rem;
    }

    .no-videos-message p {
        font-size: 1rem;
    }
}