/* =====================================================================
   NovaIT — "Sharqona naqshlar × kod"
   Layout: lojuvard tungi fon, girih naqshli bo‘limlar, chap tomonga
   tekislangan sarlavhalar, bento-to‘rlar. Jasur nuqtalar: 3D hero yulduz
   va 3D "maosh shahri"; qolgan joylar sokin.
   ===================================================================== */

/* ---------- Tokenlar (dark-first) ---------- */
:root {
  color-scheme: dark;
  --bg: #07102a;            /* lojuvard tun */
  --bg-2: #0a1636;          /* muqobil bo‘lim */
  --surface: #0f1d44;       /* kartalar */
  --surface-2: #15275a;
  --line: rgba(160, 190, 255, .15);
  --text: #eef2fb;          /* fil suyagi */
  --muted: #a3b3d6;
  --turq: #22c7b8;          /* Registon feruzasi — asosiy aksent */
  --gold: #f4b53f;          /* za’faron oltin */
  --gold-ink: #f4b53f;      /* kichik oltin matn (yorug‘ mavzuda to‘qroq — o‘qilishi uchun) */
  --cobalt: #3b6cff;
  --danger: #ff6b7d;
  --on-accent: #04121f;
  --header-bg: rgba(7, 16, 42, .74);
  --glow-1: rgba(34, 199, 184, .22);
  --glow-2: rgba(244, 181, 63, .14);
  --pattern: .06;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  --show-sun: block;
  --show-moon: none;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Unbounded", sans-serif;
  --font-ar-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1220px;
  --header-h: 74px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eef3fb;          /* Rishton chinnisi */
    --bg-2: #e3ebf8;
    --surface: #ffffff;
    --surface-2: #f3f7fe;
    --line: rgba(14, 40, 100, .13);
    --text: #0a1838;
    --muted: #4b5d85;
    --turq: #07756c;
    --gold: #b97c0c;
    --gold-ink: #8f5d00;
    --cobalt: #2a55e0;
    --danger: #d22a46;
    --on-accent: #ffffff;
    --header-bg: rgba(238, 243, 251, .8);
    --glow-1: rgba(11, 143, 132, .16);
    --glow-2: rgba(185, 124, 12, .12);
    --pattern: .07;
    --shadow: 0 18px 40px -22px rgba(10, 30, 80, .28);
    --shadow-lg: 0 40px 80px -36px rgba(10, 30, 80, .4);
    --show-sun: none;
    --show-moon: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb;
  --bg-2: #e3ebf8;
  --surface: #ffffff;
  --surface-2: #f3f7fe;
  --line: rgba(14, 40, 100, .13);
  --text: #0a1838;
  --muted: #4b5d85;
  --turq: #07756c;
  --gold: #b97c0c;
  --gold-ink: #8f5d00;
  --cobalt: #2a55e0;
  --danger: #d22a46;
  --on-accent: #ffffff;
  --header-bg: rgba(238, 243, 251, .8);
  --glow-1: rgba(11, 143, 132, .16);
  --glow-2: rgba(185, 124, 12, .12);
  --pattern: .07;
  --shadow: 0 18px 40px -22px rgba(10, 30, 80, .28);
  --shadow-lg: 0 40px 80px -36px rgba(10, 30, 80, .4);
  --show-sun: none;
  --show-moon: block;
}

/* Minora balandligi silliq o‘zgarishi uchun */

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar-body); line-height: 1.8; }
html[lang="ar"] * { letter-spacing: 0 !important; }
/* Arabcha: har bir shrift tokenida arab harflari uchun veb-shrift turadi — narx, hafta raqami,
   bosh harf kabi joylar tizim shriftiga (Geeza, Courier…) tushib qolmaydi */
