/*
 * NORD Credits — рекламный лендинг потребительского кредита.
 *
 * Цвета — из знака и сайта компании: синий #1F5BFF, тёмно-синий
 * #10069F, светлые фоны #F3F7FE/#F9FBFF. Добавлена ночь и северное
 * сияние: NORD — «север», и первый экран — ночное небо, на котором
 * собирается мечта. Тёплый янтарь — только в иллюстрациях (солнце,
 * лампа, кольцо), в интерфейсе его нет.
 *
 * Разделы файла:
 *   1. Токены и основа        6. Срок и график
 *   2. Кнопки, поля, мелочи   7. Шаги, подготовка, доверие
 *   3. Шапка                  8. Анкета
 *   4. Первый экран           9. Вопросы, подвал, панели
 *   5. Конструктор           10. Движение
 */

/* Шрифты — со своего сервера (app/assets/fonts, лицензия SIL OFL),
   только латиница и латышская диакритика: русской ветки больше нет. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/manrope-latin-ext-3c111aa4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/manrope-latin-822bc47d.woff2") format("woff2");
  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;
}


/* 1. Токены и основа ------------------------------------------------ */

:root {
  --night: #05072a;
  --night-2: #0b0e48;
  --indigo: #10069f;
  --blue: #1f5bff;
  --blue-2: #4c7dff;
  --sky: #8fb0ff;
  --mist: #c9d8ff;
  --ice: #f3f7fe;
  --paper: #f9fbff;
  --white: #ffffff;
  --ink: #0b1030;
  --ink-2: #2a3355;
  --muted: #5d6685;
  --line: #dfe5f3;
  --warm: #ffb84d;
  --danger: #d4351c;
  --ok: #16a567;
  --aurora-1: #3fe0ff;
  --aurora-2: #1f5bff;
  --aurora-3: #7a5cff;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(11, 16, 48, .04), 0 12px 32px -12px rgba(11, 16, 48, .14);
  --shadow-lg: 0 2px 4px rgba(11, 16, 48, .04), 0 32px 64px -24px rgba(16, 6, 159, .28);
  --glow: 0 18px 40px -12px rgba(31, 91, 255, .65);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

/* Системная подсветка касания (синий прямоугольник в Android Chrome)
   не нужна: у всего нажимаемого есть свои состояния. */
html { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
output { display: block; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.tabular, output { font-variant-numeric: tabular-nums; }

/* 2. Кнопки, поля, мелочи ------------------------------------------- */

.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -.005em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  isolation: isolate; overflow: hidden;
}
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; }

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  box-shadow: var(--glow);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  opacity: 0; transition: opacity .25s;
}
.btn--primary:hover::after { opacity: 1; }
.btn--primary:hover { box-shadow: 0 22px 48px -12px rgba(31, 91, 255, .8); }

.btn--ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { color: var(--white); background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .22); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }

.linklike { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky); }

.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section--tight { padding-top: 0; }
.section--ice { background: var(--ice); }
.section--night { background: radial-gradient(120% 90% at 80% 0%, var(--night-2) 0%, var(--night) 60%); color: var(--white); overflow: hidden; }

.section__title {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em;
  max-width: 16ch; text-wrap: balance;
}
.section__title--light { color: var(--white); }
.section__lead { margin-top: 18px; max-width: 52ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }

/* Иллюстрации конструктора: общие цвета. */
.art { width: 100%; height: auto; overflow: visible; }
.art .c1 { fill: var(--blue); }
.art .c2 { fill: var(--indigo); }
.art .c3 { fill: #6f97ff; }
.art .c4 { fill: var(--mist); }
.art .c5 { fill: var(--white); }
.art .c6 { fill: var(--warm); }
.art .c1-stroke { stroke: var(--blue); }
.art .c2-stroke { stroke: var(--indigo); }
.art .c3-stroke { stroke: #6f97ff; }
.art .c4-stroke { stroke: var(--mist); }
.art .c6-stroke { stroke: var(--warm); }
.art .c1-stroke, .art .c2-stroke, .art .c3-stroke, .art .c6-stroke { fill: none; }
.art .c5.c4-stroke, .art .c5.c3-stroke, .art .c5.c1-stroke { fill: var(--white); }
.art .op-6 { opacity: .6; }
.art .op-3 { opacity: .3; }
.art .c-shadow { fill: rgba(16, 6, 159, .1); }
.art .live-halo { opacity: 0; }

/* 3. Шапка ----------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
.header[data-scrolled] {
  background: rgba(5, 7, 42, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.header__bar { display: flex; align-items: center; gap: 24px; height: var(--header); }

/* Логотип — вертикальный, как на nordcredits.lv. На тёмном фоне белый
   с синим, как в подвале их сайта (currentColor + --logo-accent). */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); --logo-accent: var(--blue); }
.brand .logo { display: block; height: 62px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .logo { transform: scale(1.04); }
.brand--footer .logo { height: 76px; }

.header__nav { display: flex; gap: 28px; margin-left: 24px; }
.header__nav a { font-size: 15px; font-weight: 600; text-decoration: none; opacity: .8; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.header__lang {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 13px; font-weight: 800; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .25); transition: background-color .2s;
}
.header__lang:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__phone span { display: none; }
  .header__phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); }
}
@media (max-width: 420px) {
  .brand .logo { height: 52px; }
  .header__actions { gap: 8px; }
}

/* 4. Первый экран ---------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(31, 91, 255, .35) 0%, transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(16, 6, 159, .55) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: calc(var(--header) + clamp(24px, 3.5vw, 48px)) 0 clamp(28px, 3vw, 40px);
}

/* Северное сияние — три размытые ленты, медленно дрейфующие. Чистый
   CSS, ни одного кадра скрипта; под reduced-motion замирает. */
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora__band {
  position: absolute; border-radius: 50%;
  filter: blur(60px); mix-blend-mode: screen; opacity: .55;
  will-change: transform;
}
.aurora__band--1 {
  width: 70vw; height: 22vw; min-height: 180px; left: 20%; top: -4%;
  background: linear-gradient(90deg, transparent, var(--aurora-1) 30%, var(--aurora-2) 60%, transparent);
  transform: rotate(-12deg);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.aurora__band--2 {
  width: 60vw; height: 18vw; min-height: 150px; left: -10%; top: 30%;
  background: linear-gradient(90deg, transparent, var(--aurora-3) 40%, var(--aurora-2) 70%, transparent);
  transform: rotate(8deg);
  opacity: .4;
  animation: aurora-b 28s ease-in-out infinite alternate;
}
.aurora__band--3 {
  width: 50vw; height: 14vw; min-height: 120px; right: -10%; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--aurora-2) 30%, var(--aurora-1) 70%, transparent);
  transform: rotate(-6deg);
  opacity: .35;
  animation: aurora-a 34s ease-in-out infinite alternate-reverse;
}
.aurora--soft .aurora__band { opacity: .28; }
.aurora__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 44% 12%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 58% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 72% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.3px 1.3px at 94% 8%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 6% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 36% 88%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.2px 1.2px at 66% 84%, rgba(255,255,255,.5), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy board" "calc board";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 24px;
  align-items: start;
}
.hero__copy { grid-area: copy; }
.calc { grid-area: calc; }
.board { grid-area: board; align-self: center; }

