/* Hallmark · shape: app screen · genre: atmospheric · theme: custom (by request: the user's dark navy and orange mockups) · deal: manual
 * nav: top bar, wordmark, four destinations, one action · signature: the question screen with its live timer and answer rail · states: loading, empty, error, full
 * axes: dark/geometric-sans/chromatic-orange · posture: confident · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E1 S2 R2 V2 · weakest: E, orange was on every surface; now it marks actions, state and the hero line only */
/* Hallmark · waive 2b · single-hue ramp from --orange-2 to --orange, once, in the hero · the owner's mockup paints this line as an orange gradient */
/* Hallmark · waive 38iii · the accent is a whole line of the hero head, once on the page · the owner asked for the middle line of the headline in orange */
/* Hallmark · waive 29 · only the sticky top bar, over solid page content · the translucent bar is in the user's mockups */
/* BEKJON AVTO TEST, veb sayt: to'q kechki fon, logodagi to'q sariq yoy va kumush rang. */

@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/Onest-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0A0F17;
  --bg-2: #0E1520;
  --surface: #121A26;
  --surface-2: #18212F;
  --surface-3: #1F2A3A;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #F3F5F9;
  --text-2: #C4CBD6;
  --muted: #8B95A6;
  --orange: #FF8A1E;
  --orange-2: #FFA84A;
  --orange-deep: #E86A00;
  --orange-ink: #1A0E02;
  --orange-wash: rgba(255, 138, 30, 0.12);
  --orange-glow: rgba(255, 138, 30, 0.35);
  --green: #3DDC84;
  --green-wash: rgba(61, 220, 132, 0.12);
  --red: #FF5D5D;
  --red-wash: rgba(255, 93, 93, 0.12);
  --focus: #FFB25C;

  --font: "Montserrat", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --container: 1320px; --gutter: 40px;
  --bar-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms; --t: 240ms;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  /* translucent layers */
  --bg-a78: rgba(10, 15, 23, 0.78);
  --black-a88: rgba(3, 5, 9, 0.88);
  --black2-a6: rgba(5, 8, 13, 0.6);
  --green-a08: rgba(61, 220, 132, 0.08);
  --green-a2: rgba(61, 220, 132, 0.2);
  --green-a5: rgba(61, 220, 132, 0.5);
  --img-bg: #05080D;
  --on-green: #062012;
  --on-red: #2A0606;
  --orange-a06: rgba(255, 138, 30, 0.06);
  --orange-a07: rgba(255, 138, 30, 0.07);
  --orange-a08: rgba(255, 138, 30, 0.08);
  --orange-a10: rgba(255, 138, 30, 0.10);
  --orange-a18: rgba(255, 138, 30, 0.18);
  --orange-a2: rgba(255, 138, 30, 0.2);
  --orange-a22: rgba(255, 138, 30, 0.22);
  --orange-a35: rgba(255, 138, 30, 0.35);
  --orange-a4: rgba(255, 138, 30, 0.4);
  --orange-a45: rgba(255, 138, 30, 0.45);
  --red-a06: rgba(255, 93, 93, 0.06);
  --red-a18: rgba(255, 93, 93, 0.18);
  --red-a45: rgba(255, 93, 93, 0.45);
  --sign-bg: #F4F6FA;
  --white-a02: rgba(255, 255, 255, 0.02);
  --white-a025: rgba(255, 255, 255, 0.025);
  --white-a03: rgba(255, 255, 255, 0.03);
  --white-a05: rgba(255, 255, 255, 0.05);
  --white-a06: rgba(255, 255, 255, 0.06);
  --white-a08: rgba(255, 255, 255, 0.08);
  --white-a24: rgba(255, 255, 255, 0.24);
  --white-a35: rgba(255, 255, 255, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange-glow); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; flex: none; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main { flex: 1; outline: none; }
.view { padding-block: var(--s6) var(--s8); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 999; padding: var(--s2) var(--s4); border-radius: var(--r-sm); background: var(--orange); color: var(--orange-ink); font-weight: 600; }
.skip:focus-visible { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s5); border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--orange);
  color: var(--orange-ink); font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn--ghost { background: var(--white-a02); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--white-a06); border-color: var(--white-a24); box-shadow: none; filter: none; }
