/* --- Базовые стили и сброс --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* --- Общие классы-помощники --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --- Стили кнопок --- */
.cta-button {
    display: inline-block;
    background-color: #ffc700;
    color: #000000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e6b300;
    transform: translateY(-2px);
}

.dark-bg-button {
    background-color: #333333;
    color: #ffffff;
}

.dark-bg-button:hover {
    background-color: #555555;
}

/* --- Стили Header / Навигации --- */
.header {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc700;
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 40px;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #ffc700;
}


/* --- Стили ПЕРВОГО ЭКРАНА (Hero Section) --- */
.hero-section {
    height: 90vh;
    min-height: 600px;
    /* Point 1: Путь к фоновому изображению */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-content h1 {
    color: #ffc700;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section .sub-headline {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto 40px auto;
}

/* --- Стили Секции с Цитатой --- */
.quote-section {
    background-color: #ffffff;
    color: #333333;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section .container {
    max-width: 900px;
}

.quote-section p {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.quote-section::before,
.quote-section::after {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 18rem;
    color: rgba(220, 220, 220, 0.4);
    position: absolute;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.quote-section::before {
    top: 0;
    left: -20px;
}

.quote-section::after {
    content: '”';
    bottom: -80px;
    right: -20px;
}

/* --- Секция "About Program" --- */
.about-program-section {
    background-color: #ffc700;
    color: #1a1a1a;
}

.about-program-content {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-program-image img {
    max-width: 350px;
    height: auto;
    border-radius: 15px;
}

.about-program-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-program-text ul {
    list-style: none;
    margin-bottom: 40px;
}

.about-program-text ul li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.about-program-text ul li::before {
    content: '✓';
    color: #1a1a1a;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.button-container-centered {
    text-align: center;
    margin-top: 40px;
}

/* --- Секция с преимуществами (Слайдер) --- */
.benefits-section {
    background-color: #1E2433;
    color: #ffffff;
    position: relative;
}

.slider-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.benefit-card {
    flex-shrink: 0;
    width: calc((100% - 60px) / 3);
    background-color: #2a3040;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.benefit-card-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 20px 0;
    line-height: 1.4;
    min-height: 50px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0; 
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-button {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-button:hover {
    background-color: #ffc700;
}

/* --- Секция "Satisfied Climbers" --- */
.satisfied-climbers-section {
    /* Point 5: Фон изменен на белый */
    background-color: #FFF3E0; 
    text-align: center;
}

.satisfied-climbers-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.satisfied-climbers-section h2 .highlight {
    color: #ffc700;
}

.video-placeholders {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.video-placeholder {
    width: 100%;
    max-width: 450px;
    height: 253px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Секция "Author/Mission" --- */
.author-mission-section {
    background-color: #fcfcfc; /* Легкий фон для отделения */
    text-align: center;
}

.author-mission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555555;
    margin-bottom: 40px;
}

.mission-text {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.mission-text::before,
.mission-text::after {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    color: #e0e0e0;
    position: absolute;
    top: -20px;
}
.mission-text::before { left: -10px; }
.mission-text::after { right: -10px; }

.mission-cta {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333333;
}

/* --- Секция "Testimonials" --- */
.testimonials-section {
    background-color: #f0f2f5;
    text-align: center;
}

/* Point 6: Стили для составного заголовка */
.testimonial-title-composite {
    font-weight: 400; /* Сбрасываем жирность у родителя h2 */
    margin-bottom: 50px;
    line-height: 1.4;
}
.testimonial-main-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2BB483;
    margin-bottom: 15px;
}
.testimonial-sub-title {
    display: block;
    font-size: 1.5rem;
    color: #1a1a1a;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 60px auto;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #ffc700;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    text-align: center;
}

.testimonials-section .final-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 40px;
}
.testimonials-section .final-message .highlight {
    font-weight: 700;
}

/* --- Секция "Community" --- */
.community-section {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.community-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 180px;
}

.stat-icon {
    font-size: 3.5rem; 
    color: #ffc700;
    margin-bottom: 15px;
    display: block;
}
.icon-views::before { content: '👁️'; }
.icon-followers::before { content: '👥'; }
.icon-students::before { content: '🎓'; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-description {
    font-size: 1.2rem;
    color: #cccccc;
}

/* --- Секция FAQ --- */
.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.faq-main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
    margin-top: 50px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-item:first-of-type {
     border-top: 1px solid #e0e0e0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555555;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content p {
    padding: 0 20px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* --- Финальный CTA --- */
.final-cta-section {
    background-color: #ffc700;
    color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
}

.final-cta-headline {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 40px;
}

.final-cta-headline .highlight {
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    color: #aaaaaa;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Адаптивность --- */

@media (max-width: 992px) {
    .section-padding { padding: 80px 0; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section .sub-headline { font-size: 1.3rem; }
    .quote-section p { font-size: 1.5rem; }
    .about-program-content { flex-direction: column; text-align: center; }
    .about-program-image { margin-bottom: 40px; }
    .about-program-text ul { text-align: left; display: inline-block; }
    .slider-container { padding: 0 50px; }
    .benefit-card { width: calc((100% - 30px) / 2); }
    .testimonial-main-title { font-size: 2.2rem; }
    .testimonial-sub-title { font-size: 1.3rem; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 20px; }
    .community-stats { gap: 40px; }
    .faq-main-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .header-content { flex-direction: column; gap: 15px; }
    .nav-list { justify-content: center; width: 100%; flex-wrap: wrap; }
    .nav-list li { margin: 5px 15px; }
    .hero-section { height: auto; min-height: 500px; padding: 100px 20px; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .sub-headline { font-size: 1.1rem; }
    .quote-section { padding: 80px 20px; }
    .quote-section p { font-size: 1.2rem; }
    .quote-section::before, .quote-section::after { font-size: 10rem; }
    .about-program-text h2 { font-size: 2.5rem; }
    .slider-container { padding: 0 20px; }
    .benefit-card { width: 100%; }
    .slider-nav { display: none; }
    .testimonial-main-title { font-size: 1.8rem; }
    .testimonial-sub-title { font-size: 1.1rem; }
    .community-section h2 { font-size: 2.2rem; }
    .faq-main-title { font-size: 2.2rem; }
    .accordion-title { font-size: 1rem; }
    .final-cta-headline { font-size: 2rem; }
}

/* --- Стили для Pop-up окна --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Затемняющий фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Должен быть поверх всего */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Нельзя кликнуть, когда скрыт */
}

.popup-content {
    background: #fff;
    color: #1a1a1a;
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.popup-overlay.hidden .popup-content {
    transform: scale(0.9);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaaaaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #333333;
}

.popup-text {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

.popup-highlight-red {
    color: #D32F2F; /* Насыщенный красный цвет */
    font-weight: 700;
}

.popup-highlight-yellow {
    color: #ffc700; /* Ваш фирменный желтый */
    font-weight: 700;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
    }
    .popup-text {
        font-size: 1.5rem;
    }
}

/* --- Секция "Community" --- */
.community-section {
    /* В вашем коде может быть #1a1a1a, меняю на цвет с макета */
    background-color: #1E2433; 
    color: #ffffff;
    text-align: center;
}

/* Изменяем контейнер на flex для легкого центрирования */
.community-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px; /* Уменьшаем отступ до иконки */
}

/* Стили для центральной иконки Instagram */
.community-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-bottom: 40px; /* Отступ до статистики */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.community-icon-link:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.community-icon-link{
    width: 32px;
    height: 32px;
}

/* Статистика */
.community-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%; /* Занимает всю ширину для правильного распределения */
}

.stat-item {
    text-align: center;
    min-width: 180px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffc700; /* Желтый цвет для цифр */
    margin-bottom: 5px;
}

.stat-description {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Удаляем старые классы для иконок, если они больше не нужны */
.stat-icon {
    display: none;
}