/* RuDeal, дизайн «1a». Один файл: токены, шрифты и компоненты. Без сборки; версия в адресе (?v=) сбрасывает кэш. */

/* ---------- шрифты (свой домен, woff2, swap) ---------- */
@font-face { font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations'); 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; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'); 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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations'); 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: #FDF8F3; --surface: #FFFFFF; --hero: #FCEBDD; --soft: #F6EFE8; --peach: #F9D9C4;
  --line: #EFE6DD; --line-chip: #E4D8CD;
  --ink: #1C1412; --ink-2: #54463F; --ink-3: #6B5E57;
  --accent: #D4380F; --link: #B8300D; --link-hover: #8F2409;
  --dark: #1C1412; --dark-2: #2B211D; --on-dark: #FFFFFF; --on-dark-2: #D9CBC1; --amber: #FFB15C;
  --r-card: 16px; --r-big: 20px; --r-btn: 10px; --r-field: 12px; --r-chip: 999px;
  --wrap: 1240px; --gutter: 24px;
  --font-head: Unbounded, 'Manrope', system-ui, sans-serif;
  --font-body: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* прежние имена переменных (баннеры рекламы из админки) */
  --border: #EFE6DD; --text: #1C1412; --text-secondary: #54463F; --radius: 12px;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.45; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { left: 8px; color: #fff; }
.h-display { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.muted { color: var(--ink-3); }
.hide { display: none !important; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: var(--r-btn); border: 2px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; background: var(--surface); color: var(--ink); }
.btn:hover { color: inherit; opacity: .9; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 52px; font-size: 17px; padding: 14px 28px; border-radius: var(--r-field); }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn--off { background: var(--soft); color: var(--ink-3); border-color: var(--line-chip); cursor: default; }

/* ---------- шапка ---------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-in { min-height: 76px; display: flex; align-items: center; gap: 12px 36px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand b { font-weight: 700; color: var(--accent); }
.nav { display: flex; gap: 28px; font-weight: 600; }
.nav a { color: var(--ink); padding: 12px 0; }
.nav a:hover, .nav a.on { color: var(--link); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: var(--r-field); padding: 0 16px; height: 46px; }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(212,56,15,.35); }
.hdr-user { margin-left: auto; font-weight: 600; font-size: 15px; display: flex; gap: 14px; align-items: center; }
.burger { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-field); background: var(--soft); align-items: center; justify-content: center; margin-left: auto; }
.mm { display: none; position: fixed; inset: 0; z-index: 1200; }
.mm.open { display: block; }
.mm-bg { position: absolute; inset: 0; background: rgba(28,20,18,.5); }
.mm-panel { position: absolute; top: 0; right: 0; width: min(300px, 86vw); height: 100%; background: var(--surface); display: flex; flex-direction: column; padding: 12px 16px 24px; gap: 4px; overflow-y: auto; }
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mm-close { width: 44px; height: 44px; border: 0; border-radius: var(--r-field); background: var(--soft); display: flex; align-items: center; justify-content: center; }
.mm-link { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 600; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mm-link.on { color: var(--link); }

/* ---------- подвал ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 56px; }
.ftr-in { padding: 26px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.ftr .brand { font-size: 16px; }
.ftr a, .ftr button.ftr-link { color: var(--ink-2); }
.ftr button.ftr-link { border: 0; background: none; padding: 12px 0; font: inherit; text-decoration: underline; }
.ftr a:hover { color: var(--link-hover); }
.ftr-copy { margin-left: auto; color: var(--ink-3); }

/* ---------- чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-chip); border: 1px solid var(--line-chip); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip small { font: inherit; opacity: .75; margin-left: 6px; }

/* ---------- логотипы ---------- */
.logo { position: relative; flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.logo.is-ini { border-color: transparent; }
.logo--sm { width: 40px; height: 40px; border-radius: 10px; } .logo--sm .logo-ini { font-size: 14px; }
.logo--md { width: 44px; height: 44px; } .logo--lg { width: 56px; height: 56px; border-radius: 14px; } .logo--lg .logo-ini { font-size: 20px; }
.logo--xl { width: 88px; height: 88px; border-radius: 20px; } .logo--xl .logo-ini { font-size: 30px; }

/* ---------- главная: герой ---------- */
.hero { background: var(--hero); }
.hero-in { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 7px 14px; border-radius: 8px; text-transform: uppercase; }
.hero h1 { font-size: 52px; line-height: 1.12; }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tiles { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-k { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; overflow-wrap: anywhere; }
.tile-v { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--accent); overflow-wrap: anywhere; }
.tile-t { font-size: 14px; color: var(--ink-2); }
.tile--dark { background: var(--dark); } .tile--dark .tile-k, .tile--dark .tile-t { color: var(--on-dark-2); } .tile--dark .tile-v { color: var(--amber); }
.tile--peach { background: var(--peach); } .tile--peach .tile-k { color: var(--link-hover); } .tile--peach .tile-v { color: var(--ink); }

/* ---------- блоки страницы ---------- */
.main { padding-top: 28px; display: flex; flex-direction: column; gap: 44px; }
.sec { display: flex; flex-direction: column; gap: 20px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sec-head h2, .sec h2 { font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: -0.01em; }
.sec-head a { font-weight: 700; }

/* ---------- карточка предложения ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.oc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.oc-head { display: flex; align-items: center; gap: 12px; }
.oc-store { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-store a { font-weight: 700; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.oc-store a:hover { color: var(--link); }
.oc-store span { font-size: 14px; color: var(--ink-3); }
.oc-val { background: var(--hero); color: var(--link-hover); font-weight: 800; font-size: 14px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.oc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kind { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.oc-title { font-weight: 600; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.oc-act { display: flex; gap: 10px; }
.code-mask { flex: 1; min-width: 0; border: 2px dashed var(--accent); border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--link); padding: 0 8px; }
.oc-act .btn { min-height: 48px; }
.oc-meta { font-size: 13px; color: var(--ink-3); }
.oc--off .oc-act { display: block; }
.na { display: block; text-align: center; padding: 13px 16px; border-radius: var(--r-btn); background: var(--soft); color: var(--ink-3); font-weight: 700; font-size: 15px; border: 1px solid var(--line-chip); }

/* ---------- плитки магазинов ---------- */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.st { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.st:hover { color: var(--ink); border-color: var(--ink-3); }
.st-t { display: flex; flex-direction: column; min-width: 0; }
.st-n { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.st-c { font-size: 13px; color: var(--ink-3); }

/* ---------- как это работает (красная полоса) ---------- */
.how { background: var(--accent); color: #fff; border-radius: var(--r-big); padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.how-t { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.how-t h2 { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; }
.how-t p { color: #fff; }
.how ol { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.how li { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.how li b { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--link); }
.how li span { font-weight: 600; font-size: 15px; }

/* ---------- заголовок страницы (магазин, каталог) ---------- */
.phero { background: var(--hero); }
.phero-in { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.crumbs a { color: var(--ink-2); padding: 8px 0; }
.crumbs a:hover { color: var(--link-hover); }
.phero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.phero-t { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.phero-t h1 { font-family: var(--font-head); font-weight: 700; font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.phero-t p { font-size: 17px; color: var(--ink-2); }
.phero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { background: var(--surface); border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; }
.stat b { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ---------- страница магазина: список и колонка ---------- */
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding-top: 28px; }
.col-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.orow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.orow-v { flex: none; width: 132px; display: flex; flex-direction: column; gap: 2px; }
.orow-v b { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--link); overflow-wrap: anywhere; line-height: 1.15; }
.orow-t { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.orow-t h2 { font-weight: 700; font-size: 18px; line-height: 1.35; font-family: var(--font-body); overflow-wrap: anywhere; }
.orow-t p { font-size: 14px; color: var(--ink-3); }
.orow-a { flex: none; display: flex; flex-direction: column; gap: 8px; width: 210px; max-width: 100%; }
.orow-a .code-mask { padding: 8px; font-size: 15px; flex: none; }
.orow--end { background: var(--soft); border-color: transparent; }
.ended { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.ended h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.ended-i { background: var(--soft); border-radius: 14px; padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--ink-2); font-size: 15px; }
.ended-i a { color: var(--ink-2); font-weight: 600; } .ended-i a:hover { color: var(--link-hover); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.box p { font-size: 15px; color: var(--ink-2); }
.box--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.box--dark a { color: #fff; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; min-height: 32px; align-items: center; }
.box--dark a b { color: var(--amber); }
.steps { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.steps li { display: flex; gap: 12px; }
.steps i { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--hero); color: var(--link-hover); font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }

/* ---------- пагинация, пустые состояния ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 8px 0; }
.pager a, .pager span { min-width: 44px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-chip); border: 1px solid var(--line-chip); background: var(--surface); color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink-3); color: var(--ink); }
.pager .on { background: var(--dark); border-color: var(--dark); color: #fff; }
.pager .off { color: var(--ink-3); background: var(--soft); }
.empty { background: var(--surface); border: 1px dashed var(--line-chip); border-radius: var(--r-card); padding: 40px 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty b { font-family: var(--font-head); font-size: 20px; color: var(--ink); }

/* ---------- окно оффера /offer/ ---------- */
body.page-offer { background: var(--hero); }
.offer-main { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; flex-direction: column; gap: 24px; }
.offer-card { background: var(--surface); border-radius: var(--r-big); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.offer-top { display: flex; align-items: center; gap: 14px; }
.offer-top .oc-store a { font-size: 18px; }
.kind-badge { background: var(--hero); color: var(--link-hover); font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 6px 12px; border-radius: 8px; text-transform: uppercase; white-space: nowrap; }
.kind-badge--end { background: var(--soft); color: var(--ink-3); }
.offer-big { display: flex; flex-direction: column; gap: 10px; }
.offer-val { font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1; color: var(--accent); overflow-wrap: anywhere; }
.offer-big h1 { font-weight: 700; font-size: 24px; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.codebox { background: var(--bg); border: 2px dashed var(--accent); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.codebox .kind { color: var(--ink-3); }
.code-val { font-family: var(--font-mono); font-weight: 700; font-size: 36px; letter-spacing: .08em; color: var(--ink); user-select: all; -webkit-user-select: all; cursor: text; word-break: break-all; text-align: center; }
.code-val.is-loading { color: var(--ink-3); letter-spacing: 0; font-size: 24px; }
.offer-go { width: 100%; min-height: 58px; font-size: 18px; font-weight: 800; border-radius: var(--r-field); }
.hint { font-size: 14px; color: var(--ink-2); text-align: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.facts div { background: var(--soft); border-radius: var(--r-field); padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { font-weight: 700; }
.prose-sm { font-size: 15px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.offer-foot { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.vote { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vote strong { font-weight: 700; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-btn); border: 1px solid var(--line-chip); background: var(--surface); color: var(--ink); font-weight: 700; }
.vote-btn:hover { border-color: var(--ink-3); }
.vote-btn.voted { background: var(--dark); border-color: var(--dark); color: #fff; }
.vote-text { font-size: 14px; color: var(--ink-3); }
.vote-msg { flex-basis: 100%; font-size: 14px; min-height: 20px; }
.share { display: flex; align-items: center; gap: 10px; }
.share > span { font-size: 14px; color: var(--ink-3); }
.share-btn { width: 44px; height: 44px; border-radius: var(--r-field); background: var(--soft); border: 0; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.share-btn:hover { color: var(--link-hover); }
.more { display: flex; flex-direction: column; gap: 14px; }
.more h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.more-i { background: var(--surface); border-radius: 14px; padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.more-i:hover { color: var(--ink); }
.more-i b { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--link); overflow-wrap: anywhere; }
.more-i span { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.more-i small { font-size: 13px; color: var(--ink-3); }
.more-all { font-weight: 700; }

/* ---------- страницы: текст, формы, ошибки ---------- */
.prose-wrap { max-width: 820px; margin: 0 auto; padding: 36px var(--gutter) 0; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 36px; }
.prose h1 { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: balance; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin: 10px 0; overflow-wrap: anywhere; }
.prose ul { list-style: disc; padding-left: 22px; } .prose ol { list-style: decimal; padding-left: 22px; }
.formcard { max-width: 460px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.formcard h1, .formcard h2 { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-chip); border-radius: var(--r-field); background: var(--surface); }
.field input:focus { outline: 3px solid rgba(212,56,15,.35); border-color: var(--accent); }
.alert { background: #FBE3E0; color: #7A1D13; border-radius: var(--r-field); padding: 12px 14px; font-size: 14px; }
.alert--ok { background: #E2F2E7; color: #14532D; }
.errpage { padding: 72px 0 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.errpage-code { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; color: var(--accent); }
.errpage h1 { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.2; }
.errpage p { font-size: 18px; color: var(--ink-2); max-width: 32em; }

/* ---------- финансы ---------- */
.fhero { background: var(--dark); color: #fff; }
.fhero-in { padding-top: 44px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 56px; }
.fhero-t { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fhero .badge { background: var(--amber); color: var(--ink); }
.fhero h1 { font-size: 44px; line-height: 1.12; color: #fff; }
.fhero p { font-size: 18px; color: var(--on-dark-2); max-width: 32em; }
.fhero-note { flex: 0 1 380px; min-width: 0; background: var(--dark-2); border-radius: var(--r-card); padding: 18px 20px; font-size: 14px; color: var(--on-dark-2); }
.ftools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.ftools label { color: var(--ink-3); font-size: 15px; }
.ftools select { min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-chip); background: var(--surface); font-weight: 600; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.fcard-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.fcard-t { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fcard-t h2 { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.fcard-t h2 a { color: var(--ink); } .fcard-t h2 a:hover { color: var(--link); }
.fcard-t span { font-size: 15px; color: var(--ink-2); }
.fcard dl { flex: 2 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.fcard dt { font-size: 13px; color: var(--ink-3); } .fcard dd { font-weight: 700; font-size: 17px; }
.fcard-a { flex: none; width: 200px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.fcard-a b { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--link); }
.fcard-a .more-all { text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 12px 0; }
.ad-line { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--ink-3); }
.risk { background: var(--hero); border-radius: var(--r-big); padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.risk h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.risk p { font-size: 15px; color: var(--ink-2); max-width: 60em; }
.fo-hero { background: var(--hero); }
.fo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.fo-card { flex: none; width: 240px; height: 150px; border-radius: 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.fo-t { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fo-t h1 { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.fo-t p { font-size: 17px; color: var(--ink-2); }
.fo-cta { flex: 0 1 300px; min-width: 0; background: var(--surface); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fo-cta b { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--link); }
.fo-cta small { font-size: 13px; color: var(--ink-3); text-align: center; }
.facts-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact-big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.fact-big span { font-size: 14px; color: var(--ink-3); } .fact-big b { font-family: var(--font-head); font-weight: 700; font-size: 24px; overflow-wrap: anywhere; }
.terms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 24px; }
.terms h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; padding: 18px 0 10px; }
.terms div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.terms dt { color: var(--ink-2); } .terms dd { font-weight: 700; }

/* ---------- панель согласия и окно настроек cookie ---------- */
.cb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--dark); color: #fff; box-shadow: 0 -8px 28px rgba(28,20,18,.25); padding: 16px 0; }
.cb[hidden] { display: none; }
.cb-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; }
.cb p { margin: 0; flex: 1 1 420px; font-size: 14px; line-height: 1.45; color: #F3E9E1; min-width: 0; }
.cb p a { color: var(--amber); text-decoration: underline; }
.cb .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cb .cb-btn { min-height: 48px; border: 1px solid #6B5E57; border-radius: var(--r-btn); padding: 0 18px; font-weight: 700; font-size: 14px; background: transparent; color: #fff; }
.cb .cb-btn:hover { border-color: #fff; }
#cbYes.cb-btn { background: var(--accent); border-color: var(--accent); order: 3; }
.cb-opts { max-width: var(--wrap); margin: 12px auto 0; padding: 0 var(--gutter); border-top: 1px solid #3A2E29; }
.cb-opts[hidden] { display: none; }
.cb .tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #3A2E29; font-size: 14px; }
.cb .tg:last-child { border-bottom: 0; }
.cb .tg small { display: block; color: var(--on-dark-2); font-size: 13px; }
.cb .sw { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.cb .sw input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.cb .sw i { position: absolute; inset: 0; background: #6B5E57; border-radius: 99px; transition: .15s; }
.cb .sw i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; }
.cb .sw input:checked + i { background: var(--accent); }
.cb .sw input:checked + i::after { left: 24px; }
.cb .sw input:focus-visible + i { outline: 3px solid var(--amber); outline-offset: 2px; }
.cb .sw input:disabled { cursor: not-allowed; }
.cb .sw input:disabled + i { opacity: .55; }
.legal-links button, .mychoice .mini { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- баннеры рекламы (админка «Реклама») ---------- */
.ad-slot { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter) 0; }

/* ---------- телефон ---------- */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .hdr-in { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; min-height: 0; }
  .brand { font-size: 20px; }
  .nav { display: none; }
  .hdr-user { display: none; }
  .burger { display: flex; }
  .search { order: 5; flex: 1 1 100%; padding: 0 14px; }
  .hero-in { padding-top: 24px; padding-bottom: 28px; gap: 16px; }
  .hero-text { gap: 16px; flex-basis: 100%; }
  .badge { font-size: 11px; padding: 6px 10px; border-radius: 6px; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: none; }
  .hero-tiles { flex-basis: 100%; gap: 10px; }
  .hero-tiles .tile:nth-child(n+3) { display: none; }
  .tile { padding: 14px; border-radius: 14px; } .tile-k { font-size: 11px; } .tile-v { font-size: 22px; } .tile-t { font-size: 13px; }
  .main { gap: 28px; padding-top: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; font-size: 14px; padding: 0 16px; }
  .sec { gap: 14px; }
  .sec-head h2, .sec h2 { font-size: 20px; }
  .sec-head a { font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .oc { padding: 16px; gap: 12px; }
  .oc-store a { font-size: 16px; }
  .oc-title { font-size: 16px; }
  .code-mask { font-size: 14px; letter-spacing: .04em; }
  .stores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how { padding: 24px 20px; }
  .how-t h2 { font-size: 22px; }
  .phero-in { padding-top: 16px; padding-bottom: 24px; gap: 14px; }
  .phero-t h1 { font-size: 26px; }
  .phero-t p { font-size: 15px; }
  .logo--xl { width: 64px; height: 64px; border-radius: 16px; } .logo--xl .logo-ini { font-size: 22px; }
  .cols { gap: 24px; padding-top: 16px; }
  .col-main, .col-side { flex-basis: 100%; }
  .orow { padding: 16px; gap: 12px; }
  .orow-v { width: 100%; flex-direction: row; align-items: baseline; gap: 10px; }
  .orow-a { width: 100%; }
  .offer-main { padding: 16px var(--gutter) 40px; gap: 16px; }
  .offer-card { padding: 20px; gap: 18px; border-radius: 18px; }
  .offer-val { font-size: 38px; }
  .offer-big h1 { font-size: 19px; }
  .codebox { padding: 18px 14px; gap: 14px; border-radius: 14px; }
  .code-val { font-size: 30px; }
  .offer-go { min-height: 56px; font-size: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vote, .offer-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .vote-btns { display: flex; gap: 10px; align-items: center; }
  .vote-btn { flex: 1; justify-content: center; }
  .share { justify-content: space-between; }
  .more-grid { grid-template-columns: 1fr; }
  .more-i { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .more-i b { flex: none; width: 96px; font-size: 16px; }
  .more-i small { display: none; }
  .prose { padding: 22px; } .prose h1 { font-size: 24px; }
  .formcard { margin-top: 24px; padding: 22px; }
  .errpage { padding-top: 40px; } .errpage-code { font-size: 64px; } .errpage h1 { font-size: 24px; }
  .fhero h1 { font-size: 28px; } .fhero-in { padding-top: 28px; padding-bottom: 28px; }
  .fo-t h1 { font-size: 26px; } .fo-card { width: 100%; max-width: 240px; }
  .fcard-a { width: 100%; }
  .risk { padding: 20px; }
  .ftr-in { gap: 8px 20px; } .ftr-copy { margin-left: 0; width: 100%; }
  .cb { padding: 18px 0 20px; }
  .cb p { flex-basis: 100%; }
  .cb .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .cb #cbYes { grid-column: 1 / -1; order: -1; min-height: 48px; }
  .cb .cb-btn { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- дополнения ---------- */
.auth { background: var(--bg); }
.auth-title { font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.terms-box { font-size: 13px; color: var(--ink-3); line-height: 1.55; background: var(--soft); border-radius: var(--r-field); padding: 12px 14px; max-height: 110px; overflow-y: auto; }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 24px 0 8px; }
.prose a { text-decoration: underline; }
.promo-sticky { bottom: 0 !important; }
.crumbs { margin: 0; }
.stores-grid--big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.col-main .rows { display: flex; flex-direction: column; gap: 18px; }
.na.orow-a { width: 210px; }
.btn.orow-a { width: 210px; }
@media (max-width: 768px) { .btn.orow-a, .na.orow-a { width: 100%; } .stores-grid--big { grid-template-columns: 1fr; } }
.prose-sm { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.offer-step .offer-go { display: flex; }
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.req li { background: var(--soft); border-radius: var(--r-field); padding: 14px 16px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- займы (этап 2) ---------- */
.crumbs--dark, .crumbs--dark a { color: var(--on-dark-2); }
.crumbs--dark a:hover { color: #fff; }
.lfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.lfilters label { color: var(--ink-3); }
.lfilters select { min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-chip); background: var(--surface); font-weight: 600; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.lcard--zero { border: 2px solid var(--accent); }
.lcard-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.lcard-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lcard-t h3 { font-weight: 700; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.lcard-t h3 a { color: var(--ink); } .lcard-t h3 a:hover { color: var(--link); }
.lcard-t span { font-size: 14px; color: var(--ink-2); }
.zero-badge { flex: none; background: var(--accent); color: #fff; border-radius: var(--r-field); padding: 10px 18px; display: flex; flex-direction: column; align-items: center; }
.zero-badge b { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.1; }
.zero-badge span { font-size: 13px; font-weight: 700; }
.lcard-f { flex: 2 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.lcard-f dt { font-size: 13px; color: var(--ink-3); } .lcard-f dd { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.lcard-a { flex: none; width: 190px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lcard-a .more-all { text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 12px 0; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 32px; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.info-t { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.info-t h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.info-t p { font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.faq { background: var(--soft); border-radius: var(--r-field); padding: 0 18px; }
.faq summary { font-weight: 700; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.faq p { font-size: 15px; margin: 0 0 14px; }
@media (max-width: 768px) {
  .lcard { padding: 16px; gap: 14px; } .lcard-row { gap: 12px; } .lcard-t h3 { font-size: 17px; } .lcard-t { flex-basis: 140px; }
  .zero-badge { padding: 6px 12px; border-radius: 10px; } .zero-badge b { font-size: 20px; } .zero-badge span { font-size: 11px; }
  .lcard-f { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .lcard-f dt { font-size: 12px; } .lcard-f dd { font-size: 15px; }
  .lcard-a { width: 100%; } .info { padding: 20px; }
}
.offer-title { font-family: var(--font-body); font-weight: 700; font-size: 22px; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