.hero__title {
  font-size: clamp(44px, 5.4vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--aurora-1) 0%, var(--sky) 35%, #fff 50%, var(--sky) 65%, var(--aurora-1) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
.hero__title--sm { font-size: clamp(34px, 5vw, 60px); }
.hero__lead { margin-top: 16px; max-width: 44ch; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, .74); text-wrap: pretty; }

.calc {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc__label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); letter-spacing: .01em; }
.calc__diff {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(63, 224, 255, .14); color: var(--aurora-1);
}
.calc__diff[data-state="less"] { background: rgba(255, 184, 77, .14); color: var(--warm); }
.calc__amount {
  margin: 4px 0 10px;
  font-size: clamp(44px, 4.6vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.04em;
  transform-origin: left center;
}
.calc__amount.is-bumped, .sticky-cta .is-bumped { animation: bump .55s var(--spring); }
.sticky-cta__text strong { transform-origin: left center; }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.calc__term { font-weight: 800; font-size: 18px; }
.calc__pay {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 16px 0 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.calc__payment { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.calc__note { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .5); text-align: center; }
.calc__note a { text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }

/* Ползунок: заливку до бегунка рисует переменная --fill из скрипта.
   Полоса касания — 44 px (палец), в раскладке занимает прежние 28 px.
   touch-action: none отдаёт жест ползунку (lib/range_touch.js): Safari
   на iPhone иначе двигает его только за сам бегунок. */
.range {
  --fill: 50%;
  --thumb: 28px;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: -8px 0; background: transparent; cursor: pointer;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--aurora-1), var(--blue) var(--fill), rgba(255, 255, 255, .14) var(--fill));
}
.range::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--aurora-1), var(--blue)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--white); border: 0;
  box-shadow: 0 0 0 6px rgba(31, 91, 255, .35), 0 6px 16px rgba(0, 0, 0, .35);
  transition: box-shadow .2s, transform .2s var(--spring);
}
.range::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 0;
  box-shadow: 0 0 0 6px rgba(31, 91, 255, .35), 0 6px 16px rgba(0, 0, 0, .35);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(63, 224, 255, .3), 0 6px 16px rgba(0, 0, 0, .35); }
.range--thin::-webkit-slider-runnable-track { height: 6px; }
.range--thin { --thumb: 24px; }
.range--thin::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 2px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: clamp(32px, 4vw, 48px) !important;
  /* Отступы по бокам — как у .wrap: сброс списков их иначе обнуляет. */
  padding: 24px var(--gutter) 0 !important;
  position: relative;
}
.hero__facts::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.hero__facts svg { color: var(--aurora-1); }

/* 5. Конструктор ----------------------------------------------------- */

.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.board__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.board__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.board__hint svg { color: var(--aurora-1); }
.board__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.board__note { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .72);
  text-align: center; cursor: pointer;
  transition: transform .45s var(--spring), background-color .35s, border-color .35s, box-shadow .45s var(--ease), color .35s;
  -webkit-tap-highlight-color: transparent;
}
.tile__art { width: min(100%, 96px); aspect-ratio: 1; transition: filter .4s, opacity .4s, transform .5s var(--spring); filter: grayscale(1) brightness(1.6); opacity: .38; }
.tile__name { font-size: 13.5px; font-weight: 700; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.tile__price { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.tile__check {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  transform: scale(0); transition: transform .4s var(--spring);
}

@media (hover: hover) {
  .tile:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); }
  .tile:hover .tile__art { opacity: .6; transform: translateY(-2px); }
}

.tile[aria-pressed="true"] {
  background: var(--white); color: var(--ink);
  border: 1px solid transparent;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(31, 91, 255, .7), 0 0 0 1px rgba(143, 176, 255, .5), 0 0 40px -6px rgba(63, 224, 255, .35);
}
.tile[aria-pressed="true"] .tile__art { filter: none; opacity: 1; animation: pop .6s var(--spring); }
.tile[aria-pressed="true"] .tile__price { color: var(--blue); }
.tile[aria-pressed="true"] .tile__check { transform: scale(1); }
@media (hover: hover) {
  .tile[aria-pressed="true"]:hover { transform: translateY(-6px); }
}

/* Искра «+900 €», летящая от плитки к сумме (plan_controller#fly). */
.spark-fly {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  padding: 6px 12px; border-radius: 999px;
  font: 800 14px/1 var(--font); color: var(--night); white-space: nowrap;
  background: linear-gradient(90deg, var(--aurora-1), #fff);
  box-shadow: 0 0 24px rgba(63, 224, 255, .8);
}

/* Мобильная раскладка первого экрана: заголовок → конструктор → расчёт. */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "board" "calc"; }
  .hero__lead { max-width: 60ch; }
}
@media (max-width: 640px) {
  .board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 10px 6px 10px; border-radius: 16px; }
  .tile__art { width: 64px; }
  .tile__name { font-size: 12px; }
  .tile__price { font-size: 11.5px; }
  .tile__check { top: 6px; right: 6px; width: 20px; height: 20px; }
  .board__title { font-size: 19px; }
  .calc__payment { font-size: 30px; }
  .hero__facts { gap: 10px 18px; }
}

/* 6. Срок и график --------------------------------------------------- */

