      /* === ПЕРЕМЕННЫЕ И ЦВЕТА === */
      :root {
        --color-primary: #FF9800;   /* Тёплый оранжевый (карандаш/творчество) */
        --color-primary-2: #5C6BC0; /* Мягкий индиго */
        --color-primary-3: #4DB6AC; /* Бирюзовый акцент */
        --color-primary-4: #EC407A; /* Розовый для кнопок/акцентов */
        --color-primary-5: #66BB6A; /* Зелёный */
        --color-secondary: #1F1F25;
        --color-body: #555555;
        --color-bg: #FDFBF7;        /* Тёплый фон */
        --color-heading: #2C3E50;
        --color-white: #ffffff;
        --transition: all 0.3s ease;
        --font-primary: 'Inter', sans-serif;
        --font-secondary: 'Nunito', sans-serif;
        --h1: 60px;
        --h2: 44px;
        --h3: 30px;
        --h4: 24px;
        --h5: 20px;
        --h6: 18px;
        --radius: 12px;
        --shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    /* === БАЗОВЫЕ СТИЛИ === */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
        font-family: var(--font-primary);
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-body);
        background: var(--color-bg);
        overflow-x: hidden;
    }
    h1,h2,h3,h4,h5,h6 { font-family: var(--font-secondary); color: var(--color-heading); line-height: 1.25; margin-bottom: 15px; }
    h1 { font-size: var(--h1); font-weight: 800; }
    h2 { font-size: var(--h2); font-weight: 700; }
    h3 { font-size: var(--h3); font-weight: 700; }
    a { text-decoration: none; color: inherit; transition: var(--transition); }
    img { max-width: 100%; height: auto; display: block; }
    ul, ol { list-style: none; padding: 0; margin: 0; }
    .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
    .section { padding: 80px 0; }
    .text-center { text-align: center; }
    .mb-20 { margin-bottom: 20px; }
    .mb-40 { margin-bottom: 40px; }

    /* === КНОПКИ === */
    .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        padding: 14px 28px; border-radius: 50px; font-weight: 600; cursor: pointer;
        transition: var(--transition); border: 2px solid transparent;
    }
    .btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
    .btn-primary:hover { background: transparent; color: var(--color-primary); }
    .btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
    .btn-outline:hover { background: var(--color-primary); color: #fff; }
    .btn-sm { padding: 10px 20px; font-size: 14px; }

    /* === HEADER === */
    .header {
        position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        border-bottom: 2px solid #eee; transition: var(--transition);
    }
    .header.sticky { box-shadow: var(--shadow); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
    .logo { font-size: 24px; font-weight: 800; color: var(--color-heading); display: flex; align-items: center; gap: 8px; }
    .logo span { color: var(--color-primary); }
    .nav ul { display: flex; gap: 30px; }
    .nav a { font-weight: 500; position: relative; padding: 10px 0; }
    .nav a:hover { color: var(--color-primary); }
    .nav a::after {
        content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
        background: var(--color-primary); transition: var(--transition);
    }
    .nav a:hover::after { width: 100%; }
    .header-actions { display: flex; align-items: center; gap: 15px; }
    .menu-toggle { display: none; font-size: 24px; cursor: pointer; background: none; border: none; color: var(--color-heading); }

    @media (max-width: 991px) {
        .nav {
            position: fixed; top: 80px; right: -100%; width: 280px; height: calc(100vh - 80px);
            background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding: 30px;
            transition: 0.4s ease; z-index: 999;
        }
        .nav.active { right: 0; }
        .nav ul { flex-direction: column; gap: 20px; }
        .menu-toggle { display: block; }
    }

    /* === HERO === */
    .hero {
        padding: 160px 0 100px; background: linear-gradient(135deg, #FFF3E0 0%, #E8F0FE 100%);
        position: relative; overflow: hidden;
    }
    .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
    .hero-content h1 { line-height: 1.15; margin-bottom: 20px; }
    .hero-content p { font-size: 18px; margin-bottom: 30px; max-width: 90%; }
    .hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
    .hero-image { position: relative; }
    .hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
    @media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-content p { margin: 0 auto 30px; } .hero-btns { justify-content: center; } }

    /* === ABOUT === */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
    .about-img { position: relative; border-radius: var(--radius); overflow: hidden; }
    .about-img img { width: 100%; }
    .about-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
    .stat-item { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 140px; text-align: center; }
    .stat-item h3 { color: var(--color-primary); margin-bottom: 5px; font-size: 32px; }
    @media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; } }

    /* === CLASSES / COURSES === */
    .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
    .card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
    .card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
    .card-img { height: 200px; background: #eee; display: flex; align-items: center; justify-content: center; }
    .card-img span { font-size: 48px; }
    .card-body { padding: 25px; }
    .card-meta { display: flex; gap: 15px; font-size: 14px; color: #888; margin-bottom: 10px; }
    .card-title { font-size: 20px; margin-bottom: 10px; }
    .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
    .price { font-weight: 700; color: var(--color-primary); font-size: 20px; }

    /* === TEACHERS === */
    .teacher-card { text-align: center; background: #fff; padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
    .teacher-img { width: 120px; height: 120px; border-radius: 50%; background: #eee; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
    .socials { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
    .socials a { width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
    .socials a:hover { background: var(--color-primary); color: #fff; }

    /* === EVENTS === */
    .event-card { display: flex; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 25px; }
    .event-date { background: var(--color-primary-2); color: #fff; padding: 25px; text-align: center; min-width: 100px; display: flex; flex-direction: column; justify-content: center; }
    .event-date span { font-size: 36px; font-weight: 800; line-height: 1; }
    .event-info { padding: 25px; flex: 1; }
    .event-meta { display: flex; gap: 20px; margin-top: 10px; font-size: 14px; color: #666; flex-wrap: wrap; }
    @media (max-width: 600px) { .event-card { flex-direction: column; } .event-date { flex-direction: row; padding: 15px; gap: 10px; align-items: center; min-width: auto; } }

    /* === TESTIMONIALS === */
    .testimonial { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
    .testimonial::before { content: '“'; position: absolute; top: 15px; left: 20px; font-size: 60px; color: rgba(0,0,0,0.05); line-height: 1; font-family: serif; }
    .testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    .testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ddd; }
    .rating { color: #FFC107; }
    .quote { font-style: italic; margin-bottom: 0; }

    /* === FOOTER === */
    .footer { background: #1C2539; color: #cbd5e1; padding: 80px 0 30px; }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
    .footer h4 { color: #fff; margin-bottom: 25px; }
    .footer a { display: block; margin-bottom: 12px; transition: var(--transition); }
    .footer a:hover { color: var(--color-primary); padding-left: 5px; }
    .footer-bottom { border-top: 1px solid #334155; padding-top: 30px; text-align: center; font-size: 14px; }
    .subscribe-form { display: flex; gap: 10px; margin-top: 15px; }
    .subscribe-form input { flex: 1; padding: 12px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: #fff; }
    .subscribe-form input:focus { outline: none; border-color: var(--color-primary); }
    .copyright { color: #94a3b8; margin-top: 20px; font-size: 13px; }

    /* === BACK TO TOP === */
    #backToTop {
        position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
        background: var(--color-primary); color: #fff; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99;
    }
    #backToTop.show { opacity: 1; visibility: visible; }
    #backToTop:hover { transform: translateY(-5px); background: var(--color-primary-2); }

    /* === PRELOADER === */
    #preloader {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--color-bg); z-index: 9999; display: flex;
        align-items: center; justify-content: center; transition: opacity 0.5s;
    }
    .loader { width: 50px; height: 50px; border: 4px solid #eee; border-top-color: var(--color-primary); border-radius: 50%; animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }