/* ==========================================================
   ИРИС-Финансы — стили. Soft UI на молочном фоне.
   Три состояния поверхности:
     выпуклое (--raised*)  — карточки, кнопки, чипы
     вдавленное (--inset*) — поля, ползунки, выбранные чипы, плитки
     плоское               — всё остальное
   ========================================================== */

:root {
  --bg: #F6F0E4;
  --bg-2: #FBF7EE;
  --bg-3: #F1E9DA;
  --ink: #2B2118;
  --ink-2: #6F5F4E;

  --accent: #FF8A00;
  --accent-hi: #FFA23A;
  --accent-lo: #F27C00;
  --on-accent: #2B1B0E;
  --brand-ink: #B84F00;   /* тёмный оранжевый для текста и букв */
  --accent-rgb: 255, 138, 0;   /* свечение и полупрозрачные подсветки */
  --mark-rgb: 255, 138, 0;     /* подчёркивания-маркеры */

  /* тёплые тени: светлая сверху-слева, тёмно-бежевая снизу-справа */
  --sh-l: rgba(255, 255, 255, .95);
  --sh-d: rgba(168, 138, 96, .40);
  --edge: rgba(255, 255, 255, .75);

  --glow-1: rgba(255, 160, 50, .20);
  --glow-2: rgba(255, 255, 255, .75);
  --btn-sh: 6px 8px 18px rgba(214, 110, 0, .38), -5px -5px 12px var(--sh-l), inset 1px 1px 0 rgba(255, 255, 255, .45);
  --btn-press: inset 4px 4px 10px rgba(150, 70, 0, .45), inset -3px -3px 8px rgba(255, 190, 100, .65);
  --coin-a: #FFFAF0;
  --coin-b: #EFE4D0;
  --track: #EADFCB;
  --thumb-a: #FFFFFF;
  --thumb-b: #ECE1CD;
  --dot-off: #E3D8C3;
  --line: rgba(120, 95, 60, .16);

  --raised:    9px 9px 20px var(--sh-d), -9px -9px 20px var(--sh-l);
  --raised-sm: 5px 5px 12px var(--sh-d), -5px -5px 12px var(--sh-l);
  --raised-xs: 3px 3px 7px var(--sh-d),  -3px -3px 7px var(--sh-l);
  --inset:     inset 5px 5px 11px var(--sh-d), inset -5px -5px 11px var(--sh-l);
  --inset-sm:  inset 3px 3px 7px var(--sh-d),  inset -3px -3px 7px var(--sh-l);

  /* Лёгкое оранжевое свечение вместо рамок: обычное, при наведении, у выделенных блоков */
  --frame: 0 0 0 1px rgba(var(--accent-rgb), .26), 0 14px 32px -6px rgba(var(--accent-rgb), .38);
  --frame-hover: 0 0 0 1.5px rgba(var(--accent-rgb), .48), 0 18px 40px -5px rgba(var(--accent-rgb), .56);
  --frame-strong: 0 0 0 1.5px rgba(var(--accent-rgb), .55), 0 18px 44px -4px rgba(var(--accent-rgb), .58);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Тёмная тема: графит + насыщенный синий (как на сайте ИРИС) ---------- */
:root[data-theme="dark"] {
  --bg: #18191C;
  --bg-2: #1E2023;
  --bg-3: #141517;
  --ink: #E8ECF2;
  --ink-2: #9AA1AC;

  --accent: #1F5BFF;
  --accent-hi: #3F76FF;
  --accent-lo: #0E3FE6;
  --on-accent: #FFFFFF;
  --brand-ink: #6F9BFF;
  --accent-rgb: 31, 143, 255;
  --mark-rgb: 31, 91, 255;

  --sh-l: rgba(255, 255, 255, .045);
  --sh-d: rgba(0, 0, 0, .65);
  --edge: rgba(255, 255, 255, .04);

  --glow-1: rgba(31, 143, 255, .20);
  --glow-2: rgba(255, 255, 255, .025);
  --btn-sh: 0 8px 24px rgba(31, 143, 255, .45), 0 0 0 1px rgba(120, 190, 255, .25), inset 1px 1px 0 rgba(255, 255, 255, .35);
  --btn-press: inset 4px 4px 10px rgba(0, 40, 110, .6), inset -3px -3px 8px rgba(110, 190, 255, .45);
  --coin-a: #222428;
  --coin-b: #18191C;
  --track: #26282D;
  --thumb-a: #2A2D32;
  --thumb-b: #1C1E21;
  --dot-off: #2C2F34;
  --line: rgba(255, 255, 255, .07);

  color-scheme: dark;
}

/* Плавная смена темы — класс вешается на долю секунды при переключении */
.theming, .theming *, .theming *::before, .theming *::after {
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 500 16px/1.55 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(700px 420px at -8% 28%, var(--glow-2), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }

.wrap { width: min(1180px, 100% - 36px); margin-inline: auto; }

.ic { width: 1.1em; height: 1.1em; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--bg-2); box-shadow: var(--raised-sm);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .65); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: .005em;
  color: var(--on-accent); text-decoration: none; cursor: pointer;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
  box-shadow: var(--btn-sh);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: translateY(1px); box-shadow: var(--btn-press); }

.btn-soft {
  color: var(--ink); background: var(--bg);
  box-shadow: var(--raised-sm);
}
.btn-soft:hover { filter: none; box-shadow: 7px 7px 16px var(--sh-d), -7px -7px 16px var(--sh-l); }
.btn-soft:active { box-shadow: var(--inset-sm); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.top { padding: 20px 0 8px; }
.top-in { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-link { text-decoration: none; }
.brand-ico {
  position: relative; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bg); box-shadow: var(--raised-xs);
}
.brand-ico::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .45);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.brand-ico.theme-toggle { cursor: pointer; transition: box-shadow .15s ease; }
.brand-ico.theme-toggle:hover { box-shadow: 5px 5px 11px var(--sh-d), -5px -5px 11px var(--sh-l); }
.brand-ico.theme-toggle:hover::after { transform: scale(1.15); }
.brand-ico.theme-toggle:active { box-shadow: var(--inset-sm); }
.brand-ico.theme-toggle:active::after { transform: scale(.9); }

/* Переключатель темы: солнце / луна. Есть в шапке на любой ширине экрана */
.theme-switch {
  position: relative; flex: none; width: 72px; height: 40px; padding: 0; border: 0; border-radius: 999px;
  background: var(--bg); box-shadow: var(--inset-sm); cursor: pointer; color: var(--ink-2);
}
.theme-switch .ts-ico { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; opacity: .7; }
.theme-switch .ts-sun { left: 12px; }
.theme-switch .ts-moon { right: 12px; }
.theme-switch .knob {
  position: absolute; top: 5px; left: 5px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo)); color: var(--on-accent);
  box-shadow: 2px 2px 6px var(--sh-d), 0 0 12px rgba(var(--accent-rgb), .5);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.theme-switch .knob .ic { width: 17px; height: 17px; }
.theme-switch .knob .ts-moon-k { display: none; }
:root[data-theme="dark"] .theme-switch .knob { transform: translateX(32px); }
:root[data-theme="dark"] .theme-switch .knob .ts-sun-k { display: none; }
:root[data-theme="dark"] .theme-switch .knob .ts-moon-k { display: block; }
.theme-switch:hover .knob { filter: brightness(1.08); }
.brand-wm {
  display: inline-block; font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  transform: skewX(-7deg);
}
.brand-wm b {
  font-weight: 800;
  background: linear-gradient(transparent 66%, rgba(var(--mark-rgb), .55) 66%);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: box-shadow .15s ease, color .15s ease;
}
.nav a:hover { color: var(--ink); box-shadow: var(--raised-xs); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 36px; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-in > * { min-width: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px;
  border-radius: 999px; background: var(--bg); box-shadow: var(--inset-sm);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink);
}

h1 {
  font-size: clamp(34px, 5vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em;
}
h1 em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(transparent 62%, rgba(var(--mark-rgb), .5) 62%);
}

.lead { margin-top: 22px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

.trust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.trust .ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--raised-xs); color: var(--brand-ink);
}
.trust .ic { width: 19px; height: 19px; }

/* Подбор */
.picker {
  position: relative;
  padding: 34px 32px 30px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--edge);
  box-shadow: 14px 14px 32px var(--sh-d), -12px -12px 28px var(--sh-l), var(--frame);
}
.picker-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 24px; }