html[lang="ar"] {
  --font-display: "Unbounded", "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Sans Arabic", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* Brauzerning o‘z qismlari ham sayt ranglarida: belgilash, kursor, aylantirish chizig‘i */
html { accent-color: var(--turq); scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
::selection { background: color-mix(in srgb, var(--turq) 32%, transparent); }
input, textarea { caret-color: var(--turq); }
body::before { /* telefon xavfsiz zonasi */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--header-bg);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 8px; }
.lucide { width: 1.2em; height: 1.2em; stroke-width: 2; flex-shrink: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Girih naqshi (rangi tokendan olinadi) */
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--turq);
  opacity: var(--pattern);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0v14.5M40 80v-14.5M0 40h14.5M80 40h-14.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 88px 88px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0v14.5M40 80v-14.5M0 40h14.5M80 40h-14.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 88px 88px repeat;
}

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding-inline: 24px; border-radius: 16px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--turq); color: var(--on-accent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--turq) 55%, #000), 0 18px 30px -14px var(--turq);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 color-mix(in srgb, var(--turq) 55%, #000), 0 22px 34px -14px var(--turq); }
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--turq) 55%, #000), 0 10px 20px -14px var(--turq); }
.btn-ghost { border: 1.5px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn-ghost:active { transform: scale(.98); }
.btn:disabled { cursor: not-allowed; }
.btn-sm { min-height: 42px; padding-inline: 18px; border-radius: 13px; font-size: .92rem; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .2s, color .2s, transform .16s var(--ease-out);
}
.icon-btn:hover { border-color: var(--turq); color: var(--turq); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.i-sun { display: var(--show-sun); }
.i-moon { display: var(--show-moon); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1; letter-spacing: -.01em; }
.logo-text small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1; }
html[lang="ar"] .logo-text small { font-family: var(--font-ar-body); font-size: .72rem; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { padding: 9px 13px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: .93rem; transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--turq); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }
.menu-btn { display: none; }
.menu-btn .i-x { display: none; }
.nav-open .menu-btn .i-menu { display: none; }
.nav-open .menu-btn .i-x { display: block; }

/* Til tanlash */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; height: 42px; padding-inline: 12px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .86rem; font-family: var(--font-mono);
}
.lang-btn:hover { border-color: var(--turq); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility .16s;
}
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 12px; border-radius: 11px; font-weight: 600; text-align: start;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-checked="true"] { color: var(--turq); }
.lang-menu .code { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: 40px 28px; }
.hero::after { /* yorug‘lik dog‘lari */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 45% at 75% 40%, var(--glow-1), transparent 70%),
    radial-gradient(30% 35% at 15% 20%, var(--glow-2), transparent 70%);
}
[dir="rtl"] .hero::after { transform: scaleX(-1); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 2; padding-block: 28px 12px; max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--muted);
}
[dir="rtl"] .badge { padding: 7px 10px 7px 14px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 25%, transparent); animation: pulse 2s infinite; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.06; letter-spacing: -.025em; margin: 16px 0 16px; text-wrap: balance;
}
html[lang="ar"] .hero-title { font-family: var(--font-ar-display); line-height: 1.35; font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.hero-title .l1 { display: block; }
.hero-title .l2 {
  display: block;
  background: linear-gradient(100deg, var(--turq) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.03rem; color: var(--muted); max-width: 54ch; margin: 0 0 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 640px;
  margin-top: 26px; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(10px);
}
.stat { padding: 16px 18px; border-inline-start: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat:nth-child(1) b { color: var(--turq); }
.stat:last-child b { color: var(--gold); }
.stat span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* ---------- Lenta (marquee) ---------- */
.tapes { position: relative; height: 120px; margin-block: 8px 0; overflow: hidden; direction: ltr; }
.tape { position: absolute; left: -5%; width: 110%; padding-block: 14px; overflow: hidden; }
.tape-a { top: 26px; background: var(--turq); color: var(--on-accent); transform: rotate(-2.2deg); z-index: 2; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5); }
.tape-b { top: 34px; background: var(--gold); color: #1d1405; transform: rotate(1.6deg); opacity: .9; }
.tape-track { display: flex; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.tape-b .tape-track { animation-direction: reverse; animation-duration: 60s; }
.tape-track span { display: inline-flex; align-items: center; gap: 36px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.tape-track span::after { content: "✦"; font-size: .9rem; opacity: .7; }

/* ---------- Bo‘limlar ---------- */
.section { padding-block: clamp(52px, 5vw, 72px); position: relative; }
.section-alt { background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
/* Orqa fondagi AI belgilar yomg‘iri: barcha bo‘limlar ortida, bosishga xalaqit bermaydi */
#aiRain { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: -1; pointer-events: none; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px 40px; align-items: end; margin-bottom: 30px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 0; text-wrap: balance;
}
html[lang="ar"] .section-head h2, html[lang="ar"] h3, html[lang="ar"] .contact-info h2 { font-family: var(--font-ar-display); line-height: 1.45; }
.section-head p { color: var(--muted); font-size: .98rem; margin: 0; max-width: 52ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--turq);
}
html[lang="ar"] .eyebrow { font-family: var(--font-ar-body); font-size: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- 3D tilt (umumiy) ---------- */
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
  will-change: transform;
}
.tilt.tilting { transition: transform .08s linear, box-shadow .3s, border-color .3s; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c2, var(--turq)) 22%, transparent), transparent 60%);
}
.tilt:hover::after { opacity: 1; }
.depth-1 { transform: translateZ(26px); }
.depth-2 { transform: translateZ(48px); }

/* ---------- Yosh guruhlari ---------- */
.ages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.age-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.age-card:hover { border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); box-shadow: var(--shadow); }
.age-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.age-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22); }
.age-range {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -.03em;
  color: var(--age-face, var(--c2)); direction: ltr;
  text-shadow: 1px 1px 0 var(--age-side, var(--c1)), 2px 2px 0 var(--age-side, var(--c1)), 3px 3px 0 var(--age-side, var(--c1)), 4px 4px 0 var(--age-side, var(--c1)), 5px 5px 0 color-mix(in srgb, var(--age-side, var(--c1)) 60%, #000), 8px 10px 14px rgba(0, 0, 0, .3);
}
/* Yorug‘ mavzu: raqam yuzi to‘q rangda — oq kartada o‘qiladi */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .age-card { --age-face: var(--c1); --age-side: color-mix(in srgb, var(--c1) 55%, #000); }
}
:root[data-theme="light"] .age-card { --age-face: var(--c1); --age-side: color-mix(in srgb, var(--c1) 55%, #000); }
.age-card h3 { margin: 0; font-size: 1.18rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.age-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.age-tags, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.age-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.age-count { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.link-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: color-mix(in srgb, var(--c1) 58%, var(--text)); font-size: .9rem; white-space: nowrap; }
.link-btn::after { content: ""; position: absolute; inset: -11px -6px; } /* barmoq uchun kengroq maydon */
.link-btn .lucide { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover .lucide { transform: translateX(4px); }
  [dir="rtl"] .link-btn:hover .flip-rtl { transform: scaleX(-1) translateX(4px); }
}

/* ---------- Yo‘nalishlar katalogi ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.toolbar-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 320px; min-width: 0; }
.search .lucide { position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-ctl {
  width: 100%; height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); padding-inline: 18px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search .field-ctl { padding-inline-start: 50px; }
.field-ctl:focus { border-color: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 20%, transparent); }
.select-wrap { position: relative; flex: 0 1 230px; min-width: 180px; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap .lucide { position: absolute; top: 50%; inset-inline-end: 16px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding-inline: 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .16s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--turq) 50%, var(--line)); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-family: var(--font-mono); font-size: .74rem; opacity: .85; }
.chip:active { transform: scale(.97); }
.results-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .93rem; min-height: 32px; }
.reset-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--turq); font-weight: 700; font-size: .9rem; }
.reset-btn::after { content: ""; position: absolute; inset: -10px -6px; }

.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
/* Kurs kartasi: to‘liq 3D muqova, ustida shisha panel */
.course {
  --bg1: #1d2a55; --bg2: #0a1230;
  position: relative; min-width: 0; aspect-ratio: 4 / 4.7; border-radius: 28px; overflow: hidden; isolation: isolate;
  color: #fff; cursor: pointer; animation: cardIn .5s both;
  background: linear-gradient(170deg, var(--bg1), var(--bg2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow);
}
.course:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--shadow-lg); }
.course:has(:focus-visible) { outline: 2px solid var(--turq); outline-offset: 3px; }
.cover-art {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.06) translate(calc((var(--px, .5) - .5) * -18px), calc((var(--py, .5) - .5) * -18px));
  transition: opacity .7s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.cover-art.loaded { opacity: 1; }
.course:hover .cover-art { transform: scale(1.12) translate(calc((var(--px, .5) - .5) * -28px), calc((var(--py, .5) - .5) * -28px)); }
.cover-fallback {
  position: absolute; z-index: 0; top: 10%; inset-inline-end: -4%; width: 60%; aspect-ratio: 1;
  display: grid; place-items: center; color: rgba(255, 255, 255, .16); transform: rotate(-12deg); transition: opacity .5s;
}
.cover-fallback .lucide { width: 100%; height: 100%; stroke-width: 1.2; }
.course.has-art .cover-fallback { opacity: 0; }
.cover-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .55) 64%, rgba(0, 0, 0, .88) 100%);
}
.cover-top { position: absolute; z-index: 2; top: 16px; inset-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.glass {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(6, 12, 30, .46); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.cover-body { position: absolute; z-index: 2; inset-inline: 14px; bottom: 14px; display: grid; gap: 8px; }
/* Matn ostidagi soya matn balandligiga qarab o‘sadi: sarlavha 1 qator bo‘lsa ham, 3 qator bo‘lsa ham
   yorug‘ rasm ustida o‘qiladi */
.cover-body::before {
  content: ""; position: absolute; z-index: -1; inset: -64px -14px -14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 22, 0), rgba(4, 8, 22, .54) 64px, rgba(4, 8, 22, .7));
}
.cover-body h3 {
  margin: 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.18;
  letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
html[lang="ar"] .cover-body h3 { font-family: var(--font-ar-display); line-height: 1.5; }
.cover-desc {
  margin: 0 6px; font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .8);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-meta { margin: 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .74); }
.cover-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cover-meta .lucide { width: 14px; height: 14px; }
.cover-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px;
  padding: 8px; padding-inline-start: 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.cover-bar small { display: block; font-size: .7rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.cover-bar b { display: block; font-family: var(--font-mono); font-size: .98rem; font-weight: 700; color: #ffd27a; direction: ltr; unicode-bidi: isolate; text-align: left; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .cover-bar b { text-align: right; }
.cover-bar.future b { font-family: var(--font-body); font-size: .86rem; color: #fff; direction: inherit; text-align: start; }
html[lang="ar"] .cover-bar.future b { font-family: var(--font-ar-body); }
.go {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: #0a1838; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.course:hover .go { transform: rotate(-45deg); }
[dir="rtl"] .course:hover .go { transform: rotate(45deg); }
.level-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.level-bars i { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.level-bars i:nth-child(1) { height: 5px; } .level-bars i:nth-child(2) { height: 8px; } .level-bars i:nth-child(3) { height: 12px; }
.level-bars i.on { background: #fff; }
@media (min-width: 1181px) {
  .courses:not(.top-courses) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .courses:not(.top-courses) .course { aspect-ratio: 4 / 5.3; border-radius: 24px; }
  .courses:not(.top-courses) .cover-body h3 { font-size: 1.12rem; }
}
@media (max-width: 1180px) { .course { aspect-ratio: 4 / 4; } }
@media (max-width: 680px) { .course { aspect-ratio: 4 / 4.7; } }
.course-ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .25), 0 14px 24px -12px var(--c1);
}
.course-ic .lucide { width: 27px; height: 27px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------- Maosh shahri (CSS 3D) ---------- */
.levels { display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; max-width: 100%; }
.level-btn { padding: 10px 18px; border-radius: 13px; text-align: center; transition: background-color .2s, color .2s, transform .16s var(--ease-out); min-width: 0; }
.level-btn b { display: block; font-weight: 800; font-size: .96rem; }
.level-btn small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.level-btn.active { background: var(--gold); color: #1d1405; }
.level-btn.active small { color: #1d1405; }
.level-btn:active { transform: scale(.98); }

.city-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.city-note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); max-width: 90ch; }

.pick-card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pick-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.pick-head { display: flex; align-items: center; gap: 14px; }
.pick-head .course-ic { width: 48px; height: 48px; border-radius: 14px; }
.pick-head h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.pick-head small { color: var(--muted); font-size: .8rem; }
.pick-amount { margin: 16px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold); line-height: 1.1; direction: ltr; text-align: start; }
html[dir="rtl"] .pick-amount { text-align: end; }
.pick-sub { color: var(--muted); font-size: .86rem; margin: 0 0 14px; }
.pick-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rank-list { list-style: none; margin: 0; padding: 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.rank-list li button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; text-align: start; }
.rank-list li button:hover, .rank-list li button.active { background: var(--surface-2); }
.rank-list .r-num { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.rank-list .r-name { font-size: .88rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .r-bar { grid-column: 2; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rank-list .r-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.rank-list .r-val { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-mono); font-size: .8rem; color: var(--gold-ink); direction: ltr; }

/* ---------- Qadamlar (zinapoya) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.step {
  position: relative; padding: 22px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--turq) 20%, transparent);
}
[dir="rtl"] .step { box-shadow: -10px 10px 0 color-mix(in srgb, var(--turq) 20%, transparent); }
.step:nth-child(1) { margin-top: 66px; }
.step:nth-child(2) { margin-top: 44px; }
.step:nth-child(3) { margin-top: 22px; }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; margin-bottom: 12px;
  color: transparent; -webkit-text-stroke: 1.5px var(--turq);
}
.step:last-child .step-num { color: var(--gold); -webkit-text-stroke: 0; }
.step h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Darslar qanday o‘tadi (to‘lovdan keyin, kabinet suratlari bilan) ---------- */
.study-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.study-card {
  display: grid; align-content: start; gap: 8px; padding: 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--turq) 20%, transparent);
}
[dir="rtl"] .study-card { box-shadow: -10px 10px 0 color-mix(in srgb, var(--turq) 20%, transparent); }
.study-card .step-num, .study-copy .step-num { margin-bottom: 4px; }
.study-card h3, .study-copy h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.study-card > p, .study-copy p { margin: 0; color: var(--muted); }
.study-pay, .study-chat { margin-top: 10px; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.study-pay { display: grid; gap: 8px; }
.study-pay > span { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.study-pay .lucide { width: 16px; height: 16px; flex: none; color: var(--turq); }
.study-pay b { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; background: var(--turq); color: var(--on-accent); font-size: .92rem; }
.study-pay b .lucide { color: inherit; }
.study-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.study-av { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--turq), var(--cobalt)); font: 800 .9rem var(--font-display); }
.study-bubble { margin: 0; max-width: 94%; padding: 12px 14px; border-radius: 16px; border-start-start-radius: 4px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; line-height: 1.65; }
.study-link { display: block; margin-top: 4px; color: var(--turq); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.study-rows { list-style: none; max-width: 920px; margin: 0 auto; padding: 0; display: grid; gap: 36px; }
.study-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 44px; }
.study-row:nth-child(even) { grid-template-columns: auto minmax(0, 1fr); }
.study-row:nth-child(even) .phone { order: -1; }
.study-copy { display: grid; gap: 10px; max-width: 540px; }
.study-copy h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.study-copy p { font-size: .96rem; line-height: 1.7; }
.phone {
  margin: 0; width: 236px; padding: 8px; border-radius: 36px; background: #05070f; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 14px 14px 0 color-mix(in srgb, var(--turq) 22%, transparent), 0 30px 60px rgba(0, 0, 0, .3);
}
[dir="rtl"] .phone { box-shadow: -14px 14px 0 color-mix(in srgb, var(--turq) 22%, transparent), 0 30px 60px rgba(0, 0, 0, .3); }
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.study-player { width: min(500px, 46vw); padding: 8px; border-radius: 22px; background: #05070f; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 14px 14px 0 color-mix(in srgb, var(--turq) 22%, transparent), 0 30px 60px rgba(0, 0, 0, .3); }
[dir="rtl"] .study-player { box-shadow: -14px 14px 0 color-mix(in srgb, var(--turq) 22%, transparent), 0 30px 60px rgba(0, 0, 0, .3); }
.study-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.study-q { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.study-q h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.study-q h3 .lucide { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--turq); }
.study-q p { margin: 0; color: var(--muted); font-size: .94rem; }
.study-note { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }
/* Katta ekranda 03–06 qadamlar 2×2 to‘rda: telefon yonida keng bo‘sh joy qolmaydi */
@media (min-width: 1100px) {
  .study-rows { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .study-row, .study-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) auto; gap: 26px; padding: 22px 24px; border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line);
  }
  .study-row:nth-child(even) .phone { order: 0; }
  .study-row .phone { width: 196px; border-radius: 32px; }
  .study-row .phone img { border-radius: 25px; }
  .study-row-video { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .study-row-video .study-player { width: 100%; }
}
@media (max-width: 900px) {
  .study-intro, .study-faq { grid-template-columns: minmax(0, 1fr); }
  .study-intro { margin-bottom: 30px; }
  .study-rows { gap: 34px; }
  .study-row, .study-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; }
  .study-row:nth-child(even) .phone { order: 0; }
  .study-copy { max-width: none; justify-self: stretch; }
  .phone { width: min(236px, 66vw); }
  .study-player { width: 100%; max-width: 520px; padding: 6px; border-radius: 18px; }
  .study-faq { margin-top: 32px; }
}

/* ---------- Video dars oynasi va qulflangan video (kabinet va bosh sahifa; HTML: assets/js/video-lock.js) ---------- */
.cab-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; }
.cab-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Qulflangan video: video pleyer ko‘rinishi — yozib olingan dars kadri (kod muharriri, slayd,
   o‘qituvchi kamerasi) biroz xira; o‘ynatish tugmasi o‘rnida qulf, pastda pleyer boshqaruvi */
.vlock { isolation: isolate; container-type: inline-size; background: #0a1020; }
.vl-frame { position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 24%, #0a1020), #0a1020 70%); filter: blur(2.5px) saturate(1.1); transform: scale(1.02); }
.vl-ed { position: absolute; top: 9%; bottom: 21%; inset-inline-start: 4%; width: 54%; display: grid; align-content: start; gap: max(6px, 1.5cqi); padding: max(22px, 4.5cqi) 5% 4%; border-radius: 10px; background: #121b31; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.vl-ed::before { content: ""; position: absolute; top: max(8px, 1.6cqi); inset-inline-start: 4%; width: 36px; height: 8px; background: radial-gradient(circle at 4px 4px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 18px 4px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 32px 4px, #28c840 3.5px, transparent 4px); }
.vl-ed i { display: block; height: max(6px, 1.3cqi); width: var(--w); margin-inline-start: calc(var(--x) * 7%); border-radius: 4px; }
.vl-ed .k { background: #c792ea; }
.vl-ed .s { background: #82aaff; }
.vl-ed .f { background: #ffcb6b; }
.vl-ed .n { background: #c3e88d; }
.vl-ed .m { background: rgba(255, 255, 255, .3); }
.vl-slide { position: absolute; top: 9%; bottom: 21%; inset-inline-end: 4%; width: 34%; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.vl-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vl-slide b { position: absolute; inset-inline: 8%; bottom: 8%; color: #fff; font: 800 max(.68rem, 1.8cqi)/1.25 var(--font-display); text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
html[lang="ar"] .vl-slide b { font-family: var(--font-ar-display); line-height: 1.6; }
.vl-cam { position: absolute; top: 13%; inset-inline-end: 6%; width: 11%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, .8); background: radial-gradient(circle at 50% 35%, #46577c, #1a2338); border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.vl-cam .lucide { width: 55%; height: 55%; }
.vlock::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 24%, transparent 60%, rgba(0, 0, 0, .75)), radial-gradient(circle at 50% 50%, rgba(4, 10, 24, .62), rgba(4, 10, 24, .14) 68%); }
.vl-top { position: absolute; top: 0; inset-inline: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #fff; font-size: .86rem; font-weight: 700; }
.vl-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-top b { flex: none; padding: 2px 7px; border-radius: 6px; font: 800 .7rem var(--font-mono); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.vl-lock { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 44px 24px 60px; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .65); }
.vl-badge { width: 72px; height: 72px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 50%; color: #0b1222; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 14px 36px rgba(0, 0, 0, .45); text-shadow: none; }
.vl-badge .lucide { width: 30px; height: 30px; }
.vl-lock b { font: 800 clamp(1.05rem, 2.6vw, 1.4rem)/1.3 var(--font-display); text-wrap: balance; }
html[lang="ar"] .vl-lock b { font-family: var(--font-ar-display); line-height: 1.6; }
.vl-lock p { margin: 0; max-width: 44ch; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.vl-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; gap: 8px; padding: 0 14px 10px; color: #fff; }
.vl-track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.vl-track span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 22%; border-radius: inherit; background: rgba(255, 255, 255, .45); }
.vl-track::before { content: ""; position: absolute; z-index: 1; top: 50%; inset-inline-start: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--turq); transform: translateY(-50%); }
.vl-ctl { display: flex; align-items: center; gap: 16px; font: 700 .8rem var(--font-mono); }
.vl-ctl .lucide { width: 20px; height: 20px; flex: none; }
.vl-ctl em { flex: 1; }
@media (max-width: 640px) {
  .vlock { aspect-ratio: 4 / 3; }
  .vl-badge { width: 56px; height: 56px; margin-bottom: 4px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .16), 0 12px 30px rgba(0, 0, 0, .45); }
  .vl-badge .lucide { width: 24px; height: 24px; }
  .vl-lock { gap: 4px; padding: 40px 14px 54px; }
  .vl-lock p { font-size: .82rem; }
  .vl-top { padding: 10px 12px; font-size: .78rem; }
  .vl-ctl { gap: 12px; }
  .vl-ctl .lucide { width: 18px; height: 18px; }
}

/* ---------- Afzalliklar (bento + 3D kub) ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: 18px; }
.bento-cube {
  grid-row: span 3; position: relative; padding: 30px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cobalt) 30%, var(--surface)), var(--surface) 70%);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 460px;
}
.bento-cube h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.bento-cube p { margin: 0; color: var(--muted); }
.cube-scene { width: 200px; height: 200px; margin: 52px auto 66px; perspective: 1000px; touch-action: none; cursor: grab; }
.cube-scene:active { cursor: grabbing; }
.cube { --cx: -22deg; --cy: 35deg; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--cx)) rotateY(var(--cy)); }
.cube-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 18px; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: inset 0 0 40px rgba(0, 0, 0, .2);
}
.cube-face .lucide { width: 46px; height: 46px; stroke-width: 1.6; }
.cube-face:nth-child(1) { transform: translateZ(100px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }
.feature { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: var(--turq); background: color-mix(in srgb, var(--turq) 13%, transparent); }
.feature:nth-child(3n) .feature-ic { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Fikrlar ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tcard blockquote::before {
  content: "“"; float: right; float: inline-end; height: 2.3rem; margin: -14px -4px 0 12px; margin-inline: 12px -4px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--c2); opacity: .35;
}
[dir="rtl"] .tcard blockquote::before { float: left; float: inline-end; }
.tcard blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; flex: 1; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.person b { display: block; }
.person small { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.faq-wrap .section-head { grid-template-columns: 1fr; margin: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding-inline: 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--turq) 50%, var(--line)); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; font-weight: 800; font-size: .98rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .lucide { transition: transform .3s; color: var(--muted); }
.faq details[open] summary .lucide { transform: rotate(45deg); color: var(--turq); }
.faq details p { margin: 0; padding-bottom: 20px; color: var(--muted); }
.faq .faq-rich { padding-bottom: 20px; color: var(--muted); }
.faq .faq-rich p { padding: 0; margin: 0 0 12px; }
.faq .faq-rich p:last-child { margin: 0; color: var(--text); font-weight: 600; }
.faq .faq-rich ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.faq .faq-rich li { position: relative; padding-inline-start: 24px; line-height: 1.55; }
.faq .faq-box {
  margin: 4px 0 16px; padding: 14px 16px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 9%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
}
.faq .faq-box h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; font-weight: 800; color: var(--gold-ink); }
.faq .faq-box h5 .lucide { width: 18px; height: 18px; }
.faq .faq-box ul { margin: 0; }
.faq .faq-box li { color: var(--text); }
.faq .faq-box li::before { background: var(--gold) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent) !important; }
.faq .faq-rich li::before { content: ""; position: absolute; inset-inline-start: 5px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turq) 22%, transparent); }

/* ---------- Aloqa ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px; align-items: stretch; }
.contact-info {
  position: relative; padding: 40px; border-radius: 28px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(150deg, #0d2a6b 0%, #0b5c78 55%, #0f8f84 100%);
}
.contact-info::after {
  content: ""; position: absolute; width: 340px; height: 340px; inset-inline-end: -110px; bottom: -120px; z-index: -1;
  background: conic-gradient(from 22.5deg, transparent 0 12.5%, rgba(255, 255, 255, .07) 0 25%, transparent 0 37.5%, rgba(255, 255, 255, .07) 0 50%, transparent 0 62.5%, rgba(255, 255, 255, .07) 0 75%, transparent 0 87.5%, rgba(255, 255, 255, .07) 0);
  clip-path: polygon(50% 0, 63% 30%, 100% 50%, 63% 70%, 50% 100%, 37% 70%, 0 50%, 37% 30%);
  animation: spin 40s linear infinite;
}
.contact-info .eyebrow { color: #9ff3ea; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin: 10px 0 10px; letter-spacing: -.02em; }
.contact-info > p { opacity: .88; margin: 0 0 20px; max-width: 44ch; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; opacity: .75; font-size: .8rem; }
.info-list b { font-weight: 700; }
.form { padding: 34px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-weight: 700; font-size: .9rem; }
.form .field-ctl { background: var(--bg); height: 52px; border-radius: 14px; }
.form .select-wrap { flex: none; min-width: 0; }
.field.invalid .field-ctl { border-color: var(--danger); }
.err { display: none; font-size: .8rem; color: var(--danger); font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field.invalid .err { display: block; }
.lang-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lang-pick label { position: relative; }
.lang-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lang-pick span { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 13px; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; background: var(--bg); }
.lang-pick input:checked + span { border-color: var(--turq); background: color-mix(in srgb, var(--turq) 14%, var(--bg)); color: var(--turq); }
.lang-pick input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
.form .btn { grid-column: 1 / -1; min-height: 56px; margin-top: 6px; }
.form-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- “Tanlashga yordam bering” tugmasi va yordamchi ---------- */
.head-side { display: grid; gap: 18px; justify-items: start; }
.help-btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 28px 8px 8px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--text) 55%, var(--bg)), 0 22px 36px -18px rgba(0, 0, 0, .55);
  transition: transform .2s, box-shadow .2s;
}
[dir="rtl"] .help-btn { padding: 8px 8px 8px 28px; }
@media (hover: hover) and (pointer: fine) { .help-btn:hover { transform: translateY(-2px); } }
.help-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--text) 55%, var(--bg)), 0 10px 20px -14px rgba(0, 0, 0, .5); }
.help-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--turq); color: var(--on-accent); flex-shrink: 0; }
.help-btn:hover .help-ic .lucide { transform: rotate(45deg); }
.help-ic .lucide { transition: transform .4s; }

.helper-box { max-width: 680px; }
.helper-head { display: flex; align-items: center; gap: 14px; padding: 24px 28px 0; }
.helper-head .help-ic { width: 46px; height: 46px; }
.helper-head h3 { margin: 0; flex: 1; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
html[lang="ar"] .helper-head h3 { font-family: var(--font-ar-display); }
.helper-head .modal-close { position: static; background: var(--surface-2); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }
.helper-head .modal-close:hover { background: color-mix(in srgb, var(--text) 12%, var(--surface-2)); }
.helper-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 20px 28px 0; }
.helper-progress i { height: 6px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.helper-progress i.on { background: var(--turq); }
.helper-body { padding: 18px 28px 28px; }
.helper-step { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.helper-q { margin: 6px 0 18px; font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-align: start;
  background: var(--surface-2); border: 1.5px solid var(--line); font-weight: 700; font-size: .98rem; min-height: 64px;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.opt:hover { border-color: var(--turq); }
@media (hover: hover) and (pointer: fine) { .opt:hover { transform: translateY(-2px); } }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--turq); background: color-mix(in srgb, var(--turq) 14%, var(--surface-2)); }
.opt .oi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--c1, var(--cobalt)), var(--c2, var(--turq))); }
.opt small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.helper-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.helper-nav .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--muted); }
.helper-nav .back:hover { color: var(--text); }
.recs { display: grid; gap: 12px; }
.rec { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px; padding-inline-end: 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.rec-thumb { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .7); background: linear-gradient(160deg, var(--bg1), var(--bg2)); }
.rec-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-thumb .lucide { width: 40px; height: 40px; }
.rec h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.rec .best { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--gold); color: #1d1405; }
.rec .meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rec .meta b { font-family: var(--font-mono); color: var(--gold-ink); direction: ltr; unicode-bidi: isolate; }
.rec .go { width: 42px; height: 42px; background: var(--text); color: var(--bg); }
.helper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.helper-actions .btn { flex: 1 1 200px; }
@media (max-width: 680px) {
  .help-btn { width: 100%; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .helper-head, .helper-progress, .helper-body { padding-inline: 20px; }
  .rec { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .rec-thumb { width: 72px; height: 72px; }
}

/* ---------- Natija bloki: 50 000+ ---------- */
.proof { padding-block: 56px 0; }
.proof-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 36px;
  padding: 22px 30px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--turq) 15%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--gold) 13%, var(--surface)));
}
.proof-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.4vw, 3.3rem); line-height: 1; letter-spacing: -.03em;
  color: var(--turq); white-space: nowrap;
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--turq) 60%, #000), 2px 2px 0 color-mix(in srgb, var(--turq) 60%, #000), 3px 3px 0 color-mix(in srgb, var(--turq) 60%, #000), 4px 4px 0 color-mix(in srgb, var(--turq) 45%, #000), 8px 10px 16px rgba(0, 0, 0, .25);
}
.proof-text { margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 800; line-height: 1.35; max-width: 32ch; text-wrap: balance; }
html[lang="ar"] .proof-text { font-family: var(--font-ar-display); font-weight: 700; }
.proof-side { display: flex; align-items: center; gap: 18px; }
.avatars { display: flex; }
.avatars span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 3px solid var(--surface); margin-inline-start: -12px;
}
.avatars span:first-child { margin-inline-start: 0; }
.avatars .lucide { width: 18px; height: 18px; }

