        /* ===== RESET & ROOT ===== */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --ink: #20262b;
            --ink-soft: #5b6570;
            --paper: #faf7f1;
            --paper-panel: #f2ede2;
            --indigo: #2b4570;
            --indigo-soft: #dfe6ee;
            --teal: #3f8f88;
            --teal-soft: #e1efed;
            --apricot: #c97a2b;
            --apricot-soft: #f6e6d2;
            --rule: #d9d2c2;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            --radius: 14px;
            --transition: 0.25s ease;
        }

        @font-face {
            font-family: koodak;
            src: url(fonts/pixelboy-BKoodakBold.eot);
            src: url(fonts/pixelboy-BKoodakBold.ttf);
            src: url(fonts/pixelboy-BKoodakBold.woff);
        }
        @font-face {
            font-family: titr;
            src: url(fonts/pixelboy-BTitrBold.eot);
            src: url(fonts/pixelboy-BTitrBold.ttf);
            src: url(fonts/pixelboy-BTitrBold.woff);
        }
        @font-face {
            font-family: yekan;
            src: url(fonts/yekan-font/yekan-regular.eot);
            src: url(fonts/yekan-font/yekan-regular.ttf);
            src: url(fonts/yekan-font/yekan-regular.woff);
        }

        body {
            font-family: 'koodak', 'Segoe UI', Tahoma, sans-serif;
            background: #f3f0ea;
            color: var(--ink);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding: 0;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: titr, 'Segoe UI', sans-serif;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* ===== HEADER / NAVBAR ===== */
        .site-header {
            background: var(--paper);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 0 1.5rem;
            border-bottom: 1px solid var(--rule);
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            min-height: 70px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 1.2rem;
            color: var(--indigo);
            letter-spacing: 0.04em;
        }

        .brand svg {
            width: 32px;
            height: 32px;
            flex: none;
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--indigo);
            cursor: pointer;
            padding: 0.2rem 0.5rem;
        }

        .navbar {
            display: flex;
            align-items: center;
            gap: 0.2rem;
            flex-wrap: wrap;
        }

        .navbar a {
            padding: 0.5rem 0.9rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--ink-soft);
            transition: var(--transition);
            white-space: nowrap;
            cursor: pointer;
            font-family: yekan, 'Segoe UI', sans-serif;
            letter-spacing: 0.03em;
        }

        .navbar a:hover,
        .navbar a.active {
            background: var(--indigo-soft);
            color: var(--indigo);
        }

        .navbar a.active {
            background: var(--indigo);
            color: #fff;
        }

        /* ===== MAIN ===== */
        .main-content {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            padding: 1.5rem;
        }

        .section {
            display: none;
            animation: fadeUp 0.3s ease;
        }

        .section.active {
            display: block;
        }

        @keyframes fadeUp {
            0% {
                opacity: 0;
                transform: translateY(12px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== PAGE ELEMENTS (reused) ===== */
        .page-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 1.2rem;
        }

        .kicker {
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 0.75rem;
            letter-spacing: 0.14em;
            color: var(--indigo);
            font-weight: 600;
            text-transform: uppercase;
        }

        .page-title {
            font-size: 1.6rem;
            font-weight: 800;
            margin: 0;
            line-height: 1.3;
        }

        .page-sub {
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin-top: 0.2rem;
        }

        .badge {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--indigo);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: titr, 'Segoe UI', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            flex: none;
            position: relative;
        }
        .badge::after {
            content: '';
            position: absolute;
            inset: -5px;
            border: 1px solid var(--indigo-soft);
            border-radius: 50%;
        }

        .motif-rule {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 1.2rem 0 1.5rem 0;
        }
        .motif-rule .line {
            flex: 1;
            height: 1px;
            background: var(--rule);
        }
        .motif-rule .dots {
            display: flex;
            gap: 5px;
        }
        .motif-rule .dots span {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--indigo);
            opacity: 0.55;
        }
        .motif-rule .dots span:nth-child(2) {
            background: var(--teal);
        }
        .motif-rule .dots span:nth-child(3) {
            background: var(--apricot);
        }

        .motif {
            width: 20px;
            height: 20px;
            flex: none;
            display: inline-block;
        }
        .motif svg {
            width: 100%;
            height: 100%;
        }

        .section-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-family: yekan, 'Segoe UI', sans-serif;
            font-size: 0.7rem;
            letter-spacing: 0.12em;
            color: var(--ink-soft);
            text-transform: uppercase;
        }
        .section-label .motif {
            width: 16px;
            height: 16px;
        }

        .block-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin: 0.5rem 0 0.3rem 0;
        }
        .block-note {
            font-size: 0.85rem;
            color: var(--ink-soft);
            margin: 0 0 1rem 0;
            line-height: 1.7;
        }

        /* ===== HERO SCENE ===== */
        .hero-scene {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0.8rem 0 1.2rem 0;
            padding: 0.5rem 0;
            background: var(--paper-panel);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            min-height: auto;
        }
        .hero-scene .hero-photo.single {
            width: 100%;
            height: auto;
            flex: none;
            overflow: hidden;
            border: 2px solid #fff;
            border-radius: 10px;
            box-shadow: 0 4px 16px rgba(43, 69, 112, 0.2);
            background: var(--indigo-soft);
            text-align: center;
        }
        .hero-scene .hero-photo.single img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
            
        }
        .hero-scene .hero-photo .hero-name {
            display: block;
            text-align: center;
            font-family: yekan, 'Segoe UI', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--indigo);
            padding: 0.5rem 0.5rem 0.2rem;
            background: transparent;
            letter-spacing: 0.04em;
            line-height: 1.5;
        }

        /* ===== DIALOGUE LINES ===== */
        .line-row {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            align-items: flex-start;
        }
        .avatar-photo {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: cover;
            flex: none;
            margin-top: 2px;
            background: var(--indigo-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 0.8rem;
            color: var(--indigo);
            font-weight: 700;
        }
        .avatar-photo img {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            object-fit: cover;
            display: block;
        }
        .line-content {
            flex: 1;
        }
        .speaker {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--ink-soft);
            margin-bottom: 1px;
        }
        .uz-line {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 0.95rem;
            font-weight: 500;
            direction: ltr;
            text-align: left;
            color: var(--ink);
            margin-bottom: 2px;
        }
        .fa-line {
            font-size: 0.9rem;
            color: var(--ink-soft);
        }

        .audio-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: yekan, 'Segoe UI', sans-serif;
            font-size: 0.7rem;
            color: var(--apricot);
            border: 1px solid var(--apricot-soft);
            background: var(--apricot-soft);
            border-radius: 30px;
            padding: 0.2rem 1rem;
            margin-top: 0.6rem;
        }

        /* ===== TABLES ===== */
        .lit-table,
        .pron-table,
        .mini-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0.6rem 0 0.4rem 0;
            font-size: 0.85rem;
        }
        .lit-table th,
        .pron-table th,
        .mini-table th {
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 0.7rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--ink-soft);
            text-align: center;
            padding: 0.4rem 0.3rem;
            border-bottom: 1px solid var(--rule);
        }
        .lit-table td,
        .pron-table td,
        .mini-table td {
            padding: 0.4rem 0.3rem;
            border-bottom: 1px solid var(--rule);
            vertical-align: middle;
            text-align: center;
        }
        .lit-table td.uz {
            font-family: Georgia, 'Times New Roman', Times, serif;
            direction: ltr;
            color: var(--indigo);
        }
        .pron-table td.letter {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-weight: 700;
            color: var(--teal);
            width: 44px;
        }
        .pron-table td.example {
            font-family: Georgia, 'Times New Roman', Times, serif;
            direction: ltr;
            color: var(--indigo);
        }

        /* ===== MISTAKE CARDS ===== */
        .mistake {
            display: flex;
            gap: 9px;
            padding: 0.7rem 0;
            border-bottom: 1px solid var(--rule);
        }
        .mistake:last-child {
            border-bottom: none;
        }
        .mistake .motif {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            flex: none;
        }
        .mistake strong {
            font-size: 0.85rem;
        }
        .mistake p {
            margin: 0.2rem 0 0 0;
            font-size: 0.8rem;
            color: var(--ink-soft);
            line-height: 1.7;
        }
        .mistake .ex {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--apricot);
            direction: ltr;
            display: inline-block;
        }

        /* ===== VOCAB ===== */
        .vocab-intro {
            font-size: 0.85rem;
            color: var(--ink-soft);
            line-height: 1.8;
            margin-bottom: 1rem;
            text-align: justify;
        }
        .vocab-grid {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .vocab-card {
            border-bottom: 1px solid var(--rule);
            padding: 0.6rem 0;
        }
        .vocab-word {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--indigo);
        }
        .vocab-fa {
            font-size: 0.85rem;
            font-weight: 600;
            margin-inline-start: 6px;
        }
        .vocab-root {
            font-size: 0.8rem;
            color: var(--ink-soft);
            margin-top: 0.2rem;
            line-height: 1.6;
            text-align: justify;
        }
        .vocab-root b {
            color: var(--teal);
            font-weight: 600;
        }

        .gold-note {
            margin-top: 1.2rem;
            background: var(--teal-soft);
            border-radius: var(--radius);
            padding: 0.9rem 1rem;
            font-size: 0.85rem;
            color: #245550;
            line-height: 1.7;
        }
        .gold-note .section-label {
            color: #245550;
            margin-bottom: 0.2rem;
        }

        /* ===== GRAMMAR ===== */
        .grammar-rule {
            padding: 0.8rem 0;
            border-bottom: 1px solid var(--rule);
        }
        .grammar-rule:last-child {
            border-bottom: none;
        }
        .grammar-head {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .grammar-index {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            font-size: 0.85rem;
            color: #fff;
            background: var(--teal);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: none;
        }
        .grammar-head strong {
            font-size: 0.95rem;
        }
        .grammar-rule p {
            margin: 0.4rem 0 0 0;
            font-size: 0.8rem;
            color: var(--ink-soft);
            line-height: 1.75;
        }
        .grammar-example {
            display: inline-block;
            margin-top: 0.3rem;
            margin-inline-end: 4px;
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 0.8rem;
            background: var(--teal-soft);
            color: var(--teal);
            padding: 0.1rem 0.6rem;
            border-radius: 4px;
            direction: ltr;
        }

        /* ===== CULTURE ===== */
        .culture-card {
            background: var(--apricot-soft);
            border-radius: var(--radius);
            padding: 0.9rem 1rem;
            margin-bottom: 1rem;
        }
        .culture-card .section-label {
            color: #8f5417;
            margin-bottom: 0.2rem;
        }
        .culture-card h4 {
            margin: 0 0 0.2rem 0;
            font-size: 1rem;
        }
        .culture-card p {
            margin: 0;
            font-size: 0.85rem;
            line-height: 1.75;
            color: #4a3520;
            text-align: justify;
        }
        .culture-card p+p {
            margin-top: 0.4rem;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            background: var(--ink);
            color: #ddd;
            padding: 2rem 1.5rem 1.5rem;
            margin-top: 2rem;
            border-top: 2px solid var(--indigo);
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: 2rem;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        .footer-brand .logo-placeholder img{
            width: 56px;
            height: 56px;
            background: var(--indigo-soft);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 1.4rem;
            color: var(--indigo);
            font-weight: 700;
            flex: none;
        }
        .footer-brand .brand-text {
            font-family: titr, 'Segoe UI', sans-serif;
            font-size: 1.1rem;
            color: #fff;
            letter-spacing: 0.04em;
        }
        .footer-brand .brand-text small {
            display: block;
            font-family: yekan, 'Segoe UI', sans-serif;
            font-size: 0.7rem;
            color: #aaa;
            font-weight: 400;
        }

        .footer-contact {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            font-size: 0.85rem;
            font-family: yekan, 'Segoe UI', sans-serif;
        }
        .footer-contact a {
            color: #ccc;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .footer-contact a:hover {
            color: #fff;
        }
        .footer-contact svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.4;
        }

        .footer-social {
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }
        .footer-social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            transition: var(--transition);
            color: #ccc;
        }
        .footer-social a:hover {
            background: var(--indigo);
            color: #fff;
            transform: translateY(-2px);
        }
        .footer-social svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
            stroke: none;
        }

        .footer-copy {
            width: 100%;
            text-align: center;
            font-size: 0.7rem;
            color: #888;
            margin-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding-top: 1rem;
            font-family: yekan, 'Segoe UI', sans-serif;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 850px) {
            .header-inner {
                flex-wrap: nowrap;
            }
            .nav-toggle {
                display: block;
            }
            .navbar {
                display: none;
                flex-direction: column;
                width: 100%;
                background: var(--paper);
                padding: 0.5rem 0 1rem;
                border-top: 1px solid var(--rule);
                gap: 0.1rem;
            }
            .navbar.open {
                display: flex;
            }
            .navbar a {
                width: 100%;
                text-align: center;
                padding: 0.6rem;
                border-radius: 0;
                border-bottom: 1px solid var(--rule);
            }
            .navbar a:last-child {
                border-bottom: none;
            }
            .page-title {
                font-size: 1.3rem;
            }
            .footer-inner {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .footer-contact {
                align-items: center;
            }
            .footer-social {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 0.8rem;
            }
            .line-row {
                gap: 6px;
            }
            .uz-line {
                font-size: 0.85rem;
            }
            .fa-line {
                font-size: 0.8rem;
            }
            .avatar-photo {
                width: 30px;
                height: 30px;
            }
            .page-head {
                flex-wrap: wrap;
            }
            .badge {
                width: 36px;
                height: 36px;
                font-size: 0.75rem;
            }
            .hero-scene .hero-photo .hero-name {
                font-size: 0.65rem;
            }
        }

        /* ===== UTILITY ===== */
        .mt-1 {
            margin-top: 0.5rem;
        }
        .mb-1 {
            margin-bottom: 0.5rem;
        }