.term { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.term__readout { display: grid; grid-template-columns: repeat(2, auto); gap: 24px; margin-top: 32px; justify-content: start; }
.term__readout dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.term__readout dd { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.term__readout .term__big { font-size: 28px; color: var(--blue); }

.chart {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.chart__caption { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.chart__bars {
  display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: clamp(4px, .8vw, 10px);
  height: clamp(220px, 26vw, 300px); align-items: end; padding-top: 36px;
}
.bar {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.bar__fill {
  width: 100%; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--mist), #e6edff);
  transform-origin: bottom;
  transition: background .3s, transform .6s var(--spring), box-shadow .3s;
}
@media (hover: hover) {
  .bar:hover .bar__fill { background: linear-gradient(180deg, var(--sky), var(--mist)); }
}
.bar[aria-checked="true"] .bar__fill {
  background: linear-gradient(180deg, var(--blue-2), var(--indigo));
  box-shadow: 0 12px 28px -8px rgba(31, 91, 255, .7);
}
.bar__label { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bar[aria-checked="true"] .bar__label { color: var(--blue); }
.bar__value {
  position: absolute; bottom: calc(var(--h) + 30px); left: 50%;
  translate: -50% 0;
  padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--white);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease);
  pointer-events: none;
}
.bar[aria-checked="true"] .bar__value { opacity: 1; transform: none; }
/* Подсказка по наведению — только мышью: на телефоне :hover «залипает»
   после касания, и рядом с выбранным столбиком висела бы вторая цифра. */
@media (hover: hover) {
  .bar:hover .bar__value { opacity: 1; transform: none; z-index: 2; }
}
.chart__axis { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .term { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .bar__label { font-size: 10px; }
  .bar__value { font-size: 11px; }
  /* На узком экране подписи столбиков через один — иначе слипаются. */
  .bar:nth-child(even) .bar__label { visibility: hidden; }
}

/* 7. Шаги, подготовка, доверие -------------------------------------- */

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: 48px !important;
}
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 44px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--aurora-1), var(--aurora-3));
  transform-origin: left; transform: scaleX(var(--progress, 1));
  opacity: .5;
}
.step {
  position: relative; padding: 28px;
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step__num {
  position: absolute; top: 18px; right: 24px;
  font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--mist);
}
.step__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--indigo)); color: var(--white);
  box-shadow: var(--glow); margin-bottom: 24px;
}
.step h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--muted); }

.prepare { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prepare__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.prepare__item {
  display: flex; gap: 16px; padding: 22px;
  border-radius: var(--radius); background: var(--ice);
  transition: background-color .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .prepare__item:hover { background: #eaf0fd; transform: translateY(-2px); }
}
.prepare__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.prepare__item h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.01em; }
.prepare__item p { font-size: 15px; color: var(--muted); }

.trust { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.trust__list { display: grid; gap: 22px; margin-top: 36px !important; }
.trust__list li { display: flex; gap: 16px; }
.trust__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .07); color: var(--aurora-1); border: 1px solid rgba(255, 255, 255, .1); }
.trust__list h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.trust__list p { color: rgba(255, 255, 255, .66); }

.licence { justify-self: center; width: min(100%, 380px); }
.licence__paper {
  position: relative; padding: 34px 30px 30px;
  border-radius: 18px; background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .6);
  transform: rotate(-2.5deg); transition: transform .6s var(--spring);
  text-align: center;
}
.licence__paper::before {
  content: ""; position: absolute; inset: 10px; border-radius: 12px; border: 1px solid var(--line); pointer-events: none;
}
@media (hover: hover) {
  .licence:hover .licence__paper { transform: rotate(0) translateY(-4px); }
}
.licence__mark { display: inline-block; margin-bottom: 14px; --mark-ink: var(--ink); }
.licence__issuer { font-size: 12px; color: var(--muted); }
.licence__title { margin-top: 14px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.licence__number { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.licence__text { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.licence__holder { margin-top: 14px; font-weight: 800; font-size: 18px; }
.licence__since { margin-top: 12px; font-size: 13px; color: var(--muted); }
.licence__seal {
  position: absolute; right: 20px; bottom: 18px;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: var(--blue); border: 1.5px dashed var(--sky); rotate: -12deg;
}
.licence figcaption { margin-top: 24px; text-align: center; }
.licence figcaption a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sky); text-decoration: none; }
.licence figcaption a:hover { color: var(--white); }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before { left: 55px; right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--aurora-1), var(--aurora-3)); transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .prepare, .trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .prepare__list { grid-template-columns: minmax(0, 1fr); }
}

/* 8. Анкета ---------------------------------------------------------- */

.section--form {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(31, 91, 255, .08), transparent 70%),
    var(--ice);
}
.apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply__aside { position: sticky; top: calc(var(--header) + 24px); }

.summary {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 32px; padding: 26px;
  border-radius: var(--radius-lg); color: var(--white);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(63, 224, 255, .3), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(122, 92, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lg);
}
.summary__label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.summary__amount { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary__meta { margin-top: 4px; color: rgba(255, 255, 255, .75); }
.summary__meta strong { color: var(--white); }
.summary__items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.summary__items:empty { display: none; }
.summary__items li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600;
  animation: rise .5s var(--spring) both;
}
.summary__art { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); padding: 2px; }
.summary__art .c-shadow { display: none; }
.summary__secure { display: flex; gap: 8px; align-items: flex-start; margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.summary__secure svg { flex: none; margin-top: 2px; color: var(--aurora-1); }

.wizard {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-lg);
}
.alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: #fff0ed; color: var(--danger); font-weight: 600; }

.wizard__dots { display: none; gap: 8px; margin-bottom: 28px !important; }
.wizard--live .wizard__dots { display: flex; }
.wizard__dots li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 3px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: border-color .4s, color .3s;
}
.wizard__dots span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; background: var(--ice); color: var(--muted);
  transition: background-color .3s, color .3s;
}
.wizard__dots li[data-current], .wizard__dots li[data-done] { border-color: var(--blue); color: var(--ink); }
.wizard__dots li[data-current] span, .wizard__dots li[data-done] span { background: var(--blue); color: var(--white); }

