/* Mudarris AI — landing. Ilova bilan bir xil til: Inter, ko'k brend, yumshoq
   ko'k gradient fon, 20–24px burchakli kartalar, fan belgilari. */
:root {
  --blue: #2563eb; --blue-light: #3b82f6; --blue-dark: #1d4fd7; --blue-50: #eff5ff; --blue-100: #dbe8fe;
  --violet: #7c3aed; --teal: #0d9488;
  --surface: #ffffff; --sunken: #f6f8fc; --line: rgb(15 23 42 / 0.08);
  --strong: #0f172a; --body: #475569; --muted: #64748b; --faint: #94a3b8;
  --logo: #121211; /* logotip qorasi — dizayndagi aniq rang */
  --bg-1: #c6daf6; --bg-2: #dce7f7; --bg-3: #d5e2f0;
  --shadow: 0 12px 40px -12px rgb(30 58 138 / 0.22);
  --r: 22px;
  color-scheme: light;
}
/* Tungi rejim: tizim tanlovi (qo'lda light tanlanmagan bo'lsa) va qo'lda tanlangan dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --blue-50: rgb(59 130 246 / 0.15); --blue-100: rgb(59 130 246 / 0.3);
    --surface: #141c2c; --sunken: #1b2435; --line: rgb(255 255 255 / 0.08);
    --strong: #f1f5f9; --body: #cbd5e1; --muted: #94a3b8; --faint: #64748b;
    --logo: #f1f5f9;
    --bg-1: #0b1322; --bg-2: #101a2e; --bg-3: #0d1526;
    --shadow: 0 12px 40px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  } }
:root[data-theme="dark"] {
    --blue-50: rgb(59 130 246 / 0.15); --blue-100: rgb(59 130 246 / 0.3);
    --surface: #141c2c; --sunken: #1b2435; --line: rgb(255 255 255 / 0.08);
    --strong: #f1f5f9; --body: #cbd5e1; --muted: #94a3b8; --faint: #64748b;
    --logo: #f1f5f9;
    --bg-1: #0b1322; --bg-2: #101a2e; --bg-3: #0d1526;
    --shadow: 0 12px 40px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--body); background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { color: var(--strong); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.big { display: none; } @media (min-width: 760px) { .big { display: inline; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Tugmalar ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--primary { background: linear-gradient(180deg, var(--blue-light), var(--blue-dark)); color: #fff; box-shadow: 0 8px 20px -8px rgb(37 99 235 / .55); }
.btn--primary:hover { box-shadow: 0 12px 26px -8px rgb(37 99 235 / .65); }
.btn--quiet { background: var(--surface); color: var(--strong); border: 1px solid var(--line); }
.btn--quiet:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; isolation: isolate; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--logo); }
.brand__logo { display: block; height: 30px; width: auto; aspect-ratio: 1911 / 417; }
.nav__links { display: none; gap: 26px; margin-inline: auto; font-weight: 600; font-size: 14.5px; color: var(--body); }
.nav__links a:hover { color: var(--blue); }
.nav__actions { display: none; gap: 10px; }
/* Mavzu tugmasi: telefonda hamburger yonida, kompyuterda «Boshlash»dan keyin */
.theme-toggle { margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--strong); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.theme-toggle:hover { background: var(--surface); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-moon { display: none; }
@media (min-width: 900px) { .theme-toggle { margin-left: 2px; } }
.nav__toggle { margin-left: 6px; width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--strong); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 6px; padding: 8px 20px 18px; font-weight: 600; font-size: 16px; }
.mobile-menu[hidden] { display: none; } /* author `display:grid` UA [hidden] ni bosib ketardi */
.mobile-menu a:not(.btn) { padding: 12px 6px; color: var(--strong); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 10px; }
@media (min-width: 900px) { .nav__links, .nav__actions { display: flex; } .nav__toggle, .mobile-menu { display: none !important; } }

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero__inner { display: grid; gap: 40px; align-items: center; position: relative; }
.hero__text { position: relative; z-index: 2; } /* orbitadagi belgilar matn ORQASIDAN o'tadi */
@media (min-width: 900px) { .hero { padding: 84px 0 72px; } .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 24px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow--center { justify-content: center; width: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgb(37 99 235 / .18); }
.shimmer { background: linear-gradient(100deg, var(--blue-dark), var(--blue-light) 30%, var(--violet) 60%, var(--teal) 85%, var(--blue-dark));
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; max-width: 540px; color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.trust li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 7px; }

/* Fon belgilari — butun hero bo'ylab sekin suzadi */
.symbols { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.symbols .symbol { opacity: .12; }
.symbol { position: absolute; font-family: ui-serif, Georgia, serif; font-weight: 600; user-select: none; animation: float 28s ease-in-out infinite; animation-delay: var(--d, 0s); }
.symbol--math { color: var(--blue); } .symbol--phys { color: var(--violet); } .symbol--chem { color: var(--teal); }
@keyframes float { 0% { transform: translate3d(0,0,0) rotate(-6deg); } 50% { transform: translate3d(0,-26px,0) rotate(6deg); } 100% { transform: translate3d(0,0,0) rotate(-6deg); } }

/* 3D sahna */
.stage { position: relative; height: 440px; perspective: 1200px; }
.stage__layer { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; z-index: 0; }
/* WebGL canvas kartadan katta — orbitalar karta atrofida ko'rinadi; .hero overflow:hidden chetini kesadi */
.stage__webgl { position: absolute; inset: -30% -40%; width: 180%; height: 160%; pointer-events: none; z-index: 0; opacity: 0; animation: fade-in 1.4s ease .3s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.stage--3d .stage__layer { display: none; } /* WebGL ishlasa CSS belgilar ortiqcha */
.stage .symbol { opacity: .55; text-shadow: 0 6px 18px rgb(30 58 138 / .15); }
.card3d { position: absolute; inset: 10% 8%; transform-style: preserve-3d; will-change: transform; transition: transform .12s ease-out; z-index: 1; }
.card3d__face { position: absolute; inset: 0; border-radius: 32px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 70%, transparent));
  border: 1px solid color-mix(in srgb, #fff 55%, transparent); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / .6); backdrop-filter: blur(10px);
  display: grid; place-items: center; transform: translateZ(40px); }
/* Tungi rejim: tizim tanlovi (qo'lda light tanlanmagan bo'lsa) va qo'lda tanlangan dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card3d__face { border-color: rgb(255 255 255 / .08); } :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; } }
:root[data-theme="dark"] .card3d__face { border-color: rgb(255 255 255 / .08); } :root[data-theme="dark"] .theme-toggle .icon-sun { display: none; } :root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.card3d__robot { width: 62%; height: auto; filter: drop-shadow(0 18px 30px rgb(30 58 138 / .25)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bubble { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 13px; color: var(--body); box-shadow: 0 10px 24px -10px rgb(30 58 138 / .3); white-space: nowrap; transform: translateZ(90px); animation: bubble 7s ease-in-out infinite; }
.bubble b { color: var(--strong); }
.bubble--1 { left: -6%; top: 16%; } .bubble--2 { right: -8%; top: 44%; animation-delay: 2.3s; } .bubble--3 { left: 6%; bottom: 10%; animation-delay: 4.1s; }
@keyframes bubble { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 899px) { .stage { height: 360px; } .bubble--2 { right: 0; } .bubble--1 { left: 0; } .stage__webgl { inset: -12% -22%; width: 144%; height: 124%; } }

/* ── Bo'limlar ── */
.section { padding: 72px 0; }
.section--soft { background: color-mix(in srgb, var(--surface) 45%, transparent); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.lead { color: var(--body); font-size: 16px; margin-top: 14px; }
.grid { display: grid; gap: 16px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px) perspective(900px) rotateX(1.5deg); box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; } .card p { margin-top: 8px; font-size: 14.5px; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.icon--blue { background: var(--blue-50); } .icon--violet { background: rgb(124 58 237 / .12); } .icon--green { background: rgb(16 185 129 / .14); }
.icon--amber { background: rgb(245 158 11 / .16); } .icon--red { background: rgb(244 63 94 / .13); } .icon--teal { background: rgb(13 148 136 / .14); }

/* Qadamlar */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: q; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; position: relative; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, var(--blue-light), var(--blue-dark)); color: #fff; font-weight: 800; font-size: 17px; }
.steps h3 { margin-top: 16px; } .steps p { margin-top: 6px; font-size: 14.5px; }

/* Tariflar */
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow); }
.plan h3 { font-size: 18px; }
.plan__price { margin-top: 10px; font-size: 15px; color: var(--muted); }
.plan__price b { font-size: 28px; font-weight: 800; color: var(--strong); letter-spacing: -0.02em; margin-right: 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14px; color: var(--body); }
.plan li::before { content: '✓'; color: var(--blue); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { border-color: transparent; isolation: isolate; }
.plan--featured::before { content: ''; position: absolute; inset: -3px; border-radius: 25px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), #2563eb, #7c3aed, #ec4899, #f97316, #facc15, #10b981, #2563eb); animation: spin 6s linear infinite; }
.plan--featured::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); background: var(--surface); z-index: -1; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.plan__badge { position: absolute; top: 18px; right: 18px; background: var(--blue-50); color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }

