/* Nuvi Academy: dark violet glass design system (referens: AI-assistant landing) */
:root {
  --bg: #07060b;
  --bg-2: #0c0a14;
  --frame: #0a0811;
  --text: #f5f3fb;
  --muted: #a8a1bd;
  --dim: #9c95b6;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --acc: #8b5cf6;
  --acc-2: #a78bfa;
  --acc-3: #c4b5fd;
  --acc-deep: #6d28d9;
  --ok: #4ade80;
  --warn: #fbbf24;
  --r-card: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100dvh;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 8px; }
.ph { line-height: 1; }

/* Sahifa ramkasi (referensdagi yumaloq ramka + yon tomondagi binafsha nur) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 0% 100%, rgba(124, 58, 237, .35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(124, 58, 237, .35), transparent 70%);
}
.frame {
  max-width: 1240px; margin: 0 auto; background: var(--frame);
  overflow: hidden; position: relative; isolation: isolate;
}
@media (min-width: 900px) {
  .frame { margin: 28px auto 40px; border: 1px solid var(--line-2); border-radius: 28px; }
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigatsiya ---------- */
.nav {
  position: relative; z-index: 20; height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); color: #fff; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand img.brand-mark { object-fit: cover; padding: 0; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--muted); font-size: 18px;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,.28); }
