/* ===== Aceternity UI Inspired Styles ===== */

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

:root {
    /* Основные цвета */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #f59e0b;

    /* Фоны - СВЕТЛАЯ ТЕМА */
    --bg-dark: #ffffff;
    --bg-dark-lighter: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    /* Текст */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Границы и тени */
    --border: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-glow: rgba(139, 92, 246, 0.2);

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Размеры */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Тёмная тема (опционально) */
[data-theme="dark"] {
    --bg-dark: #0a0a0a;
    --bg-dark-lighter: #171717;
    --bg-card: #1f1f1f;
    --bg-card-hover: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(139, 92, 246, 0.3);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(139, 92, 246, 0.15);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ----- Контейнер ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ----- Шапка с навигацией ----- */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-glow);
    box-shadow: 0 4px 30px var(--shadow-glow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nav {
        padding: 12px 40px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    opacity: 0.9;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 8px;
    align-items: center;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-menu .btn-glow {
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.nav-menu .btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-menu .btn-glow:hover::before {
    left: 100%;
}

.nav-menu .btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-glow);
    color: #ffffff !important;
}

/* Мобильное меню */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
}

/* Мобильное меню (активное) */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    box-shadow: 0 10px 40px var(--shadow);
}

@media (min-width: 992px) {
    .nav-menu.active {
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }
}

/* ===== Слайдер (интегрированный из slider.html) ===== */
.hero-slider {
    width: 100%;
    height: 600px;
    max-height: 100vh;
    position: relative;
    background: #ffffff;
    z-index: 0;
    overflow: hidden;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background: #ffffff;
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    z-index: 1;
}

/* На мобильных - фото умещается по высоте, лишнее по ширине обрезается */
@media (max-width: 767px) {
    .slide-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.slide-content .btn-glow {
    pointer-events: auto;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    max-width: 800px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff;
}

.slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    line-height: 1.6;
    font-weight: 400;
    color: #ffffff;
}

/* Базовый класс кнопки */
.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-glow);
    color: #ffffff !important;
}

/* Кнопка с эффектом свечения */
.btn-glow {
    display: inline-block;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--shadow-glow);
    color: #ffffff !important;
}

/* Кнопка с обводкой */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary) !important;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-glow);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: var(--border-glow);
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    background: var(--text-primary);
    opacity: 0.3;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .hero-slider {
        height: 500px;
        min-height: 500px;
    }

    .hero-slider .swiper {
        height: 100%;
    }

    .swiper-slide {
        height: 100%;
    }
}

@media (min-width: 768px) {
    .hero-slider {
        height: 700px;
        max-height: 100vh;
        margin-top: 0;
        margin-bottom: 0;
    }
    .slide-content {
        padding: 0 40px;
    }
}

@media (min-width: 1440px) {
    .hero-slider {
        height: 800px;
        max-height: 100vh;
    }
}

/* ===== Hero Description Block (под слайдером) ===== */
.hero-description {
    background: var(--bg-dark);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    margin-top: 60px;
}

/* ===== Hero Description Block (под слайдером) ===== */

.hero-description::before {
    display: none;
}

.hero-description-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-description h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-description p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== Общие стили секций ===== */
section {
    padding: 100px 0;
    position: relative;
}

/* Для hero секций убираем отступы */
section.hero,
section.hero-description {
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== Возможности ===== */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-card:hover::before {
    opacity: 0.5;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* ===== Программы ===== */
.programs {
    background: var(--bg-dark-lighter);
    position: relative;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.program-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.program-column::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.program-column:hover::before {
    opacity: 1;
}

.program-column:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-glow);
}

.program-column h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li:before {
    content: "→";
    color: var(--primary);
    font-weight: 600;
}

.program-cta {
    margin-top: 32px;
    text-align: center;
}

/* ===== Стоимость ===== */
.pricing {
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 40px var(--shadow-glow);
    border: 2px solid var(--border-glow);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--shadow-glow);
}

.pricing-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    -webkit-text-fill-color: var(--text-secondary);
}

.pricing-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
}

.pricing-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.pricing-discount {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 600;
    border: 1px solid var(--border-glow);
}

/* ===== Преподаватели ===== */
.teachers {
    background: var(--bg-dark-lighter);
}

.teachers-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.teachers-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.teacher-badge {
    background: var(--bg-card);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.teacher-badge:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-glow);
}

.teachers-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 40px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* ===== Отзывы ===== */
.reviews {
    background: var(--bg-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.review-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow);
}

.review-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 400;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-glow);
}

.review-info h4 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.review-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg-dark-lighter);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-glow);
}

.faq-question {
    width: 100%;
    padding: 28px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px var(--shadow-glow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 28px 28px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* ===== Форма заявки ===== */
.contact {
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-dark-lighter);
    color: var(--text-primary);
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--shadow-glow);
    background: var(--bg-card);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--shadow-glow);
    color: #ffffff !important;
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
    font-weight: 400;
}

/* ===== Футер ===== */
.footer {
    background: var(--bg-dark-lighter);
    color: var(--text-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.7;
    font-weight: 400;
}

.footer-nav h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 14px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-nav a:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-contacts p {
    margin-bottom: 14px;
    opacity: 0.7;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ===== Эффекты свечения ===== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--shadow-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--shadow-glow);
    }
}

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

    /* Для hero секций убираем padding на мобильных */
    section.hero,
    section.hero-description {
        padding: 0 !important;
    }

    /* На мобильных устройствах слайдер имеет фиксированную высоту */
    .hero-slider {
        margin: 0 !important;
        height: 500px;
    }

    .hero-description {
        padding: 40px 0;
        margin-top: 40px !important;
    }
}

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .nav {
        padding: 8px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px;
    }

    .program-column {
        padding: 32px;
    }

    .pricing-card {
        padding: 32px;
    }
}

/* ===== Скроллбар ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: var(--text-primary);
}

/* ===== Анимации ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== ЛОКАЦИЯ И ДОСТУПНОСТЬ ===== */
.location {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f8fafc 100%);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.location-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.location-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.location-info ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px 0;
}

.location-info li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.location-info li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.location-map {
    position: relative;
}

.location-map iframe {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Адаптивность для локации */
@media (max-width: 968px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .location-info h3 {
        font-size: 1.25rem;
    }
    
    .location-map iframe {
        height: 300px;
    }
}

/* ===== ФУТЕР СОЦИАЛЬНЫЕ СЕТИ ===== */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== SLIDE TITLE STYLES ===== */
.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 1.8rem;
    }
}
