/* --- Стили для главной страницы (index.html) --- */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
}

/* Swiper Slider для фона */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1); 
    transition: transform 7s ease-out;
}
.hero-slider .swiper-slide-active {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}
.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Секция "Для кого наш клуб?" --- */
.who-for {
    padding: 80px 0;
    background-color: var(--white-color);
}
.who-for__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.who-for__card {
    text-align: center;
    padding: 30px;
}
.who-for__icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.who-for__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}
.who-for__text {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
}

/* --- Секция преимуществ --- */
.benefits__item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}
.benefits__item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.benefits__item-text {
    flex-grow: 1;
}

/* --- Секция новостей --- */
.news__cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Финальный блок CTA --- */
.final-cta {
    padding: 80px 0;
    background-color: var(--light-gray-color);
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.cta-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.cta-card--primary {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.cta-card--primary:hover {
    transform: scale(1.08) translateY(-5px);
}
.cta-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}
.cta-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}
.cta-card__description {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
    min-height: 70px;
}
.cta-card__price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}
.cta-card .hero__button {
    width: 100%;
}

/* --- Стили для Актуальных Новостей --- */
.actual-news {
    padding: 80px 0;
    background-color: var(--white-color);
}
.news-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    background-color: var(--light-gray-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.news-item--highlight {
    background-color: #e6f7ff;
    border: 2px solid var(--primary-color);
}
.news-item__content {
    flex: 2;
}
.news-item__media {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.news-item__media video,
.news-item__media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.news-item__video-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
}
.news-item__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--header-bg-color);
    margin-bottom: 10px;
}
.news-item__date {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.news-item__text {
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}
.news-item__link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.news-item__link:hover {
    color: var(--header-bg-color);
    text-decoration: underline;
}
.news__all-link {
    text-align: center;
    margin-top: 50px;
}
.news-item__media video {
    min-width: 250px;
    min-height: 200px;
    background-color: #000;
}

/* --- Адаптивность для мобильных --- */
@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Уменьшаем высоту на мобильных */
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
    .hero__buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero__button {
        width: 100%;
        max-width: 300px;
        font-size: 16px;
        padding: 14px 28px;
    }
    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 16px;
    }
    .who-for, .benefits, .actual-news, .virtual-tour, .final-cta {
        padding: 60px 0;
    }
    .benefits__grid {
        grid-template-columns: 1fr;
    }
    .news-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    .news-item__content,
    .news-item__media {
        flex: none;
        width: 100%;
    }
    .news-item__title {
        font-size: 20px;
    }
    .virtual-tour__container iframe {
        height: 400px;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-card--primary {
        transform: scale(1);
    }
     .cta-card--primary:hover {
        transform: translateY(-5px);
    }
    .cta-card__description {
        min-height: unset;
    }
}