/* ==========================================================================
   Prezentor.uz — "Yumshoq" dizayn tizimi (light mode)
   Yashil asosiy rang, pastel plitkalar, katta radiuslar, Plus Jakarta Sans
   (kirill harflari uchun Manrope avtomatik zaxira).
   ========================================================================== */
:root {
  color-scheme: light;
  --ink: #12291F; --ink-2: #2C4238; --muted: #5B6E65; --bg: #F5F8F6; --panel: #FFFFFF;
  --green: #0F7A55; --green-d: #0A5C40; --line: #E1EAE5; --line-2: #EDF3EF;
  --mint: #DDF3E7; --butter: #FFF1C2; --butter-ink: #6B4E00; --sky: #DCEBFF; --peach: #FFE2D3; --lilac: #ECE6FF;
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 16px; --r-lg: 28px;
  --shadow: 0 20px 40px -22px rgba(18, 41, 31, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--green); color: #FFF; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-light { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--mint); }
.btn-butter { background: var(--butter); color: var(--ink); }
.btn-butter:hover { background: #FFE89A; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo i { width: 32px; height: 32px; border-radius: 11px; background: var(--green); display: grid; place-items: center; }
.logo i::after { content: ""; width: 14px; height: 10px; border-radius: 3px; border: 2px solid #FFF; }
.menu { display: flex; gap: 4px; margin: 0 auto; background: var(--panel); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.menu a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 15px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.menu a:hover { background: var(--mint); color: var(--green-d); }
.menu a[aria-current="page"] { background: var(--ink); color: #FFF; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- typography helpers ---------- */
.eyebrow { display: inline-block; color: var(--green); font-weight: 700; font-size: 14px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; }
.updated { margin-top: 18px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- page head (inner pages) ---------- */
.phead { padding-block: 36px 40px; }
.phead h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; margin-top: 12px; max-width: 20ch; }
.phead .lead { margin-top: 16px; max-width: 60ch; }
.phead.center { text-align: center; }
.phead.center h1, .phead.center .lead { margin-left: auto; margin-right: auto; }
.phead.center .crumbs ol { justify-content: center; }
.phead .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.phead.center .actions { justify-content: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9B8B0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

.answer { background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: var(--r); padding: 20px 22px; margin-top: 28px; max-width: 760px; position: relative; overflow: hidden; }
.answer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--green); }
.answer-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.answer p { font-size: 17px; color: var(--ink-2); }
.phead.center .answer { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- sections ---------- */
.sec { padding-block: 96px; }
.sec.tight { padding-block: 56px; }
.shead { max-width: 660px; }
.shead.center { text-align: center; margin: 0 auto; }
.shead h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-top: 10px; }
.shead p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }

/* ---------- hero (home) ---------- */
.hero { text-align: center; padding-top: 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.pill b { background: var(--butter); color: var(--butter-ink); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 22px auto 0; max-width: 15ch; }
.hero h1 span { color: var(--green); }
.hero .lead { max-width: 56ch; margin: 20px auto 0; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .proof { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero .proof span::before { content: "✓ "; color: var(--green); font-weight: 800; }
.stage { position: relative; margin: 60px auto 0; max-width: 1060px; display: grid; grid-template-columns: 1fr 360px 1fr; gap: 26px; align-items: center; }
.float { display: grid; gap: 18px; }
.float .slide { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.float.l .slide:first-child { transform: rotate(-4deg); } .float.l .slide:last-child { transform: rotate(2deg) translateX(20px); }
.float.r .slide:first-child { transform: rotate(3deg); } .float.r .slide:last-child { transform: rotate(-2deg) translateX(-20px); }
.phone { background: #0E1A14; border-radius: 44px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(18,41,31,.45); }
.screen { background: #E6EFE9; border-radius: 34px; overflow: hidden; text-align: left; }
.screen header { background: var(--panel); padding: 16px 18px 12px; display: flex; gap: 10px; align-items: center; }
.screen header i { width: 34px; height: 34px; border-radius: 50%; background: var(--green); }
.screen header b { display: block; font-size: 14px; line-height: 1.2; }
.screen header small { font-size: 12px; color: var(--green); }
.msgs { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.msg { max-width: 86%; background: var(--panel); padding: 9px 12px; border-radius: 16px 16px 16px 6px; font-size: 13px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--green); color: #FFF; border-radius: 16px 16px 6px 16px; }
.msg .kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.msg .kb span { text-align: center; background: var(--mint); color: var(--green-d); font-weight: 700; font-size: 12px; padding: 7px 4px; border-radius: 10px; }
.fmsg { display: flex; gap: 10px; align-items: center; }
.fmsg i { width: 36px; height: 36px; border-radius: 10px; background: var(--peach); color: #A13B12; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.fmsg b { display: block; font-size: 13px; } .fmsg small { color: var(--muted); font-size: 11px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 72px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: left; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat a { color: var(--muted); font-size: 12px; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.tile { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); }
.tile.mint { background: var(--mint); border-color: transparent; } .tile.butter { background: var(--butter); border-color: transparent; }
.tile.sky { background: var(--sky); border-color: transparent; } .tile.peach { background: var(--peach); border-color: transparent; } .tile.lilac { background: var(--lilac); border-color: transparent; }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.78); display: grid; place-items: center; }
.tile:not(.mint):not(.butter):not(.sky):not(.peach):not(.lilac) .ic { background: var(--mint); }
.tile h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.tile p { color: #3E5248; font-size: 15px; }
.tile.wide { grid-column: span 2; }
.tile .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--green-d); }
a.tile { transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.demo { margin-top: auto; background: rgba(255,255,255,.82); border-radius: 18px; padding: 14px; display: grid; gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button, .chips a, .chip { background: var(--panel); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.chips a:hover { border-color: var(--green); color: var(--green); }
.demo .slide { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 16%; right: 16%; border-top: 2px dashed #B9D3C5; }
.step { text-align: center; display: grid; justify-items: center; gap: 12px; position: relative; }
.step b { width: 64px; height: 64px; border-radius: 50%; background: var(--panel); border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.step p { color: var(--muted); max-width: 32ch; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.pcard h3 { font-size: 18px; font-weight: 800; }
.pcard .p { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pcard .p small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.pcard li { display: flex; gap: 10px; } .pcard li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pcard.hot { background: var(--green); color: #FFF; border-color: var(--green); }
.pcard.hot .p small, .pcard.hot ul { color: #CDEBDD; } .pcard.hot li::before { color: var(--butter); }
.pcard .badge { align-self: flex-start; background: var(--butter); color: var(--butter-ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.free-note { margin-top: 18px; background: var(--mint); border-radius: 20px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 700; color: var(--green-d); }
.topup { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.topup h3 { font-size: 18px; font-weight: 800; }
.topup h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.amts { display: flex; gap: 8px; flex-wrap: wrap; }
.amts button { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.amts button small { color: var(--green); font-size: 12px; }
.amts button[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.amts button[aria-pressed="true"] small { color: #9FE3C2; }
.total { text-align: right; } .total b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .total small { color: var(--muted); font-size: 13px; }
.yield { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.yield span { background: var(--bg); padding: 5px 12px; border-radius: 999px; }
.yield b { color: var(--ink); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F7A55' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.prose .faq { margin-left: 0; }

/* ---------- cta band ---------- */
.cta-band { padding-block: 40px 96px; }
.cta-box { background: var(--ink); color: #FFF; border-radius: 36px; padding: clamp(36px, 6vw, 68px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-box h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.cta-box p { color: #B6CAC0; margin-top: 12px; font-size: 17px; max-width: 52ch; }

/* ---------- article layout ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 80px; }
.aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.aside .box { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; }
.aside .box h2, .aside .box h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.aside .box p { color: var(--muted); font-size: 14px; }
.aside .box.green { background: var(--green); color: #FFF; border-color: var(--green); }
.aside .box.green p { color: #CDEBDD; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--green); }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ink); margin-top: 48px; letter-spacing: -0.03em; }
.prose h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 32px; letter-spacing: -0.02em; }
.prose ul, .prose ol { padding-left: 22px; } .prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: var(--butter); border-radius: 18px; color: var(--ink); }
.prose .note { background: var(--mint); border-radius: 18px; padding: 16px 20px; font-size: 15px; color: var(--green-d); }
.prose .src { font-size: 14px; color: var(--muted); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.us td { background: var(--mint); }

/* ---------- topic page ---------- */
.outline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: s; }
.outline li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.outline li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--green); font-size: 14px; padding-top: 2px; }
.outline li b { display: block; color: var(--ink); }
.outline li span { color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.prev3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prev3 .slide { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- cards & hubs ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .slide { border-radius: 12px; border: 1px solid var(--line); }
.card .k { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: .04em; text-transform: uppercase; }
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tgroup { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.tgroup h2, .tgroup h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tgroup h2 a, .tgroup h3 a { font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: 0; }
.tgroup ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.tgroup .chips { margin-top: 14px; }

/* ---------- lesson builder ---------- */
.lesson { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.form select { appearance: none; height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312291F' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; padding: 0 40px 0 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); width: 100%; }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.kit div { background: var(--mint); border-radius: 14px; padding: 12px; text-align: center; font-size: 13px; color: var(--green-d); font-weight: 600; }
.kit b { display: block; font-size: 24px; font-weight: 800; }
.lesson .slide { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- compare (feature checklist) ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 13px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: 120px; }
.nf b { font-size: clamp(80px, 14vw, 160px); font-weight: 800; letter-spacing: -0.06em; color: var(--green); line-height: 1; display: block; }

/* ---------- slide component ---------- */
.slide { --s-bg: #FFFFFF; --s-ink: #12291F; --s-sub: #557064; --s-acc: #0F7A55; --s-line: #DDE8E2; --s-soft: #E3F4EB;
  aspect-ratio: 16 / 9; width: 100%; max-width: 100%; position: relative; overflow: hidden; background: var(--s-bg); color: var(--s-ink); container-type: inline-size; font-family: var(--font); transition: background .25s, color .25s; }
.slide.t-paper { --s-bg: #F7F5F0; --s-ink: #1C1917; --s-sub: #57534E; --s-acc: #B45309; --s-line: #E7E5E4; --s-soft: #EFEBE3; }
.slide.t-blue { --s-bg: #FFFFFF; --s-ink: #0F172A; --s-sub: #475569; --s-acc: #1D4ED8; --s-line: #E2E8F0; --s-soft: #EFF6FF; }
.slide.t-dark { --s-bg: #12291F; --s-ink: #F4FBF7; --s-sub: #A8C2B6; --s-acc: #FFD866; --s-line: #234536; --s-soft: #1B3A2D; }
.s-inner { position: absolute; inset: 0; padding: 7cqw 8cqw; display: flex; flex-direction: column; }
.s-tag { font-size: 2.2cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-acc); }
.s-title { display: block; font-size: 6.4cqw; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 1.6cqw; }
.s-list { list-style: none; padding: 0; margin: 4cqw 0 0; display: grid; gap: 2.2cqw; font-size: 2.7cqw; color: var(--s-sub); max-width: 58%; }
.s-list li { display: flex; gap: 2cqw; align-items: baseline; }
.s-list li::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--s-acc); flex-shrink: 0; transform: translateY(-.2cqw); }
.s-fig { position: absolute; right: 8cqw; top: 50%; transform: translateY(-46%); width: 28cqw; aspect-ratio: 1; border-radius: 50%; background: var(--s-soft); display: grid; place-items: center; }
.s-fig span { font-family: var(--mono); font-size: 4.2cqw; color: var(--s-acc); font-weight: 600; }
.s-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 1.8cqw; color: var(--s-sub); border-top: .2cqw solid var(--s-line); padding-top: 2cqw; }
.s-cover .s-title { font-size: 8cqw; margin-top: auto; max-width: 76%; }
.s-cover .s-meta { display: block; font-size: 2.5cqw; color: var(--s-sub); margin-top: 2.4cqw; }
.s-cover .s-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 1.6cqw; background: var(--s-acc); }
.s-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 4cqw; }
.s-quiz span { border: .25cqw solid var(--s-line); border-radius: 1.4cqw; padding: 2cqw; font-size: 2.5cqw; color: var(--s-sub); }
.s-quiz span.ok { border-color: var(--s-acc); color: var(--s-ink); background: var(--s-soft); }

/* ---------- footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.langs a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.footer h3 { font-size: 14px; font-weight: 800; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer li a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-bottom a { color: var(--muted); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: #FFF; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; transition: .2s; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; position: absolute; top: 76px; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); flex-direction: column; border-radius: 22px; padding: 8px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; font-size: 15px; }
  .burger { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; max-width: 380px; }
  .float { display: none; }
  .tiles, .prices, .cards { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .topup { grid-template-columns: 1fr; } .total { text-align: left; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .lesson { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sec { padding-block: 64px; }
  .nav-right .btn { display: none; }
  .tiles, .prices, .cards, .topics, .facts, .prev3 { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; } .steps::before { display: none; }
  .cta-box { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero .actions .btn { width: 100%; }
}

.official { margin-top: 10px !important; font-weight: 700; color: var(--ink) !important; }
.official a { color: var(--green); }

/* ==========================================================================
   Mobil moslashuv (telefon: 640px va undan kichik)
   ========================================================================== */
.mbar { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav-inner { height: 64px; }
  .menu { top: 64px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .logo { font-size: 18px; } .logo i { width: 30px; height: 30px; }

  /* doimiy pastki tugma */
  .mbar { display: block; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar .btn { width: 100%; height: 50px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

  /* sarlavhalar */
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 36px; margin-top: 18px; }
  .hero .lead, .lead { font-size: 17px; }
  .hero .actions { margin-top: 24px; gap: 10px; }
  .hero .proof { gap: 6px 16px; font-size: 13px; }
  .phead { padding-block: 20px 28px; }
  .phead h1 { font-size: 32px; }
  .shead h2 { font-size: 28px; }
  .shead p { font-size: 16px; }
  .sec { padding-block: 56px; }
  .sec.tight { padding-block: 32px; }

  /* telefon maketi ixchamroq */
  .stage { margin-top: 36px; max-width: 300px; }
  .phone { border-radius: 36px; padding: 9px; }
  .screen { border-radius: 28px; }
  .msgs { min-height: 0; padding: 12px; }
  .msg { font-size: 12.5px; }

  /* raqamlar */
  .stats { margin-top: 40px; gap: 10px; }
  .stat { padding: 16px; border-radius: 18px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 13px; line-height: 1.4; display: block; margin-top: 2px; }

  /* qisqa javob */
  .answer { padding: 16px 18px; margin-top: 20px; }
  .answer p { font-size: 16px; line-height: 1.6; }

  /* plitkalar: ikonka chapda, ixcham */
  .tiles { gap: 12px; margin-top: 32px; }
  .tile { padding: 20px; border-radius: 22px; gap: 8px; }
  .tile:not([data-script-box]) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
  .tile:not([data-script-box]) .ic { grid-row: span 3; width: 44px; height: 44px; border-radius: 14px; }
  .tile:not([data-script-box]) .ic svg { width: 22px; height: 22px; }
  .tile h3 { font-size: 17px; margin-top: 0; }
  .tile p { font-size: 14.5px; }
  .tile .more { margin-top: 2px; }
  .demo { padding: 12px; }

  /* bosish uchun qulay o'lchamlar */
  .chips button, .chips a, .chip { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 14px; }
  .amts button { min-height: 44px; }
  .form select { font-size: 16px; } /* iOS zoom bo'lmasligi uchun */
  .lesson .btn { width: 100%; }
  .lesson { padding: 18px; gap: 20px; margin-top: 32px; }

  /* slaydli kartalar: gorizontal aylantirish */
  .prev3, .cards:has(.slide) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding: 0 max(16px, env(safe-area-inset-left, 0px)) 8px; scroll-padding-left: 16px; scrollbar-width: none; }
  .prev3::-webkit-scrollbar, .cards:has(.slide)::-webkit-scrollbar { display: none; }
  .prev3 > .slide { flex: 0 0 82%; scroll-snap-align: start; }
  .cards:has(.slide) > .card { flex: 0 0 80%; scroll-snap-align: start; }
  .cards { gap: 12px; margin-top: 28px; }
  .card { padding: 18px; border-radius: 20px; }

  /* narxlar */
  .prices { gap: 12px; margin-top: 32px; }
  .pcard { padding: 22px; border-radius: 22px; gap: 10px; }
  .pcard .p { font-size: 36px; }
  .free-note { flex-direction: column; gap: 4px; padding: 16px 18px; }
  .topup { padding: 20px; gap: 16px; }

  /* maqola */
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; margin-top: 36px; }
  .article { gap: 28px; padding-bottom: 48px; }
  .outline li { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 14px; }
  .tgroup { padding: 18px; }
  .tbl { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); border-radius: 0; border-left: 0; border-right: 0; }

  /* faq va cta */
  .faq { margin-top: 28px; }
  .faq details { padding: 0 16px; border-radius: 16px; }
  .faq summary { font-size: 15px; padding: 16px 0; }
  .cta-band { padding-block: 24px 56px; }
  .cta-box { border-radius: 26px; padding: 28px 22px; }
  .cta-box .btn { width: 100%; }

  .footer { padding-block: 40px 24px; }
  .foot-grid { gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; margin-top: 32px; }
}

.prose .outline { padding-left: 0; }
.prose .outline li + li { margin-top: 0; }

/* ---------- landing (kalit so'z sahifalari) ---------- */
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.phead.center .trust { justify-content: center; }
.inline-cta { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-cta p { font-weight: 700; color: var(--ink); max-width: 56ch; }
.prose .inline-cta p { font-size: 16px; }
.pstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.pstrip div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pstrip div:first-child { background: var(--mint); border-color: transparent; }
.pstrip b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pstrip span { font-size: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 40px; }
.split .slide { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.official-box { margin-top: 24px; background: var(--butter); border-radius: 22px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 760px; }
.official-box b { font-size: 18px; } .official-box p { color: var(--ink-2); margin-top: 4px; font-size: 15px; max-width: 52ch; }
.files-demo { display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.files-demo .fmsg { background: var(--bg); border-radius: 14px; padding: 12px; }
.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.fcol { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.fcol.yes { background: var(--mint); border-color: transparent; }
.fcol h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.qgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.qgrid a { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; transition: border-color .15s, transform .15s; }
.qgrid a:hover { border-color: var(--green); transform: translateY(-2px); }
.qgrid b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.qgrid b::after { content: " →"; color: var(--green); }
.qgrid span { font-size: 13.5px; color: var(--muted); }
.foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .split, .free-grid { grid-template-columns: 1fr; } .qgrid, .pstrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .qgrid { gap: 8px; margin-top: 24px; } .qgrid a { padding: 14px; border-radius: 16px; } .qgrid b { font-size: 14.5px; } .qgrid span { font-size: 12.5px; }
  .pstrip { gap: 8px; } .pstrip div { padding: 14px; border-radius: 16px; } .pstrip b { font-size: 18px; } .pstrip span { font-size: 12.5px; }
  .inline-cta { padding: 18px; } .inline-cta .btn { width: 100%; }
  .official-box { padding: 18px; } .official-box .btn { width: 100%; }
  .trust { gap: 6px 14px; font-size: 13px; }
  .split { gap: 20px; margin-top: 24px; }
}