.wizard__step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.wizard__step + .wizard__step { margin-top: 12px; }
.wizard--live .wizard__step { animation: step-in .45s var(--ease); }
.wizard__step legend { padding: 0; margin-bottom: 20px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.wizard__step legend:focus { outline: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; }
.wizard__captcha { margin-bottom: 16px; }
.wizard__nav [data-wizard-target="next"], .wizard__nav [data-wizard-target="submit"] { margin-left: auto; }
.wizard:not(.wizard--live) [data-wizard-target="next"],
.wizard:not(.wizard--live) [data-wizard-target="back"] { display: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.wizard__step > .field { margin-bottom: 16px; }
.field label, .field__label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field__label small { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font: 600 16px/1.3 var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235d6685' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5d1ea; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 91, 255, .14);
}
.field input::placeholder { color: #a3abc4; font-weight: 500; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; font-weight: 600; color: var(--danger); }
.field--invalid input, .field--invalid select { border-color: var(--danger); background: #fffafa; }

.check {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer;
}
.check input {
  flex: none; appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 0; border-radius: 7px;
  border: 1.5px solid #b9c4de; background: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white);
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--spring);
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--blue); }
.check--invalid input { border-color: var(--danger); }

.drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 20px; border-radius: 18px; text-align: center; cursor: pointer;
  border: 2px dashed #c5d1ea; background: var(--paper);
  transition: border-color .2s, background-color .2s, transform .3s var(--spring);
}
.drop:hover, .drop[data-over] { border-color: var(--blue); background: #eef3ff; }
.drop[data-over] { transform: scale(1.015); }
.drop--invalid { border-color: var(--danger); background: #fffafa; }
.field__error:empty { display: none; }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__input:focus-visible + .drop__icon { outline: 3px solid var(--sky); outline-offset: 4px; }
.drop__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.drop__title { font-weight: 800; }
.drop__hint { font-size: 13px; color: var(--muted); max-width: 44ch; }

.files { display: grid; gap: 8px; margin-top: 10px !important; }
.file {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 12px; background: var(--ice); font-size: 14px;
  animation: rise .35s var(--spring) both;
}
.file[data-invalid] { background: #fff0ed; color: var(--danger); }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file__size { color: var(--muted); font-variant-numeric: tabular-nums; }
.file__remove { padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; }
.file__remove:hover { background: var(--white); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1000px) {
  .apply { grid-template-columns: minmax(0, 1fr); }
  .apply__aside { position: static; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .wizard__dots li { font-size: 0; gap: 0; }
  .wizard__dots span { font-size: 12px; }
  .wizard__nav .btn--lg { --h: 54px; padding: 0 20px; }
  .summary__amount { font-size: 40px; }
}

/* 9. Вопросы, подвал, панели ---------------------------------------- */

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--blue); transition: transform .35s var(--spring); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }
.faq__item[open] p { animation: rise .35s var(--ease); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

.footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer .brand { margin-bottom: 16px; }
.example {
  padding: 22px 24px; margin-bottom: 48px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; line-height: 1.6;
}
.example h2 { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase; }
.example p + p { margin-top: 6px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer__grid a, .footer .linklike { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer__grid a:hover, .footer .linklike:hover { color: var(--white); }
.footer .linklike { text-decoration: none; font-size: 15px; }
.footer__tagline { max-width: 28ch; }
.footer__rights { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .45); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Нижняя панель на телефоне: сумма, платёж и кнопка всегда под пальцем. */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 22px;
  background: rgba(5, 7, 42, .86); color: var(--white);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
  animation: rise .4s var(--spring);
}
.sticky-cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__text strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sticky-cta__text span { font-size: 13px; color: rgba(255, 255, 255, .65); }
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* Баннер cookies — из гема landing_kit, здесь только цвета сайта. */
.lk-consent {
  --lk-bg: var(--white); --lk-text: var(--ink); --lk-muted: var(--muted); --lk-line: var(--line);
  --lk-accent: var(--blue); --lk-accent-text: var(--white); --lk-radius: var(--radius); --lk-font: var(--font);
  bottom: calc(16px + env(safe-area-inset-bottom));
}
.lk-consent__text a { color: var(--blue); }

/* Спасибо. */
.hero--thanks { min-height: 100svh; display: flex; align-items: center; }
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; }
.thanks .hero__lead { margin-inline: auto; }
.thanks__badge {
  display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora-1), var(--blue));
  box-shadow: 0 0 0 10px rgba(63, 224, 255, .12), 0 0 60px rgba(63, 224, 255, .5);
  animation: pop .8s var(--spring) both, halo 2.4s ease-in-out .8s infinite;
}
.thanks__card {
  margin-top: 32px; padding: 22px 26px; width: 100%;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 700; font-size: 18px;
}
.thanks__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px !important; }
.thanks__items li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 14px;
  animation: rise .6s var(--spring) both; animation-delay: calc(.4s + var(--i) * .12s);
}
.thanks__art { width: 34px; height: 34px; }
.thanks__art .c-shadow { display: none; }
.thanks__next { margin-top: 32px; text-align: left; width: 100%; }
.thanks__next h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--sky); text-transform: uppercase; letter-spacing: .1em; }
.thanks__next ol { display: grid; gap: 10px; }
.thanks__next li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .8); }
.thanks__next li span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: 13px; }
.thanks__call { margin: 28px 0 20px; color: rgba(255, 255, 255, .7); }
.thanks__call a { color: var(--white); font-weight: 800; }

/* 10. Движение ------------------------------------------------------- */

@keyframes aurora-a {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg) scaleX(1); }
  50% { transform: translate3d(-6%, 8%, 0) rotate(-4deg) scaleX(1.15); }
  100% { transform: translate3d(8%, -4%, 0) rotate(-16deg) scaleX(.9); }
}
@keyframes aurora-b {
  0% { transform: translate3d(0, 0, 0) rotate(8deg); }
  100% { transform: translate3d(12%, -10%, 0) rotate(-2deg) scaleX(1.2); }
}
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); text-shadow: 0 0 30px rgba(63, 224, 255, .8); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 10px rgba(63, 224, 255, .12), 0 0 60px rgba(63, 224, 255, .5); } 50% { box-shadow: 0 0 0 20px rgba(63, 224, 255, .04), 0 0 90px rgba(63, 224, 255, .7); } }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

/* Плитки входят по очереди при загрузке. */
/* backwards, а не both: конечный кадр не должен перебивать подъём
   выбранной плитки и наведение. */
.js .tile { animation: tile-in .7s var(--ease) backwards; animation-delay: calc(.15s + var(--i) * 45ms); }

/* Оживающие части иллюстраций. Играют два цикла при выборе и
   бесконечно, пока над плиткой курсор, — сцена не мельтешит сама. */
@keyframes l-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes l-steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes l-flicker { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }
@keyframes l-halo { 0%, 100% { opacity: .15; transform: scale(.9); } 50% { opacity: .45; transform: scale(1.1); } }
@keyframes l-squish { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.88) translateY(2px); } 70% { transform: scaleY(1.04); } }
@keyframes l-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes l-spin { to { transform: rotate(360deg); } }
@keyframes l-fly { 0% { transform: translate(-10px, 6px); } 50% { transform: translate(6px, -6px); } 100% { transform: translate(-10px, 6px); } }
@keyframes l-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }
@keyframes l-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes l-swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(10deg); } 70% { transform: rotate(-8deg); } }
@keyframes l-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes l-drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.art [class*="live-"] { transform-box: fill-box; transform-origin: center; }
.art .live-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.art .live-wheel, .art .live-tassel { transform-box: view-box; }
.art .live-drum { transform-box: view-box; transform-origin: 60px 67px; }
.art .live-wrench { transform-origin: 70% 30%; }

