/* =========================================
   СТИЛІ ДЛЯ ГОЛОВНОЇ СТОРІНКИ (home.css)
   ========================================= */

#dust-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- ПЕРШИЙ ЕКРАН (HERO) --- */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    background: linear-gradient(to right, rgba(15,19,25, 0.95) 0%, rgba(15,19,25, 0.6) 40%, rgba(15,19,25, 0.1) 100%), url('../image/hero-bg.png') no-repeat center right;
    background-size: cover;
}

.hero-content {
    max-width: 600px;
    margin: 0 0 0 10%;
    padding-top: 60px;
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-white);
    line-height: 0.9;
    margin-bottom: 20px;
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 10rem;
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
}

.hero-features .feature-text { flex: 1; }

.hero-features li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-white);
    width: 100%;
    max-width: 500px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-features .icon {
    height: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

/* --- ОБГОРТКА ДЛЯ КОНТЕНТУ --- */
.content-wrapper {
    position: relative;
    z-index: 10; 
    background: linear-gradient(to bottom, rgba(15,19,25,0) 0%, rgba(15, 19, 25, 0.7) 150px, var(--bg-dark) 300px);
}

/* --- 1. КВАДРАТИ ПЕРЕВАГ --- */
.features-squares {
    padding: 180px 0 60px;
}

.square-icon
    {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

/* --- 2. ВАШ ШЛЯХ ДО МАЙСТЕРНОСТІ (TIMELINE) --- */
.path-to-mastery {
    padding: 80px 0 60px 0;
    position: relative;
    background-color: var(--bg-dark);
    background-image: linear-gradient(to top, rgba(15, 19, 25, 0) -20%, var(--bg-dark) 50%),
        url('../image/way-bg.png');
    background-position: center bottom, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 100% auto;
}

.path-desc {
    max-width: 500px;
    font-size: 1.1rem;
    text-align: left;
}

.step-num {
    font: 1.7rem "Trebuchet MS";
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid var(--text-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--text-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.timeline-pawn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 170px;
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-pawn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.timeline-item.step-queen {
    margin-top: 70px;
}

.timeline-item.step-queen .timeline-pawn {
    height: 250px;
}

.timeline-item:hover .timeline-pawn img {
    filter: drop-shadow(0 0 15px var(--text-gold)) brightness(1.5);
    transform: scale(1.3);
}

.timeline-content {
    display: flex;
    align-items: center;
    width: 45%;
    gap: 25px;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
}

.text-block h3 {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.text-block p {
    color: var(--text-white);
}

.timeline-item.right { justify-content: flex-end; }
.timeline-item.right .timeline-content { flex-direction: row; text-align: left; }
.timeline-item.left { justify-content: flex-start; }
.timeline-item.left .timeline-content { flex-direction: row-reverse; text-align: right; }

/* Статистика під таймлайном */
.stats-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px 20px;
    background: rgba(15, 19, 25, 0.5);
}

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

.stat-value {
    font-size: 1.8rem;
    color: var(--text-white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.stat-icon { width: 24px; height: 24px; }
.star-icon { color: var(--text-gold); font-size: 1.5rem; }
.stat-sub { font-size: 1rem; color: var(--text-gold); font-weight: normal; }
.stat-label { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }

/* --- 3. ВІДГУКИ УЧНІВ --- */
.testimonials {
    padding: 80px 0 40px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-divider .line {
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
    flex: 1;
    max-width: 200px;
}

.section-divider .section-title {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 2px;
    font-weight: normal;
}

.review-card {
    background: rgba(24, 29, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    
    /* За замовчуванням на мобільних показуємо 1 картку */
    flex: 0 0 100%; 
    box-sizing: border-box;
}

.reviews-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

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

.reviewer-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-gold);
}

.review-content .stars {
    color: var(--text-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-content p {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.reviewer-name {
    font-size: 0.8rem;
    color: var(--text-gold);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots .dot.active {
    background: var(--text-gold);
    transform: scale(1.2);
}


/* --- ФОНОВИЙ БЛОК ПІД ВІДГУКАМИ ТА CTA --- */
.bottom-bg-wrapper {
    position: relative;
    z-index: 1; 
}

/* Повертаємо фонову картинку для всього нижнього блоку */
.bottom-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../image/footer-bg.png') no-repeat center top / cover;
    opacity: 0.2; /* ПРОЗОРІСТЬ ВЕЛИКОГО ФОНУ */
    z-index: -1;
    pointer-events: none;
}

/* --- АДАПТИВ ТІЛЬКИ ДЛЯ ГОЛОВНОЇ СТОРІНКИ --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; margin-bottom: 60px;}
    .hero h1 .highlight { font-size: 6rem; }
    .hero-buttons { flex-direction: column; }
    .hero-content { margin: 0 auto; text-align: center; }
    .hero-features li { justify-content: center; text-align: left; }
    
    .path-header { flex-direction: column; text-align: center; align-items: center; }
    .path-desc { text-align: center; margin-top: 15px; }
    .timeline-line { left: 30px; }
    .timeline-item.right, .timeline-item.left { justify-content: flex-start; padding-left: 70px; }
    .timeline-pawn { left: 30px; }
    .timeline-item.left .timeline-content { flex-direction: row; text-align: left; }
    .timeline-content { width: 100%; }
    
    .stats-bar { flex-direction: column; gap: 30px; }
    .path-to-mastery {
        background-size: 100% 100%, 150% 50%;
        background-image: linear-gradient(to top, rgba(15, 19, 25, 0.4) -20%, var(--bg-dark) 50%), url(../image/way-bg.png)
    }
    .features-squares { padding-bottom: 0}
    .square-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    .section-divider .section-title {
        line-height: normal;
        text-align: center;
    }
}

/* На планшетах показуємо 2 картки (віднімаємо половину gap) */
@media (min-width: 768px) {
    .review-card { 
        flex: 0 0 calc(50% - 15px); 
    }
}

/* На комп'ютерах показуємо 3 картки */
@media (min-width: 1024px) {
    .review-card { 
        flex: 0 0 calc(33.333% - 20px); 
    }
}