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

a {
    text-decoration: none;
}

:root {
    --primary: #5E3AEE;
    --primary-dark: #4829CC;
    --secondary: #1A1A2E;
    --accent: #00D4FF;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-light: #F8F9FA;
    --success: #00B894;
    --warning: #FDCB6E;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo::before {
    content: '{/}';
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white!important;
    padding: 12px 25px!important;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 58, 238, 0.3);
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundScroll 20s linear infinite;
}

@keyframes backgroundScroll {
    from { transform: translateY(0); }
    to { transform: translateY(60px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .highlight {
    background: linear-gradient(90deg, #FFD93D, #FF6BCB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

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

.stat-item .number {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

.stat-item .label {
    font-size: 14px;
    opacity: 0.9;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.badge-1 {
    top: -20px;
    right: 20px;
}

.badge-2 {
    bottom: 20px;
    left: -30px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

/* Curriculum */
.curriculum {
    padding: 100px 0;
}

.curriculum-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.module {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.module-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
}

.module-number {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.module-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.module-duration {
    font-size: 14px;
    opacity: 0.9;
}

.module-content {
    padding: 25px;
}

.module-topics {
    list-style: none;
}

.module-topics li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.module-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.module-topics li:last-child {
    border-bottom: none;
}

/* Pricing */
.pricing,.contact,.teachers {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.price-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(94, 58, 238, 0.2);
}

.price-card.featured::before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--warning), #FF6B6B);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.plan-price span {
    font-size: 18px;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin: 30px 0;
}

.plan-features li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .included::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
}

.plan-features .excluded {
    opacity: 0.5;
    text-decoration: line-through;
}

.plan-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.plan-button.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 58, 238, 0.3);
}

/* Reviews */
.reviews {
    padding: 100px 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.2;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.review-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review-info .role {
    color: var(--text-light);
    font-size: 14px;
}

.review-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.review-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* Teachers */

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

.teacher-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.teacher-name {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.teacher-role {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 15px;
}

.teacher-bio {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* FAQ */
.faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

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

.faq-answer-content {
    padding: 0 25px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundScroll 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-button-white {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p,
.footer-section ul {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 36px;
    }

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

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

    .price-card.featured {
        transform: scale(1);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
    display: none;
}

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