.coin {
  position: absolute; display: grid; place-items: center;
  width: 78px; height: 78px; top: -30px; right: 22px;
  border-radius: 50%;
  font-size: 40px; font-weight: 800; color: var(--brand-ink);
  background: linear-gradient(145deg, var(--coin-a), var(--coin-b));
  box-shadow: 7px 7px 16px var(--sh-d), -6px -6px 14px var(--sh-l);
  transform: rotate(-8deg);
}
.coin-sm {
  width: 52px; height: 52px; top: auto; right: auto; left: -20px; bottom: 64px;
  font-size: 24px; transform: rotate(8deg);
}

.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.field label, .field legend {
  padding: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.field legend { margin-bottom: 12px; }
#sum-out { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* Ползунок */
input[type="range"] {
  --p: 20%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 12px; border-radius: 999px; box-shadow: var(--inset-sm);
  background: linear-gradient(90deg, var(--accent) var(--p), var(--track) var(--p));
}
input[type="range"]::-moz-range-track {
  height: 12px; border-radius: 999px; box-shadow: var(--inset-sm); background: var(--track);
}
input[type="range"]::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 32px; height: 32px; margin-top: -10px; border: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 26%, transparent 28%),
    linear-gradient(145deg, var(--thumb-a), var(--thumb-b));
  box-shadow: 5px 5px 11px var(--sh-d), -4px -4px 9px var(--sh-l);
}
input[type="range"]::-moz-range-thumb {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 26%, transparent 28%),
    linear-gradient(145deg, var(--thumb-a), var(--thumb-b));
  box-shadow: 5px 5px 11px var(--sh-d), -4px -4px 9px var(--sh-l);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .45), 5px 5px 11px var(--sh-d); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .45), 5px 5px 11px var(--sh-d); }

/* Сегменты срока */
.seg { display: flex; flex-wrap: wrap; gap: 12px; }
.seg label { position: relative; padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--bg); box-shadow: var(--raised-xs);
  font-size: 14px; font-weight: 700; color: var(--ink);
  transition: box-shadow .15s ease;
}
.seg input:checked + span { box-shadow: var(--inset-sm); color: var(--ink); }
.seg input:checked + span::before {
  content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent);
}
.seg input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .65); outline-offset: 3px; }

.picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.found { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.found b { font-size: 20px; font-weight: 800; color: var(--ink); }

/* ---------- Секции ---------- */
.section { padding: 44px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.sub { margin-top: 8px; color: var(--ink-2); }

.tag-demo {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 5px 12px;
  border-radius: 999px; background: var(--bg); box-shadow: var(--inset-sm);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}

/* Панель фильтров */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); box-shadow: var(--raised-xs);
  font-size: 14px; font-weight: 700;
  transition: box-shadow .15s ease;
}
.chip:hover { box-shadow: 4px 4px 9px var(--sh-d), -4px -4px 9px var(--sh-l); }
.chip[aria-pressed="true"] { box-shadow: var(--inset-sm); }
.chip[aria-pressed="true"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent);
}

.sort { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sort select {
  -webkit-appearance: none; appearance: none;
  min-height: 44px; padding: 0 44px 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%236F5F4E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 18px center;
  box-shadow: var(--inset-sm);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink);
}
:root[data-theme="dark"] .sort select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%239AA1AC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
}