.tile[aria-pressed="true"] .live-bubbles { animation: l-float 1.8s ease-in-out 2; }
.tile[aria-pressed="true"] .live-drip { animation: l-drip 1.1s ease-in 3; }
.tile[aria-pressed="true"] .live-steam path { animation: l-steam 1.8s ease-out 2; }
.tile[aria-pressed="true"] .live-steam path:last-child { animation-delay: .5s; }
.tile[aria-pressed="true"] .live-glow { animation: l-flicker 1.2s ease-in-out 3; }
.tile[aria-pressed="true"] .live-halo { animation: l-halo 2s ease-in-out 2 forwards; }
.tile[aria-pressed="true"] .live-cushion { animation: l-squish .9s var(--spring) 2; transform-origin: bottom; }
.tile[aria-pressed="true"] .live-screen { fill: var(--white); transition: fill .4s .2s; }
.tile[aria-pressed="true"] .live-line { animation: l-draw 1.2s var(--ease) .2s both; }
.tile[aria-pressed="true"] .live-pop { animation: l-pop .7s var(--spring) .15s both; }
.tile[aria-pressed="true"] .live-drum { animation: l-spin 1.4s cubic-bezier(.5, 0, .5, 1) 2; }
.tile[aria-pressed="true"] .live-plane { animation: l-fly 2.4s ease-in-out 2; }
.tile[aria-pressed="true"] .live-twinkle path { animation: l-twinkle 1.4s ease-in-out 3; }
.tile[aria-pressed="true"] .live-twinkle path:nth-child(2) { animation-delay: .3s; }
.tile[aria-pressed="true"] .live-twinkle path:nth-child(3) { animation-delay: .6s; }
.tile[aria-pressed="true"] .live-wheel { animation: l-spin 1.2s linear 3; }
.tile[aria-pressed="true"] .live-wrench { animation: l-wiggle 1s ease-in-out 2; }
.tile[aria-pressed="true"] .live-rings { animation: l-float 1.6s ease-in-out 2; }
.tile[aria-pressed="true"] .live-tassel { animation: l-swing 1.4s ease-in-out 2; }

@media (hover: hover) {
  .tile[aria-pressed="true"]:hover [class*="live-"],
  .tile[aria-pressed="true"]:hover .live-steam path,
  .tile[aria-pressed="true"]:hover .live-twinkle path { animation-iteration-count: infinite; }
  .tile[aria-pressed="true"]:hover .live-line,
  .tile[aria-pressed="true"]:hover .live-pop { animation-iteration-count: 1; }
}

/* Появление блоков при прокрутке (reveal_controller). */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal][data-visible] { opacity: 1; transform: none; }
.js .chart:not([data-visible]) .bar__fill { transform: scaleY(0); }
.js .chart .bar__fill { transition-delay: calc(var(--i) * 40ms); }
.js .steps { --progress: 0; }
.js .steps:has(.step[data-visible]) { --progress: 1; }
.js .steps::before { transition: transform 1.4s var(--ease) .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .aurora__band, .aurora__stars, .hero__title em { animation: none !important; }
}

/* 11. Автокредит ---------------------------------------------------- */