/* ---------- Afzalliklarimiz bloki ---------- */
.adv { padding-block: 20px 0; }
.adv-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 40px;
  padding: 22px 30px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--turq) 12%, var(--surface)));
}
.adv-title {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -.02em;
  color: var(--gold);
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--gold) 55%, #000), 2px 2px 0 color-mix(in srgb, var(--gold) 55%, #000), 3px 3px 0 color-mix(in srgb, var(--gold) 45%, #000), 6px 8px 14px rgba(0, 0, 0, .22);
}
html[lang="ar"] .adv-title { font-family: var(--font-ar-display); line-height: 1.4; }
.adv-title .lucide { width: .85em; height: .85em; filter: drop-shadow(2px 2px 0 color-mix(in srgb, var(--gold) 50%, #000)); }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adv-list li { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; min-width: 0; background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); }
.adv-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.adv-list b { display: block; font-weight: 800; margin-bottom: 3px; }
.adv-list p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 1000px) { .adv-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .adv-inner { padding: 24px 22px; }
  .adv-list { grid-template-columns: minmax(0, 1fr); }
  .adv-list li { flex-direction: row; }
}

/* ---------- Ekspert-kurator ---------- */
.curator-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.curator-copy h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; text-wrap: balance;
}
html[lang="ar"] .curator-copy h2 { font-family: var(--font-ar-display); line-height: 1.45; }
.cur-lead { color: var(--muted); font-size: .98rem; margin: 0 0 20px; max-width: 56ch; }
.exp-badge {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 18px;
  padding: 16px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; max-width: 460px;
}
.exp-num {
  grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: .9; color: var(--gold);
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--gold) 55%, #000), 2px 2px 0 color-mix(in srgb, var(--gold) 55%, #000), 3px 3px 0 color-mix(in srgb, var(--gold) 55%, #000), 4px 4px 0 color-mix(in srgb, var(--gold) 40%, #000), 8px 10px 14px rgba(0, 0, 0, .25);
}
.exp-badge b { font-size: 1.15rem; font-weight: 800; align-self: end; }
.exp-badge small { color: var(--muted); font-size: .86rem; line-height: 1.4; align-self: start; }
.cur-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cur-points li { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cur-points .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: var(--turq); background: color-mix(in srgb, var(--turq) 13%, transparent); }
.cur-points li:nth-child(2n) .ic { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.cur-points h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.cur-points p { margin: 0; color: var(--muted); font-size: .9rem; }

.review-stage { position: relative; perspective: 1400px; padding: 34px 12px 12px; }
/* Qiyshaytirilgan kartalar to‘dasi planshetda ekran chetidan chiqib, sahifani yonga suradi */
#curator { overflow-x: clip; }
.review-ghost { position: absolute; inset: 34px 12px 12px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.review-ghost.g1 { transform: translateY(-16px) rotate(-2.5deg) scale(.96); opacity: .75; }
.review-ghost.g2 { transform: translateY(-30px) rotate(2.5deg) scale(.92); opacity: .45; }
.review-card { position: relative; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); --c2: var(--turq); }
.rv-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rv-file { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--turq); background: color-mix(in srgb, var(--turq) 14%, transparent); flex-shrink: 0; }
.rv-head b { flex: 1; min-width: 0; font-weight: 800; }
.rv-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--text); background: color-mix(in srgb, #2fb36b 18%, transparent); white-space: nowrap; }
.rv-status .lucide { color: #2fb36b; width: 16px; height: 16px; }
.rv-code {
  margin: 16px 20px 0; padding: 14px 16px; border-radius: 14px; background: #0b1430; color: #cdd8f5;
  font: 500 .8rem/1.75 var(--font-mono); direction: ltr; text-align: left; overflow-x: auto; white-space: pre;
}
.rv-code .hl { display: inline-block; min-width: calc(100% + 32px); margin-inline: -16px; padding-inline: 13px 16px; background: rgba(244, 181, 63, .14); border-left: 3px solid #f4b53f; }
.tk-c { color: #8090b8; } .tk-k { color: #c792ea; } .tk-s { color: #c3e88d; } .tk-f { color: #82aaff; }
.rv-list { list-style: none; margin: 0; padding: 16px 20px; display: grid; gap: 8px; }
.rv-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; line-height: 1.5; }
.rv-list .lucide { width: 18px; height: 18px; margin-top: 2px; }
.rv-list .good .lucide { color: #2fb36b; }
.rv-list .add .lucide { color: var(--turq); }
.rv-list .boost .lucide { color: var(--gold); }
.rv-list .explain { background: color-mix(in srgb, var(--cobalt) 12%, var(--surface-2)); }
.rv-list .explain .lucide { color: var(--cobalt); }
.rv-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px 18px; border-top: 1px dashed var(--line); }
.rv-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--turq), var(--cobalt)); flex-shrink: 0; }
.rv-who { flex: 1; min-width: 0; }
.rv-who b { display: block; font-size: .95rem; }
.rv-who small { color: var(--muted); font-size: .8rem; }
.rv-score { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--gold-ink); }

