@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* --- ГЛАВНЫЙ ЭКРАН С ВИДЕО --- */
.hero {
    position: relative;
    height: 100vh; /* Высота на весь экран */
    width: 100%;
    display: flex;
    align-items: center; /* Центрируем контент по вертикали */
    padding: 0 5%;
    overflow: hidden;
    background-color: #000;
}

/* Само видео на фоне */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет весь экран */
    z-index: 1; /* ВАЖНО: видео теперь над фоном секции */
    pointer-events: none; /* Отключаем клики по самому видео */
    -webkit-tap-highlight-color: transparent;
    /* filter: brightness(0.5); */ /* Пока закомментируем, проверим так */
}

/* Текст поверх видео */
.hero-content {
    position: relative;
    z-index: 10; /* Текст НА ПЕРЕДНЕМ ПЛАНЕ */
    max-width: 900px;
    text-align: left;
}

.hero-content .subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 20px;
    display: block;
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: #e63946; /* Красный акцент */
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* Кнопка */
.btn {
    display: inline-block;
    padding: 20px 50px;
    background-color: #e63946;
    color: white;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #bc2f3a;
    transform: scale(1.02);
}

/* --- СЕКЦИЯ "О ГРУППЕ" (ФОТО ФОН + ЦИФРЫ) --- */
.about-section {
    position: relative;
    /* Устанавливаем минимальную высоту на весь экран */
    min-height: 100vh;
    /* Настройки фона, чтобы фото заполняло весь блок */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Эффект параллакса при скролле */
    display: flex;
    align-items: center; /* Центрируем контент по вертикали */
    padding: 100px 5%;
}

/* Затемняющий градиент для фото (чтобы текст читался) */
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Слева темнее (0.95), справа прозрачнее (0.5). Если фото темное - уменьшите цифры */
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-content h2 {
    font-size: 5rem; /* Сделал шрифт еще крупнее */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 30px;
    max-width: 900px;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

.about-content h2 span {
    color: #e63946; /* Наш фирменный красный */
}

.about-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #eee;
    max-width: 650px;
    margin-bottom: 80px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

/* Блок со статистикой */
.stats {
    display: flex;
    gap: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    max-width: 800px;
}

.stat-item h3 {
    font-size: 6rem;
    color: #e63946;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccc;
    margin-top: 0;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .about-section { padding: 80px 5%; min-height: auto; }
    .about-content h2 { font-size: 3rem; }
    .about-content p { font-size: 1.1rem; margin-bottom: 50px; }
    .stats {
        flex-direction: column;
        gap: 30px;
        border-top: none;
    }
    .stat-item h3 { font-size: 4rem; }
}

/* --- СЕКЦИЯ ВИДЕО (КАРТОЧКИ) --- */
.video-section {
    padding: 100px 5%;
    background: #000;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(230, 57, 70, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    padding-left: 5px;
    transition: background 0.3s;
}

.video-card:hover .play-btn {
    background: #e63946;
}

.video-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    /* Уменьшаем шрифт, чтобы влазил на экран телефона */
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero-content .subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%; /* Кнопка на всю ширину на телефоне */
        text-align: center;
    }

    /* Настройки для блока "О группе" на телефоне */
    .about-section {
        padding: 80px 5%;
        min-height: auto;
        background-attachment: scroll; /* Отключаем фиксацию фона (на мобильных она глючит) */
    }
    .about-content h2 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    .about-content p {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    .stats {
        flex-direction: column;
        gap: 30px;
        border-top: none;
    }
    .stat-item h3 {
        font-size: 4rem;
    }
}

/* --- СЕКЦИЯ ВИДЕО --- */
.video-section {
    padding: 100px 5%;
    background: #0a0a0a;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 50px;
    line-height: 1.1;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9; /* Соотношение сторон как у видео */
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(230, 57, 70, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    padding-left: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.video-card:hover .play-btn {
    background: #e63946;
    transform: scale(1.1);
}

.video-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    border-radius: 5px;
}

/* --- МОДАЛЬНОЕ ОКНО ВИДЕО --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto; /* Отступ сверху, чтобы окно было по центру */
    width: 90%; /* Ширина окна на телефоне */
    max-width: 1000px; /* Максимальная ширина на ПК */
    background: #000; /* Черный фон вокруг видео, если пропорции не совпадают */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-content video {
    width: 100%;
    height: auto; /* Высота подстраивается под ширину видео */
    max-height: 80vh; /* Ограничиваем высоту, чтобы не вылезало за экран */
    display: block;
    object-fit: contain; /* Видео вписывается целиком, не обрезаясь */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px #000;
}

.close-btn:hover {
    color: #e63946;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .modal-content { width: 95%; margin: 30% auto; }
}