/* Цвет кузова — общий для всех машин страницы; меняет garage_controller. */
:root { --paint: #1f5bff; }

.car { width: 100%; height: auto; overflow: visible; }
.car .car__paint { fill: var(--paint); transition: fill .5s; }
.car .car__shadow { fill: rgba(0, 0, 0, .38); filter: blur(2px); }
.car .car__well { fill: #05061c; }
.car .car__line { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; }
.car .car__cladding { fill: rgba(10, 12, 32, .55); }
.car .car__rails { fill: none; stroke: #20263f; stroke-width: 4; stroke-linecap: round; }
.car .car__glass { stroke: rgba(5, 7, 30, .5); stroke-width: 1.5; stroke-linejoin: round; }
.car .car__reflection { fill: rgba(255, 255, 255, .1); }
.car .car__seam { fill: none; stroke: rgba(0, 0, 0, .28); stroke-width: 1.3; }
.car .car__handle { fill: rgba(0, 0, 0, .3); }
.car .car__mirror { stroke: rgba(0, 0, 0, .2); stroke-width: 1; }
.car .car__light { fill: #fff3cf; }
.car .car__light--ev { fill: var(--aurora-1); }
.car .car__tail { fill: #ff4d6d; }
.car .car__grille { fill: rgba(5, 7, 30, .7); }
.car .car__tire { fill: #0f1229; }
.car .car__sidewall { fill: none; stroke: #2a2f4d; stroke-width: 2; }
.car .car__spoke { fill: #2b3150; }
.car .car__slot { fill: none; stroke: #6c7895; stroke-width: 2; stroke-linecap: round; }
.car .car__hub { fill: #3a4363; stroke: #c9d3ea; stroke-width: 1; }
.car .car__beam { display: none; }

/* Чипы кузовов: та же плитка, что у конструктора «мечты», только
   ниже и шире — машина сбоку длинная. */
.bodies__title { margin: 28px 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.bodies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip { padding: 10px 8px 10px; gap: 2px; }
.chip__art { display: block; width: 100%; max-width: 120px; transition: filter .4s, opacity .4s, transform .5s var(--spring); filter: grayscale(1) brightness(1.7); opacity: .4; }
.chip .tile__name { min-height: 0; font-size: 13px; }
.chip .tile__price { font-size: 12px; }
.chip[aria-pressed="true"] .chip__art { filter: none; opacity: 1; animation: pop .6s var(--spring); }
.chip[aria-pressed="true"] .car__wheel { animation: wheel-spin .9s linear 1; }
@media (hover: hover) {
  .chip:hover .chip__art { opacity: .65; transform: translateX(3px); }
}

/* Первый экран автокредита: текст и кузова слева, сцена справа. */
.hero__grid--auto { grid-template-areas: "copy garage" "calc calc"; grid-template-rows: auto auto; }

/* Калькулятор автокредита на широком экране — строка итога, как в
   конфигураторе салона: сумма | срок | платёж и кнопка. */
@media (min-width: 1081px) {
  .calc--bar { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 0 36px; align-items: center; }
  .calc--bar .calc__col + .calc__col { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .1); }
  .calc--bar .calc__row { margin-top: 0; }
  .calc--bar .calc__term { font-size: 30px; letter-spacing: -.03em; }
  .calc--bar .calc__pay { margin: 0 0 14px; padding-top: 0; border-top: 0; }
  .calc--bar .calc__note { margin-top: 10px; }
}
.hero__grid--auto .garage { grid-area: garage; align-self: start; margin-top: 8px; }
.hero--auto .hero__title { font-size: clamp(40px, 4.8vw, 70px); }

.garage__scene {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 70% 0%, rgba(63, 224, 255, .22), transparent 60%),
    radial-gradient(60% 50% at 10% 20%, rgba(122, 92, 255, .25), transparent 60%),
    linear-gradient(180deg, #0a0d3d 0%, #0d1255 62%, #090b2c 62.2%, #070926 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.garage__skyline { position: absolute; left: 0; right: 0; bottom: 38%; width: 100%; height: 34%; fill: #070a33; opacity: .9; z-index: -1; }
.garage__road { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, #11163f, #070926); }
.garage__lane {
  position: absolute; left: 0; right: 0; top: 46%; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 36px, transparent 36px 72px);
  animation: lane 1.1s linear infinite;
}
.garage__slot { position: absolute; left: 1%; right: 6%; bottom: 9%; }
.garage__slot .car { position: absolute; left: 0; right: 0; bottom: 0; }
.garage__slot .car__beam { display: block; animation: beam 3.2s ease-in-out infinite; }
.garage__slot .car__wheel { animation: wheel-spin .55s linear infinite; }
.garage__slot .car { animation: idle 2.6s ease-in-out infinite; }
/* Новая машина въезжает, когда старая уже наполовину уехала, — на сцене
   они не встречаются. */
.garage__slot .car--arriving { animation: drive-in .8s cubic-bezier(.2, .8, .2, 1) .28s both; }
.garage__slot .car--leaving { animation: drive-out .6s cubic-bezier(.6, 0, .9, .4) both; }
.garage__slot .car--flash .car__paint { animation: paint-flash .6s ease-out; }
.garage__tag {
  position: absolute; left: 20px; top: 18px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; color: rgba(255, 255, 255, .7);
}
.garage__tag strong { font-size: 22px; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transform-origin: left center; }
.garage__tag strong.is-bumped { animation: bump .55s var(--spring); }
.garage__tag small { font-size: 12px; color: rgba(255, 255, 255, .55); max-width: 30ch; }
.garage__tag { max-width: calc(100% - 40px); }

.garage__age { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.garage__age .garage__label { margin: 0; font-size: 13px; white-space: nowrap; }
.garage__age .ages { flex: 1; }
@media (max-width: 520px) {
  .garage__age { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* Возраст машины — переключатель из трёх сегментов. */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.age {
  padding: 10px 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 700;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.age[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(31, 91, 255, .7); }
@media (hover: hover) { .age:not([aria-checked="true"]):hover { color: var(--white); background: rgba(255, 255, 255, .08); } }

.garage__paints { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.garage__label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); margin-right: 4px; }
.swatch {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--swatch); border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25);
  transition: transform .3s var(--spring), border-color .2s, box-shadow .2s;
}
.swatch[aria-checked="true"] { border-color: var(--white); box-shadow: 0 0 0 3px rgba(63, 224, 255, .45), inset 0 -4px 8px rgba(0, 0, 0, .25); transform: scale(1.08); }
@media (hover: hover) { .swatch:hover { transform: scale(1.12); } }

@media (max-width: 1080px) {
  .hero__grid--auto { grid-template-areas: "copy" "garage" "calc"; }
}
@media (max-width: 640px) {
  .bodies { gap: 8px; }
  .chip { padding: 8px 4px; }
  .chip .tile__name { font-size: 11.5px; }
  .garage__tag { left: 12px; top: 12px; padding: 8px 10px; }
  .garage__tag strong { font-size: 17px; }
}

/* «Дорога к ключам». --progress (0…1) ставит road_controller. */
.road { --progress: 0; margin-top: 48px; }
.road__track { position: relative; height: 90px; margin: 0 4%; }
.road__lane, .road__done {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 6px; border-radius: 6px;
}
.road__lane { background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px); }
.road__done { right: auto; width: calc(var(--progress) * (100% - 150px) + 75px); background: linear-gradient(90deg, var(--blue), var(--aurora-1)); }
@media (max-width: 900px) { .road__done { width: calc(var(--progress) * (100% - 110px) + 55px); } }
.road__car {
  position: absolute; bottom: 4px; width: 150px;
  left: calc(var(--progress) * (100% - 150px));
}
.road__car .car__wheel { animation: wheel-spin .8s linear infinite; animation-play-state: paused; }
/* Колёса крутятся, пока машина едет, — то есть пока идёт прокрутка. */
.road[data-moving] .road__car .car__wheel { animation-play-state: running; }
.road__stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px !important; }
.road__stop { position: relative; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .4s, transform .5s var(--spring), box-shadow .4s; }
.road__stop[data-reached] { border-color: rgba(31, 91, 255, .4); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.road__pin {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  font-weight: 800; background: var(--ice); color: var(--muted); transition: background .4s, color .4s;
}
.road__stop[data-reached] .road__pin { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: var(--white); box-shadow: var(--glow); }
.road__stop h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.road__stop p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .road__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road__car { width: 110px; left: calc(var(--progress) * (100% - 110px)); }
  .road__track { height: 70px; margin: 0; }
}
@media (max-width: 520px) { .road__stops { grid-template-columns: minmax(0, 1fr); } }

/* Машина в сводке у анкеты и на «спасибо». */
.summary__art--car { width: 72px; height: 34px; border-radius: 999px; padding: 2px 6px; }
.summary__art--car .car__shadow, .thanks__car .car__shadow { display: none; }
.thanks__car { width: min(320px, 80%); margin: 6px auto 0; }
.thanks__car .car { animation: drive-in .9s cubic-bezier(.2, .8, .2, 1) .3s both; }

@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes lane { to { background-position: -72px 0; } }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes drive-in { from { transform: translateX(-120%); } to { transform: translateX(0); } }
@keyframes drive-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(130%); opacity: .2; } }
@keyframes beam { 0%, 100% { opacity: .85; } 50% { opacity: .6; } }
@keyframes paint-flash { 0% { filter: brightness(1.8); } 100% { filter: none; } }

/* Платёж «no 233,81 €/mēn.»: приписки мелко, цифра крупно. */
.pay { white-space: nowrap; }
.pay__from, .pay__per { font-size: .5em; font-weight: 600; letter-spacing: 0; opacity: .7; }
.pay__from { margin-right: .1em; }
.pay__per { margin-left: .12em; }
.summary__meta .pay__from, .summary__meta .pay__per { font-size: .85em; }

/* Автолизинг: калькулятор в четыре колонки и полоса «взнос | лизинг». */
@media (min-width: 1081px) {
  .calc--bar.calc--leasing { grid-template-columns: 1fr 1fr .9fr 1.05fr; gap: 0 28px; }
  .calc--bar.calc--leasing .calc__col + .calc__col { padding-left: 28px; }
  .calc--leasing .calc__amount { font-size: clamp(38px, 3.6vw, 52px); }
}
.split { --down: 20%; display: flex; gap: 3px; margin-top: 14px; height: 10px; }
.split__down, .split__loan { border-radius: 6px; transition: flex-basis .35s var(--ease); }
.split__down { flex: 0 0 var(--down); background: linear-gradient(90deg, var(--aurora-1), #2fb3d6); }
.split__loan { flex: 1 1 auto; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.split__legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.split__legend strong { display: block; font-size: 15px; color: var(--white); font-variant-numeric: tabular-nums; }
.split__legend span:last-child { text-align: right; }
.split__dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--blue-2); }
.split__dot--down { background: var(--aurora-1); }
.calc__hint { margin-top: 8px; font-size: 12px; color: var(--warm); }

/* 12. Главная: компас ------------------------------------------------ */

.compass-hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero--home .hero__title { font-size: clamp(38px, 4.3vw, 64px); }
.hero--home .hero__title em { display: block; }

.directions { display: grid; gap: 8px; margin-top: 24px; }
.direction {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-radius: 16px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--white);
  transition: background-color .3s, border-color .3s, transform .4s var(--spring), box-shadow .3s;
}
.direction__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.direction__note { font-size: 13.5px; color: rgba(255, 255, 255, .58); text-align: right; }
.direction[aria-checked="true"] {
  background: var(--white); color: var(--ink); border-color: transparent; transform: translateX(6px);
  box-shadow: 0 18px 40px -16px rgba(31, 91, 255, .7);
}
.direction[aria-checked="true"] .direction__note { color: var(--muted); }
@media (hover: hover) { .direction:not([aria-checked="true"]):hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); } }

.minicalc {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px 24px; align-items: end;
  margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.minicalc__field { display: flex; flex-direction: column; gap: 2px; }
.minicalc__value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.minicalc__cta { white-space: nowrap; }

.compass { position: relative; width: min(100%, 470px); justify-self: center; }
.compass__dial { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .55)); }
.compass__rim { fill: none; stroke: rgba(143, 176, 255, .35); stroke-width: 2; }
.compass__inner { fill: none; stroke: rgba(143, 176, 255, .14); stroke-width: 1; stroke-dasharray: 2 6; animation: dial-spin 120s linear infinite; transform-origin: 200px 200px; }
.compass__ticks line { stroke: rgba(201, 216, 255, .35); stroke-width: 1.4; }
.compass__ticks line.is-long { stroke: rgba(201, 216, 255, .8); stroke-width: 2.4; }
.compass__letter { fill: rgba(201, 216, 255, .7); font: 800 18px var(--font); text-anchor: middle; }
.compass__letter.is-north { fill: var(--aurora-1); }
.compass__mark { fill: #0b0f45; stroke: var(--sky); stroke-width: 2; transition: fill .3s, r .4s var(--spring), stroke .3s; }
.compass__mark.is-active { fill: var(--aurora-1); stroke: #fff; r: 10; filter: drop-shadow(0 0 10px rgba(63, 224, 255, .9)); }
.compass__needle {
  --angle: 0deg;
  transform-origin: 200px 200px; transform: rotate(var(--angle));
  transition: transform 1.1s cubic-bezier(.34, 1.45, .5, 1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
}
.compass__hub { fill: #0b0f45; stroke: var(--sky); stroke-width: 2; }
.compass__readout { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 18px; text-align: center; }
.compass__product { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.compass__payment { font-size: 15px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

@keyframes dial-spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .compass-hero { grid-template-columns: minmax(0, 1fr); }
  .compass { order: -1; width: min(78%, 340px); margin-top: -8px; }
}
@media (max-width: 640px) {
  .minicalc { grid-template-columns: 1fr 1fr; }
  .minicalc__cta { grid-column: 1 / -1; }
  .direction { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; }
  .direction__note { text-align: left; }
  .direction[aria-checked="true"] { transform: none; }
}

/* Карточки продуктов. */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.product {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--spring), box-shadow .3s, border-color .3s;
}
@media (hover: hover) {
  .product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(31, 91, 255, .35); }
  .product:hover .product__more svg { transform: translateX(4px); }
  .product:hover .car__wheel { animation: wheel-spin .7s linear infinite; }
}
.product__art {
  display: grid; place-items: center; height: 190px; padding: 18px 24px;
  background:
    radial-gradient(70% 70% at 70% 10%, rgba(63, 224, 255, .25), transparent 60%),
    linear-gradient(180deg, #0b0e48, #05072a);
}
.product__art .car { width: 100%; max-width: 280px; }
.product__dreams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 280px; }
.product__dreams span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--white); padding: 8px; }
.product__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.product__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.product__text { color: var(--muted); }
.product__facts { display: grid; gap: 6px; margin-top: 4px; }
.product__facts span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.product__facts svg { color: var(--blue); }
.product__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.product__pay { font-size: 22px; font-weight: 800; color: var(--blue); }
.product__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.product__more svg { transition: transform .3s var(--ease); }
.products__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .products { grid-template-columns: minmax(0, 1fr); } }

/* Статьи. */
.articles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 960px) { .articles { grid-template-columns: minmax(0, 1fr); } }

/* 13. Служебные страницы ---------------------------------------------- */

.legal-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  padding: calc(var(--header) + 56px) 0 56px;
  background: radial-gradient(120% 90% at 80% 0%, var(--night-2) 0%, var(--night) 60%);
}
.section--tight-top { padding-top: 48px; }
.legal { max-width: 78ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal h2 { margin: 2.2em 0 .6em; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.legal h3 { margin: 1.6em 0 .4em; font-size: 18px; color: var(--ink); }
.legal h2:first-child, .legal > :first-child { margin-top: 0; }
.legal p { margin: 0 0 .9em; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin: .25em 0; }
.legal li p { margin: 0; }
.legal a { color: var(--blue); }
.legal table { width: 100%; margin: 1em 0 1.4em; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.legal td, .legal th { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; min-width: 140px; }
.legal tr:first-child td { background: var(--ice); font-weight: 700; color: var(--ink); }
.legal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.legal__muted { color: var(--muted); font-size: 15px; }
.legal__facts { display: grid; gap: 0; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.legal__facts div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.legal__facts div:last-child { border-bottom: 0; }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.legal__scan { margin: 2em 0 0; max-width: 520px; }
.legal__scan img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .legal__facts div { grid-template-columns: 1fr; gap: 2px; } }

/* 14. Статьи ---------------------------------------------------------- */

.article-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.article-cats a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
  color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.article-cats a[aria-current] { background: var(--white); color: var(--ink); border-color: transparent; }
.articles--index { margin-top: 0; }
.articles__empty { color: var(--muted); }

.article-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--spring), box-shadow .3s;
}
@media (hover: hover) { .article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
.article-card__cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(135deg, var(--night-2), var(--blue)); }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .article-card:hover .article-card__cover img { transform: scale(1.04); } }
.article-card__glyph { display: grid; place-items: center; height: 100%; font-size: 72px; font-weight: 800; color: rgba(255, 255, 255, .5); }
.article-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.article-card__tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.article-card__title { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.article-card__excerpt { font-size: 14.5px; color: var(--muted); }
.article-card__meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }

.post-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  padding: calc(var(--header) + 48px) 0 52px;
  background: radial-gradient(120% 90% at 80% 0%, var(--night-2) 0%, var(--night) 60%);
}
.post-hero__inner { max-width: 920px; }
.post-crumbs { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.post-crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.post-crumbs a:hover { color: var(--white); }
.post-hero__title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.post-hero__meta { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 44px; padding-bottom: 72px; }
.post-cover { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover img { width: 100%; height: auto; }
.post-aside { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 20px; }
.post-toc { padding: 20px 22px; border-radius: var(--radius); background: var(--ice); }
.post-toc__title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 14.5px; }
.post-toc a { color: var(--ink-2); text-decoration: none; }
.post-toc a:hover { color: var(--blue); }
.post-cta {
  padding: 22px; border-radius: var(--radius-lg); color: var(--white);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(63, 224, 255, .3), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lg);
}
.post-cta__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.post-cta__title { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.post-cta__text { margin: 6px 0 16px; font-size: 14.5px; color: rgba(255, 255, 255, .7); }

.prose { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); max-width: 72ch; }
.prose h2 { margin: 1.9em 0 .55em; font-size: 27px; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: calc(var(--header) + 20px); }
.prose h3 { margin: 1.5em 0 .4em; font-size: 20px; color: var(--ink); scroll-margin-top: calc(var(--header) + 20px); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose table { width: 100%; margin: 1.2em 0 1.6em; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ice); font-weight: 800; color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--ink); }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-aside { position: static; }
}

