/* Mavzu tokenlari: standart — qorong'i; yorug' mavzu tizim sozlamasidan
   yoki `data-theme="light"` dan olinadi. Kartalar yo'q: tuzilma katta
   tipografiya, bo'sh joy va ingichka chiziqlar bilan beriladi. */
:root {
  --bg: #0a0d14;
  --bg-2: #0f131c;
  --line: #1d2330;
  --line-strong: #2c3443;
  --text: #d9dee7;
  --text-strong: #f6f7f9;
  --muted: #9aa3b2;
  --dim: #6b7486;
  --ghost: #3a4252;
  --brand: #ffd21e;
  --accent: #ff9d00;
  --accent-hover: #ffb340;
  --accent-ink: #0a0d14;
  --accent-text: #ffb340;
  --accent-display: #ff9d00;
  --accent-soft: rgba(255, 157, 0, .10);
  --accent-line: rgba(255, 157, 0, .42);
  --glow: rgba(255, 157, 0, .16);
  --wave: #2e3646;
  --focus: #60a5fa;
  --sans: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --bg-2: #f7f7f8; --line: #ebedf0; --line-strong: #d6d9df;
    --text: #2a2f3a; --text-strong: #0c0f15; --muted: #555d6c; --dim: #7c8494; --ghost: #c3c8d1;
    --accent-ink: #0c0f15; --accent-text: #b45309; --accent-display: #d97706; --accent-soft: rgba(255, 157, 0, .10);
    --accent-line: rgba(217, 119, 6, .45); --glow: rgba(255, 186, 60, .22); --wave: #d9dce2; --focus: #2563eb;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f7f7f8; --line: #ebedf0; --line-strong: #d6d9df;
  --text: #2a2f3a; --text-strong: #0c0f15; --muted: #555d6c; --dim: #7c8494; --ghost: #c3c8d1;
  --accent-ink: #0c0f15; --accent-text: #b45309; --accent-display: #d97706; --accent-soft: rgba(255, 157, 0, .10);
  --accent-line: rgba(217, 119, 6, .45); --glow: rgba(255, 186, 60, .22); --wave: #d9dce2; --focus: #2563eb;
  color-scheme: light;
}

/* Geist Mono yuklanguncha (yoki yuklanmasa) tizimdagi mono shrift ishlatiladi. */
@font-face {
  font-family: "Geist Mono Fallback";
  src: local("SF Mono"), local("Menlo"), local("Consolas"), local("DejaVu Sans Mono"), local("Courier New");
  size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.accent { color: var(--accent-display); }
.link { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }

/* Bo'lim chiziqlari: border emas, fon gradienti — shunda chiziq gutter ichida,
   matn bilan bir tekisda turadi. */
.rule-top { background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.rule-bottom { background: linear-gradient(var(--line), var(--line)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; height: 60px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; color: #0a0d14; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text-strong); background: var(--bg-2); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--dim); }
.icon-btn .i-moon { display: none; }
:root[data-theme="light"] .icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme]) .icon-btn .i-moon { display: block; }
}

/* ---------- repo sarlavhasi ---------- */
.repo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.repo-id { font-family: var(--mono); font-size: 15px; }
.repo-owner { color: var(--muted); }
.repo-slash { color: var(--dim); margin: 0 4px; }
.repo-name { color: var(--text-strong); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.tag-task { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -10%; right: 0; width: min(720px, 90vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.hero-title {
  margin: 0; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.045em;
  font-weight: 700; color: var(--text-strong); text-wrap: balance;
}
.hero-lead { margin: clamp(18px, 2vw, 26px) 0 0; max-width: 660px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--muted); }
.hero-note { margin: 14px 0 0; font-size: 13.5px; color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cta-ghost { background: transparent; color: var(--text-strong); border-color: var(--line-strong); }
.cta-ghost:hover { background: var(--bg-2); border-color: var(--dim); }

.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(8px, 2vw, 24px) 0 0; border-top: 1px solid var(--line); }
.stats div { padding: 22px 20px 0 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { order: 2; font-size: 14px; color: var(--dim); margin-top: 4px; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--text-strong); }
.stats small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }

/* ---------- bo'lim sarlavhalari ---------- */
.block { padding-top: clamp(44px, 5.5vw, 76px); }
.block { margin-top: clamp(44px, 5.5vw, 76px); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.section-num { font-family: var(--mono); font-size: 14px; color: var(--accent-text); }
.section-title { margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; color: var(--text-strong); }
.section-lead { margin: 0 0 clamp(22px, 3vw, 34px); max-width: 720px; font-size: clamp(15px, 1.15vw, 16.5px); color: var(--muted); }
.section-lead code { font-size: .88em; padding: 1px 6px; border-radius: 5px; background: var(--bg-2); color: var(--text); }
.kind { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); align-self: center; }
.kind:empty { display: none; }

/* ---------- asosiy pleyer (hero ichida) ---------- */
.stage { padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid var(--line); }
.stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.voice-seg { margin-left: auto; }
.voice-seg button { font-family: var(--sans); }
.section-head .voice-seg { align-self: center; }
.stage-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stage-text {
  margin: 0 0 22px; max-width: 40em;
  font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.55; letter-spacing: -.02em; font-weight: 500; color: var(--text-strong);
  text-wrap: pretty;
}
.stage-text .w { cursor: pointer; transition: color .18s ease; border-radius: 4px; }
.stage-text .w:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent-line); text-underline-offset: 6px; }
.live .w { color: var(--ghost); }
.live .w.past { color: var(--text-strong); }
.live .w.cur { color: var(--accent-display); }