@media (max-width: 1000px) {
  .curator-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .proof-inner { grid-template-columns: auto minmax(0, 1fr); }
  .proof-side { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 680px) {
  .proof { padding-block: 40px 0; }
  .proof-inner { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; gap: 12px; }
  .cur-points { grid-template-columns: minmax(0, 1fr); }
  .review-stage { padding-inline: 0; }
  .review-ghost { inset-inline: 0; }
  .exp-num { font-size: 3.4rem; }
}

/* ---------- Footer ---------- */
.footer { padding-block: 64px 28px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer p { color: var(--muted); font-size: .93rem; margin: 16px 0 0; max-width: 40ch; }
.footer h4 { margin: 0 0 16px; font-size: .95rem; font-weight: 800; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a, .footer ul button { color: var(--muted); font-size: .92rem; text-align: start; }
.footer ul a:hover, .footer ul button:hover { color: var(--turq); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .86rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); visibility: hidden; opacity: 0; transition: opacity .18s, visibility .18s; }
.modal.open { visibility: visible; opacity: 1; transition-duration: .25s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 24, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-box {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateX(8deg) translateY(30px) scale(.97); transform-origin: 50% 0; transition: transform .18s var(--ease-out);
}
.modal.open .modal-box { transform: none; transition-duration: .4s; }
.modal-hero {
  position: relative; padding: 120px 32px 26px; color: #fff; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .42) 38%, rgba(0, 0, 0, .8) 100%),
    var(--art, none) center 30% / cover no-repeat,
    linear-gradient(160deg, var(--bg1, var(--c1)), var(--bg2, #000));
}
.modal-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0v14.5M40 80v-14.5M0 40h14.5M80 40h-14.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 70px 70px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0v14.5M40 80v-14.5M0 40h14.5M80 40h-14.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 70px 70px repeat; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 13px; background: rgba(6, 12, 30, .5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, transform .16s var(--ease-out); }
.modal-close:active { transform: scale(.94); }
.modal-close:hover { background: rgba(6, 12, 30, .72); }
.modal-hero .course-ic { background: rgba(255, 255, 255, .18); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); margin-bottom: 16px; }
.modal-cat { display: inline-block; font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(6, 12, 30, .46); margin-bottom: 10px; }
.modal-hero h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; padding-inline-end: 50px; }
html[lang="ar"] .modal-hero h3 { font-family: var(--font-ar-display); }
.modal-hero p { margin: 0; opacity: .9; max-width: 60ch; }
.modal-body { padding: 28px 32px 32px; display: grid; gap: 28px; }
.modal-body h4 { margin: 0 0 14px; font-size: .78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--turq); }
html[lang="ar"] .modal-body h4 { font-family: var(--font-ar-body); font-size: .95rem; }
.mentor { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.mentor-photo {
  position: relative; width: 92px; height: 92px; border-radius: 26px; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 14px 26px -14px var(--c1);
}
.mentor-photo .lucide { width: 42px; height: 42px; stroke-width: 1.6; }
.mentor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mentor-info { min-width: 0; }
.mentor-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--turq); background: color-mix(in srgb, var(--turq) 14%, transparent); }
.mentor-badge .lucide { width: 14px; height: 14px; }
.mentor h5 { margin: 8px 0 2px; font-size: 1.12rem; font-weight: 800; }
.mentor-role { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; color: var(--muted); }
.mentor-bio { margin: 8px 0 0; font-size: .9rem; line-height: 1.55; }
@media (max-width: 680px) {
  .mentor { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .mentor-photo { width: 72px; height: 72px; border-radius: 20px; }
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.fact small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 3px; }
.fact b { font-size: .93rem; }

.sal-chart { display: grid; gap: 12px; }
.sal-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px; align-items: center; gap: 12px; }
.sal-row > span:first-child { font-weight: 800; font-size: .88rem; }
.sal-track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%), var(--surface-2); }
.sal-fill { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c1) 50%, #000); transform-origin: left; animation: growX .8s cubic-bezier(.2, .9, .25, 1) both; }
[dir="rtl"] .sal-fill { transform-origin: right; }
.sal-val { font-family: var(--font-mono); font-size: .84rem; font-weight: 700; direction: ltr; text-align: end; color: var(--gold-ink); }
[dir="rtl"] .sal-val { text-align: start; }
.sal-axis { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px; gap: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.sal-axis div { display: flex; justify-content: space-between; direction: ltr; }
[dir="rtl"] .sal-axis div { flex-direction: row-reverse; }
.remote-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.remote-box span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.remote-box b { font-family: var(--font-display); color: var(--gold-ink); font-size: 1.15rem; direction: ltr; }
.sal-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: mod; }
.modules li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); counter-increment: mod; font-size: .93rem; font-weight: 600; min-width: 0; }
.modules li::before { content: counter(mod, decimal-leading-zero); flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
/* Haftalik o‘quv reja */
.plan-sum { margin: -4px 0 12px; color: var(--muted); font-size: .88rem; }
.plan { display: grid; gap: 10px; }
.plan-mod { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s; }
.plan-mod[open] { border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); }
.plan-mod summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: .95rem; }
.plan-mod summary::-webkit-details-marker { display: none; }
.pm-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .82rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.pm-name { flex: 1; min-width: 0; }
.pm-range { flex-shrink: 0; font-size: .76rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pm-chev { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.plan-mod[open] .pm-chev { transform: rotate(180deg); }
.plan-weeks { list-style: none; margin: 0; padding: 0 14px 14px; display: grid; gap: 8px; }
.pw { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pw-num { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: color-mix(in srgb, var(--c1) 50%, var(--text)); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.pw-head b { font-size: .93rem; }
.pw ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 3px; }
.pw-prac { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .86rem; }
.pw-prac .lucide { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pm-chev { transition: none; } }
.project-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--turq) 9%, transparent); border: 1px solid color-mix(in srgb, var(--turq) 30%, transparent); }
.project-box .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--turq); color: var(--on-accent); flex-shrink: 0; }
.project-box small { display: block; color: var(--muted); font-size: .8rem; }
.project-box b { font-size: 1rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .84rem; direction: ltr; }
.role-chip .lucide { width: 15px; height: 15px; color: var(--turq); }
.path-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.path-list button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 13px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; background: var(--surface-2); }
.path-list button:hover { border-color: var(--turq); color: var(--turq); }
.modal-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-cta .btn { flex: 1 1 240px; }
body.modal-open { overflow: hidden; }