.btn--soft { background: var(--orange-wash); color: var(--orange-2); border-color: var(--orange-a35); box-shadow: none; }
.btn--soft:hover { background: var(--orange-a2); filter: none; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 var(--s4); font-size: 0.92rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.link { color: var(--orange-2); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: var(--s2); transition: color var(--t) var(--ease); }
.link:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 0.2em; }
.link svg { width: 16px; height: 16px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 300; padding-top: env(safe-area-inset-top); background: var(--bg-a78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar__in { position: relative; display: flex; align-items: center; gap: var(--s6); min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--text); }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand b { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-size: 0.85rem; font-weight: 700; color: var(--orange); line-height: 1.1; }
.brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.bar__sep { width: 1px; height: 32px; background: var(--line-2); }
.nav { display: flex; gap: var(--s6); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 500; transition: color var(--t) var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
.nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.bar__end { margin-left: auto; display: flex; gap: var(--s3); align-items: center; }
.bar__menu { display: none; }


@media (max-width: 920px) {
  .bar__sep { display: none; }
  .bar__menu { display: inline-flex; }
  .nav { display: none; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%; flex-direction: column; gap: 0; padding: var(--s2) var(--gutter) var(--s5); background: var(--bg-2); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { min-height: 54px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--orange); }
}

/* ---------- surfaces ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card--glow { border-color: var(--line-2); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-2); color: var(--text-2); flex: none; }
.ico svg { width: 24px; height: 24px; }
.ico--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.ico--sm svg { width: 20px; height: 20px; }
.ico--green { color: var(--green); }
.ico--red { color: var(--red); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.page-head__t { display: flex; align-items: center; gap: var(--s4); }
.page-head p { margin-top: var(--s2); color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
.section { margin-top: var(--s8); }
.section-t { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.section-t h2 { font-size: 1.6rem; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s6); align-items: center; min-height: min(560px, calc(100svh - var(--bar-h) - 180px)); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; }
.hero h1 .accent { display: block; color: var(--orange); }
.hero__lead { margin: var(--s5) 0 var(--s6); font-size: 1.2rem; color: var(--text-2); max-width: 44ch; }
.hero__art { position: relative; }
.hero__art::before { content: none; }
.hero__art img { position: relative; width: 100%; max-width: 640px; margin-left: auto; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s6); padding: var(--s5) var(--s4); }
.feature { display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s5); }
.feature + .feature { border-left: 1px solid var(--line-2); }
.feature div > b { display: block; font-size: 1.1rem; font-weight: 700; }
.feature div > span { display: block; color: var(--muted); font-size: 0.92rem; }

/* ---------- mode cards (testlar) ---------- */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.mode { display: flex; flex-direction: column; padding: var(--s5); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.mode:hover { border-color: var(--orange-a4); }
.mode__art { position: relative; display: flex; align-items: center; justify-content: flex-start; height: 88px; margin-bottom: var(--s4); }
.mode__art::after { content: none; }
.mode__art .ico { width: 72px; height: 72px; border-radius: 20px; color: var(--text); }
.mode__art .ico svg { width: 40px; height: 40px; }
.mode__big { position: absolute; right: 0; top: 0; font-size: 0.95rem; font-weight: 700; color: var(--orange-2); }
.mode h3 { font-size: 1.6rem; }
.mode p { margin: var(--s2) 0 var(--s5); color: var(--text-2); flex: 1; }

.filter { display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s2); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.filter a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: 600; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.filter a svg { width: 18px; height: 18px; }
.filter a:hover { background: var(--white-a05); color: var(--text); }
.filter a[aria-current="page"] { background: var(--orange); color: var(--orange-ink); }
.filter a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* quick rows */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.quick__item { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); }
.quick__item div { flex: 1; min-width: 0; }
.quick__item b { display: block; font-weight: 700; }
.quick__item span { display: block; color: var(--muted); font-size: 0.9rem; }

/* tickets grid */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s3); }
.tk { display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform var(--t-fast) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.tk:hover { border-color: var(--orange-a45); }
.tk:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tk__l { font-size: 0.8rem; color: var(--muted); }
.tk__n { font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tk__s { font-size: 0.82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk.is-pass { background: var(--green-wash); border-color: var(--green-a5); }
.tk.is-pass .tk__s { color: var(--green); }
.tk.is-fail { background: var(--red-wash); border-color: var(--red-a45); }
.tk.is-fail .tk__s { color: var(--red); }
.tk.is-part { background: var(--orange-wash); border-color: var(--orange-a45); }
.tk.is-part .tk__s { color: var(--orange-2); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); color: var(--muted); font-size: 0.9rem; }
.legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--line-2); }
.legend i.is-pass { background: var(--green); border-color: var(--green); }
.legend i.is-fail { background: var(--red); border-color: var(--red); }
.legend i.is-part { background: var(--orange); border-color: var(--orange); }