/* Анкета: подтверждение, что контакты сохранены (шаг 3). */
.wizard__note { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px; background: #e6f7ef; color: #146c43; font-size: 14px; font-weight: 600; }
.wizard__note svg { flex: none; margin-top: 2px; }

/* Конструктор: широкие плитки-случаи («на любые нужды», «перекредитование»)
   — по две колонки, картинка слева. 12 вещей + 2 широкие = ровно 4×4. */
.tile--wide { grid-column: span 2; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; text-align: left; }
.tile--wide .tile__art { width: 64px; flex: none; }
.tile--wide .tile__name { min-height: 0; }
.tile--wide .tile__text { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 640px) {
  .tile--wide { grid-column: span 3; padding: 8px 12px; }
  .tile--wide .tile__art { width: 48px; }
}
.tile__text { display: contents; }
.tile--wide .tile__text { display: flex; }
@media (max-width: 640px) {
  .board__grid--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Перекредитование: «несколько платежей → один» (pages/_merge). */
.merge__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.merge__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 20px; max-width: 52ch; font-size: 14.5px; color: var(--muted); }
.merge__note svg { flex: none; margin-top: 2px; color: var(--blue); }
.merge__scheme { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.merge__before { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.merge__before li {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(16, 6, 159, .22);
  background: var(--white); font-weight: 700; font-size: 14.5px;
}
.merge__before em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.merge__lines { width: 100%; height: 240px; overflow: visible; }
.merge__lines path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; opacity: .5; }
.merge__after {
  display: grid; gap: 6px; padding: 22px 20px; border-radius: 20px;
  background: var(--blue); color: var(--white);
  box-shadow: 0 24px 48px -20px rgba(31, 91, 255, .7);
}
.merge__brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.merge__after strong { font-size: 20px; line-height: 1.2; }
.merge__after em { font-style: normal; font-size: 13.5px; opacity: .8; }
.js .merge__scheme:not([data-visible]) .merge__lines path { stroke-dashoffset: 1; }
.js .merge__scheme .merge__lines path { transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.js .merge__scheme:not([data-visible]) .merge__after { transform: scale(.92); opacity: 0; }
.js .merge__scheme .merge__after { transition: transform .6s var(--spring) 1.1s, opacity .4s 1.1s; }
@media (max-width: 900px) {
  .merge__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 520px) {
  .merge__scheme { grid-template-columns: minmax(0, 1fr) 36px minmax(0, .9fr); }
  .merge__before li { flex-direction: column; align-items: flex-start; padding: 10px 12px; font-size: 13px; }
  .merge__after { padding: 16px 14px; }
  .merge__after strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .merge__scheme .merge__lines path, .js .merge__scheme .merge__after { transition: none; }
}

/* Анкета: крупная галочка рассылок и согласие под кнопкой «Tālāk»
   (как у сравнителей: согласие на проверку данных — нажатием кнопки). */
.check--big { align-items: center; gap: 14px; margin-top: 18px; font-size: 15.5px; }
.check--big input { width: 32px; height: 32px; border-radius: 9px; }
.check--big input::after { width: 14px; height: 7px; border-width: 0 0 3px 3px; border-style: solid; border-color: var(--white); }
.check--big input:not(:checked)::after { border-color: #c9d2e8; transform: rotate(-45deg) scale(1); }
.wizard__consent { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: right; }
.wizard__consent a { color: var(--blue); }
@media (max-width: 640px) { .wizard__consent { text-align: left; } }
.wizard__step .grid-2 + .grid-2 { margin-top: 16px; }
