/* Tashrif tanishtiruv sayti. Ilovaning o'z uslubi: platforma ranglari (yorqin: #eef3fa zamin, ko'k #2f6df6; qorong'u: issiq qora zamin),
   suzuvchi ikonlar va tekis dumaloq shakllar fonda, yumaloq tugmalar, chegara va soyasiz. */
@font-face { font-family: "Inter"; src: url(/site/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url(/site/fonts/pacifico-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* yorqin (standart) */
:root, :root[data-mode="light"] {
  --ground: #eef3fa; --surface: #ffffff; --raised: #e6edf7; --control: #c8d3e3;
  --ink: #0f1b2d; --muted: #4a5b73;
  --accent: #2f6df6; --accent-hover: #1d4fd1; --on-accent: #ffffff; --accent-ink: #1d4fd1;
  --stage: #dbe8ff; --paper: #ffffff; --paper-ink: #0f1b2d; --danger: #dc2626;
  --blob1: #dbe8ff; --blob2: #ffe3da; --blob3: #d9f5e8; --blob-op: .55;
  --fi-op: .5; --c1: #2f6df6; --c2: #ff7a59; --c3: #12b886; --c4: #f59f00;
  --lg-blue: #2F6BFF; --lg-green: #10B981; --lg-ring: #ffffff; --lg-word: #0f172a;
}
/* qorong'u */
:root[data-mode="dark"] {
  --ground: #0d0c0b; --surface: #171615; --raised: #262422; --control: #3a3835;
  --ink: #ffffff; --muted: #b4b4b4;
  --accent: #2f6df6; --accent-hover: #4d84ff; --on-accent: #ffffff; --accent-ink: #7db9f5;
  --stage: #15253a; --paper: #ffffff; --paper-ink: #0f1b2d; --danger: #ef6a6f;
  --blob1: color-mix(in srgb, #6aaef0 11%, transparent); --blob2: color-mix(in srgb, #ff7a59 8%, transparent); --blob3: color-mix(in srgb, #12b886 9%, transparent); --blob-op: 1;
  --fi-op: .22; --c1: #8ab4ff; --c2: #ff9a80; --c3: #4fd1a5; --c4: #ffc24d;
  --lg-blue: #4D84FF; --lg-green: #34D399; --lg-ring: #0F172A; --lg-word: #f8fafc;
}
:root {
  --margin: 12px; --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-display: clamp(40px, 4.7vw, 72px);
  --step-head: clamp(30px, 3.3vw, 48px);
  --step-statement: clamp(22px, 2vw, 28px);
  --step-body: 17px; --step-small: 14px; --bar: 64px;
  color-scheme: light;
}
:root[data-mode="dark"] { color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh; }
body > header, body > main, body > footer { position: relative; z-index: 1; }
h1, h2, h3, p, dl, dd, ul, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .4s ease, color .4s ease, fill .4s ease, outline-color .4s ease !important; }

/* ---------- ikonlar (ilovadagi to'plam) ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ico { width: 44px; height: 44px; border-radius: 50%; background: var(--raised); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.ico.big { width: 56px; height: 56px; }
.ico.big .ic { width: 28px; height: 28px; }

/* ---------- logotip (ilovadagi bilan bir xil) ---------- */
.logo { display: block; overflow: visible; }
.logo .lg-font { font-family: "Pacifico", cursive; }
.logo .lg-blue { fill: var(--lg-blue); }
.logo .lg-green { fill: var(--lg-green); stroke: var(--lg-ring); }
.logo .lg-ring { fill: none; stroke: var(--lg-green); stroke-width: 1.6; opacity: 0; }
.logo .lg-word { fill: var(--lg-word); }
.logo-anim .lg-blue, .logo-anim .lg-t, .logo-anim .lg-green, .logo-anim .lg-ring, .logo-anim .lg-clip { transform-box: fill-box; }
.logo-anim .lg-blue { transform-origin: center; animation: lg-pop .7s cubic-bezier(.2, .9, .3, 1.25) both; }
.logo-anim .lg-t { transform-origin: 50% 85%; animation: lg-t .6s .3s cubic-bezier(.2, .9, .3, 1.4) both; }
.logo-anim .lg-green { transform-origin: center; animation: lg-pop .5s .85s cubic-bezier(.2, .9, .3, 1.5) both; }
.logo-anim .lg-clip { transform-origin: left center; animation: lg-wipe .9s .5s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes lg-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-t { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- animatsion fon (ilovadagi: tekis dumaloq shakllar va suzuvchi ikonlar) ---------- */
.bgfx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bgfx .blob { position: absolute; border-radius: 50%; opacity: var(--blob-op); animation: drift 16s ease-in-out infinite alternate; }
.bgfx .b1 { width: 420px; height: 420px; left: -120px; top: 6%; background: var(--blob1); }
.bgfx .b2 { width: 340px; height: 340px; right: -100px; top: 38%; background: var(--blob2); animation-duration: 20s; animation-delay: -4s; }
.bgfx .b3 { width: 400px; height: 400px; left: 22%; bottom: -150px; background: var(--blob3); animation-duration: 18s; animation-delay: -8s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(34px, -28px) scale(1.12); } }
.bgfx .fi { position: absolute; width: var(--s); height: var(--s); opacity: var(--fi-op); animation: floaty var(--d) ease-in-out var(--dl) infinite alternate; }
.bgfx .fi .ic { width: 100%; height: 100%; stroke-width: 1.4; }
.bgfx .c1 { color: var(--c1); } .bgfx .c2 { color: var(--c2); } .bgfx .c3 { color: var(--c3); } .bgfx .c4 { color: var(--c4); }
@keyframes floaty { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(var(--dx), var(--dy)) rotate(10deg); } }

/* ---------- tugma: bitta shakl (pill), ilovadagidek ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; transition: transform .15s ease, background-color .2s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn.big { min-height: 54px; padding: 0 30px; }
.btn.ghost { background: var(--raised); color: var(--ink); }
.btn.ghost:hover { background: var(--control); }
.link { color: var(--muted); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; transition: color .2s ease; }
.link:hover { color: var(--ink); }
.modefab { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); transition: transform .15s ease; flex: none; }
.modefab:active { transform: scale(.92); }
.modefab .ic { animation: swap .5s ease-out; }
@keyframes swap { from { transform: rotate(-120deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- yuqori qator ---------- */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 calc(var(--margin) + 8px); background: var(--ground); }
.brand { display: inline-flex; align-items: center; }
.bar nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; font-size: 17px; color: var(--muted); }
.bar nav a { transition: color .2s ease; }
.bar nav a:hover { color: var(--ink); }

/* ---------- bo'lingan sahifa: o'ngda o'zgarmas telefon, chapda o'qiladigan ustun ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); padding: 0 var(--margin); align-items: start; }
.stage { order: 2; position: sticky; top: calc(var(--bar) + 4px); height: calc(100svh - var(--bar) - 16px); min-height: 520px; background: var(--stage); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.phone { position: relative; height: min(84%, 760px); aspect-ratio: 430 / 860; animation: float 7s ease-in-out infinite; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; opacity: 0; transform: scale(.98); transition: opacity 1.2s ease, transform 1.2s ease; }
.shot.on { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.sheet { order: 1; background: var(--surface); border-radius: var(--radius); padding: 0 clamp(28px, 4.6vw, 72px); }
.block { padding: clamp(80px, 10vw, 150px) 0 0; max-width: 560px; }
.block:first-child { padding-top: clamp(56px, 8vw, 110px); }
.block:last-child { padding-bottom: clamp(80px, 10vw, 150px); }
.inline-shot { display: none; }

h1 { font-size: var(--step-display); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 12ch; }
h2 { font-size: var(--step-head); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lead { margin-top: 28px; font-size: 20px; line-height: 1.5; max-width: 34ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.note { margin-top: 44px; color: var(--muted); font-size: var(--step-small); max-width: 40ch; }
.statement { margin-top: 20px; font-size: var(--step-statement); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; max-width: 36ch; }

/* ---------- imkoniyatlar: bosma menyu kabi ro'yxat (nuqtali yo'l) ---------- */
.menu { margin-top: 64px; }
.menu h3 { margin-bottom: 22px; }
.menu dl > div { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; column-gap: 12px; margin-top: 24px; }
.menu .ico { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-right: 4px; }
.menu dt { grid-column: 2; grid-row: 1; font-size: 17px; font-weight: 700; }
.menu dl > div::before { content: ""; grid-column: 3; grid-row: 1; align-self: end; margin-bottom: 6px; border-bottom: 4px dotted var(--control); }
.menu dd { grid-column: 4; grid-row: 1; font-size: 14px; color: var(--accent-ink); white-space: nowrap; text-align: right; font-weight: 500; }
.menu dl > div > p { grid-column: 2 / -1; grid-row: 2; margin-top: 4px; font-size: 17px; color: var(--muted); max-width: 44ch; }

.step { margin-top: 56px; min-height: 40svh; }
.step p:not(.statement) { margin-top: 12px; max-width: 44ch; color: var(--muted); }
.step .statement { margin-top: 0; }

/* ---------- sinab ko'rish: ikki maydon, to'liq kenglik ---------- */
.try { margin-top: clamp(100px, 12vw, 200px); padding: 0 var(--margin); }
.try-in { background: var(--surface); border-radius: var(--radius); padding: clamp(36px, 5vw, 80px) clamp(24px, 4.6vw, 72px) clamp(40px, 5vw, 80px); }
.try h2 { font-size: clamp(36px, 5vw, 76px); max-width: 16ch; }
.try h2 span { display: block; }
.try-note { margin-top: 18px; color: var(--muted); }
.sim { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); }
.sim-pick, .sim-out { border-radius: var(--radius); padding: clamp(22px, 3vw, 44px); min-height: 520px; }
.sim-pick { background: var(--ground); display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.sim-out { background: var(--stage); display: grid; place-items: center; }
legend { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.chips, .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .slot { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); font-size: 17px; font-weight: 500; transition: background-color .2s ease, transform .15s ease, color .2s ease; }
.chip:hover, .slot:hover { background: var(--raised); }
.chip:active, .slot:active { transform: scale(.96); }
.chip[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.slot { min-width: 76px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.chip small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 14px; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.sim-empty { color: var(--muted); }

/* Telegram xabari: haqiqiy interfeys bo'lagi (data-ui) */
.tg { width: min(100%, 440px); background: var(--surface); border-radius: 22px; padding: 18px; color: var(--ink); }
.tg-head { display: flex; align-items: center; gap: 10px; font-size: 17px; padding-bottom: 14px; }
.tg-head span:last-child { margin-left: auto; color: var(--muted); font-size: 14px; }
.tg-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
.tg-msg { background: var(--raised); border-radius: 6px 18px 18px 18px; padding: 14px 16px; font-size: 17px; line-height: 1.6; animation: pop .35s ease both; }
.tg-msg b { display: block; margin-bottom: 4px; }
.tg-foot { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- so'rov formasi ---------- */
.ask { margin: clamp(100px, 12vw, 200px) var(--margin) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); align-items: stretch; }
.ask-text { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ask-text .statement { max-width: 30ch; }
.ask-steps { display: grid; gap: 18px; max-width: 40ch; }
.ask-steps li { font-size: 17px; }
.ask-steps b { display: block; font-size: 20px; }
.ask-form { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 64px); }
.ask-form form { display: grid; gap: 18px; }
.ask-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ask-form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ask-form input:not([type=checkbox]), .ask-form select, .ask-form textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--raised); border: 0; border-radius: 14px; min-height: 52px; padding: 0 16px; width: 100%; }
.ask-form textarea { padding: 14px 16px; resize: vertical; min-height: 96px; }
.ask-form select { appearance: none; background-image: none; }
.ask-form input::placeholder, .ask-form textarea::placeholder { color: var(--muted); opacity: .75; }
.ask-form input:focus-visible, .ask-form select:focus-visible, .ask-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.ask-form [aria-invalid=true] { outline: 2px solid var(--danger); outline-offset: 0; }
.ask-form .hp { position: absolute; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.ask-form .check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.ask-form .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.ask-form .check a { text-decoration: underline; text-underline-offset: 3px; }
.form-err { color: var(--danger); font-size: 14px; }
.form-note { font-size: 14px; color: var(--muted); }
.ask-form .btn[disabled] { opacity: .6; cursor: progress; }
.thanks { display: grid; gap: 16px; justify-items: start; padding: clamp(8px, 2vw, 32px) 0; }
.thanks h3 { font-size: var(--step-head); line-height: 1.08; letter-spacing: -.03em; }
.thanks p { max-width: 40ch; color: var(--muted); }

/* ---------- kimlar uchun ---------- */
.who { margin: clamp(100px, 12vw, 200px) var(--margin) 0; background: var(--surface); border-radius: var(--radius); padding: clamp(36px, 5vw, 80px) clamp(24px, 4.6vw, 72px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.who ul { display: grid; gap: 26px; }
.who li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 2px; align-items: center; }
.who .ico { grid-row: 1 / span 2; }
.who li b { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.who li span:not(.ico) { color: var(--muted); }

/* ---------- savollar: davomli matn, ikki ustunda ---------- */
.faq { margin: clamp(100px, 12vw, 200px) var(--margin) 0; background: var(--surface); border-radius: var(--radius); padding: clamp(36px, 5vw, 80px) clamp(24px, 4.6vw, 72px); display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; }
.faq .cols { columns: 2; column-gap: 56px; line-height: 1.6; }
.faq p { break-inside: avoid; margin-bottom: 22px; }
.faq b { font-weight: 700; }

/* ---------- aloqa: tashrifnoma ---------- */
.contact { margin: clamp(100px, 12vw, 200px) var(--margin) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); align-items: stretch; }
.card-wrap { background: var(--stage); border-radius: var(--radius); display: grid; place-items: center; padding: clamp(28px, 5vw, 80px); min-height: 480px; }
.vcard { width: min(100%, 480px); aspect-ratio: 1.7; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-3deg); transition: transform .4s ease; --lg-word: #0f172a; --lg-blue: #2F6BFF; --lg-green: #10B981; --lg-ring: #fff; }
.vcard:hover { transform: rotate(0); }
.vcard p { font-size: 20px; font-weight: 600; }
.vcard ul { display: grid; gap: 6px; font-size: 17px; }
.vcard li { display: flex; align-items: center; gap: 10px; }
.vcard b { display: inline-block; min-width: 92px; font-weight: 600; }
.contact-text { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.contact-text .statement { max-width: 40ch; }

/* ---------- pastki qism: logotip to'liq kenglikda qaytadi ---------- */
.foot { margin: clamp(100px, 12vw, 200px) var(--margin) var(--margin); background: var(--surface); border-radius: var(--radius); padding: clamp(36px, 5vw, 72px) clamp(24px, 4.6vw, 72px) 28px; }
.foot-word svg { width: 100%; height: auto; }
.foot-grid { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot nav { display: grid; gap: 10px; font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.foot nav a { color: var(--muted); transition: color .2s ease, transform .25s ease; }
.foot nav a:hover { color: var(--ink); transform: translateX(10px); }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--control); }
.foot-links a:hover { text-decoration-color: var(--accent); }
.legal { margin-top: 40px; color: var(--muted); font-size: var(--step-small); }

/* ---------- kirish animatsiyasi: JS bo'lmasa kontent doim ko'rinadi ---------- */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .bgfx .blob, .bgfx .fi, .logo-anim *, .modefab .ic { animation: none !important; }
  .shot, .js .rise { transition: none; }
  .js .rise { opacity: 1; transform: none; }
  .tg-msg { animation: none; }
  .vcard, .vcard:hover { transform: none; }
  html.theme-anim * { transition: none !important; }
}

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  :root { --bar: 58px; }
  .bar { gap: 10px; padding: 0 var(--margin); }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 15px; }
  .bar .modefab { order: 3; }
  .split { grid-template-columns: 1fr; }
  .stage { display: none; }
  .sheet { padding: 0 20px; }
  .block { max-width: none; padding-top: 72px; }
  .block:first-child { padding-top: 40px; }
  .inline-shot { display: block; margin-top: 32px; width: min(100%, 320px); height: auto; border-radius: 24px; }
  .hero .inline-shot { margin-top: 36px; }
  .step { min-height: 0; }
  .sim { grid-template-columns: 1fr; }
  .sim-pick, .sim-out { min-height: 0; }
  .ask { grid-template-columns: 1fr; }
  .ask-form .two { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; gap: 28px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq .cols { columns: 1; }
  .contact { grid-template-columns: 1fr; }
  .card-wrap { min-height: 320px; }
  .foot-grid { grid-template-columns: 1fr; }
  .menu dl > div { grid-template-columns: auto 1fr auto; }
  .menu dt { grid-column: 2; }
  .menu dl > div::before { display: none; }
  .menu dd { grid-column: 3; }
  .menu dl > div > p { grid-column: 2 / -1; }
}
