        :root {
            --gold: #C9A961;
            --gold-light: #E5D5A8;
            --gold-dark: #A8893E;
            --navy: #0A1628;
            --navy-light: #1A2A45;
            --white: #FFFFFF;
            --cream: #F8F6F0;
            --text-dark: #1A1A1A;
            --text-gray: #666666;
            --red-accent: #8B1A1A;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', sans-serif; overflow-x: hidden; background: var(--white); line-height: 1.6; }

        /* LANGUAGE SWITCHER */
        .lang-switcher {
            position: fixed;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .lang-btn {
            background: var(--navy);
            color: var(--white);
            border: 2px solid var(--gold);
            border-right: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s;
            border-radius: 8px 0 0 8px;
            text-transform: uppercase;
        }
        .lang-btn:hover, .lang-btn.active { background: var(--gold); color: var(--navy); }

        /* TOP BAR */
        .top-bar {
            background: var(--navy);
            color: var(--gold-light);
            padding: 8px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            border-bottom: 1px solid rgba(201, 169, 97, 0.2);
        }
        .top-bar-left { display: flex; gap: 25px; }
        .top-bar-link { color: inherit; text-decoration: none; }
        .top-bar-link:hover { color: var(--white); text-decoration: underline; }

        /* NAVBAR */
        .navbar {
            background: rgba(10, 22, 40, 0.98);
            backdrop-filter: blur(20px);
            padding: 15px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 2px solid var(--gold);
        }
        .logo { display: flex; align-items: center; gap: 15px; }
        .logo-icon {
            width: 50px; height: 50px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
            overflow: hidden;
            background: var(--navy);
        }
        .logo-icon img {
            width: 100%; height: 100%;
            object-fit: cover;
        }
        .logo-text h1 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: 2px; }
        .logo-text p { color: var(--gold); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }

        .nav-menu { display: flex; gap: 15px; list-style: none; align-items: center; }
        .nav-menu a {
            color: var(--white); text-decoration: none;
            font-size: 11px; font-weight: 500;
            cursor: pointer; transition: color 0.3s;
            text-transform: uppercase;
        }
        .nav-menu a:hover, .nav-menu a.active-link { color: var(--gold); }
        .enroll-btn {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: var(--navy) !important;
            padding: 10px 20px;
            border-radius: 50px;
            font-weight: 700;
        }

        /* MOBIL MENYU (HAMBURGER) */
        .nav-toggle {
            display: none;
            background: transparent;
            border: 2px solid var(--gold);
            border-radius: 8px;
            width: 42px; height: 42px;
            cursor: pointer;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 0;
        }
        .nav-toggle span {
            display: block;
            width: 20px; height: 2px;
            background: var(--gold);
            transition: all 0.3s;
        }
        .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-toggle.open span:nth-child(2) { opacity: 0; }
        .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* HERO */
        .hero {
            min-height: 80vh;
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            display: flex; align-items: center;
            position: relative;
            padding: 60px 50px;
            overflow: hidden;
        }
        .hero-bg-video {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            z-index: 0;
        }
        .hero-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(135deg, rgba(10,22,40,0.88), rgba(26,42,69,0.78));
            z-index: 1;
        }
        .hero-sound-btn {
            position: absolute;
            bottom: 25px; right: 25px;
            z-index: 3;
            background: rgba(10,22,40,0.6);
            border: 2px solid var(--gold);
            color: var(--gold);
            width: 46px; height: 46px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            font-size: 18px;
            backdrop-filter: blur(6px);
            transition: all 0.3s;
        }
        .hero-sound-btn:hover { background: var(--gold); color: var(--navy); }

        /* O'QITUVCHILAR TIKERI (bosh sahifada, avtomatik yuqoriga aylanadi) —
           katta ekranlarda o'ng yuqori burchakda suzib turadigan panel, kichik
           ekranlarda esa sahifa oqimida to'liq enli blok sifatida chiqadi
           (ilgari faqat katta ekranlarda ko'rinardi, endi mobilda ham bor). */
        .teacher-ticker {
            position: absolute;
            top: 100px; right: 40px;
            width: 360px;
            max-height: 500px;
            display: flex;
            flex-direction: column;
            z-index: 3;
            background: rgba(10, 22, 40, 0.55);
            border: 1px solid rgba(201, 169, 97, 0.45);
            border-radius: 18px;
            padding: 20px 16px;
            backdrop-filter: blur(8px);
        }
        .teacher-ticker h4 {
            color: var(--gold);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 16px;
            text-align: center;
            font-weight: 700;
            flex-shrink: 0;
        }
        /* Faqat aylanuvchi ro'yxat oynasi yuqori/pastdan xiralashadi (fade) —
           sarlavha (h4) shu maskadan tashqarida, doim to'liq aniq ko'rinadi. */
        .teacher-ticker-viewport {
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
            -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
            mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
        }
        .teacher-ticker-track {
            display: flex;
            flex-direction: column;
            gap: 14px;
            animation: teacherTickerScroll linear infinite;
            animation-duration: 26s;
        }
        .teacher-ticker:hover .teacher-ticker-track { animation-play-state: paused; }
        .teacher-ticker-item {
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 12px 14px;
        }
        .teacher-ticker-item img,
        .teacher-ticker-item .avatar-fallback {
            width: 56px; height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--gold);
            flex-shrink: 0;
            background: var(--navy-light);
            display: flex; align-items: center; justify-content: center;
            color: var(--gold);
            font-size: 22px;
        }
        .teacher-ticker-item .t-info { min-width: 0; }
        .teacher-ticker-item .t-name {
            color: var(--white);
            font-size: 15px;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .teacher-ticker-item .t-subject {
            color: #B8C2D0;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        @keyframes teacherTickerScroll {
            0% { transform: translateY(0); }
            100% { transform: translateY(-50%); }
        }
        @media (max-width: 1200px) {
            /* .hero standart holatda display:flex (qator yo'nalishida) — tiker
               endi shu oqim ichida (position:static) bo'lgani uchun, ustma-ust
               emas, tepada tiker va ostida matn qatlam bo'lib joylashishi uchun
               ustun yo'nalishga o'tkaziladi. */
            .hero { flex-direction: column; }
            .teacher-ticker {
                position: static;
                width: 100%;
                max-width: 480px;
                margin: 0 auto 30px;
                max-height: 420px;
            }
        }
        .hero-inner {
            max-width: 1300px;
            margin: 0 auto;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 60px;
            position: relative;
            z-index: 2;
        }
        .hero-text { flex: 1 1 700px; max-width: 800px; text-align: center; }
        .hero-badge {
            display: inline-block;
            background: rgba(201, 169, 97, 0.1);
            border: 2px solid var(--gold);
            color: var(--gold);
            padding: 10px 25px;
            border-radius: 50px;
            font-size: 12px;
            letter-spacing: 2px;
            margin-bottom: 30px;
            text-transform: uppercase;
        }
        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 58px;
            color: var(--white);
            margin-bottom: 20px;
            font-weight: 900;
            line-height: 1.15;
        }
        .hero h1 span {
            background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero p { color: #C0C0C0; font-size: 18px; margin-bottom: 40px; }
        .hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
        .hero-video-wrap { flex: 1 1 500px; display: flex; justify-content: center; }
        .hero-video {
            width: 100%;
            max-width: 560px;
            max-height: 70vh;
            border-radius: 20px;
            border: 3px solid var(--gold);
            box-shadow: 0 20px 50px rgba(0,0,0,0.45);
            background: #000;
        }
        @media (max-width: 968px) {
            .hero-inner { flex-direction: column; text-align: center; }
            .hero-text { text-align: center; }
            .hero-buttons { justify-content: center; }
            .hero-video { max-width: 420px; }
        }
        .btn {
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-size: 14px;
            text-transform: uppercase;
            transition: all 0.3s;
        }
        .btn-gold {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: var(--navy);
            box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
        }
        .btn-outline { border: 2px solid var(--gold); color: var(--white); background: transparent; }
        .btn:hover { transform: translateY(-3px); }

        /* STATS BANNER */
        .stats-banner {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            padding: 50px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }
        .stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 45px;
            color: var(--navy);
            font-weight: 900;
            text-align: center;
            line-height: 1;
        }
        .stat-label {
            text-align: center;
            color: var(--navy);
            font-weight: 700;
            font-size: 12px;
            letter-spacing: 2px;
            margin-top: 10px;
            text-transform: uppercase;
        }

        /* PAGES */
        .page { display: none; }
        .page.active { display: block; }
        .section { padding: 80px 50px; }
        .section-alt { background: var(--cream); }
        .section-header { text-align: center; margin-bottom: 50px; }
        .section-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 40px;
            color: var(--navy);
            margin-bottom: 15px;
            font-weight: 700;
        }
        .divider {
            width: 80px; height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
            margin: 15px auto;
        }
        .section-header p { color: var(--text-gray); max-width: 600px; margin: 0 auto; font-size: 15px; }

        /* GRIDS */
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
        .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }
        .card {
            background: var(--white);
            border-radius: 15px;
            padding: 35px 25px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: all 0.3s;
            cursor: pointer;
            border: 1px solid #E8E8E8;
        }
        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: var(--gold);
        }
        .card-icon { font-size: 45px; margin-bottom: 20px; }
        .card-icon img { width: 70px; height: 70px; object-fit: contain; }
        .card h3 { color: var(--navy); font-size: 18px; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
        .card p { color: var(--text-gray); font-size: 13px; line-height: 1.6; }

        /* CONTACT */
        .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
        .contact-card {
            background: var(--white);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        }
        .contact-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
        .contact-icon {
            width: 50px; height: 50px;
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            border-radius: 15px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        /* FOOTER */
        .footer {
            background: var(--navy);
            color: #B0B0B0;
            padding: 60px 50px 30px;
            border-top: 3px solid var(--gold);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto 40px;
        }
        .footer h3 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 20px; }
        .footer p { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a {
            color: #B0B0B0; text-decoration: none;
            cursor: pointer; font-size: 14px; transition: color 0.3s;
        }
        .footer-links a:hover { color: var(--gold); }
        .footer-link { color: inherit; text-decoration: none; }
        .footer-link:hover { color: var(--gold); text-decoration: underline; }
        .contact-link { color: inherit; text-decoration: none; }
        .contact-link:hover { color: var(--gold-dark, var(--gold)); text-decoration: underline; }

        /* Skrinriderlar uchun ko'rinmas, lekin ovozli o'qishda mavjud yorliqlar */
        .sr-only {
            position: absolute;
            width: 1px; height: 1px;
            padding: 0; margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .footer-bottom {
            border-top: 1px solid rgba(201, 169, 97, 0.2);
            padding-top: 20px;
            text-align: center;
            font-size: 13px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* MODAL */
        .modal {
            display: none;
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.85);
            z-index: 2000;
            align-items: center; justify-content: center;
            backdrop-filter: blur(10px);
        }
        .modal-content {
            background: var(--white);
            padding: 40px;
            border-radius: 20px;
            max-width: 400px;
            width: 90%;
        }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .grid-3 { grid-template-columns: 1fr 1fr; }
            .grid-4 { grid-template-columns: 1fr 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 768px) {
            .top-bar { display: none; }
            .navbar { padding: 15px 20px; }
            .nav-toggle { display: flex; }
            .nav-menu {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                position: fixed;
                top: 79px; left: 0; right: 0;
                background: rgba(10, 22, 40, 0.98);
                backdrop-filter: blur(20px);
                border-bottom: 2px solid var(--gold);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.35s ease;
                z-index: 999;
            }
            .nav-menu.open { max-height: 80vh; overflow-y: auto; }
            .nav-menu li { width: 100%; border-top: 1px solid rgba(201, 169, 97, 0.15); }
            .nav-menu li a { display: block; padding: 16px 25px; font-size: 13px; }
            .nav-menu li .enroll-btn { display: block; margin: 15px 25px; text-align: center; border-radius: 10px; }
            .hero h1 { font-size: 35px; }
            .hero p { font-size: 15px; }
            .stats-banner { grid-template-columns: 1fr 1fr; padding: 30px 20px; }
            .grid-3, .grid-4 { grid-template-columns: 1fr; }
            .contact-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .section { padding: 50px 20px; }
            .section-header h2 { font-size: 28px; }
            .hero-buttons { flex-direction: column; }
            .lang-switcher { flex-direction: row; top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
            .lang-btn { border: 2px solid var(--gold); border-radius: 8px; }
            /* Mobil menyu ochiq bo'lganda til almashtirgich uning ustiga chiqib,
               pastki bandlarni ("Aloqa", "Kirish") yashirib qo'yardi — shu
               vaqt uchun uni vaqtincha yashiramiz (toggleMobileNav — common.js). */
            body.nav-open .lang-switcher { display: none; }
        }

        /* PWA O'RNATISH BANNERI */
        .pwa-install-banner {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            padding: 35px 20px;
        }
        .pwa-install-inner {
            max-width: 900px; margin: 0 auto;
            display: flex; align-items: center; gap: 25px;
            flex-wrap: wrap;
        }
        .pwa-install-icon {
            width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        .pwa-install-text { flex: 1; min-width: 220px; }
        .pwa-install-text h3 { color: var(--gold); font-size: 20px; margin-bottom: 6px; }
        .pwa-install-text p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; }
        .pwa-install-btn {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: var(--navy); border: none; padding: 14px 30px; border-radius: 8px;
            font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
            transition: transform 0.2s;
        }
        .pwa-install-btn:hover { transform: translateY(-2px); }
        @media (max-width: 600px) {
            .pwa-install-inner { flex-direction: column; text-align: center; }
            .pwa-install-btn { width: 100%; }
        }
