/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration for animated elements */
.course-card,
.feature-card,
.teacher-card,
.testimonial-card,
.timeline-item,
.faq-item,
.stat-card,
.partner-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #2563eb 50%, #3b82f6 75%, #60a5fa 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #f59e0b 50%, #f97316 75%, #fb923c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #10b981 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 50%, #f59e0b 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.05);
    --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
    --shadow-xl: 0 30px 100px rgba(37, 99, 235, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.15);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.5), 0 0 120px rgba(102, 126, 234, 0.3);
    --shadow-neomorphism: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    background-attachment: fixed;
    font-size: 16px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Premium Glassmorphism */
.navbar {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 40px rgba(37, 99, 235, 0.1);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoGradient 5s ease infinite;
    position: relative;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

.logo i {
    font-size: 2.5rem;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 5s ease infinite;
    filter: drop-shadow(0 4px 15px rgba(102, 126, 234, 0.4));
    transition: all 0.4s ease;
}

.logo:hover i {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 6px 20px rgba(102, 126, 234, 0.6));
}

@keyframes logoGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.6rem 1rem;
    border-radius: 12px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-rainbow);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.nav-menu a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover::after {
    width: 80%;
}
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Admin Link Styles */
.nav-menu .admin-link {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.nav-menu .admin-link::before {
    background: var(--gradient-secondary);
    opacity: 1;
}

.nav-menu .admin-link::after {
    display: none;
}

.nav-menu .admin-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    color: var(--white);
}

.nav-menu .admin-link i {
    font-size: 1rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section - Premium with Animations */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 120px;
    margin-bottom: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.4));
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    z-index: -3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-video iframe,
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.85) 25%, rgba(37, 99, 235, 0.9) 50%, rgba(59, 130, 246, 0.85) 75%, rgba(245, 158, 11, 0.8) 100%);
    background-size: 400% 400%;
    z-index: 0;
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    /* backdrop-filter отключен для производительности - используем только на hover */
    animation: float 30s infinite ease-in-out;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: strict;
    isolation: isolate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    animation-duration: 40s;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -5%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    animation-duration: 45s;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: -5%;
    left: 10%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
    animation-duration: 38s;
    animation-delay: 10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.04));
    animation-duration: 42s;
    animation-delay: 3s;
}

.shape-5 {
    width: 280px;
    height: 280px;
    bottom: 5%;
    right: 5%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
    animation-duration: 44s;
    animation-delay: 8s;
}

.shape-6 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 5%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
    animation-duration: 36s;
    animation-delay: 12s;
}

.shape-7 {
    width: 320px;
    height: 320px;
    top: 10%;
    right: 25%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    animation-duration: 40s;
    animation-delay: 6s;
}

.shape-8 {
    width: 240px;
    height: 240px;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    animation-duration: 38s;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate3d(15px, -20px, 0) scale(1.03);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(-10px, -35px, 0) scale(0.97);
        opacity: 0.45;
    }
    75% {
        transform: translate3d(-20px, -15px, 0) scale(1.01);
        opacity: 0.48;
    }
}

/* Animated Waves */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.6;
}

.wave-1 {
    animation: wave-animation 25s ease-in-out infinite;
    z-index: 1;
    opacity: 0.3;
}

.wave-2 {
    animation: wave-animation 30s ease-in-out infinite reverse;
    z-index: 2;
    opacity: 0.25;
}

.wave-3 {
    animation: wave-animation 28s ease-in-out infinite;
    z-index: 3;
    opacity: 0.2;
}

