/* style.css */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #fbbf24;
    --text: #333333;
    --text-light: #6b7280;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.parent-problems {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
}

.parent-problems h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.parent-problems ul {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.parent-problems li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.parent-problems li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.highlight-text {
    color: var(--accent);
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

 /* Дополнительные стили для улучшения отступов */
        .main-cta {
            margin-top: 2.5rem !important;
            padding-top: 2.5rem !important;
            padding-bottom: 2.5rem !important;
            position: relative;
        }
        
        .main-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .main-cta h2 {
            margin-bottom: 1.2rem !important;
        }
        
        .main-cta p {
            margin-bottom: 1.8rem !important;
            line-height: 1.5;
        }
        
        .btn-primary {
            margin: 1.5rem 0 !important;
            display: inline-block;
        }
        
        .hero-content {
            padding-bottom: 2rem;
        }
        
        /* Улучшенные отступы для быстрого просмотра */
        .quick-preview {
            margin: 2.5rem 0 !important;
        }
        
        /* Увеличиваем отступы на мобильных */
        @media (max-width: 768px) {
            .main-cta {
                margin-top: 2rem !important;
                padding: 2rem 1.5rem !important;
            }
            
            .main-cta::before {
                left: 5%;
                right: 5%;
            }
            
            .btn-primary {
                padding: 16px 30px !important;
                margin: 1.2rem 0 !important;
            }
        }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: #0da271;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--secondary-dark);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.btn-white:hover {
    background: #f3f4f6;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Преподаватель */
.teacher-section {
    padding: 80px 0;
    background: var(--white);
}

.teacher-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.teacher-photo-container {
    position: relative;
    margin: 0 auto 2rem;
    width: 200px;
}

.teacher-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.teacher-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.teacher-stats {
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.stat-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.teacher-quote {
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 2rem 0;
    text-align: left;
}

/* Преимущества */
.benefits {
    padding: 80px 0;
    background: #f0f9ff;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background: var(--white);
}

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
}

.review-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem auto;
    position: relative;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow);
}

.review-rating {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author-icon {
    font-size: 1.5rem;
}

/* Курсы */
.courses-preview {
    padding: 80px 0;
    background: #f0f9ff;
}

.courses-preview h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-age {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.course-details {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Финальный CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.final-cta .btn-white {
    position: relative; /* Критически важно! */
    z-index: 20; /* Должен быть выше, чем у .stars (z-index: 1) */
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefits {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.cta-benefits h3 {
    margin-bottom: 1.5rem;
}

.benefits-list {
    text-align: left;
    display: inline-block;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.check-icon {
    color: #4ade80;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Футер */
.footer {
    background: #1f2937;
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0088cc;
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
}

.telegram-icon {
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        margin-top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .courses-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .parent-problems {
        padding: 1.5rem;
    }
    
    .teacher-photo {
        width: 150px;
        height: 150px;
    }
}