/* courses.css - Стили для аккордеона с курсами */

/* Быстрый просмотр в герое */
.quick-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.preview-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.preview-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.preview-icon {
    font-size: 1.2rem;
}

.preview-text {
    font-weight: 500;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #10b981;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Секция с детальными курсами */
.detailed-courses {
    padding: 80px 0;
    background: #f8fafc;
}

.detailed-courses h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #1e40af;
}

.detailed-courses .section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Аккордеон курсов */
.courses-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.course-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.course-header {
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-header:hover {
    background: #f8fafc;
}

.course-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.course-icon {
    font-size: 2rem;
    min-width: 60px;
}

.course-title {
    flex: 1;
}

.course-title h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.course-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.age {
    background: #dbeafe;
    color: #1e40af;
}

.tag.duration {
    background: #dcfce7;
    color: #166534;
}

.tag.level {
    background: #fef3c7;
    color: #92400e;
}

.arrow {
    transition: transform 0.3s ease;
    color: #6b7280;
    font-size: 0.9rem;
}

.arrow.active {
    transform: rotate(180deg);
}

/* Контент курса */
.course-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.course-content.active {
    padding: 2rem;
    max-height: none;
}

/* Обзор курса */
.course-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.3rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.course-description h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Предпросмотр программы */
.program-preview {
    margin-bottom: 2rem;
}

.program-preview h4 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.module-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.module-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.module-lessons {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.module-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Действия курса */
.course-action {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.course-action .btn {
    margin-bottom: 0.5rem;
}

.free-lesson {
    color: #10b981;
    font-weight: 500;
    margin: 0;
}

/* Ссылка на все курсы */
.all-courses-link {
    text-align: center;
    margin-top: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quick-preview {
        flex-direction: column;
        align-items: stretch;
    }
    
    .preview-item {
        justify-content: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .course-header {
        padding: 1.2rem;
    }
    
    .course-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .course-content.active {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .course-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tag {
        width: fit-content;
    }
}