/* Online dars */
.lesson { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .lesson { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.lesson__price { margin: 22px 0; font-size: 16px; color: var(--muted); }
.lesson__price b { font-size: 34px; font-weight: 800; color: var(--strong); letter-spacing: -0.02em; margin-right: 6px; }
.bonus { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r); color: #fff;
  background: linear-gradient(120deg, #f59e0b, #f97316 45%, #f43f5e); box-shadow: 0 20px 50px -18px rgb(249 115 22 / .55); }
.bonus__icon { width: 56px; height: 56px; border-radius: 50%; background: rgb(255 255 255 / .22); display: grid; place-items: center; font-size: 26px; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.bonus__title { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; } .bonus__title span { font-size: 22px; }
.bonus__note { color: rgb(255 255 255 / .85); font-size: 13.5px; margin-top: 4px; }

/* Savollar */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--strong); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; font-size: 15px; }

/* Yakuniy chaqiriq */
.cta { padding: 40px 0 80px; }
.cta__inner { background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #7c3aed); color: #fff; border-radius: 30px; padding: 48px 28px; text-align: center; display: grid; justify-items: center; gap: 12px; box-shadow: 0 30px 70px -30px rgb(30 58 138 / .6); }
.cta h2 { color: #fff; } .cta p { color: rgb(255 255 255 / .82); font-size: 16px; } .cta .btn { margin-top: 10px; }

/* Oyoq */
.footer { padding: 0 0 40px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer .brand__logo { height: 24px; }
.footer__social { display: flex; gap: 18px; font-weight: 600; } .footer__social a:hover { color: var(--blue); }
.footer__legal { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .symbol, .card3d__robot, .bubble, .shimmer, .plan--featured::before { animation: none; }
  .card3d { transition: none; }
  html { scroll-behavior: auto; }
}

/* Imtihonlar haqida — faktli kartalar (SEO uchun matn, o'quvchi uchun foyda) */
.exams { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .exams { grid-template-columns: 1fr 1fr; } }
.exams__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.exams__card h3 { font-size: 20px; } .exams__card p { margin-top: 10px; font-size: 14.5px; }
.exams__card dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.exams__card dt { color: var(--muted); } .exams__card dd { margin: 0; color: var(--strong); font-weight: 600; }
.exams__badge { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 13px; }

/* Skroll foni (fon.js) — fixed canvas hamma narsaning orqasida, asta paydo bo'ladi */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.bg-canvas--ready { opacity: 1; }
.has-webgl-bg .section--soft { background: color-mix(in srgb, var(--surface) 32%, transparent); }

/* Nav ostidagi skroll chizig'i */
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal)); pointer-events: none; }

/* Paydo bo'lish — main.js sinf qo'yadi, JS yo'q bo'lsa hamma narsa ko'rinib turadi */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal--in { opacity: 1; transform: none; }

/* Sharq allomalari (scholars.js) — fon canvas ustida, kontent orqasida. Hamma element chet
   bandlarda (ism vertikal, yozuvlar 3 ta) va xira — matn o'qilishiga xalaqit bermaydi */
.scholars { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.scholar { position: absolute; inset: 0; visibility: hidden; opacity: 0; will-change: opacity; color: var(--accent, var(--blue)); }
.scholar > * { position: absolute; margin: 0; will-change: transform; transform: translate3d(0, var(--dy, 0px), 0); }
.scholar__name { left: 1.2%; top: 50%; writing-mode: vertical-rl; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0) rotate(180deg); font-style: italic; font-weight: 700; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -.02em; color: var(--strong); opacity: .09; white-space: nowrap; }
.scholar__meta { left: 3%; bottom: 5%; font-family: Inter, system-ui, sans-serif; color: var(--body); opacity: .5; font-size: clamp(11px, .9vw, 13px); max-width: 16vw; line-height: 1.35; }
.scholar__meta b { display: block; font-weight: 800; letter-spacing: .14em; color: var(--accent); margin-bottom: 2px; }
.scholar__arabic { left: 3%; top: 11%; font-size: clamp(26px, 3vw, 44px); line-height: 1.3; opacity: .13; font-family: 'Geeza Pro', 'Noto Naskh Arabic', 'Arabic Typesetting', 'Times New Roman', serif; }
.scholar__note { font-style: italic; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.3; opacity: .32; max-width: 17vw; }
.scholar__sketch { right: 2.5%; top: 50%; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0); width: clamp(120px, 13vw, 200px); opacity: .28; }
.scholar__sketch svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scholar__sketch text { fill: currentColor; stroke: none; font-family: 'Playfair Display', Georgia, serif; font-style: italic; }
.scholar__image { top: 50%; right: 2.5%; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0); width: min(16vw, 240px); height: auto; opacity: .8; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 45%, #000 40%, transparent 100%); }
.scholar--right .scholar__name { left: auto; right: 1.2%; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0); }
.scholar--right .scholar__meta, .scholar--right .scholar__arabic { left: auto; right: 3%; text-align: right; }
.scholar--right .scholar__sketch, .scholar--right .scholar__image { right: auto; left: 2.5%; }
/* Tungi rejim: tizim tanlovi (qo'lda light tanlanmagan bo'lsa) va qo'lda tanlangan dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scholar__name { color: #fff; opacity: .08; } :root:not([data-theme="light"]) .scholar__note { opacity: .4; } :root:not([data-theme="light"]) .scholar__image { mix-blend-mode: screen; } }
:root[data-theme="dark"] .scholar__name { color: #fff; opacity: .08; } :root[data-theme="dark"] .scholar__note { opacity: .4; } :root[data-theme="dark"] .scholar__image { mix-blend-mode: screen; }
@media (max-width: 1099px) { .scholar__note { display: none; } }
@media (max-width: 899px) {
  .scholar__name { font-size: 9vw; opacity: .07; left: auto; right: 1%; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0); }
  .scholar--right .scholar__name { right: auto; left: 1%; transform: translate3d(0, calc(-50% + var(--dy, 0px)), 0) rotate(180deg); }
  .scholar__note, .scholar__meta, .scholar__arabic, .scholar__image { display: none; }
  .scholar__sketch, .scholar--right .scholar__sketch { width: 22vw; top: auto; bottom: 4%; left: auto; right: 3%; transform: translate3d(0, var(--dy, 0px), 0); opacity: .18; }
}

/* Huquqiy sahifalar (privacy.html, delete-account.html) — o'qiladigan matn */
.nav__actions--doim { display: flex; margin-left: auto; }
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-top: 8px; letter-spacing: -0.02em; }
.doc__sana { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc h2 { font-size: 20px; margin-top: 36px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--body); }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.doc a { color: var(--blue); font-weight: 600; }
.doc b { color: var(--strong); }
