/* 100yil.uz — ilovaning o'z palitrasi (lib/theme/app_theme.dart).
 * Shrift — ilovadagi Golos Text (SIL OFL), O'Z domenimizdan: Google Fonts
 * tashrif buyuruvchi manzilini uchinchi tomonga yuborardi. woff2 fayllarni
 * `site/build.sh` ilova shriftidan yasaydi (`ʻ` bog'lanishi ham shu yerda). */
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shrift/GolosText-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/shrift/GolosText-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/shrift/GolosText-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/shrift/GolosText-ExtraBold.woff2') format('woff2');
}
:root {
  --bg: #F1ECDF; --surface: #FFFFFF; --tint: #EBE5D5; --text: #101F19;
  --muted: #6E7C74; --hero: #14543F; --on-hero: #F6F2E9; --accent: #1F7A5B;
  --copper: #BE8055; --line: rgba(16, 31, 25, .08);
  --r-hero: 28px; --r-tile: 24px; --r-row: 18px;
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1611; --surface: #12201A; --tint: #1C2E25; --text: #ECE6D8;
    --muted: #8A9B91; --hero: #14543F; --on-hero: #F6F2E9; --accent: #54A585;
    --copper: #E2B891; --line: rgba(236, 230, 216, .09);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); font-feature-settings: 'tnum' 0;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hero); color: var(--on-hero); font-weight: 800; font-size: 12.5px;
}
.brand b { font-weight: 800; letter-spacing: -.01em; }
.til { display: flex; gap: 4px; background: var(--tint); border-radius: 99px; padding: 3px; }
.til button {
  border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font);
  padding: 6px 12px; border-radius: 99px; cursor: pointer;
}
.til button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.hero {
  background: var(--hero); color: var(--on-hero); border-radius: var(--r-hero);
  padding: clamp(28px, 6vw, 56px);
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(32px, 6.4vw, 56px); line-height: 1.05;
  letter-spacing: -.025em; font-weight: 800; text-wrap: balance; max-width: 15ch;
}
.hero p { margin: 0; max-width: 52ch; color: rgba(246, 242, 233, .82); font-size: 18px; }
.dokon { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 0 20px; border-radius: var(--r-row); font: 700 15px var(--font);
  text-decoration: none; border: 0; cursor: pointer;
}
.btn.och { background: var(--on-hero); color: var(--hero); }
.btn.chiziq { background: transparent; color: var(--on-hero); box-shadow: inset 0 0 0 1.5px rgba(246,242,233,.45); }
.btn.asosiy { background: var(--hero); color: var(--on-hero); }
.btn.ikkinchi { background: var(--tint); color: var(--text); }
section.blok { margin-top: 44px; }
.blok h2 { font-size: 24px; letter-spacing: -.015em; margin: 0 0 6px; text-wrap: balance; }
.blok > .izoh { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.bosqichlar { background: var(--surface); border-radius: var(--r-tile); padding: 6px; }
.bosqich {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
}
.bosqich + .bosqich { border-top: 1px solid var(--line); }
.bosqich .rim { font-weight: 800; color: var(--copper); font-size: 20px; }
.bosqich .nima b { display: block; }
.bosqich .nima span { color: var(--muted); font-size: 14px; }
.bosqich .son { font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; text-align: right; }
.bosqich.jami { background: var(--tint); border-radius: var(--r-row); }
.plitkalar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plitka { background: var(--surface); border-radius: var(--r-tile); padding: 20px; }
.plitka b { display: block; margin-bottom: 4px; }
.plitka span { color: var(--muted); font-size: 15px; }
footer.past {
  margin-top: 56px; padding-block: 24px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px;
}
footer.past a { color: var(--muted); }
/* Taklif sahifasi */
.taklif { max-width: 560px; margin: 8px auto 0; }
.kod-plitka { background: var(--surface); border-radius: var(--r-tile); padding: 24px; text-align: center; }
.kod {
  font-size: clamp(36px, 11vw, 54px); font-weight: 800; letter-spacing: .18em;
  color: var(--accent); font-variant-numeric: tabular-nums; margin: 6px 0 14px;
  padding-left: .18em; user-select: all; word-break: break-all;
}
.qadamlar { counter-reset: q; list-style: none; padding: 0; margin: 22px 0 0; }
.qadamlar li {
  counter-increment: q; background: var(--surface); border-radius: var(--r-row);
  padding: 16px 16px 16px 56px; position: relative; margin-top: 10px;
}
.qadamlar li::before {
  content: counter(q); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--tint); display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.qadamlar .dokon { margin-top: 12px; }
.qadamlar .btn.och { background: var(--hero); color: var(--on-hero); }
.qadamlar .btn.chiziq { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.xabar { color: var(--muted); font-size: 14px; min-height: 1.6em; margin: 8px 0 0; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .bosqich { grid-template-columns: 44px 1fr auto; gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .12s ease; }
  .btn:active { transform: scale(.98); }
}