/* ---------- tables ---------- */
.tbl-wrap { padding: var(--s2) var(--s5) var(--s3); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: var(--s3) var(--s3); background: var(--white-a03); }
.tbl th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.tbl th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; text-align: right; }
.tbl td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:last-child { text-align: right; }
.tbl a { color: var(--text); text-decoration: none; font-weight: 600; transition: color var(--t) var(--ease); }
.tbl a:hover { color: var(--orange-2); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: var(--s1) var(--s3); border-radius: 8px; font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; background: var(--surface-3); color: var(--text-2); }
.pill.is-good { background: var(--green-wash); color: var(--green); }
.pill.is-mid { background: var(--orange-wash); color: var(--orange-2); }
.pill.is-bad { background: var(--red-wash); color: var(--red); }
.bar-meter { display: inline-block; width: 120px; height: 6px; border-radius: 6px; background: var(--surface-3); vertical-align: middle; margin-right: var(--s3); overflow: hidden; }
.bar-meter > i { display: block; height: 100%; border-radius: 6px; background: var(--orange); }
.groups { display: grid; gap: var(--s5); }

/* ---------- quiz ---------- */
.crumbs { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s5); color: var(--text-2); font-size: 0.95rem; }
.crumbs a { color: var(--text-2); text-decoration: none; display: inline-flex; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 18px; height: 18px; }
.crumbs i { color: var(--muted); font-style: normal; }
.quiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.qcard { padding: var(--s5) var(--s6) var(--s6); }
.qhead { display: flex; align-items: center; gap: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.qhead__n { display: flex; align-items: center; gap: var(--s3); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.qhead__n b { color: var(--orange); font-weight: 600; }
.progress { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; width: 100%; height: 100%; transform-origin: left; border-radius: 8px; background: var(--orange); transition: transform var(--t) var(--ease); }
.timer-pill { display: inline-flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--white-a02); white-space: nowrap; color: var(--text-2); }
.timer-pill svg { width: 22px; height: 22px; color: var(--text-2); }
.timer-pill b { font-size: 1.35rem; font-weight: 600; color: var(--orange); font-variant-numeric: tabular-nums; }
.timer-pill.is-low b, .timer-pill.is-low svg { color: var(--red); }
.qbody { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6); margin-top: var(--s5); align-items: start; }
.qbody--text { grid-template-columns: minmax(0, 1fr); }
.qimg { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--img-bg); border: 1px solid var(--line-2); aspect-ratio: 16 / 9; }
.qimg img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.qtext { font-size: 1.4rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: var(--s5); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); width: 100%; min-height: 58px; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--white-a025); text-align: left; font-size: 1.05rem; line-height: 1.35; cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.opt:hover { background: var(--white-a06); border-color: var(--white-a24); }
.opt:active { transform: translateY(1px); }
.opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt:disabled { cursor: default; transform: none; }
.opt:disabled:hover { background: var(--white-a025); border-color: var(--line-2); }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.fkey { font-size: 0.78rem; font-weight: 700; color: var(--muted); padding: var(--s1) var(--s2); border-radius: 6px; border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.opt.is-right, .opt.is-right:disabled:hover { background: var(--green-wash); border-color: var(--green); }
.opt.is-right .radio { border-color: var(--green); background: var(--green); }
.opt.is-right .radio::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-green); border-bottom: 2px solid var(--on-green); transform: rotate(-45deg) translate(1px, -1px); }
.opt.is-wrong, .opt.is-wrong:disabled:hover { background: var(--red-wash); border-color: var(--red); }
.opt.is-wrong .radio { border-color: var(--red); background: var(--red); }
.opt.is-wrong .radio::after { content: "×"; color: var(--on-red); font-weight: 800; font-size: 16px; line-height: 1; }
.verdict { min-height: 26px; margin-top: var(--s4); font-weight: 600; }
.verdict.is-right { color: var(--green); }
.verdict.is-wrong { color: var(--red); }
.qfoot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }

.side { position: sticky; top: calc(var(--bar-h) + var(--s4)); padding: var(--s5); overflow: hidden; }
.side h2 { display: flex; align-items: center; gap: var(--s3); font-size: 1.3rem; margin-bottom: var(--s4); }
.stat-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-row svg { width: 26px; height: 26px; }
.stat-row span { flex: 1; color: var(--text-2); font-size: 0.95rem; line-height: 1.3; }
.stat-row b { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-green { color: var(--green); }
.c-red { color: var(--red); }
.c-orange { color: var(--orange); }
.dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: var(--s1); }
.dot { min-height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--white-a03); color: var(--text-2); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.dot:hover { background: var(--white-a08); }
.dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.dot[aria-current="step"] { border: 2px solid var(--orange); color: var(--text); }
.dot.is-right { background: var(--green-wash); border-color: var(--green); color: var(--green); }
.dot.is-wrong { background: var(--red-wash); border-color: var(--red); color: var(--red); }
.side__foot { margin-top: var(--s4); }
.hint { margin-top: var(--s3); font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: var(--s5); background: var(--black-a88); cursor: zoom-out; }
.lightbox { overflow: hidden; touch-action: none; }
.lightbox img { max-width: min(96vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: var(--r-md); cursor: zoom-in; transform-origin: center; transition: transform var(--t) var(--ease); user-select: none; }
.lightbox img.is-zoomed { cursor: grab; transition: none; }
.lightbox img.is-zoomed:active { cursor: grabbing; }
.lightbox__hint { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); padding: var(--s2) var(--s4); border-radius: var(--r-sm); background: var(--black-a88); color: var(--text-2); font-size: 0.85rem; white-space: nowrap; pointer-events: none; }