.deck { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.play {
  flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--accent); color: var(--accent-ink); transition: transform .12s ease, background .12s;
}
.play:hover { background: var(--accent-hover); }
.play:active { transform: scale(.96); }
.play:disabled { background: var(--line-strong); color: var(--dim); cursor: default; }
.play .i-pause { display: none; }
.play.on .i-play { display: none; }
.play.on .i-pause { display: block; }
.play-lg { width: 52px; height: 52px; box-shadow: 0 10px 40px -10px var(--accent); }
.play-lg:disabled { box-shadow: none; }
.play-lg .i-play { margin-left: 3px; }
.wave-wrap { flex: 1; min-width: 0; }
.wave { position: relative; height: 56px; cursor: pointer; touch-action: none; border-radius: 6px; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave-hover { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text-strong); opacity: 0; pointer-events: none; }
.wave:hover .wave-hover { opacity: .45; }
.times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--dim); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.ctl-group { display: inline-flex; gap: 6px; }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-width: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--dim); color: var(--text-strong); }
.ghost-btn:disabled, .ghost-btn[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--text-strong); color: var(--bg); font-weight: 600; }
.keys { font-size: 14px; color: var(--muted); }
.keys summary { cursor: pointer; padding: 8px 4px; color: var(--dim); }
.keys dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 8px 0 0; }
.keys dt, .keys dd { margin: 0; }
kbd { font-family: var(--mono); font-size: 12px; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--text); }
.hint { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }
.keys-list { margin: -12px 0 22px; }

