/* Abbosxon Jalolov — şaxsiy sayt. Umumiy stil (klasslar).
   Ranglar va şriftlar: tokens.css («Pul xaritasi» dizayn kodi). Inline stil işlatilmaydi. */

:root {
  --forest-deep: #0D2A20;          /* boş ekran va sarlavha foni (forest dan töqroq) */
  --on-dark: #EDEAE0;
  --on-dark-muted: #AFC0B7;
  --line-dark: rgba(237, 234, 224, 0.16);
  --gutter: 24px;
  --section: 112px;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dark :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: var(--brass); }
section[id] { scroll-margin-top: 24px; }

/* data-if: JS ko‘rsatadigan / yaşiradigan blok */
[data-if] { display: contents; }
[data-if][hidden] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--flush-bottom { padding-bottom: 0; }
.dark { background: var(--forest); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; } .g48 { gap: 48px; } .g64 { gap: 64px; }
.measure { max-width: 680px; }

/* ---------- Tipografiya ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text);
}
.dark .eyebrow, .hero .eyebrow { color: var(--brass); }
.h1 {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.06; letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15; letter-spacing: -0.012em;
}
.h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.h4 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-muted); max-width: 600px; }
.muted { color: var(--ink-muted); }
.dark .muted, .hero .muted { color: var(--on-dark-muted); }
.small { font-size: 14px; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.005em;
}
.pull-quote { border-left: 2px solid var(--brass); padding-left: 32px; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 16px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--forest); color: #FFFFFF; }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: #D4AE5F; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(237, 234, 224, 0.45); }
.btn--ghost-light:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Sarlavha (header) ---------- */
.site-header { background: var(--forest-deep); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.site-nav {
  max-width: 1120px; margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand__name { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name b { font-weight: 600; font-size: 16px; }
.brand__name span { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; color: var(--on-dark-muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; }
.nav-links a:hover { color: var(--on-dark); }
.nav-links a.nav-home { color: var(--brass); }
.nav-links a.nav-home:hover { color: var(--on-dark); }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 6px; color: var(--on-dark-muted); text-decoration: none; }
.lang a:hover { color: var(--on-dark); }
.lang [aria-current="true"] { color: var(--brass); }
.nav-cta { min-height: 44px; padding: 10px 20px; }

/* ---------- Boş ekran (hero) ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--on-dark); }
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.hero__grid {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 120px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 72px; align-items: center;
}
.hero .lead { color: var(--on-dark-muted); }
.hero__meta { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border: 1px solid rgba(196, 154, 69, 0.55);
  padding: 14px; border-radius: 2px;
}
.portrait__inner {
  width: 100%; height: 100%; background: #12362A; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--on-dark-muted); font-size: 14px; overflow: hidden;
}
.portrait__inner img { width: 100%; height: 100%; object-fit: cover; }
.portrait__caption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Boş ekran: faktlar qatori (surat örniga, hozirça rasmsiz).
   Raqam tepada, izoh ostida; uç fakt bir qatorda, bir xil çiziqda. */
.hero__grid--stack { grid-template-columns: minmax(0, 1fr); gap: 72px; }
.hero__grid--stack > .stack { max-width: 760px; }
.creds { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-dark); }
.cred { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.cred dt { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--brass); }
.cred dd { margin: 0; color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; max-width: 320px; }
.about--text { grid-template-columns: minmax(0, 760px); }

/* ---------- Bölim boşi ---------- */
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: 64px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px 64px; }

/* Hairline röyxat (kartoçka örniga) */
.rules { display: grid; gap: 0 48px; }
.rules--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rule { border-top: 1px solid var(--line); padding: 28px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.dark .rule { border-top-color: var(--line-dark); }
.rule__num { font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; color: var(--brass-text); }
.dark .rule__num { color: var(--brass); }

/* ---------- Hayot yöli ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 2fr); column-gap: 20px; }
.step__when { padding: 26px 0; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.step__date { font-family: var(--font-mono); font-weight: 500; font-size: 16px; line-height: 1.5; }
.step__rail { position: relative; display: flex; justify-content: center; }
.step__rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 11px; border-left: 1px dashed var(--brass); }
.step__dot { position: relative; z-index: 1; margin-top: 35px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.step__body { padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.step--last .step__rail::before { bottom: calc(100% - 40px); }
.step--last .step__dot { margin-top: 30px; width: 19px; height: 19px; background: var(--paper); border: 1px solid var(--brass); display: flex; align-items: center; justify-content: center; }
.step--last .step__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }

/* ---------- Faoliyat (töq bölim) ---------- */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.offer { border-top: 1px solid var(--line-dark); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.offer .muted { color: var(--on-dark-muted); }
.offer__meta { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.offer .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Aloqa ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }

/* ---------- Pastki qism ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Konsultatsiya: boş ekran narx paneli ---------- */
.route { border: 1px solid var(--line-dark); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.route__labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; color: var(--on-dark-muted); margin-top: -12px; }
.route__price { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.price-big { font-family: var(--font-serif); font-weight: 600; font-size: clamp(36px, 10vw, 56px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.price-big small { font-size: 17px; letter-spacing: 0; color: var(--ink-muted); font-weight: 500; }
.hero .price-big small, .dark .price-big small { color: var(--on-dark-muted); }
.price-note { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: 0 0 18px; height: 1px; margin-top: 13px; background: var(--brass); }

/* ---------- Kalkulyator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; }
.label .opt { font-weight: 400; color: var(--ink-muted); }
.money { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); min-height: 56px; overflow: hidden; max-width: 380px; }
.money input { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-weight: 500; font-size: 22px; padding: 12px 16px; border: 0; background: transparent; color: var(--ink); outline-offset: -2px; }
.money span { display: flex; align-items: center; padding: 0 16px; font-family: var(--font-mono); font-weight: 500; font-size: 16px; color: var(--ink-muted); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-width: 380px; }
.chip { font-family: var(--font-mono); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 46px; cursor: pointer; }
.calc-out { background: var(--forest); color: var(--on-dark); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.calc-out .muted { color: var(--on-dark-muted); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.calc-row--rule { border-bottom: 1px solid var(--line-dark); padding-bottom: 16px; }
.calc-big { font-family: var(--font-serif); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.01em; color: var(--brass); }
.hl { font-family: var(--font-mono); font-weight: 500; color: var(--brass); }

/* ---------- Haqida (konsultatsiya) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.portrait--light { border-color: rgba(122, 90, 30, 0.45); }
.portrait--light .portrait__inner { background: var(--green-tint); color: var(--ink-muted); }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* Eslatma bloklari */
.note { border-left: 2px solid var(--green); padding: 4px 0 4px 28px; display: flex; flex-direction: column; gap: 12px; }
.not-for { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.not-for ul { padding-left: 20px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 8px; }

/* Formatlar */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 16px; }

/* ---------- Narx va anketa ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.price-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.price-box .price-note { color: var(--ink-muted); }
.form { background: var(--paper); padding: 40px; display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--line); }
.input, .textarea { font: inherit; font-size: 17px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 50px; width: 100%; }
.textarea { resize: vertical; }
.affix { display: flex; align-items: stretch; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); min-height: 50px; overflow: hidden; }
.affix input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 17px; padding: 12px 16px; border: 0; background: transparent; color: var(--ink); outline-offset: -2px; }
.affix__pre { display: flex; align-items: center; padding: 0 12px 0 16px; font-family: var(--font-mono); font-weight: 500; font-size: 17px; color: var(--ink-muted); border-right: 1px solid var(--line); background: var(--paper); }
.affix__at { display: flex; align-items: center; padding: 0 2px 0 16px; font-size: 17px; color: var(--ink-muted); }
.affix__at + input { padding-left: 2px; }
#tel { font-family: var(--font-mono); font-weight: 500; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; min-height: 50px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.err { font-size: 14px; line-height: 1.5; color: var(--expense); }
.done { background: var(--paper); padding: 40px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }

/* ---------- Savollar ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--ink-muted); }

/* ---------- Yakunlovçi blok ---------- */
.closing { background: var(--forest-deep); }
.site-footer { border-top: 1px solid var(--line-dark); }

/* ---------- Hayot yöli: qisqa körinişi ---------- */
.timeline.is-collapsed .step--extra { display: none; }
.timeline-more { margin-top: 32px; }

/* ---------- Yumşoq paydo böliş (site.js qöşadi) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 404 ---------- */
.notfound .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 60vh; align-content: center; }

/* ---------- Planşet ---------- */
@media (max-width: 960px) {
  :root { --section: 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 96px; padding-bottom: 96px; }
  .step { grid-template-columns: minmax(96px, 160px) 24px minmax(0, 1fr); column-gap: 24px; }
  .hero__media { max-width: 420px; }
  .split, .calc, .about, .signup, .not-for { grid-template-columns: minmax(0, 1fr); }
  .rules--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules--3 { grid-template-columns: minmax(0, 1fr); }
  .about .portrait { max-width: 380px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .site-nav { padding-top: 12px; padding-bottom: 12px; gap: 8px 12px; }
  .nav-links { order: 3; flex-basis: 100%; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
  .brand__name span { display: none; }
  .nav-tools { gap: 8px; }
  .lang a, .lang span { min-width: 34px; }
  .nav-cta { padding: 10px 14px; font-size: 15px; }
  .hero__grid { padding-top: 64px; padding-bottom: 64px; gap: 48px; }
  .lead { font-size: 18px; }
  .section-head { margin-bottom: 40px; }
  .rules--2, .rules--4, .offers, .formats, .row2 { grid-template-columns: minmax(0, 1fr); }
  .offers { gap: 48px; }
  .pull-quote { padding-left: 20px; }
  .hero__grid--stack { gap: 48px; }
  .creds { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .cred { border-top: 1px solid var(--line-dark); padding: 20px 0; gap: 8px; }
  .cred dt { font-size: 32px; }
  .step { grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; }
  .step__when { grid-column: 2; grid-row: 1; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 22px 0 0; }
  .step__date { font-size: 15px; }
  .step__rail { grid-column: 1; grid-row: 1 / span 2; }
  .step__rail::before { left: 9px; }
  .step__dot { margin-top: 30px; }
  .step__body { grid-column: 2; grid-row: 2; padding: 4px 0 22px; }
  .step--last .step__dot { margin-top: 26px; }
  .route, .calc-out, .form, .done { padding: 24px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .site-footer .inner { padding: 24px var(--gutter); }
}
@media (max-width: 480px) {
  /* Ism boş ekranda katta sarlavhada bor; menyu ikki qatorga sig‘şi uçun bu yerda faqat belgi qoladi */
  .brand__name { display: none; }
}
@media (max-width: 360px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
}