/* ---------- Карточки займов ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--edge);
  box-shadow: var(--raised), var(--frame);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 12px 14px 26px var(--sh-d), -9px -9px 20px var(--sh-l), var(--frame-hover); }
.card.is-featured { box-shadow: var(--raised), var(--frame-strong); }
.card.is-featured:hover { box-shadow: 12px 14px 26px var(--sh-d), -9px -9px 20px var(--sh-l), var(--frame-strong); }

.card-head { display: flex; align-items: center; gap: 14px; }
.logo {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--raised-xs);
  font-size: 22px; font-weight: 800; color: var(--brand-ink);
}
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ad { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.badges li {
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg); box-shadow: var(--inset-sm);
  font-size: 12px; font-weight: 800; color: var(--ink-2);
}
.badges li.hot { background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo)); box-shadow: none; color: var(--on-accent); }

.amount { display: flex; flex-direction: column; }
.amount span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.amount strong { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div {
  padding: 10px 14px 11px; border-radius: var(--r-sm);
  background: var(--bg); box-shadow: var(--inset-sm);
}
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin-top: 2px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }

.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-off); box-shadow: inset 1px 1px 2px var(--sh-d); }
.dots i.on { background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), .45); }

.perks { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.perks li { display: flex; align-items: flex-start; gap: 9px; }
.perks .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--accent-lo); }
:root[data-theme="dark"] .perks .ic { color: var(--accent-hi); }

.card .btn { margin-top: auto; }
.legal { text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }

.empty {
  grid-column: 1 / -1; padding: 40px 24px; border-radius: var(--r-lg);
  background: var(--bg); box-shadow: var(--inset);
  text-align: center; color: var(--ink-2); font-weight: 600;
}
.empty .btn { margin-top: 18px; }

/* Появление карточек — только при первой загрузке */
@media (prefers-reduced-motion: no-preference) {
  .grid.is-entering .card, .rows.is-entering .row { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Строки «Под залог» ---------- */
.rows { display: grid; gap: 26px; }
.row {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr auto; align-items: center; gap: 24px;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--edge);
  box-shadow: var(--raised-sm), var(--frame);
}
.row-who { display: flex; align-items: center; gap: 14px; }
.row-who h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.row .facts { grid-template-columns: repeat(3, 1fr); }
.row .btn { min-height: 50px; }

/* ---------- Баннер КИ ---------- */
.banner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 30px 34px; border-radius: 34px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--edge);
  box-shadow: var(--raised), var(--frame-strong);
}
.banner-ico {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--inset); color: var(--brand-ink);
}
.banner-ico .ic { width: 34px; height: 34px; }
.banner h2 { font-size: clamp(22px, 2.6vw, 30px); }
.banner p { margin-top: 6px; color: var(--ink-2); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps li {
  padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--bg); box-shadow: var(--raised-sm);
}
.num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--inset-sm);
  font-size: 20px; font-weight: 800; color: var(--brand-ink);
}
.steps h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 18px; max-width: 860px; }
.faq details {
  border-radius: var(--r-md); background: var(--bg); box-shadow: var(--raised-sm);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--inset-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--raised-xs);
  font-size: 20px; font-weight: 700; line-height: 1; color: var(--brand-ink);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); box-shadow: var(--inset-sm); }
.faq details p { padding: 0 24px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Подвал ---------- */
.foot { margin-top: 36px; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.foot-nav a { color: var(--ink-2); }
.foot p { max-width: 880px; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.foot .todo { color: var(--brand-ink); font-weight: 700; }
.foot .copy { margin-top: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .lead { max-width: 640px; }
  .picker { max-width: 560px; }
  .row { grid-template-columns: 1fr auto; }
  .row .facts { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .top .theme-switch { margin-left: auto; }
  .banner { grid-template-columns: 1fr; text-align: left; gap: 20px; padding: 26px 24px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 24px 0 24px; }
  .hero-in { gap: 52px; }
  .lead { font-size: 16px; }
  .picker { padding: 28px 20px 22px; border-radius: 28px; }
  .coin { width: 62px; height: 62px; top: -26px; right: 16px; font-size: 32px; }
  .coin-sm { display: none; }
  #sum-out { font-size: 26px; }
  .picker-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .picker-foot .found { text-align: center; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 32px 0; }
  .sort { width: 100%; justify-content: space-between; }
  .sort select { flex: 1; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
  .row { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; }
  .row .facts { grid-template-columns: 1fr 1fr; order: 0; }
  .row .facts div:last-child { grid-column: 1 / -1; }
  .row .btn { width: 100%; }
  .tag-demo { display: table; margin: 10px 0 0; }
  .brand-wm { font-size: 19px; }
  .top-in { gap: 12px; }
  .top .btn-sm { padding: 0 16px; }
}

/* На узких телефонах кнопка КИ уходит из шапки (баннер КИ есть ниже) — переключатель темы остаётся */
@media (max-width: 520px) {
  .top .btn-sm { display: none; }
}