/* ---------- namunalar ro'yxati ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.row {
  position: relative; width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 140px 52px; gap: 20px; align-items: center;
  padding: clamp(16px, 1.8vw, 22px) 4px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.row:hover .row-text { color: var(--text-strong); }
.row-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-strong); transition: background .15s, border-color .15s; }
.row:hover .row-btn { border-color: var(--accent); color: var(--accent); }
.row-btn .i-pause { display: none; }
.row.playing .row-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.row.playing .row-btn .i-play { display: none; }
.row.playing .row-btn .i-pause { display: block; }
.row-btn .i-play { margin-left: 2px; }
.row-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.row-num { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.row-kind { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.row-text { display: block; font-size: clamp(14.5px, 1.15vw, 16.5px); line-height: 1.4; color: var(--text); transition: color .15s; }
.row[aria-current="true"] .row-text { color: var(--text-strong); }
.row-wave { width: 140px; height: 36px; display: block; }
.row-dur { font-family: var(--mono); font-size: 14px; color: var(--dim); text-align: right; }
.row-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.row.missing { cursor: default; opacity: .5; }

/* ---------- qadamlar ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 26px 20px 8px 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.step-n { display: block; font-size: clamp(30px, 2.6vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--accent-display); margin-bottom: 14px; }
.steps h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.3; color: var(--text-strong); }
.steps p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- kod ---------- */
.code { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.code-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.code-tabs button { flex-shrink: 0; padding: 14px 16px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--accent); }
.copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.copy:hover { color: var(--text-strong); border-color: var(--dim); }
.code pre { margin: 0; padding: 24px 0; overflow-x: auto; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.code .c { color: var(--dim); }
.code .s { color: var(--accent-text); }
.code .k { color: var(--text-strong); font-weight: 600; }

/* ---------- tafsilotlar ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; color: var(--text-strong); }
.limits { list-style: none; margin: 0; padding: 0; counter-reset: lim; border-top: 1px solid var(--line); }
.limits li { counter-increment: lim; position: relative; padding: 13px 0 13px 40px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.limits li::before { content: counter(lim, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 13px; color: var(--accent-text); }

/* ---------- trening va natijalar ---------- */
.sub-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.facts dd .mono { font-size: .92em; }
.table-wrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.results th, .results td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.results thead th { font-size: 13px; font-weight: 600; color: var(--dim); border-top: 1px solid var(--line); }
.results tbody th { font-weight: 600; color: var(--text-strong); }
.results td { font-family: var(--mono); color: var(--text); }
.results tr.hl th { color: var(--accent-text); }
.results tr.hl td { color: var(--text-strong); font-weight: 600; }

/* ---------- model kartasi matni ---------- */
.block .sub-title { margin-top: 34px; }
.block .split .sub-title:first-child, .block .split > div > .sub-title:first-child { margin-top: 0; }
.prose { margin: 0 0 16px; max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.table-wrap + .prose { margin-top: 14px; }
.results .txt { font-family: var(--sans); white-space: normal; color: var(--muted); }
.results.compact th, .results.compact td { padding: 11px 14px 11px 0; }
.stats-inline { margin: 0 0 clamp(28px, 4vw, 44px); }
.pipeline { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.pipeline li { counter-increment: st; position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pipeline li::before { content: counter(st); position: absolute; left: 0; top: 12px; font-weight: 700; color: var(--accent-display); }
.pipeline b, .learn b { color: var(--text-strong); font-weight: 600; }
.hist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.hist li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; align-items: center; gap: 12px; font-size: 13px; }
.hist-k { color: var(--dim); }
.hist-v { text-align: right; color: var(--text); }
.hist-bar { height: 14px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.hist-bar i { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 3px; }
.learn { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.learn li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--muted); }
.tree { margin: 0 0 14px; padding: 18px 0; overflow-x: auto; font-size: 13px; line-height: 1.75; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tree .c { color: var(--dim); }
.code-label { padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--dim); }
.limits.todo li::before { content: "→"; }

/* ---------- aloqa ---------- */
.contact {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px clamp(32px, 5vw, 72px);
  margin-top: clamp(44px, 5.5vw, 76px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px);
}
.contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 0; bottom: 0; width: min(640px, 100%); aspect-ratio: 2.2;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.contact .eyebrow { margin-bottom: 12px; }
.contact-title { margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; color: var(--text-strong); }
.contact-lead { margin: 10px 0 0; max-width: 560px; font-size: clamp(14.5px, 1.1vw, 16px); color: var(--muted); }
.contact-box { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.mail-row { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.mail {
  min-width: 0; overflow-wrap: anywhere; font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; letter-spacing: -.02em;
  color: var(--accent-display); border-bottom: 2px solid var(--accent-line); padding-bottom: 3px; line-height: 1.3;
}
.mail:hover { border-bottom-color: var(--accent); }
.mail-row .icon-btn { width: 34px; height: 34px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; font-size: 13.5px; color: var(--dim); }

/* ---------- mini-pleyer ---------- */
.mini {
  position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 16px 12px 10px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
}
.play-sm { width: 40px; height: 40px; }
.mini-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mini-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); }
.mini-text { font-size: 14.5px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-time { font-size: 13px; color: var(--dim); }
.mini-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 40;
  padding: 10px 18px; border-radius: 999px; background: var(--text-strong); color: var(--bg); font-size: 14.5px; font-weight: 600;
}

/* ---------- moslashuvchan ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stage { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-n { grid-row: span 2; font-size: 40px; margin: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .nav-links { display: none; }
  .icon-btn { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 14px; }
  .row-btn { width: 44px; height: 44px; }
  .row-wave { display: none; }
  .play-lg { width: 48px; height: 48px; }
  .wave { height: 52px; }
  .facts div { grid-template-columns: 120px minmax(0, 1fr); font-size: 16px; }
}
@media (max-width: 420px) {
  .repo { padding-top: 16px; padding-bottom: 16px; }
  .hero-cta .cta { flex: 1 1 100%; justify-content: center; }
  .contact-box, .contact-box .cta { width: 100%; justify-content: center; }
  .controls { gap: 10px; }
  .keys { width: 100%; }
  .code-tabs button { padding: 12px 9px 11px; font-size: 13.5px; }
  .copy { padding: 8px; }
  .copy span { display: none; }
}
