/* Niyat lending — Rishton tokenlari (design/niyat-tokens.css, Variant A). Yorug' mavzu, tizim qorong'i bo'lsa — qorong'i.
   Rang ma'nosi: kobalt — asosiy amal, firuza — moslik/xavfsizlik, oltin — Premium. Yurak, uzuk, gradient bezak yo'q. */

@font-face { font-family: 'Alegreya'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Alegreya'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-cyrillic-ext-700-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-cyrillic-ext-400-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-cyrillic-ext-700-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  color-scheme: light dark;
  --font-head: 'Alegreya', Georgia, serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #f8f9fc;
  --bg2: #eef1f7;
  --surface: #ffffff;
  --text: #131a33;
  --hint: #59627d;
  --sep: #dde2ed;
  --primary: #1f4fa0;
  --on-primary: #ffffff;
  --primary-text: #1f4fa0;
  --primary-soft: #e4ebf7;
  --match: #2a958e;
  --match-text: #17706a;
  --match-soft: #ddf1ef;
  --premium-text: #855a05;
  --premium-soft: #f8edd6;
  --logo-square: #1f4fa0;
  --logo-diamond: #2a958e;
  --logo-center: #c98a12;
  --radius: 14px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231F4FA0' stroke-opacity='.12' stroke-width='1.2'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M28 0v12.4M28 43.6V56M0 28h12.4M43.6 28H56M0 0l17 17M56 0L39 17M0 56l17-17M56 56L39 39'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1429;
    --bg2: #0a0e1f;
    --surface: #171d36;
    --text: #edf0f8;
    --hint: #a0a8c3;
    --sep: #283050;
    --primary: #3a68be;
    --primary-text: #9cb7ee;
    --primary-soft: #1c2a52;
    --match-text: #62cfc5;
    --match-soft: #12302f;
    --premium-text: #ebb650;
    --premium-soft: #33280f;
    --logo-square: #9cb7ee;
    --logo-diamond: #3fb8ae;
    --logo-center: #d49a26;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%237FA0DE' stroke-opacity='.12' stroke-width='1.2'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M28 0v12.4M28 43.6V56M0 28h12.4M43.6 28H56M0 0l17 17M56 0L39 17M0 56l17-17M56 56L39 39'/%3E%3C/g%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-text); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; }
.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* --- header --- */
.header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--sep); }
.header__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.nav { display: none; gap: 20px; margin-left: 12px; }
.nav a { color: var(--hint); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.header__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--sep); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
@media (min-width: 860px) { .nav { display: flex; } }

/* --- tugmalar --- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.button--ghost { background: transparent; color: var(--primary-text); border: 1px solid var(--sep); }

/* --- hero --- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--sep); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--premium-soft); color: var(--premium-text); font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin-top: 18px; max-width: 14ch; }
.hero__lead { color: var(--hint); font-size: 18px; max-width: 56ch; margin: 18px 0 28px; }
.hero__note { color: var(--hint); font-size: 14px; margin-top: 12px; }
.hero__art { justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.3fr 1fr; } }

/* --- bo'limlar --- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg2); border-block: 1px solid var(--sep); }
.section h2 { font-size: clamp(28px, 4vw, 38px); }
.section__lead { color: var(--hint); max-width: 60ch; margin: 10px 0 0; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 21px; }
.card p { margin: 8px 0 0; color: var(--hint); }
.step { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; margin-bottom: 14px; }
.icon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--match-soft); color: var(--match-text); margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; }
.card--premium .icon { background: var(--premium-soft); color: var(--premium-text); }
.list { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--sep); border-radius: var(--radius); padding: 18px; }
.list li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--match-soft); color: var(--match-text); font-weight: 700; }
.rules { margin-top: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--sep); background: var(--surface); max-width: 760px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* --- footer --- */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--sep); color: var(--hint); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--hint); }
.footer a:hover { color: var(--text); }

/* --- hujjat sahifasi --- */
.doc { padding: 40px 0 72px; }
.doc__back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration: none; }
.doc h1 { font-size: clamp(28px, 5vw, 42px); margin-top: 12px; }
.doc__meta { color: var(--hint); font-size: 14px; margin: 8px 0 0; }
.doc__status { color: var(--hint); margin-top: 24px; }
.doc__body { max-width: 760px; margin-top: 24px; overflow-wrap: anywhere; }
.doc__body h2, .doc__body h3, .doc__body h4 { margin: 28px 0 8px; font-size: 22px; }
.doc__body h3, .doc__body h4 { font-size: 19px; }
.doc__body p { margin: 0 0 12px; }
.doc__body ul, .doc__body ol { padding-inline-start: 22px; margin: 0 0 12px; }
.doc__empty { color: var(--hint); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section__subhead { margin-top: 56px; }
.logo-square { stroke: var(--logo-square); }
.logo-diamond { stroke: var(--logo-diamond); }
.logo-center { fill: var(--logo-center); }
/* Tor ekran: sarlavhadagi CTA yashiriladi (hero'da bor), girih san'ati kichikroq */
@media (max-width: 560px) {
  .header .button--small { display: none; }
  .hero { padding-top: 40px; }
  .hero__art { width: 160px; }
}
