:root {
  --ink: #0B1230; --ink-2: #18205A; --ink-3: #2E3A85; --indigo: #473BF7; --indigo-d: #3B30D9; --indigo-l: #F3F2FF;
  --blue: #306AF9; --cyan: #33B8FB; --bg: #F6F8FC; --card: #FFFFFF; --line: #E2E7F1; --line-2: #C9D2E3;
  --muted: #4B5B7E; --on-dark: #CBD3F2; --on-dark-2: #A9B4E0;
  --d: #1D4ED8; --d-l: #DBEAFE; --o: #15803D; --o-l: #DCFCE7; --y: #C2410C; --y-l: #FFEDD5; --k: #6D28D9; --k-l: #EDE9FE;
  --ok: #15803D; --ok-l: #DCFCE7; --warn: #B45309; --warn-l: #FEF3C7; --bad: #B91C1C; --bad-l: #FEE2E2;
  --r: 14px; --shadow: 0 12px 40px rgba(11, 18, 48, .08);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --display: Poppins, Inter, sans-serif; --serif: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--indigo); } a:hover { color: var(--indigo-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(71, 59, 247, .45); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--indigo); color: #fff; } .btn-primary:hover { background: var(--indigo-d); color: #fff; }
.btn-cyan { background: var(--cyan); color: var(--ink); } .btn-cyan:hover { color: var(--ink); filter: brightness(1.05); }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); color: var(--ink); } .btn-ghost:hover { color: var(--ink); border-color: var(--indigo); }
.btn-dark-ghost { background: transparent; border: 1px solid var(--ink-3); color: #fff; } .btn-dark-ghost:hover { color: #fff; border-color: var(--cyan); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); font-weight: 600; }

/* header */
.top { background: var(--ink); color: #fff; }
.top-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-tile { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; }
.brand-tile img { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 700; }
.brand-name b { color: var(--cyan); font-weight: 700; }
.light .brand-name b { color: var(--indigo); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; }
.nav a.nl { color: #E0E6FA; text-decoration: none; }
.nav a.nl:hover { color: #fff; }
.lang-sel { display: flex; align-items: center; gap: 6px; color: #E0E6FA; font-size: 13px; }
.lang-sel select { background: var(--ink-2); color: #fff; border: 1px solid var(--ink-3); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.light-top { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.light-top .lang-sel { color: var(--muted); }
.light-top .lang-sel select { background: #fff; color: var(--ink); border-color: var(--line-2); }
.light-top .nav a.nl { color: var(--muted); } .light-top .nav a.nl:hover { color: var(--ink); }

.demo-banner { background: var(--warn-l); color: #78350F; font-size: 14px; text-align: center; padding: 8px 16px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 64px 20px 72px; max-width: 1200px; margin: 0 auto; }
.hero-main { flex: 999 1 520px; min-width: 0; }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--ink-3); border-radius: 999px; font-size: 13px; color: var(--cyan); margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 20px; }
.hero h1 span { color: var(--cyan); }
.hero p.lead { font-size: 18px; color: var(--on-dark); margin: 0 0 30px; max-width: 560px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero small { display: block; color: var(--on-dark-2); margin-top: 16px; font-size: 14px; }
.hero-card { flex: 1 1 320px; min-width: 0; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hero-card .cap { font-size: 13px; color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .08em; }
.hero-card .big { display: flex; align-items: baseline; gap: 10px; }
.hero-card .big strong { font-family: var(--display); font-size: 60px; }
.badge-lvl { margin-left: auto; background: var(--cyan); color: var(--ink); font-weight: 800; padding: 6px 14px; border-radius: 8px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-grid div { background: var(--ink); border-radius: 10px; padding: 12px; font-size: 14px; }
.mini-grid b { display: block; font-size: 22px; }

/* sections */
main.home { max-width: 1200px; margin: 48px auto 0; padding: 0 20px 72px; display: flex; flex-direction: column; gap: 56px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.panel.raised { box-shadow: var(--shadow); border: 0; }
.panel h2.small { font-family: var(--font); font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.sec-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.sec-sub { color: var(--muted); margin: 0 0 20px; }
.lang-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.lang-card { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px dashed #B8C3DA; background: #fff; text-align: left; }
.lang-card.on { border: 2px solid var(--indigo); background: var(--indigo-l); }
.lang-card .flag { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #E5E9F2; color: var(--muted); flex-shrink: 0; }
.lang-card.on .flag { background: #E30A17; color: #fff; }
.lang-card .nm { display: flex; flex-direction: column; } .lang-card .nm b { font-size: 17px; } .lang-card .nm small { color: var(--muted); font-size: 13px; }
.tag { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EEF1F7; color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-l); color: #166534; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--indigo-d); background: var(--indigo-l); padding: 10px 14px; border-radius: 10px; }

.full-card { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 20px; background: var(--ink); color: #fff; border: 0; text-align: left; width: 100%; }
.full-card .k { font-size: 13px; color: var(--cyan); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.full-card .t { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 4px 0; }
.full-card .s { color: var(--on-dark); font-size: 15px; }
.full-card .grow { flex: 999 1 360px; min-width: 0; }
.full-card .act { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: 14px; }
.full-card .act span.btn { pointer-events: none; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.skill { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--ink); min-height: 190px; }
.skill:hover:not([disabled]) { border-color: var(--indigo); }
.skill .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.skill .nm { font-weight: 700; font-size: 19px; }
.skill .ds { font-size: 14px; color: var(--muted); }
.skill .ft { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.skill[disabled] { opacity: .6; cursor: not-allowed; }

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps3 > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps3 .n { font-family: var(--display); font-size: 34px; color: var(--indigo); font-weight: 700; }
.steps3 b { display: block; font-size: 18px; margin: 4px 0; }
.steps3 p { margin: 0; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.price-grid > div.dark { background: var(--ink); color: #fff; border: 0; }
.price-grid .pn { font-weight: 600; color: var(--muted); } .price-grid .dark .pn { color: var(--cyan); }
.price-grid .pv { font-family: var(--display); font-size: 32px; font-weight: 700; }
.price-grid .pv small { font-size: 16px; font-weight: 500; }
.price-grid p { margin: 0; color: var(--muted); } .price-grid .dark p { color: var(--on-dark); }
footer.foot { background: var(--ink); color: var(--on-dark-2); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px 20px; font-size: 14px; }

/* auth */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth aside { flex: 1 1 380px; background: var(--ink); color: #fff; padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.auth aside h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 14px; }
.auth aside h1 span { color: var(--cyan); }
.auth aside p { color: var(--on-dark); font-size: 17px; margin: 0; max-width: 440px; }
.auth aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-dark); }
.auth aside li::before { content: '✓'; color: var(--cyan); font-weight: 800; margin-right: 10px; }
.auth main { flex: 999 1 480px; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 5vw, 60px); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #EEF1F7; border-radius: 12px; padding: 4px; }
.seg button { border: 0; border-radius: 9px; padding: 11px; font-size: 15px; font-weight: 600; background: transparent; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 48, .12); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 16px; font-weight: 400; min-width: 0; }
.field small { font-weight: 400; color: var(--muted); }
.phone-in { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.phone-in span { padding: 13px 12px; background: var(--bg); border-right: 1px solid var(--line-2); font-weight: 600; }
.phone-in input { flex: 1; border: 0; border-radius: 0; }
.via { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.via button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; }
.via button.on { border: 2px solid var(--indigo); background: var(--indigo-l); color: var(--indigo-d); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid var(--line-2); border-radius: 12px; min-width: 0; padding: 0; }
.otp input:focus { border: 2px solid var(--indigo); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert.err { background: var(--bad-l); color: #991B1B; }
.alert.ok { background: var(--ok-l); color: #166534; }
.alert.info { background: var(--warn-l); color: #78350F; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }

/* light pages (cabinet, variants, result) */
.page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 72px; display: flex; flex-direction: column; gap: 22px; }
.page h1 { font-size: clamp(28px, 3.4vw, 40px); }
.crumb { color: var(--muted); font-size: 14px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.list-item .grow { flex: 1 1 220px; min-width: 0; }
.list-item small { color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tbl th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 10px 8px; border-bottom: 1px solid #F0F2F7; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip.ok { background: var(--ok-l); color: #166534; } .chip.bad { background: var(--bad-l); color: #991B1B; } .chip.mut { background: #EEF1F7; color: var(--muted); }

/* result */
.res-hero { display: flex; flex-wrap: wrap; gap: 24px; background: var(--ink); color: #fff; border-radius: 22px; padding: 30px; }
.res-hero .l { flex: 1 1 240px; }
.res-hero .cap { font-size: 14px; color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .08em; }
.res-hero .score { font-family: var(--display); font-size: 84px; font-weight: 700; line-height: 1; }
.res-hero .score small { font-size: 20px; color: var(--on-dark-2); font-weight: 500; }
.res-hero .lvl { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--on-dark); }
.res-hero .lvl b { background: var(--cyan); color: var(--ink); font-size: 22px; padding: 6px 16px; border-radius: 10px; }
.scale { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.scale .bar { position: relative; height: 14px; border-radius: 999px; display: flex; overflow: visible; }
.scale .bar span { height: 14px; }
.scale .bar span:first-child { border-radius: 999px 0 0 999px; } .scale .bar span:nth-child(4) { border-radius: 0 999px 999px 0; }
.scale .mark { position: absolute; top: -6px; width: 4px; height: 26px; background: #fff; border-radius: 2px; }
.scale .lbl { display: flex; font-size: 12px; color: var(--on-dark-2); }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.sk-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--indigo)); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.sk-card .v { font-family: var(--display); font-size: 42px; font-weight: 700; }
.sk-card small { color: var(--muted); }

/* ---------------- exam ---------------- */
.ex { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.ex-top { position: sticky; top: 0; z-index: 5; background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ex-top .brand-name { font-size: 20px; } .ex-top .brand img { width: 28px; height: 28px; }
.ex-skill { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ex-skill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.ex-sub { color: var(--muted); font-size: 15px; }
.ex-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timer { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.timer.low { background: var(--bad-l); border-color: #FCA5A5; color: #991B1B; }
.saved { font-size: 13px; color: var(--muted); }
.audio-bar { background: var(--ink); color: #fff; padding: 14px 18px; }
.audio-bar .in { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.audio-bar .count { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.audio-bar .prog { flex: 1 1 260px; min-width: 0; }
.audio-bar .prog .tl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.audio-bar .track { height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.audio-bar .track div { height: 8px; background: var(--cyan); width: 0; }
.audio-bar .vol { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark); }
.audio-bar input[type=range] { accent-color: var(--cyan); width: 110px; }
.audio-bar audio { max-width: 100%; }
.parts-nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px 0; max-width: 1320px; margin: 0 auto; width: 100%; }
.parts-nav button { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; }
.parts-nav button.on { border: 2px solid var(--c); color: var(--c); background: #fff; }
.ex-body { flex: 1; display: flex; flex-wrap: wrap; gap: 22px; max-width: 1320px; width: 100%; margin: 0 auto; padding: 18px; }
.ex-passage { flex: 999 1 520px; min-width: 0; background: #FBFCFE; border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 28px); max-height: calc(100vh - 220px); overflow-y: auto; }
.ex-passage h2 { font-size: 22px; margin-bottom: 14px; }
.ex-passage p { font-family: var(--serif); font-size: 18px; line-height: 1.75; margin: 0 0 16px; color: #1F2A44; }
.ex-passage .plbl { font-family: var(--font); font-weight: 700; color: var(--c); margin-right: 6px; }
.ex-questions { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.ex-questions.wide { flex-basis: 100%; max-height: none; }
.instr { font-size: 15px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.grp { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.q { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 140px; }
.q.cur { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.q-head { display: flex; gap: 10px; align-items: flex-start; }
.q-no { font-weight: 800; min-width: 38px; }
.q-txt { flex: 1; font-size: 16px; }
.flag-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.flag-btn.on { background: var(--warn-l); border-color: #F59E0B; color: #B45309; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.row { flex-direction: row; flex-wrap: wrap; }
.opt { display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.opt .k { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.opt.on { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.opt.on .k { background: var(--c); color: #fff; border-color: var(--c); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters button { width: 40px; height: 42px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; }
.letters button.on { background: var(--c); color: #fff; border-color: var(--c); }
.sel { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; }
.sel.on { border: 2px solid var(--c); }
.bank { display: flex; flex-direction: column; gap: 6px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.bank b { color: var(--c); margin-right: 4px; }
.bank .used { color: #9AA6C0; text-decoration: line-through; }
.gap-sel { display: inline-block; width: auto; max-width: 180px; padding: 4px 6px; margin: 0 2px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font); font-size: 15px; background: #fff; vertical-align: baseline; }
.gap-sel.on { border: 2px solid var(--c); }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ad { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ad img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.map-img { width: 100%; border: 1px solid var(--line); border-radius: 14px; }
.ex-foot { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); padding: 10px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.qnav { display: flex; gap: 5px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.qnav button { flex-shrink: 0; width: 32px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 700; padding: 0; }
.qnav button.a { background: var(--c); color: #fff; border-color: var(--c); }
.qnav button.f { background: #F59E0B; color: #3B2600; border-color: #F59E0B; }
.qnav button.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-left: auto; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 5px; } .legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.center-card { max-width: 620px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.center-card h1 { font-size: 28px; }
.example { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.spinner { padding: 60px 20px; text-align: center; color: var(--muted); }

/* planshet (tik) va telefon: matn va savollar ketma-ket, bitta sahifa skrolli */
@media (max-width: 1000px) {
  .ex-passage, .ex-questions { max-height: none; flex-basis: 100%; }
}
@media (max-width: 720px) {
  .auth aside { padding: 20px; gap: 14px; flex-basis: 100%; }
  .auth aside ul, .auth aside p { display: none; }
  .auth aside h1 { font-size: 26px; margin: 0; }
  .legend { display: none; }
  .hero { padding-top: 40px; }
}

/* ---------------- televizor ---------------- */
.tv-screen { min-height: 100vh; background: var(--ink); color: #fff; padding: 4vh 5vw; display: flex; flex-direction: column; gap: 4vh; }
.tv-screen .brand-name { font-size: 32px; }
.tv-grid { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6vw; }
.tv-qr { background: #fff; border-radius: 24px; padding: 18px; line-height: 0; }
.tv-qr svg { width: min(36vh, 360px); height: auto; }
.tv-txt { max-width: 640px; }
.tv-txt h1 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 16px; }
.tv-txt p { font-size: clamp(18px, 1.8vw, 26px); color: var(--on-dark); margin: 0 0 24px; }
.tv-code-lbl { color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .1em; font-size: 16px; }
.tv-code { font-family: var(--display); font-size: clamp(48px, 7vw, 96px); font-weight: 800; letter-spacing: .12em; color: var(--cyan); }
.tv-status { font-size: 22px !important; color: #fff !important; }
body.tv { font-size: 125%; }
body.tv .ex-passage p { font-size: 24px; }
body.tv .q-txt, body.tv .opt { font-size: 21px; }
body.tv .ex-top .btn, body.tv .ex-foot { font-size: 16px; }

/* ---------------- telefon pulti ---------------- */
.pad .q { scroll-margin-top: 80px; }
.pad .opt { min-height: 52px; }
.pad .letters button { width: 48px; height: 48px; }
.pad details.bank summary { cursor: pointer; font-weight: 600; }
.pair-mode { max-width: 640px; }
.pair-mode button { padding: 14px 10px; }

/* vaqt belgisi */
.time-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.time-badge.dark { margin-top: 10px; background: var(--ink-2); color: var(--cyan); border: 1px solid var(--ink-3); }
/* sahifa pastida bo'sh joy qolmasin: footer doim eng pastda, ortiqcha skroll footer rangida */
html { background: var(--ink); }
body { min-height: 100vh; }
#app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
#app > footer.foot { margin-top: auto; }
#app > main, #app > header, #app > div { width: 100%; }

.warn-toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: #FEF3C7; color: #78350F; border: 2px solid #F59E0B; border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 17px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.warn-toast .btn { padding: 8px 16px; min-height: 40px; }

/* Yazma */
.yz-area { width: 100%; min-height: 46vh; resize: vertical; padding: 16px; font: inherit; font-size: 17px; line-height: 1.6; border: 2px solid var(--line, #ddd); border-radius: 14px; background: var(--card, #fff); color: inherit; }
.yz-area:focus { outline: none; border-color: var(--c); }
.yz-foot { margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.wc { font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--bg); }
.wc.low { color: #b42318; background: #fde7e5; } .wc.ok { color: #9a6700; background: #fff4d6; } .wc.over { color: #127a3e; background: #e3f6ea; }
.parts-nav small { opacity: .65; margin-left: 4px; }

.aside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aside-top .lang-sel span { display: none; }

.yz-photos { margin-top: 12px; padding: 12px; border: 1.5px dashed var(--line-2, #ccd); border-radius: 14px; }
.yz-ph-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 15px; } .yz-ph-head small { color: var(--muted); }
.yz-ph-list { display: flex; flex-wrap: wrap; gap: 10px; }
.yz-ph-list figure { position: relative; margin: 0; width: 92px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.yz-ph-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yz-ph-list figure button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.yz-ph-add { width: 92px; height: 120px; border-radius: 10px; border: 2px dashed var(--c); color: var(--c); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px; }