/* ---------- Toast, yuqoriga tugmasi ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; max-width: calc(100% - 32px);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { transform: translate(-50%, 0); }
.toast .lucide { color: var(--turq); }
.to-top {
  position: fixed; bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); inset-inline-end: max(24px, calc(env(safe-area-inset-right, 0px) + 16px)); z-index: 40;
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--gold); color: #1d1405; box-shadow: 0 5px 0 color-mix(in srgb, var(--gold) 55%, #000), var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top.show:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--gold) 55%, #000), var(--shadow); }

/* ---------- Animatsiyalar ---------- */
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--turq) 0%, transparent); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1180px) {
  .nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); inset-inline: 0; bottom: 0; z-index: 49;
    flex-direction: column; gap: 4px; margin: 0;
    padding: 20px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 15px 16px; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .ages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 24px 8px; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .city-wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .step:nth-child(n) { margin-top: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-cube { grid-row: auto; grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
  .bento-cube .cube-scene { margin: 66px 76px; flex-shrink: 0; }
  .testimonials { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-wrap .section-head { position: static; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .section { padding-block: 72px; }
  .header-cta { display: none; }
  .header-inner { gap: 10px; }
  .icon-btn, .lang-btn { width: 38px; height: 38px; border-radius: 12px; }
  .lang-btn { width: auto; padding-inline: 9px; }
  .logo-text small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 1.2rem; }
  .stat span { font-size: .72rem; }
  .ages-grid, .courses, .steps, .testimonials { grid-template-columns: minmax(0, 1fr); }
  .levels { display: grid; width: 100%; }
  .level-btn { padding: 9px 6px; }
  .level-btn small { white-space: normal; line-height: 1.25; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cube { flex-direction: column; text-align: center; }
  .bento-cube .cube-scene { margin: 26px auto 10px; width: 160px; height: 160px; }
  .cube-face:nth-child(1) { transform: translateZ(80px); }
  .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(80px); }
  .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(80px); }
  .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(80px); }
  .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(80px); }
  .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(80px); }
  .form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .contact-info { padding: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 0; place-items: end center; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 94dvh; }
  .modal-hero { padding: 96px 20px 22px; }
  .modal-body { padding: 22px 20px 28px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules, .two-col { grid-template-columns: minmax(0, 1fr); }
  .sal-row, .sal-axis { grid-template-columns: 62px minmax(0, 1fr) 104px; gap: 8px; }
  .sal-val { font-size: .76rem; }
  .tapes { height: 100px; }
  .tape-track span { font-size: .9rem; }
}
@media (max-width: 400px) {
  .logo { gap: 8px; }
  .logo-text b { font-size: 1rem; }
  .header-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { height: 36px; padding-inline: 8px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tilt { transform: none !important; }
}

/* =====================================================================
   MOBIL: ixcham ko‘rinish (faqat telefon, ≤680px). Kompyuterga ta’sir qilmaydi.
   ===================================================================== */
@media (max-width: 680px) {
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 20px; gap: 10px; }
  .section-head h2, .curator-copy h2 { font-size: 1.5rem; margin-top: 10px; }
  .section-head p, .cur-lead { font-size: .92rem; }
  .eyebrow { font-size: .7rem; }

  /* Bosh ekran */
  .hero { padding-block: 8px 14px; }
  .badge { font-size: .74rem; }
  .hero-title { font-size: 1.95rem; margin: 12px 0 10px; }
  html[lang="ar"] .hero-title { font-size: 1.75rem; }
  .lead { font-size: .95rem; margin-bottom: 16px; }
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn { flex: 1 1 auto; min-height: 46px; padding-inline: 14px; font-size: .9rem; }
  .stats { margin-top: 18px; }

  /* Lentalar */
  .tapes { height: 66px; }
  .tape { padding-block: 8px; }
  .tape-a { top: 14px; } .tape-b { top: 20px; }
  .tape-track, .tape-track span { gap: 20px; }
  .tape-track span { font-size: .76rem; }

  /* 50 000+ va Afzalliklarimiz */
  .proof { padding-block: 20px 0; }
  .proof-inner { padding: 18px; gap: 10px; border-radius: 22px; }
  .proof-num { font-size: 2.3rem; }
  .proof-text { font-size: .98rem; }
  .avatars span { width: 34px; height: 34px; }
  .adv { padding-block: 10px 0; }
  .adv-inner { padding: 18px; gap: 12px; border-radius: 22px; }
  .adv-title { font-size: 1.45rem; }
  .adv-list { gap: 8px; }
  .adv-list li { padding: 10px 12px; gap: 10px; }
  .adv-ic { width: 36px; height: 36px; border-radius: 11px; }
  .adv-ic .lucide { width: 18px; height: 18px; }
  .adv-list b { font-size: .9rem; }
  .adv-list p { font-size: .8rem; }

  /* Yosh guruhlari: 2 ustun */
  .ages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .age-card { padding: 14px; gap: 8px; border-radius: 18px; }
  .age-ic { width: 32px; height: 32px; border-radius: 10px; }
  .age-ic .lucide { width: 16px; height: 16px; }
  .age-range { font-size: 1.4rem; }
  .age-card h3 { font-size: .9rem; overflow-wrap: anywhere; hyphens: auto; }
  .age-card p { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .age-tags { display: none; }
  .age-foot { padding-top: 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .age-count { font-size: .72rem; }
  .link-btn { font-size: .8rem; }

  /* Katalog: filtrlar */
  .toolbar { gap: 10px; margin-bottom: 14px; }
  .toolbar-row { gap: 8px; }
  .search { flex-basis: 100%; }
  .toolbar-row .select-wrap { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .field-ctl { height: 46px; border-radius: 13px; font-size: .9rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { min-height: 36px; padding-inline: 12px; font-size: .82rem; white-space: nowrap; flex-shrink: 0; }
  .results-info { font-size: .82rem; min-height: 0; }
  .head-side { gap: 12px; }
  .help-btn { min-height: 50px; font-size: .95rem; }
  .help-ic { width: 36px; height: 36px; }

  /* Kurs kartalari: 2 ustun, ixcham */
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .course { aspect-ratio: auto; height: 230px; border-radius: 20px; }
  .cover-top { top: 10px; inset-inline: 10px; }
  .cover-top .glass { font-size: .64rem; padding: 4px 8px; }
  .cover-top .glass:last-child { display: none; }
  .cover-body { inset-inline: 8px; bottom: 8px; gap: 6px; }
  .cover-body h3 { font-size: .92rem; line-height: 1.22; margin: 0 4px; }
  html[lang="ar"] .cover-body h3 { font-size: .88rem; line-height: 1.45; }
  .cover-desc, .cover-meta { display: none; }
  .cover-bar { gap: 6px; padding: 6px; padding-inline-start: 10px; border-radius: 13px; }
  .cover-bar small { font-size: .56rem; line-height: 1.2; }
  .cover-bar b, .cover-bar.future b { font-size: .7rem; line-height: 1.25; }
  .go { width: 30px; height: 30px; border-radius: 9px; }
  .go .lucide { width: 16px; height: 16px; }
  .cover-fallback { width: 70%; }

  /* Maosh shahri */
  .levels { margin-bottom: 12px; }
  .level-btn { padding: 7px 4px; }
  .level-btn b { font-size: .85rem; }
  .level-btn small { font-size: .62rem; }
  .city-wrap { gap: 12px; }
  .pick-card { padding: 16px; }
  .pick-amount { font-size: 1.5rem; margin: 10px 0 2px; }
  .rank-list { max-height: 320px; }

  /* Qadamlar: 2 ustun */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .step { padding: 14px; box-shadow: 5px 5px 0 color-mix(in srgb, var(--turq) 20%, transparent); }
  [dir="rtl"] .step { box-shadow: -5px 5px 0 color-mix(in srgb, var(--turq) 20%, transparent); }
  .step-num { font-size: 1.8rem; margin-bottom: 8px; }
  .step h3 { font-size: .92rem; margin-bottom: 4px; }
  .step p { font-size: .78rem; }

  /* Ekspert-kurator */
  .curator-wrap { gap: 20px; }
  .exp-badge { padding: 12px 16px; margin-bottom: 14px; }
  .exp-num { font-size: 2.8rem; }
  .cur-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cur-points li { padding: 12px; }
  .cur-points .ic { width: 32px; height: 32px; margin-bottom: 8px; }
  .cur-points h3 { font-size: .86rem; }
  .cur-points p { font-size: .76rem; }
  .review-stage { padding-top: 22px; }
  .rv-head { padding: 12px 14px; }
  .rv-code { margin: 12px 14px 0; font-size: .7rem; }
  .rv-list { padding: 12px 14px; gap: 6px; }
  .rv-list li { padding: 8px 10px; font-size: .78rem; }
  .rv-foot { padding: 10px 14px 14px; }

  /* Nega aynan biz: 2 ustun + kichik kub */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-cube { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: start; gap: 12px; padding: 16px; border-radius: 20px; }
  .bento-cube h3 { font-size: 1.05rem; }
  .bento-cube p { font-size: .8rem; }
  .bento-cube .cube-scene { width: 104px; height: 104px; margin: 0; flex-shrink: 0; }
  .cube-face { font-size: .66rem; gap: 4px; border-radius: 12px; }
  .cube-face .lucide { width: 26px; height: 26px; }
  .cube-face:nth-child(1) { transform: translateZ(52px); }
  .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(52px); }
  .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(52px); }
  .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(52px); }
  .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(52px); }
  .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(52px); }
  .feature { padding: 14px; }
  .feature-ic { width: 36px; height: 36px; margin-bottom: 8px; }
  .feature h3 { font-size: .9rem; }
  .feature p { font-size: .78rem; }

  /* Fikrlar: yonga suriladigan qator */
  .testimonials { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .testimonials::-webkit-scrollbar { display: none; }
  .tcard { scroll-snap-align: center; padding: 18px; gap: 12px; }
  .tcard blockquote { font-size: .9rem; }

  /* Savollar */
  .faq { gap: 8px; }
  .faq details { padding-inline: 16px; border-radius: 14px; }
  .faq summary { padding-block: 14px; font-size: .92rem; }
  .faq details p, .faq .faq-rich { font-size: .88rem; padding-bottom: 14px; }

  /* Aloqa */
  .contact-wrap { gap: 12px; }
  .contact-info { padding: 22px; border-radius: 22px; }
  .contact-info h2 { font-size: 1.45rem; }
  .contact-info > p { margin-bottom: 16px; font-size: .9rem; }
  .info-list { gap: 10px; }
  .info-list .ic { width: 38px; height: 38px; }
  .info-list b { font-size: .88rem; }
  .form { padding: 18px; gap: 12px; border-radius: 22px; }
  .form .field-ctl { height: 46px; }
  .lang-pick span { height: 42px; font-size: .85rem; }
  .form .btn { min-height: 50px; }

  /* Footer */
  .footer { padding-block: 36px 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 24px; }
}