/* result */
.result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.result__card { padding: var(--s6); text-align: center; }
.ring { position: relative; width: 200px; height: 200px; margin: var(--s4) auto var(--s5); }
.ring svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.ring__t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__t b { font-size: 2.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__t span { color: var(--muted); }
.result__status { font-size: 1.6rem; font-weight: 700; margin-bottom: var(--s2); }
.result__status.is-pass { color: var(--green); }
.result__status.is-fail { color: var(--red); }
.result__card .actions { justify-content: center; margin-top: var(--s5); }
.review { padding: var(--s5); }
.review h2 { font-size: 1.3rem; margin-bottom: var(--s3); }
.rv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.rv:last-child { border-bottom: 0; }
.rv img, .rv .noimg { width: 160px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); object-fit: contain; background: var(--img-bg); }
.rv img { cursor: zoom-in; }
.rv p { font-weight: 600; line-height: 1.4; }
.rv small { display: block; margin-top: var(--s2); font-size: 0.9rem; line-height: 1.45; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.kpi { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); }
.kpi div > span { display: block; color: var(--text-2); font-weight: 500; }
.kpi div > b { display: block; font-size: 2.2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi::after { content: none; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s4); margin-top: var(--s4); }
.stats-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.panel { padding: var(--s5); }
.panel__h { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.panel__h h2 { font-size: 1.2rem; }
.panel__h p { font-size: 0.88rem; color: var(--muted); }
.panel__h .link { margin-left: auto; font-size: 0.9rem; }
.chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); height: 220px; }
.chart__y { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.78rem; color: var(--muted); text-align: right; padding-bottom: 28px; }
.chart__bars { display: flex; align-items: flex-end; gap: var(--s3); border-bottom: 1px solid var(--line-2); padding: 0 var(--s2); position: relative; margin-bottom: 28px; }
.chart__bar { flex: 1; max-width: 64px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart__bar i { display: block; border-radius: 8px 8px 2px 2px; background: var(--orange); min-height: 4px; }
.chart__bar b { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart__bar span { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.donut { position: relative; width: 190px; height: 190px; margin: var(--s2) auto; }
.donut svg { width: 190px; height: 190px; transform: rotate(-90deg); }
.donut__t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut__t b { font-size: 2.4rem; font-weight: 600; line-height: 1; }
.donut__t span { color: var(--muted); font-size: 0.9rem; }
.list-rows .lr { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.list-rows .lr:last-child { border-bottom: 0; }
.list-rows .lr b { font-variant-numeric: tabular-nums; }

/* ---------- materials ---------- */
.search { position: relative; width: min(100%, 560px); }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-2); }
.search input { width: 100%; min-height: 56px; padding: 0 var(--s4) 0 52px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--white-a03); font-size: 1rem; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--white-a24); }
.search input:focus { border-color: var(--orange); background: var(--white-a05); outline: none; }
.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--s5); padding: var(--s6); overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: 10px; border: 1px solid var(--orange-a45); background: var(--orange-wash); color: var(--orange-2); font-size: 0.9rem; font-weight: 600; }
.tag svg { width: 16px; height: 16px; }
.feat h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: var(--s4) 0 var(--s3); }
.feat p { color: var(--text-2); font-size: 1.1rem; max-width: 52ch; margin-bottom: var(--s5); }
.feat__art { position: relative; justify-self: end; }
.feat__art img { width: 100%; max-width: 420px; }
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.mat { display: flex; flex-direction: column; padding: var(--s5); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.mat:hover { border-color: var(--orange-a4); }
.mat .mode__art { height: 100px; justify-content: flex-start; }
.mat .mode__art::after { content: none; }
.mat h3 { font-size: 1.3rem; }
.mat p { margin: var(--s2) 0 var(--s4); color: var(--text-2); font-size: 0.95rem; flex: 1; }
.mat .btn { align-self: flex-start; }

/* signs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.tab { display: inline-flex; align-items: center; min-height: 42px; padding: 0 var(--s4); border-radius: 12px; border: 1px solid var(--line-2); background: var(--white-a02); color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.tab:hover { background: var(--white-a06); color: var(--text); }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tab[aria-current="page"] { background: var(--orange); color: var(--orange-ink); border-color: transparent; }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--s4); }
.sign { margin: 0; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.sign__img { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: var(--r-md); background: var(--sign-bg); }
.sign__img img { width: 96px; height: 96px; object-fit: contain; cursor: zoom-in; }
.sign b { color: var(--text); font-size: 1.05rem; }
.sign span { color: var(--text-2); font-size: 0.95rem; line-height: 1.35; }

/* rules / sheets */
.rules { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.toc { position: sticky; top: calc(var(--bar-h) + var(--s4)); max-height: calc(100vh - var(--bar-h) - var(--s7)); overflow-y: auto; overscroll-behavior: contain; padding: var(--s4); }
.toc p { font-weight: 700; padding: var(--s3) var(--s2) var(--s2); }
.toc a { display: block; padding: var(--s2) var(--s3); border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.toc a:hover { background: var(--white-a05); color: var(--text); }
.toc a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.toc a[aria-current="page"] { background: var(--orange-wash); color: var(--orange-2); font-weight: 600; }
.doc { padding: var(--s6) var(--s7); }
.doc h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: var(--s4); }
.doc h2 { font-size: 1.25rem; margin-top: var(--s6); color: var(--text); }
.doc p { font-size: 1.08rem; line-height: 1.7; color: var(--text-2); margin-top: var(--s4); max-width: 75ch; }
.doc .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.doc .pair span:first-child { font-weight: 600; }
.doc .pair span:last-child { color: var(--text-2); }
.doc ul { margin: var(--s4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.doc li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.doc li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pager { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* ---------- states ---------- */
.skel { border-radius: var(--r-md); background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.loading { display: grid; gap: var(--s4); }
.loading .skel:nth-child(1) { height: 52px; width: 40%; }
.loading .skel:nth-child(2) { height: 320px; }
.loading .skel:nth-child(3) { height: 26px; width: 70%; }
.empty { padding: var(--s7) var(--s6); text-align: center; }
.empty .ico { margin: 0 auto var(--s4); }
.empty p { margin: var(--s3) auto var(--s5); color: var(--text-2); max-width: 50ch; }
.error h1 { color: var(--red); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--black2-a6); }
.foot__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--s6); padding-block: var(--s7) calc(var(--s6) + env(safe-area-inset-bottom)); }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); }
.foot__links a, .foot__contact a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; transition: color var(--t) var(--ease); }
.foot__links a:hover, .foot__contact a:hover { color: var(--orange-2); }
.foot__contact { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.foot__label { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s1); }
.foot__note { grid-column: 1 / -1; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats-grid > :first-child { grid-column: 1 / -1; }
  .quiz { grid-template-columns: minmax(0, 1fr) 280px; }
  .qbody { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .qimg { max-height: 46vh; aspect-ratio: 16 / 9; }
}
@media (max-width: 920px) {
  :root { --gutter: 20px; --bar-h: 64px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { order: -1; }
  .hero__art img { max-width: 420px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
  .feature:nth-child(3) { border-left: 0; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; padding: var(--s3); }
  .side .dots, .side__foot, .side h2 { display: none; }
  .side__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .side__stats .stat-row { margin: 0; border-bottom: 0; flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .side__stats .stat-row svg { display: none; }
  .side__stats .stat-row b { font-size: 1.3rem; }
  .side__stats .stat-row span { font-size: 0.8rem; }
  .qcard { padding: var(--s4); }
  .qhead .timer-pill { display: none; }
  .result, .feat, .stats-grid, .stats-grid2, .rules { grid-template-columns: minmax(0, 1fr); }
  .feat__art { display: none; }
  .toc { position: static; max-height: 300px; }
  .doc { padding: var(--s5); }
  .foot__in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .brand img { width: 40px; height: 40px; }
}
@media (max-width: 600px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .kpi { flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4); }
  .kpi div > b { font-size: 1.7rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature + .feature { border-left: 0; padding: 0; }
  .qtext { font-size: 1.2rem; }
  .opt { font-size: 1rem; padding: var(--s2) var(--s3); gap: var(--s3); grid-template-columns: 24px minmax(0, 1fr); }
  .fkey { display: none; }
  .qhead__n { font-size: 1.05rem; }
  .rv { grid-template-columns: 112px minmax(0, 1fr); }
  .rv img, .rv .noimg { width: 112px; }
  .tbl .hide-sm { display: none; }
  .bar-meter { width: 56px; }
  .brand small { display: none; }
  .tickets { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--s2); }
  .tk { min-height: 74px; padding: var(--s2) var(--s3); }
  .tk__n { font-size: 1.4rem; }
  .tk__l { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 480px) {
  .bar .brand span { display: none; }
  .bar__end { gap: var(--s2); }
  .hero__art img { max-width: 300px; }
}

/* lightbox close, live announcer */
.lightbox__close { position: absolute; top: var(--s4); right: var(--s4); }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qcard:focus { outline: none; }
.qcard:focus-visible { outline: none; }

/* ---------- light theme (kunduzgi) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F9;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #EDF0F5;
  --line: rgba(16, 24, 40, 0.08);
  --line-2: rgba(16, 24, 40, 0.14);
  --text: #111827;
  --text-2: #3B4556;
  --muted: #667085;
  --orange-2: #C25A00;
  --orange-wash: rgba(240, 122, 12, 0.10);
  --orange-glow: rgba(240, 122, 12, 0.28);
  --green: #158A4A;
  --green-wash: rgba(21, 138, 74, 0.10);
  --red: #D33636;
  --red-wash: rgba(211, 54, 54, 0.09);
  --focus: #C25A00;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --bg-a78: rgba(244, 246, 249, 0.85);
  --black2-a6: rgba(255, 255, 255, 0.7);
  --white-a02: rgba(16, 24, 40, 0.015);
  --white-a025: rgba(16, 24, 40, 0.02);
  --white-a03: rgba(16, 24, 40, 0.03);
  --white-a05: rgba(16, 24, 40, 0.04);
  --white-a06: rgba(16, 24, 40, 0.05);
  --white-a08: rgba(16, 24, 40, 0.07);
  --white-a24: rgba(16, 24, 40, 0.22);
  --green-a2: rgba(21, 138, 74, 0.14);
  --green-a08: rgba(21, 138, 74, 0.05);
  --green-a5: rgba(21, 138, 74, 0.45);
  --red-a18: rgba(211, 54, 54, 0.12);
  --red-a06: rgba(211, 54, 54, 0.04);
  --red-a45: rgba(211, 54, 54, 0.4);
  --on-green: #FFFFFF;
  --on-red: #FFFFFF;
  --showcase: #0A0F17;
}
:root[data-theme="light"] .card { background: var(--surface); }
:root[data-theme="light"] .hero__art img,
:root[data-theme="light"] .feat__art img { background: var(--showcase); border-radius: var(--r-xl); }
:root[data-theme="light"] .hero__art::before { content: none; }
:root[data-theme="light"] .ico { background: var(--surface-3); }
:root[data-theme="light"] .btn--ghost { background: var(--surface); }

/* ---------- header tools: language and theme ---------- */
.tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 42px; min-width: 42px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--white-a02); color: var(--text); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.tool:hover { background: var(--white-a06); border-color: var(--white-a24); }
.tool:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tool svg { width: 18px; height: 18px; }
.lang { position: relative; }
.lang__chev { width: 16px !important; height: 16px !important; color: var(--muted); transition: transform var(--t) var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__list { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 400; min-width: 200px; margin: 0; padding: var(--s2); list-style: none; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.lang__list button { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); font-weight: 700; text-align: left; cursor: pointer; transition: background-color var(--t) var(--ease); }
.lang__list button small { margin-left: auto; font-weight: 500; color: var(--muted); }
.lang__list button:hover { background: var(--white-a06); }
.lang__list button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lang__list button[aria-checked="true"] { background: var(--orange-wash); color: var(--orange-2); }
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.flag--uz { background: linear-gradient(180deg, var(--flag-uz-blue) 0 31%, var(--flag-uz-red) 31% 34%, var(--flag-white) 34% 66%, var(--flag-uz-red) 66% 69%, var(--flag-uz-green) 69% 100%); }
.flag--ru { background: linear-gradient(180deg, var(--flag-white) 0 33.3%, var(--flag-ru-blue) 33.3% 66.6%, var(--flag-uz-red) 66.6% 100%); }
:root { --flag-uz-blue: #1EB5E6; --flag-uz-red: #CE1126; --flag-uz-green: #1EB53A; --flag-white: #FFFFFF; --flag-ru-blue: #0039A6; }
.theme-btn { position: relative; padding: 0; width: 42px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-btn__auto { position: absolute; right: -5px; bottom: -5px; display: none; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); font-size: 0.62rem; font-weight: 800; }
:root:not([data-theme-set]) .theme-btn__auto { display: inline-flex; }
@media (max-width: 1180px) { .bar__cta { display: none; } }
@media (max-width: 920px) { .lang__code { display: none; } .lang .lang__chev { display: none; } }
.feature .ico { color: var(--orange); }

/* bosh sahifa bitta ekranga sig'adi, aylantirish chizig'i ko'rinmaydi */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
@media (min-width: 921px) {
  .view:has(.home) { padding-block: var(--s4); }
  .home { display: flex; flex-direction: column; height: calc(100svh - var(--bar-h) - env(safe-area-inset-top) - var(--s4) * 2 - 2px); min-height: 520px; }
  .home .hero { flex: 1; min-height: 0; }
  .home .hero__art { display: flex; justify-content: flex-end; align-items: center; height: 100%; min-height: 0; }
  .home .hero__art img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  .home .features { margin-top: var(--s4); flex: none; }
}
@media (min-width: 921px) and (max-height: 760px) {
  .home .hero h1 { font-size: clamp(2rem, 6.2vh, 3.4rem); }
  .home .hero__lead { margin: var(--s3) 0 var(--s4); font-size: 1.05rem; }
  .home .features { padding: var(--s4); }
}

/* savollar raqamlari: test kartochkasining tepasida, istalganiga o'tish */
.qhead { justify-content: space-between; }
.qnav { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.qnav .dot { min-height: 40px; padding: 0; }
.qnav--scroll { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.qnav--scroll::-webkit-scrollbar { display: none; }
.qnav--scroll .dot { flex: 0 0 40px; }
@media (max-width: 920px) {
  .qnav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .qnav::-webkit-scrollbar { display: none; }
  .qnav .dot { flex: 0 0 38px; }
}

.brand b { font-size: 1.2rem; }