@keyframes wave-animation {
    0%, 100% {
        transform: translateX(0) translateY(0) scaleY(1);
    }
    25% {
        transform: translateX(-3%) translateY(-5px) scaleY(1.02);
    }
    50% {
        transform: translateX(-6%) translateY(-10px) scaleY(0.98);
    }
    75% {
        transform: translateX(-3%) translateY(-5px) scaleY(1.01);
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    contain: strict;
    isolation: isolate;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: particle-float 20s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: strict;
    isolation: isolate;
}

/* Отключаем box-shadow на мобильных для производительности */
@media (max-width: 768px) {
    .particle {
        box-shadow: none;
    }
}

@keyframes particle-float {
    0% {
        transform: translate3d(0, 100vh, 0) scale(0);
        opacity: 0;
    }
    15% {
        opacity: 0.5;
        transform: translate3d(5px, 85vh, 0) scale(1);
    }
    85% {
        opacity: 0.5;
        transform: translate3d(-5px, 15vh, 0) scale(1);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(0);
        opacity: 0;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    color: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #ffffff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.title-line-1,
.title-line-2 {
    display: block;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.title-line-2 {
    margin-top: 0.2rem;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
    color: rgba(255, 255, 255, 0.95);
}

.hero-subtitle strong {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.1s ease-out 0.5s both;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.btn-hero {
    padding: 18px 45px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-hero i {
    font-size: 1.2rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.3s ease-out 0.7s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-item i {
    font-size: 1.2rem;
    color: #fbbf24;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    z-index: 10;
    animation: fadeInUp 1.5s ease-out 0.8s both;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
    100% {
        top: 8px;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Buttons - Premium Design */
.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn::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;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 
        0 15px 35px rgba(37, 99, 235, 0.5),
        0 5px 15px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translate3d(0, -5px, 0) scale(1.08);
    box-shadow: 
        0 20px 50px rgba(37, 99, 235, 0.6),
        0 0 0 10px rgba(37, 99, 235, 0.15),
        0 0 60px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 12px 28px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: badgePulse 3s ease-in-out infinite;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: badgeShine 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 25px rgba(37, 99, 235, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 12px 35px rgba(37, 99, 235, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 40px rgba(102, 126, 234, 0.3);
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.5rem;
    line-height: 1.2;
    animation: titleGradient 5s ease infinite;
    text-shadow: 0 0 80px rgba(102, 126, 234, 0.3);
    letter-spacing: -1px;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-all-link:hover {
    gap: 12px;
    transform: translateX(5px);
}

/* Features Section - Premium Cards */
/* Benefits Section - Преимущества системы */
.benefits-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 50%, #e0e7ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.benefits-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

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

.benefits-section .section-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.benefits-section .section-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.benefits-section .section-title {
    color: var(--text-dark);
    -webkit-text-fill-color: var(--text-dark);
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-section .section-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.benefit-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.15);
    cursor: pointer;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    will-change: transform, opacity;
    contain: layout style paint;
    z-index: 1;
}

.benefit-card.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translate3d(0, -15px, 0) scale(1.03);
    box-shadow: 
        0 35px 80px rgba(139, 92, 246, 0.35),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.benefit-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 20px;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card:hover .benefit-icon-bg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.benefit-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .benefits-section {
        padding: 60px 0;
    }
}

.features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
    cursor: pointer;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    contain: layout style paint;
}

.feature-card.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translate3d(0, -20px, 0) rotateX(2deg) rotateY(1deg) scale(1.05);
    box-shadow: 
        0 35px 80px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 0 80px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-bg {
    width: 120px;
    height: 120px;
    opacity: 0.15;
}

.feature-icon {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    margin-top: 1rem;
}

.feature-card:hover .feature-link {
    opacity: 1;
    transform: translateX(0);
}

.feature-link i {
    font-size: 1rem;
}

/* Courses Section - Premium Cards with Hover Effects */
.courses-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    padding: 120px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
}

.course-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    contain: layout style paint;
}

.course-card.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.course-card:hover::after {
    opacity: 0.05;
}

.course-card:hover {
    transform: translate3d(0, -20px, 0) rotateX(3deg) rotateY(2deg) scale(1.05);
    box-shadow: 
        0 40px 100px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 0 100px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.course-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.course-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.course-card:hover .course-video-overlay {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid #2563eb;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.play-btn:hover {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.play-btn i {
    display: none;
}

.course-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-level {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.course-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-content h3 a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.meta-item-small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.meta-item-small i {
    color: var(--primary-color);
    font-size: 1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    gap: 1rem;
}

.course-price-small {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teachers Section - Premium Design */
.teachers-section {
    background: var(--white);
    position: relative;
    padding: 120px 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.teacher-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.teacher-card:hover {
    transform: translate3d(0, -20px, 0) rotateX(2deg) scale(1.05);
    box-shadow: 
        0 40px 100px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 0 100px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.teacher-card:hover::before {
    opacity: 0.03;
}

.teacher-photo {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    z-index: 2;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.1);
}

.teacher-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.teacher-card:hover .teacher-video-overlay {
    opacity: 1;
}

.teacher-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.teacher-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.teacher-specialization {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.teacher-experience {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.teacher-bio {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Certificates Section - Premium Grid */
.certificates-section {
    background: 
        linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 50%, #60a5fa 75%, #93c5fd 100%),
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    color: var(--white);
    position: relative;
    overflow: visible;
    padding: 120px 0;
    min-height: 600px;
    display: block;
    visibility: visible;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: certificateFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.certificates-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes certificateFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    33% {
        transform: translate3d(30px, -30px, 0) rotate(120deg);
    }
    66% {
        transform: translate3d(-30px, 30px, 0) rotate(240deg);
    }
}

.certificates-section .section-intro {
    position: relative;
    z-index: 2;
}

.certificates-section .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.certificates-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Плавающие декоративные элементы для фона */
.certificates-section {
    background-attachment: fixed;
}

.certificates-section::before {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.certificates-section .container {
    position: relative;
    z-index: 2;
}

/* Certificates Slider - Premium Design */
.certificates-slider-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    padding: 2rem 0;
    min-height: 400px;
    display: block;
    visibility: visible;
}

.certificates-slider {
    overflow: visible;
    position: relative;
    margin: 0 80px;
    padding: 2rem 0;
    min-height: 350px;
    display: block;
}

.certificates-slider-track {
    display: flex;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    min-height: 300px;
    position: relative;
}

.certificate-card.slider-item {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    margin-right: 2rem;
    opacity: 0.3;
    transform: scale(0.8) translateY(20px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    filter: blur(2px);
    position: relative;
}

.certificate-card.slider-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: -1;
}

.certificate-card.slider-item.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    z-index: 2;
    filter: blur(0);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 80px rgba(37, 99, 235, 0.3);
}

.certificate-card.slider-item.active::before {
    opacity: 1;
}

.certificate-card.slider-item.active:hover {
    transform: translate3d(0, -12px, 0) scale(1.03);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 100px rgba(37, 99, 235, 0.4);
}

/* Плавное появление соседних карточек */
.certificate-card.slider-item:nth-child(n+1):nth-child(-n+3) {
    transition-delay: 0.1s;
}

/* Slider Navigation Buttons - Premium Design */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 30px rgba(255, 255, 255, 0.1);
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.slider-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 50px rgba(255, 255, 255, 0.2);
}

.slider-btn:hover::before {
    width: 100%;
    height: 100%;
}

.slider-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.slider-btn:hover i {
    transform: scale(1.2);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
}

/* Slider Indicators - Premium Design */
.slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

.slider-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    position: relative;
    overflow: hidden;
}

.slider-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.slider-indicator:hover::before {
    width: 100%;
    height: 100%;
}

.slider-indicator.active {
    background: white;
    border-color: white;
    width: 40px;
    height: 14px;
    border-radius: 7px;
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.slider-indicator.active::before {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive for Certificates Slider */
@media (max-width: 768px) {
    .certificates-slider-wrapper {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .certificates-slider {
        margin: 0 60px;
        padding: 1.5rem 0;
    }
    
    .slider-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .certificate-card.slider-item {
        min-width: 260px;
        max-width: 260px;
    }
    
    .slider-indicators {
        margin-top: 2rem;
        gap: 0.8rem;
    }
    
    .slider-indicator {
        width: 12px;
        height: 12px;
    }
    
    .slider-indicator.active {
        width: 32px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .certificates-slider-wrapper {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .certificates-slider {
        margin: 0 50px;
        padding: 1rem 0;
    }
    
    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .certificate-card.slider-item {
        min-width: 240px;
        max-width: 240px;
        margin-right: 1.5rem;
    }
    
    .slider-indicators {
        margin-top: 1.5rem;
        gap: 0.6rem;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .slider-indicator.active {
        width: 28px;
        height: 10px;
    }
}

.certificate-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, opacity, filter;
    contain: layout style paint;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0.8) 0%,
        rgba(245, 158, 11, 0.8) 50%,
        rgba(37, 99, 235, 0.8) 100%);
    opacity: 0;
    transition: opacity 1.2s ease;
    border-radius: 24px 24px 0 0;
}

.certificate-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.certificate-card.active::before {
    opacity: 1;
}

.certificate-card.active::after {
    opacity: 1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.certificate-card.active:hover {
    transform: translate3d(0, -12px, 0) scale(1.03);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.22) 0%, 
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 0 60px rgba(37, 99, 235, 0.3),
        0 0 100px rgba(245, 158, 11, 0.2);
}

.certificate-card.active:hover::before {
    opacity: 1;
    height: 5px;
}

.certificate-student-photo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.certificate-card:hover .certificate-student-photo {
    transform: scale(1.1);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(37, 99, 235, 0.3);
}

.certificate-student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-student-photo img {
    transform: scale(1.05);
}

.certificate-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.certificate-score {
    margin: 1rem 0;
}

.score-label {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.score-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(37, 99, 235, 0.4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.certificate-image {
    margin-top: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    position: relative;
}

.certificate-card:hover .certificate-image {
    transform: translate3d(0, -3px, 0) scale(1.03);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.certificate-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.02);
}

/* Testimonials Section - Premium Slider */
.testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    padding: 120px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: 28px;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: rgba(37, 99, 235, 0.12);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translate3d(0, -20px, 0) rotateX(1deg) scale(1.03);
    box-shadow: 
        0 40px 100px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 0 100px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-rating .fa-star.active {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.testimonial-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-course {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Forms - Premium Design */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

/* Modal - Premium Glassmorphism */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-video {
    max-width: 1000px;
    padding: 0;
    background: transparent;
}

.modal-video .close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-video .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-iframe,
.video-player {
    width: 100%;
    height: 100%;
    border: none;
}

.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    min-height: 300px;
}

.video-error p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 40px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Overlay */
/* Preloader - Elegant Design */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.preloader-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: preloaderRotate 3s linear infinite;
}

.preloader-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

.preloader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0%;
    animation: preloaderProgress 2s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes preloaderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9998;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.toast.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.toast.success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.toast.error::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.toast.info::before {
    background: var(--gradient-primary);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: #2563eb;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Alerts */
.messages-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 1500;
}

.alert {
    padding: 1.2rem 1.8rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 350px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: var(--white);
}

.alert-error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: var(--white);
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
}

.page-link {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.page-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .courses-grid,
    .teachers-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .course-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .course-detail-wrapper.no-image {
        max-width: 100%;
    }
    
    .course-detail-info h1 {
        font-size: 2.5rem;
    }
    
    .course-detail-meta {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .price-item {
        margin-left: 0;
        width: 100%;
    }
    
    .course-actions .btn {
        width: 100%;
        max-width: 100%;
    }
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 5;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translate3d(0, -15px, 0) scale(1.08) rotateY(2deg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-content {
    color: var(--white);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Additional Premium Styles */
.courses-page,
.videos-page {
    padding: 80px 0;
}

.videos-filters,
.courses-filters {
    margin-bottom: 3rem;
}

.filter-form {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.video-preview {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .video-preview img {
    transform: scale(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

.video-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.video-course {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Videos Section для главной страницы */
.videos-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.videos-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.videos-section .section-intro {
    margin-bottom: 3rem;
}

.videos-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card-home {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.video-card-home:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.video-preview-home {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.video-preview-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card-home:hover .video-preview-home img {
    transform: scale(1.15);
}

.video-placeholder-home {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.play-btn-home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.play-btn-home:hover {
    background: rgba(37, 99, 235, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-btn-home i {
    margin-left: 4px;
}

.video-info-home {
    padding: 1.5rem;
}

.video-info-home h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
}

.video-info-home p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.video-course-home {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive для Videos Section */
@media (max-width: 768px) {
    .videos-grid-home {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .videos-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .videos-grid-home {
        grid-template-columns: 1fr;
    }
    
    .video-preview-home {
        height: 180px;
    }
}

.course-detail-header {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.course-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.course-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.course-detail-wrapper.no-image {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.course-detail-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
}

.course-detail-image:hover {
    transform: translateY(-5px);
}

.course-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: transform 0.4s ease;
}

.course-detail-image:hover img {
    transform: scale(1.03);
}

.course-detail-info {
    display: flex;
    align-items: center;
}

.course-info-inner {
    width: 100%;
}

.course-detail-info .course-level {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.course-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.course-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-weight: 400;
}

.course-detail-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.meta-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.price-item {
    margin-left: auto;
}

.course-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-actions {
    margin-top: 2rem;
}

.course-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.course-promo-video {
    padding: 80px 0;
    background: var(--white);
}

.course-promo-video h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-lessons {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.course-lessons h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.lesson-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.lesson-preview {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.lesson-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lesson-card:hover .lesson-preview img {
    transform: scale(1.1);
}

.lesson-info {
    padding: 2rem;
}

.lesson-info h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

.lesson-info p {
    color: var(--text-light);
    line-height: 1.8;
}

.course-testimonials {
    padding: 80px 0;
    background: var(--white);
}

.course-testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.related-courses {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.related-courses h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add scroll effect to navbar */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* How It Works / Timeline Section */
.how-it-works-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

.timeline-item {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    will-change: transform, opacity;
    contain: layout style paint;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.timeline-icon {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 50px rgba(37, 99, 235, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(102, 126, 234, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 
            0 15px 50px rgba(37, 99, 235, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.1),
            inset 0 2px 10px rgba(255, 255, 255, 0.3),
            0 0 60px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(37, 99, 235, 0.5),
            0 0 0 6px rgba(255, 255, 255, 0.2),
            inset 0 2px 10px rgba(255, 255, 255, 0.4),
            0 0 80px rgba(102, 126, 234, 0.4);
    }
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 25px 70px rgba(37, 99, 235, 0.6),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.5),
        0 0 100px rgba(102, 126, 234, 0.5);
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: iconGradient 3s ease infinite, iconPulse 3s ease-in-out infinite;
}

@keyframes iconGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.timeline-icon i {
    font-size: 3rem;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 40px rgba(37, 99, 235, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.faq-item.active::before,
.faq-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.faq-item:hover {
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 40px rgba(102, 126, 234, 0.15);
    transform: translate3d(0, -5px, 0) scale(1.01);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-color: rgba(37, 99, 235, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding-top: 1rem;
}

/* Partners Section */
.partners-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.partner-item {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.partner-item.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.partner-logo i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-logo span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Scroll Reveal Animation */
.revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
}


/* Enhanced Feature Cards */
.feature-card {
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-15px) rotateX(1deg);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-icon {
        width: 100px;
        height: 100px;
    }
    
    .timeline-icon i {
        font-size: 2.5rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0) scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease,
                visibility 0.3s ease;
    z-index: 999;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.scroll-to-top:hover {
    transform: translate3d(0, -5px, 0) scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
    background: var(--gradient-secondary);
}

.scroll-to-top:active {
    transform: translate3d(0, -2px, 0) scale(1.05);
}

.scroll-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -5px, 0);
    }
}

/* Оптимизации для мобильных устройств */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    
    /* Уменьшаем backdrop-filter на мобильных для производительности */
    .navbar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Отключаем сложные анимации на слабых устройствах */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Упрощаем shapes на мобильных */
    .shape {
        animation-duration: 60s !important;
    }
    
    /* Уменьшаем количество волн */
    .wave-container .wave-3 {
        display: none;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.course-card,
.feature-card,
.teacher-card,
.testimonial-card,
.certificate-card {
    position: relative;
    overflow: hidden;
}

/* Premium Additional Effects */

/* Glow effects for interactive elements */
.course-card:hover .course-image,
.teacher-card:hover .teacher-photo {
    filter: brightness(1.1) contrast(1.05);
}

/* Enhanced image effects */
.course-image img,
.teacher-photo img {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover .course-image img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Premium text effects */
.hero-title,
.section-title {
    text-shadow: 
        0 0 80px rgba(102, 126, 234, 0.4),
        0 0 120px rgba(118, 75, 162, 0.3);
}

/* Enhanced button effects */
.btn-primary,
.btn-outline {
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    z-index: -1;
}

/* Premium card borders */
.course-card,
.feature-card,
.teacher-card,
.testimonial-card {
    position: relative;
}

.course-card::before,
.feature-card::before,
.teacher-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    padding: 2px;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: borderGradient 5s ease infinite;
}

.course-card:hover::before,
.feature-card:hover::before,
.teacher-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

@keyframes borderGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Premium section backgrounds - оптимизировано */
.features-section,
.courses-section,
.teachers-section,
.testimonials-section {
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.features-section::after,
.courses-section::after,
.teachers-section::after,
.testimonials-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    animation: backgroundFloat 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.features-section > .container,
.courses-section > .container,
.teachers-section > .container,
.testimonials-section > .container {
    position: relative;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    33% {
        transform: translate3d(30px, -30px, 0) rotate(120deg);
    }
    66% {
        transform: translate3d(-30px, 30px, 0) rotate(240deg);
    }
}