/* =====================================================================
   Kurator tekshiruvi: turli kurslar bo‘yicha almashinadigan namunalar
   ===================================================================== */
.review-col { display: grid; gap: 14px; min-width: 0; }
.rv-tabs { gap: 8px; }
.rv-tabs .chip { min-height: 38px; font-size: .85rem; }
.review-card.rv-anim > * { animation: rvIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.review-card.rv-anim > *:nth-child(2) { animation-delay: .05s; }
.review-card.rv-anim > *:nth-child(3) { animation-delay: .1s; }
.review-card.rv-anim > *:nth-child(4) { animation-delay: .15s; }
@keyframes rvIn { from { opacity: 0; transform: translateY(8px); } }
.rv-code { min-height: 150px; }
.rv-preview { position: relative; height: 150px; margin: 16px 20px 0; border-radius: 14px; overflow: hidden; }
.pin {
  position: absolute; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .8rem/1 var(--font-mono); color: #1d1405; background: #f4b53f;
  box-shadow: 0 0 0 4px rgba(244, 181, 63, .28), 0 4px 10px rgba(0, 0, 0, .3); animation: pinPulse 2s ease-in-out infinite;
}
.pin.add { background: #22c7b8; color: #04121f; box-shadow: 0 0 0 4px rgba(34, 199, 184, .28), 0 4px 10px rgba(0, 0, 0, .3); }
@keyframes pinPulse { 50% { transform: scale(1.12); } }

/* Grafik dizayn: logotip */
.pv-logo { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: #3a2416; background: linear-gradient(135deg, #f6ecdf, #e6d3bb); }
.pvl-mark { width: 82px; height: 82px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #f3e7d7; background: #6b3e22; box-shadow: inset 0 0 0 5px #c98a3a, 0 10px 20px -10px rgba(58, 36, 22, .6); }
.pvl-mark .lucide { width: 38px; height: 38px; }
.pvl-text b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .2em; line-height: 1; }
.pvl-text small { display: block; margin-top: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.pvl-sw { margin-left: auto; display: grid; gap: 6px; }
.pvl-sw i { display: block; width: 22px; height: 22px; border-radius: 7px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* UI/UX: telefon ekrani */
.pv-ui { display: grid; place-items: center; background: linear-gradient(135deg, #ffd9e7, #f59ac0); }
.pvu-phone { width: 150px; padding: 9px; display: grid; gap: 6px; border-radius: 18px; background: #fff; box-shadow: 0 12px 26px -12px rgba(80, 10, 40, .5); }
.pvu-top { display: flex; justify-content: space-between; }
.pvu-top i { width: 20px; height: 6px; border-radius: 3px; background: #e5e7eb; }
.pvu-card { padding: 8px 10px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #e0457b, #7a1d4a); }
.pvu-card b { display: block; font: 800 .95rem var(--font-display); }
.pvu-card span { display: block; width: 60%; height: 5px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.pvu-btns { display: flex; gap: 6px; }
.pvu-btns span { flex: 1; height: 18px; border-radius: 7px; background: #fde4ee; }
.pvu-btns span:first-child { background: #e0457b; }
.pvu-row { display: flex; align-items: center; gap: 6px; }
.pvu-row i { width: 14px; height: 14px; border-radius: 50%; background: #f4c2d6; }
.pvu-row span { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; }
.pvu-row em { width: 24px; height: 5px; border-radius: 3px; background: #cbd5e1; }

/* Data Analytics: dashboard */
.pv-chart { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 14px 16px 12px; background: linear-gradient(160deg, #0f3b3a, #062120); }
.pvc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-right: 34px; }
.pvc-kpis span { padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); min-width: 0; }
.pvc-kpis b { display: block; font: 700 .84rem var(--font-mono); color: #e9fffb; white-space: nowrap; }
.pvc-kpis b.up { color: #4ade80; }
.pvc-kpis i { display: block; width: 70%; height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.pvc-bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; margin-right: 34px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.pvc-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(#2fd3c4, #0f8f84); transform-origin: bottom; animation: growY .6s calc(var(--k) * 50ms) both; }
.pvc-bars i:nth-child(n+7) { background: linear-gradient(#f4c95d, #d99a1e); }
@keyframes growY { from { transform: scaleY(0); } }

/* Marketing: Instagram post */
.pv-ad { display: grid; place-items: center; background: linear-gradient(135deg, #ff9a62, #c23b14); }
.pva-post { width: 168px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 12px 26px -12px rgba(60, 10, 0, .6); }
.pva-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.pva-head i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #f58529, #dd2a7b); }
.pva-head span { width: 50%; height: 5px; border-radius: 3px; background: #e5e7eb; }
.pva-img { position: relative; height: 68px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b6cff, #22c7b8); }
.pva-img b { font: 800 1.4rem var(--font-display); }
.pva-img span { position: absolute; bottom: 8px; left: 10px; width: 60%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .6); }
.pva-actions { display: flex; align-items: center; gap: 8px; padding: 7px 8px; color: #1f2937; }
.pva-actions .lucide { width: 15px; height: 15px; }
.pva-actions em { margin-left: auto; font: 700 .66rem var(--font-mono); font-style: normal; color: #16a34a; }

/* Video montaj: oyna va treklar */
.pv-video { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px; background: #0d0f16; }
.pvv-screen { position: relative; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #c13b1f, #2c0904); }
.pvv-screen .lucide { width: 30px; height: 30px; fill: currentColor; }
.pvv-screen span { position: absolute; right: 8px; bottom: 6px; font: 600 .62rem var(--font-mono); opacity: .8; }
.pvv-tracks { position: relative; display: grid; gap: 4px; }
.pvv-tracks > div { position: relative; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.pvv-tracks > div i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.pvv-tracks > div:nth-child(1) i { background: #5b8cff; }
.pvv-tracks > div:nth-child(2) i { background: #ffb547; }
.pvv-tracks > div:nth-child(3) i { background: #2fd3c4; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #ff4d5e; box-shadow: 0 0 6px #ff4d5e; animation: playhead 6s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }

@media (max-width: 680px) {
  .rv-preview, .rv-code { margin: 12px 14px 0; }
  .rv-preview { height: 132px; }
  .rv-code { min-height: 0; }
  .pv-logo { gap: 10px; padding: 14px; }
  .pvl-mark { width: 60px; height: 60px; }
  .pvl-mark .lucide { width: 28px; height: 28px; }
  .pvl-text b { font-size: 1.15rem; }
  .pvu-phone { transform: scale(.86); }
  .rv-tabs .chip { min-height: 34px; font-size: .8rem; }
}

/* “Nega aynan biz”: 5 ta kartochka — oxirgisi ikki ustun kengligida, bo‘sh joy qolmaydi */
.bento > .feature:last-child { grid-column: span 2; }

/* Ariza formasi: yuborish xabari va botlardan himoya maydoni */
.form-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: .9rem; font-weight: 600; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.form .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
/* Bildirishnoma tor ekranda ham keng ko‘rinsin */
.toast { width: max-content; max-width: min(560px, calc(100vw - 32px)); }

/* Kurs oynasi ichidagi ariza formasi */
.modal-form { margin-top: 4px; scroll-margin-top: 16px; }
.modal-form[hidden] { display: none; }
.modal-form h4 { margin: 0 0 12px; }
.modal-form .form { padding: 22px; box-shadow: none; }
@media (max-width: 560px) { .modal-form .form { grid-template-columns: 1fr; padding: 16px; } }

/* TOP kurslar: ro‘yxatdan yuqorida alohida blok */
.top-block { margin-bottom: 34px; padding: 22px; border-radius: 32px; background: linear-gradient(135deg, color-mix(in srgb, #f4b53f 16%, transparent), color-mix(in srgb, var(--turq) 10%, transparent)); border: 1px solid color-mix(in srgb, #f4b53f 45%, transparent); }
.top-block[hidden] { display: none; }
.top-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.top-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.top-flag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f4b53f; color: #1a1300; font-weight: 800; font-size: .8rem; letter-spacing: .04em; }
.top-flag .lucide, .top-ribbon .lucide { width: 16px; height: 16px; }
.top-courses .course:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.top-courses .course:only-child .cover-body { max-width: 560px; }
.course.is-top { box-shadow: inset 0 0 0 2px #f4b53f, var(--shadow-lg); }
.top-ribbon { position: absolute; z-index: 3; top: 58px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #f4b53f; color: #1a1300; font-weight: 800; font-size: .76rem; letter-spacing: .04em; }
@media (max-width: 760px) {
  .top-block { padding: 14px; border-radius: 24px; }
  .top-courses .course:only-child { aspect-ratio: 4 / 4.7; }
}
@media (max-width: 640px) {
  .top-courses { grid-template-columns: 1fr; }
  .top-courses .course { width: 100%; height: 270px; }
  .top-courses .course .cover-desc { display: block; font-size: .8rem; }
  .top-ribbon { top: 40px; inset-inline-start: 10px; font-size: .68rem; padding: 4px 9px; }
}

/* Fikrlar: "Yana ko‘rsatish" tugmasi */
.tmore-wrap { display: flex; justify-content: center; margin-top: 26px; }
.tmore-wrap .btn[hidden] { display: none; }

/* =========================================================
   Kurs sahifasi (to‘liq oyna): hero, statistika, kasb, maosh,
   o‘qish jarayoni, vositalar, loyihalar, narx
   ========================================================= */
#modalBox { max-width: 1040px; }
.modal-hero { padding: 150px 40px 34px; }
.modal-hero h3 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 22ch; }
.modal-hero p { font-size: 1.05rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-chip .lucide { width: 15px; height: 15px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.hero-actions .btn { min-height: 54px; padding-inline: 26px; }
.hero-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: #ffd27a; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hero-stats > div { padding: 18px 12px; text-align: center; border-inline-end: 1px solid var(--line); }
.hero-stats > div:last-child { border-inline-end: 0; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--turq); }
.hero-stats small { color: var(--muted); font-size: .84rem; font-weight: 600; }
.modal-body { padding: 36px 40px 40px; gap: 40px; }
.modal-body h4 { font-size: .82rem; margin-bottom: 16px; }

.who p { margin: 0; font-size: 1.12rem; line-height: 1.75; max-width: 70ch; }

.pay-card { padding: 26px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, transparent), color-mix(in srgb, var(--turq) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.pay-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.pay-main small { flex-basis: 100%; color: var(--muted); font-weight: 700; font-size: .9rem; }
.pay-main b { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; color: var(--gold); }
html[lang="ar"] .pay-main b { font-family: var(--font-ar-display); }
.pay-main em { font-style: normal; color: var(--muted); font-weight: 700; }
.pay-top { margin: 10px 0 0; font-weight: 600; }
.pay-more { margin-top: 6px; }
.pay-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; color: var(--turq); }
.pay-more summary::-webkit-details-marker { display: none; }
.pay-more summary .lucide { width: 16px; height: 16px; transition: transform .2s; }
.pay-more[open] summary .lucide { transform: rotate(180deg); }
.pay-more .sal-chart { margin-top: 16px; }

.how-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: how; }
.how-row li { position: relative; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); counter-increment: how; }
.how-row li::after { content: "0" counter(how); position: absolute; top: 14px; inset-inline-end: 16px; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--muted); opacity: .6; }
.how-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.how-ic .lucide { width: 20px; height: 20px; }
.how-row b { display: block; margin-bottom: 4px; }
.how-row p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tool-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.tool b { display: block; text-align: start; }
html[dir="rtl"] .tool b { direction: ltr; text-align: right; }
.tool p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.proj-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.proj { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.proj-art { position: relative; height: 130px; display: grid; place-items: center; color: rgba(255, 255, 255, .92); background: radial-gradient(120% 140% at 85% 0%, var(--c2), transparent 60%), linear-gradient(150deg, var(--bg1, var(--c1)), var(--bg2, #0a1230)); overflow: hidden; }
.proj-art .lucide { width: 54px; height: 54px; stroke-width: 1.4; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.proj-num { position: absolute; top: 6px; inset-inline-start: 14px; font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .16); }
.proj.final .proj-art { background: radial-gradient(120% 140% at 85% 0%, #f4b53f, transparent 62%), linear-gradient(150deg, #7a4a06, #1a1002); }
.proj-body { padding: 16px 18px 18px; }
.proj-body small { color: var(--turq); font-weight: 800; font-size: .76rem; letter-spacing: .04em; }
.proj.final .proj-body small { color: var(--gold-ink); }
.proj-body h5 { margin: 4px 0 6px; font-size: 1.02rem; line-height: 1.3; }
.proj-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.price-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; color: #fff; background: linear-gradient(150deg, var(--bg1, var(--c1)), var(--bg2, #0a1230)); }
.price-main h4 { color: rgba(255, 255, 255, .8); margin: 0; }
.price-val { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; color: #ffd27a; }
.price-main small { opacity: .85; }
.price-ask { margin: 0; font-weight: 600; opacity: .95; }
.price-main .btn { margin-top: 8px; min-height: 54px; align-self: stretch; }
.price-pay { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; opacity: .85; }
.price-pay .lucide { width: 15px; height: 15px; }
.price-inc { padding: 28px; }
.price-inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.price-inc li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.price-inc li .lucide { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; margin-top: 2px; color: var(--on-accent); background: var(--turq); }

/* Pastga yopishgan "Yozilish" paneli */
.modal-cta { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; padding: 12px 40px calc(12px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.modal-cta[hidden] { display: none; }
.modal-cta .btn { flex: 0 0 auto; }
.cta-name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  #modal { padding: 0; }
  #modalBox { max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .modal-hero { padding: 110px 20px 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats b { font-size: 1.35rem; }
  .hero-stats small { font-size: .74rem; }
  .modal-body { padding: 26px 18px 30px; gap: 32px; }
  .who p { font-size: 1rem; }
  .how-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how-row li { padding: 14px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-row { grid-auto-columns: 82%; }
  .price-card { grid-template-columns: minmax(0, 1fr); }
  .price-main, .price-inc { padding: 22px; }
  .modal-cta { padding-inline: 16px; }
  .cta-name { display: none; }
  .modal-cta .btn { flex: 1 1 100%; }
  .sal-row, .sal-axis { grid-template-columns: 62px minmax(0, 1fr) 104px; gap: 8px; }
}
/* Loyihalar qatori oynani kengaytirib yubormasligi uchun */
.modal-body { grid-template-columns: minmax(0, 1fr); }
.modal-body > * { min-width: 0; }

/* Narx va chegirma */
.old-price { margin-inline-start: 8px; font-weight: 600; opacity: .7; text-decoration-thickness: 1.5px; font-size: .78em; }
.disc-badge { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: #d92b45; color: #fff; font-family: var(--font-body); font-size: .74rem; font-weight: 800; vertical-align: middle; }
.cover-price { margin: 0 6px; display: flex; align-items: center; flex-wrap: wrap; color: #fff; }
.cover-price b { font-family: var(--font-display); font-size: 1.12rem; }
html[lang="ar"] .cover-price b { font-family: var(--font-ar-display); }
.price-old { font-size: 1.15rem; }
.price-old .old-price { margin-inline-start: 0; font-size: 1em; }
.hero-price .old-price { color: #fff; }
@media (max-width: 640px) {
  .cover-price { margin: 0 4px; }
  .cover-price b { font-size: .8rem; }
  .cover-price .old-price { font-size: .64rem; margin-inline-start: 5px; }
  .cover-price .disc-badge { font-size: .56rem; padding: 1px 5px; margin-inline-start: 4px; }
}

/* =====================================================================
   Sayqal (2026-11): klaviatura, barmoq, RTL, harakat va holatlar.
   Mavjud klass va tokenlar o‘zgarmagan — bu yerda faqat qo‘shimchalar.
   ===================================================================== */

/* Klaviatura bilan kirganlar uchun: "asosiy qismga o‘tish" havolasi (faqat fokusda ko‘rinadi) */
.skip-link {
  position: fixed; z-index: 200; top: calc(env(safe-area-inset-top, 0px) + 10px); inset-inline-start: 10px;
  padding: 12px 18px; border-radius: 13px; background: var(--text); color: var(--bg); font-weight: 800;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }
main:focus { outline: none; }

/* Arabcha kichik matnlar: qatorlar orasi kengroq (harf ustidagi belgilar qisilmasin) */
html[lang="ar"] :is(.cover-desc, .adv-list p, .tool p, .how-row p, .proj-body p, .mentor-bio, .rv-list li, .faq .faq-rich li, .stat span) { line-height: 1.7; }

/* Raqamlar ustun bo‘lib tursin */
.stat b, .hero-stats b, .pick-amount, .rank-list .r-num, .price-val, .hero-price, .cover-price b { font-variant-numeric: tabular-nums; }

/* Header: logotip ham to‘liq bosiladigan balandlikda; mobil menyu ochiqligida sahifa aylanmaydi */
.logo { min-height: 44px; }
@media (max-width: 1180px) {
  body.nav-open { overflow: hidden; }
  .nav + .header-actions { margin-inline-start: auto; } /* tugmalar logotipga yopishmay, qarama-qarshi chetda turadi */
}
@media (max-width: 680px) {
  .header-actions .icon-btn, .header-actions .lang-btn { height: 44px; }
  .header-actions .icon-btn { width: 44px; }
  .header-actions .lang-btn { padding-inline: 10px; }
}
@media (max-width: 374px) {
  .header-actions { gap: 4px; }
  .header-actions .icon-btn, .header-actions .lang-btn { position: relative; height: 40px; }
  .header-actions .icon-btn { width: 40px; }
  .header-actions .lang-btn { padding-inline: 8px; }
  .header-actions .icon-btn::after, .header-actions .lang-btn::after { content: ""; position: absolute; inset: -2px; }
}

/* TOP blok: ikkita kurs bo‘lsa, ikkalasi butun kenglikni to‘ldiradi (uchinchi ustun bo‘sh qolmaydi) */
@media (min-width: 1181px) {
  .top-courses:has(> .course:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-courses:has(> .course:nth-child(2):last-child) .course { aspect-ratio: 4 / 3; }
}
/* Yagona keng TOP kartada matn soyasi karta chetigacha yumshoq so‘nadi */
.top-courses .course:only-child .cover-body::before { inset-inline-end: -160px; -webkit-mask-image: linear-gradient(to left, transparent, #000 160px); mask-image: linear-gradient(to left, transparent, #000 160px); }
[dir="rtl"] .top-courses .course:only-child .cover-body::before { -webkit-mask-image: linear-gradient(to right, transparent, #000 160px); mask-image: linear-gradient(to right, transparent, #000 160px); }

/* Savollar va o‘quv reja: ochilish-yopilish silliq (brauzer qo‘llasa) */
@supports (interpolate-size: allow-keywords) {
  .faq details, .plan-mod, .pay-more { interpolate-size: allow-keywords; }
  .faq details::details-content, .plan-mod::details-content, .pay-more::details-content {
    block-size: 0; overflow: clip; transition: block-size .24s var(--ease-out), content-visibility .24s allow-discrete;
  }
  .faq details[open]::details-content, .plan-mod[open]::details-content, .pay-more[open]::details-content { block-size: auto; }
}
.faq summary:hover .lucide { color: var(--turq); }

/* Forma: RTL sahifada raqamli maydonlar ham yorliq tomoniga tekislanadi; holatlar aniq ko‘rinadi */
html[dir="rtl"] .form .field-ctl[dir="ltr"] { text-align: right; }
.form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.form input[type="number"]::-webkit-inner-spin-button, .form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field.invalid .field-ctl:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); }
.form .field-ctl:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg) inset; caret-color: var(--turq); }
.form .field-ctl:-webkit-autofill:focus { box-shadow: 0 0 0 100px var(--bg) inset, 0 0 0 4px color-mix(in srgb, var(--turq) 20%, transparent); }
.form-msg { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; scroll-margin: 24px; }
.form-msg::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: var(--surface); font-family: var(--font-display); font-size: .7rem; font-weight: 800; line-height: 1; }
.form .btn[aria-busy="true"] .lucide { display: none; }
.form .btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .6s linear infinite; }

/* Kurs oynasi: pastdagi “Yozilish” paneli sahifadagi xuddi shunday tugma ko‘rinib turganda yashirinadi */
.modal-cta {
  --cta-h: calc(77px + env(safe-area-inset-bottom, 0px));
  min-height: var(--cta-h); margin-top: calc(-1 * var(--cta-h)); /* joy egallamaydi: oyna oxirida bo‘sh tasma qolmaydi */
  transition: transform .28s var(--ease-out), opacity .2s, visibility .28s;
}
.modal-cta.is-off { transform: translateY(100%); opacity: 0; visibility: hidden; pointer-events: none; }

/* Telefon: oyna pastdan chiqadi — 3D burilishsiz */
@media (max-width: 760px) { .modal-box { transform: translateY(36px); } }

@media (max-width: 680px) {
  /* Barmoq uchun: filtr tugmalari va footer havolalari 44px maydonga ega */
  .chips { padding-block: 4px 6px; margin-block: -4px; }
  .chip { position: relative; }
  .chip::after { content: ""; position: absolute; inset: -4px 0; }
  .rv-tabs .chip::after { inset: -5px 0; }
  .btn-sm { min-height: 44px; }
  .footer ul { gap: 0; }
  .footer ul a, .footer ul button { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .footer h4 { margin-bottom: 6px; }
  /* Fikrlar: tirnoq belgisi ixchamroq */
  .tcard blockquote::before { font-size: 3.6rem; height: 1.6rem; margin-top: -8px; }
  /* Kub matn ustiga chiqmaydi */
  .bento-cube .cube-scene { width: 84px; height: 84px; margin: 34px; }
  .cube-face { font-size: .54rem; gap: 3px; border-radius: 10px; }
  .cube-face .lucide { width: 22px; height: 22px; }
  .cube-face:nth-child(1) { transform: translateZ(42px); }
  .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(42px); }
  .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(42px); }
  .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(42px); }
  .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(42px); }
  .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(42px); }
  /* Kurs kartasi: matn soyasi karta o‘lchamiga mos */
  .cover-body::before { inset: -44px -8px -8px; background: linear-gradient(180deg, rgba(4, 8, 22, 0), rgba(4, 8, 22, .62) 44px, rgba(4, 8, 22, .74)); }
}
/* Telefonda o‘nlab kartadagi xira oyna (blur) aylantirishni sekinlashtiradi — u yerda shart emas */
@media (max-width: 680px) { .course .glass, .course .cover-bar { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (hover: none) { .tilt { will-change: auto; } }
/* Tor kartada maosh bir qatorda turadi (juda tor ekrandan tashqari) */
@media (min-width: 350px) and (max-width: 680px) { .courses:not(.top-courses) .cover-bar b { white-space: nowrap; } }

/* Qidiruvda yozayotganda kartalar har harfda qayta "uchib kirmaydi" */
.courses.quiet .course { animation: none; }
