/* Общие стили */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --accent-color: #FFE66D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Отступы секций */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

/* Навигация */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Главный экран */
.hero-section {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    padding-top: 56px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1542038784456-1ea8e935640e?w=1600') center/cover;
    opacity: 0.2;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-size: 1.25rem;
}

/* Карточки преимуществ */
.advantage-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.advantage-card h3 {
    color: #212529;
    font-weight: 600;
}

.advantage-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Карточки курсов */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.course-card.featured {
    position: relative;
    border: 3px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: #ffc107;
    color: #212529;
    padding: 5px 40px;
    transform: rotate(-45deg);
    z-index: 10;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.course-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.course-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.course-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-features {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.course-features li {
    padding: 8px 0;
    color: #495057;
}

.course-features i {
    color: #28a745;
    margin-right: 10px;
}

.price {
    display: flex;
    align-items: center;
}

/* Карточки отзывов */
.review-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars i {
    font-size: 1.2rem;
}

.review-text {
    color: #495057;
    font-style: italic;
    line-height: 1.7;
    flex-grow: 1;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.reviewer h5 {
    color: #212529;
    font-size: 1rem;
    font-weight: 600;
}

/* Секция статистики */
.stats-section {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1452587925148-ce544e77e70d?w=1600') center/cover;
    opacity: 0.1;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Форма контактов */
.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    transition: border-color 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #E85A5A 0%, #E67E4A 100%);
}

/* Футер */
.footer {
    background: #2C3E50 !important;
}

.footer h5 {
    color: white;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    transition: opacity 0.3s;
    display: inline-block;
}

.footer .social-links a:hover {
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .course-image {
        height: 200px;
    }

    .advantage-card {
        min-height: 220px;
    }

    .review-card {
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .icon-wrapper i {
        font-size: 2rem;
    }
}

/* Обеспечение видимости текста */
.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #F7F9FC !important;
}

.bg-dark {
    background-color: #2C3E50 !important;
}

/* Предотвращение сжатия блоков */
.advantage-card,
.course-card,
.review-card,
.stat-item {
    flex-shrink: 0;
}

.row.g-4 > * {
    flex-shrink: 0;
}