.user-chip {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); font-size: 14px; font-weight: 500;
}
.user-chip .av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); overflow: hidden;
}
.user-chip .av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #9b6cff, #7136f0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px -8px rgba(124,58,237,.8);
}
.btn-primary:hover { background: linear-gradient(180deg, #a77cff, #7c45f5); }
.btn-ghost { color: var(--text); background: rgba(10, 8, 17, .6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-tg { color: #fff; background: #2aabee; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.06); font-size: 12px; color: var(--text);
}
.pill .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--acc-deep); font-size: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.chip .ph { color: var(--acc-3); }

/* ---------- Shisha karta ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #16121f; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Matn ---------- */
.h-display { font-weight: 500; letter-spacing: -.035em; line-height: 1.08; font-size: clamp(34px, 6.2vw, 58px); }
.h-display .dim { color: rgba(245, 243, 251, .42); display: block; }
.h-section { font-weight: 500; letter-spacing: -.03em; line-height: 1.12; font-size: clamp(28px, 4.4vw, 42px); }
.h-section em { font-style: normal; color: var(--acc-2); }
.lead { color: var(--muted); font-size: 16px; max-width: 46ch; }
.muted { color: var(--muted); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; font-size: 14px;
  background: rgba(22, 18, 32, .92); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  animation: toast-in .35s var(--ease);
}
.toast .ph { color: var(--acc-2); font-size: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Telegram tasdiq oynasi ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4, 3, 8, .7); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-card {
  width: min(440px, 100%); padding: 26px 22px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; text-align: center;
  background: linear-gradient(180deg, #1a1428, #0f0c18); border: 1px solid var(--line-2);
  transform: translateY(24px); transition: transform .35s var(--ease); position: relative; overflow: hidden;
}
.sheet-card::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 220px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(139,92,246,.45), transparent 70%);
}
.sheet.open .sheet-card { transform: none; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 26px; } }
.sheet-icon {
  position: relative; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center;
  font-size: 28px; color: #fff; background: linear-gradient(140deg, #3ab5f2, #1d8fd6); box-shadow: 0 12px 30px -10px rgba(42,171,238,.7);
}
.sheet h3 { position: relative; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sheet p { position: relative; color: var(--muted); font-size: 14px; margin: 8px auto 18px; max-width: 34ch; }
.sheet-steps { position: relative; display: grid; gap: 8px; text-align: left; margin: 0 0 18px; }
.sheet-steps div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.sheet-steps .ph { color: var(--acc-3); font-size: 18px; }
.widget-box { position: relative; min-height: 46px; display: flex; justify-content: center; align-items: center; }
.sheet-alt { position: relative; margin-top: 10px; }
.sheet-alt:hover { color: var(--text); }
.sheet-skip { position: relative; margin-top: 6px; font-size: 14px; color: var(--dim); padding: 8px 16px; min-height: 44px; }
.sheet-note { position: relative; margin-top: 12px; font-size: 12px; color: var(--dim); }
.sheet-err { position: relative; color: #f87171; font-size: 14px; margin-top: 10px; }

/* ---------- Harakat ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Skelet ---------- */
.skel { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.foot { border-top: 1px solid var(--line); padding: 28px 24px calc(28px + var(--safe-b)); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--dim); }
.foot p { max-width: 60ch; }

/* ---------- Ariza oynasi ---------- */
.lead-card { text-align: left; }
.lead-card h3, .lead-card > p { text-align: center; position: relative; }
.lead-card .sheet-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.lead-card .sheet-x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.field { position: relative; margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .phone-wrap { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 16px; padding: 0 16px; }
.field input:focus, .phone-wrap:focus-within { outline: none; border-color: var(--acc-2); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.phone-wrap { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.phone-wrap span { color: var(--muted); font-size: 16px; white-space: nowrap; }
.phone-wrap input { border: 0; background: transparent; height: 100%; padding: 0; box-shadow: none !important; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.field-err { min-height: 0; color: #fca5a5; font-size: 14px; margin-top: 6px; }
.field-err:empty { display: none; }
.lead-note { position: relative; text-align: center; font-size: 12px; color: var(--dim); margin-top: 12px; }
.lead-card .btn-block { margin-top: 6px; }
.lead-ok { text-align: center; }
.lead-ok .ok-ic { font-size: 56px; color: var(--ok); line-height: 1; margin-bottom: 8px; }
.lead-ok h3 { font-size: 20px; }
.lead-ok .btn { margin-top: 6px; }
@media (max-height: 640px) { .lead-card { max-height: 100%; overflow-y: auto; } }


/* ==========================================================================
   TIPOGRAFIYA TIZIMI: shkala 12 / 14 / 16 / 18 / 20 / 24 / 28 / 32 / display
   `body` old qo'shimchasi sahifa ichidagi uslublardan ustun turishi uchun
   ========================================================================== */
:root { --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; }
body { font-size: 16px; line-height: 1.55; }

/* sarlavhalarda yolg'iz so'z qolmasin, matnda ham */
h1, h2, h3, .h-display, .h-section, .cover h2, .sheet h3 { text-wrap: balance; }
p, li, .lead, .desc, .a, .mod-res { text-wrap: pretty; }

/* asosiy o'qiladigan matn 16px (mobilda ham) */
body .lead { font-size: 16px; line-height: 1.6; }
@media (min-width: 760px) { body .lead { font-size: 18px; } }
body .card p, body .sec-head p, body .mod-res, body .lessons li, body details.q .a, body .person .bio p,
body .text-sec p, body .price-note, body .tariff li, body .final p, body .desc, body .mission h2 + .chips { font-size: 16px; line-height: 1.6; }
body .tariff li.lead-in { font-size: 14px; }
body details.q summary, body .mod-t { font-size: 16px; }
@media (min-width: 760px) { body details.q summary, body .mod-t { font-size: 18px; } }

/* satr uzunligi 45-75 belgi */
body .sec-head p { max-width: 56ch; }
body details.q .a { max-width: 68ch; }
body .mod-res { max-width: 72ch; }
body .price-note { max-width: 64ch; margin-inline: auto; }
body .person .bio p, body .final p { max-width: 66ch; }

/* sarlavha: katta o'lchamda biroz ochiqroq, ikkinchi qism o'qiladigan */
body .h-display { line-height: 1.12; }
body .h-section { line-height: 1.15; }
body .h-display .dim { color: rgba(245, 243, 251, .62); }

/* ikkinchi darajali matn 14px dan kichik emas, mikro-yozuv 12px */
body .foot, body .sheet-note { font-size: 14px; }

/* kirish oynasi: "yoki" ajratgich */
.sheet-hint { position: relative; margin: 10px auto 0; font-size: 14px; color: var(--muted); max-width: 34ch; line-height: 1.5; text-align: center; }
.sheet-hint b { color: var(--text); font-weight: 500; }
.sheet-or { position: relative; display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.sheet-or::before, .sheet-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sheet-or[hidden], .sheet-hint[hidden] { display: none; }
.sheet-alt { margin-top: 4px; }

.nb { white-space: nowrap; }
.brand > span:last-child { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 8px; padding-inline: 16px; }
}

/* Brend logotipi (oq, shaffof PNG): yoniga matn yozilmaydi */
.brand-logo { display: block; height: 42px; width: auto; }
.brand { min-height: 44px; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }

.sheet-why { position: relative; text-align: left; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.5; }
.sheet-why b { color: var(--text); font-weight: 600; }
.sheet-why ol { list-style: none; counter-reset: st; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sheet-why li { counter-increment: st; display: flex; gap: 10px; align-items: center; }
.sheet-why li::before { content: counter(st); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); }
