/* QandMaster — reklama sayti. Tokenlar ilovadagidek (yashil #287653, oltin aksent kam). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F7F8F6; --card: #FFFFFF; --text: #202720; --muted: #4B544D; --border: #E5E9E4; --line: #EEF1ED;
  --btn: #287653; --btn-hover: #1F6344; --link: #1F6B43; --primary-soft: #EAF3EE;
  --gold: #C5A66A; --gold-soft: #F7F1E4; --gold-text: #7A5F27;
  --shadow: 0 1px 2px rgba(32,39,32,.06), 0 12px 32px -12px rgba(32,39,32,.18);
  --r-card: 12px; --r-btn: 10px; --maxw: 1120px;
  color-scheme: light;
}
:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121814; --card: #1A221C; --text: #E8EEE9; --muted: #A9B5AD; --border: #2A352D; --line: #222C25;
    --btn: #287653; --btn-hover: #2F8A62; --link: #5FC59A; --primary-soft: #17301F;
    --gold-soft: #2A2416; --gold-text: #D9BE86; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
[data-theme="dark"] {
  --bg: #121814; --card: #1A221C; --text: #E8EEE9; --muted: #A9B5AD; --border: #2A352D; --line: #222C25;
  --btn: #287653; --btn-hover: #2F8A62; --link: #5FC59A; --primary-soft: #17301F;
  --gold-soft: #2A2416; --gold-text: #D9BE86; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "tnum"; }
img, svg { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 16px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--btn); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 17px; }

/* Yuqori panel */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--line); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.actions .btn { min-height: 44px; padding: 0 16px; }
.actions .login { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: var(--r-btn); cursor: pointer; }
.menu-btn { display: inline-grid; }
/* Telefon menyusi: JS bo‘lmasa ham :target orqali ochiladi */
.nav:target, .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.nav:target a, .nav.open a { padding: 12px; font-size: 17px; }
/* Tor telefonda sarlavha sig‘ishi uchun: asosiy tugma qahramon blokda bor */
@media (max-width: 519px) { .actions .btn--primary { display: none; } .bar { gap: 8px; } }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; margin-left: 12px; }
  .menu-btn { display: none; }
  .actions .login { display: inline-flex; }
}

/* Qahramon blok */
.hero { padding: 40px 0 56px; background: radial-gradient(900px 420px at 85% -10%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--btn); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--link); }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓ "; color: var(--link); font-weight: 700; }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* CSS bilan chizilgan ilova namunasi */
.mock { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar i:nth-child(1) { background: #E5736B; } .mock-bar i:nth-child(2) { background: var(--gold); } .mock-bar i:nth-child(3) { background: #3FA26F; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-left: 3px solid var(--btn); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.kpi.debt { border-left-color: #A3211A; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); }
.kpi b { font-size: clamp(.8rem, 2.4vw, 1.05rem); letter-spacing: -.01em; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.chart i { flex: 1; background: var(--btn); border-radius: 4px 4px 0 0; opacity: .85; }
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.rows div { display: flex; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; background: var(--primary-soft); font-weight: 600; }
.rows .ok { color: var(--link); font-weight: 600; } .rows .warn { color: var(--gold-text); font-weight: 600; }

/* Bo‘limlar */
.section { padding: 64px 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--border); }
.eyebrow { color: var(--link); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; max-width: 20em; }
.section .sub { margin-top: 14px; color: var(--muted); max-width: 40em; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.section--alt .card { background: var(--bg); }
.card h3 { font-size: 1.1rem; margin: 14px 0 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--link); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nojs-note { display: none; }
[hidden] { display: none !important; }

/* Kontent bo‘limlari */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.step b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #fff; font-size: 16px; }
.step h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.tariffs { align-items: stretch; }
.tariff { display: flex; flex-direction: column; gap: 6px; }
.tariff h3 { font-size: 1.4rem; margin: 0; }
.tariff-for { color: var(--muted); font-size: 15px; }
.tariff .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 6px; color: var(--text); }
.tariff .price--ask { font-size: 1.25rem; color: var(--gold-text); }
.price .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.checks { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 10px; flex: 1; font-size: 15.5px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 700; }
.tariff .btn { align-self: stretch; }
.faqs { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--link); flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding: 0 0 18px; }

/* Diagramma ustunlari (inline style CSP tufayli ishlatilmaydi) */
.chart i:nth-child(1) { height: 38%; }
.chart i:nth-child(2) { height: 52%; }
.chart i:nth-child(3) { height: 45%; }
.chart i:nth-child(4) { height: 70%; }
.chart i:nth-child(5) { height: 58%; }
.chart i:nth-child(6) { height: 84%; }
.chart i:nth-child(7) { height: 76%; }
.notfound { padding: 96px 16px; text-align: center; }
.notfound h1 { font-size: 2.2rem; font-weight: 800; }
.notfound .sub { margin: 16px auto 28px; }
