/* ==========================================================================
   credit-news.ru — основной стиль
   Структура: токены → база → элементы → главная → карточки → FAQ →
   страница предложения → служебные страницы → адаптивность
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #f4f7f2;
  --bg-soft: #eef3ea;
  --surface: #ffffff;
  --surface-2: #f0f6ee;
  --surface-3: #e6efe3;
  --ink: #0d2118;
  --ink-soft: #263d32;
  --muted: #5b6f64;
  --muted-2: #7b8d83;
  --line: #dfe8dd;
  --line-strong: #c9d8c7;
  --brand: #0b3d2e;
  --brand-2: #147552;
  --brand-3: #1d9a6c;
  --primary: #0d5a41;
  --primary-hover: #0a6b4b;
  --accent: #d8f24d;
  --accent-hover: #e4fa6e;
  --accent-ink: #17260a;
  --warn: #9a4a06;
  --warn-bg: #fff1dd;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(9, 32, 22, .06), 0 4px 12px rgba(9, 32, 22, .04);
  --shadow-md: 0 12px 36px rgba(9, 32, 22, .10);
  --shadow-lg: 0 30px 80px rgba(6, 25, 17, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1180px;
  --header-h: 72px;
  --font: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #08130f;
  --bg-soft: #0b1812;
  --surface: #0f1d16;
  --surface-2: #14251d;
  --surface-3: #1a2f25;
  --ink: #eaf3ed;
  --ink-soft: #cfe0d5;
  --muted: #9db3a6;
  --muted-2: #82988b;
  --line: #22382d;
  --line-strong: #2e4a3c;
  --brand: #2fbf8a;
  --brand-2: #43d39b;
  --brand-3: #5ee0ad;
  --primary: #1a7a58;
  --primary-hover: #21936a;
  --accent: #d8f24d;
  --accent-hover: #e9ff80;
  --accent-ink: #17260a;
  --warn: #f0b26b;
  --warn-bg: #2a1d10;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand-3); }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

[hidden] { display: none !important; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 0 rgba(29, 154, 108, .55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(29, 154, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 154, 108, 0); }
}

.accent { color: var(--brand-2); }

.fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.55;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(180, 214, 40, .28);
}
.btn--accent:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(180, 214, 40, .35);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--soft {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--brand-2);
}
.btn--soft:hover {
  background: var(--surface-3);
  border-color: var(--brand-3);
  color: var(--brand-2);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--brand-3);
  color: var(--brand-2);
  background: var(--surface);
}

.btn--link {
  padding: 8px 2px;
  background: none;
  border: none;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.btn--link:hover { color: var(--accent); }

.btn--full { width: 100%; }
.btn--lg { padding: 16px 26px; font-size: 1rem; border-radius: 16px; }
.btn--sm { padding: 10px 15px; font-size: .84rem; border-radius: 11px; }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease;
}
.icon-btn:hover { border-color: var(--brand-3); background: var(--surface-2); }
.icon-btn__moon { display: none; }
[data-theme="dark"] .icon-btn__sun { display: none; }
[data-theme="dark"] .icon-btn__moon { display: block; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(9, 32, 22, .06);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #b9db22);
  color: #14260a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 1.02rem; letter-spacing: -.02em; }
.logo__text small {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--brand-2); }
.nav__fav { display: inline-flex; align-items: center; gap: 5px; }
.nav__heart { display: inline-flex; color: var(--muted-2); }
.nav__heart svg { width: 15px; height: 15px; }
.nav__fav:hover .nav__heart { color: #d64545; }
.nav__fav.has-items .nav__heart { color: #d64545; }
.nav__fav.has-items .nav__heart svg { fill: currentColor; }
.nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--brand-2);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
}
.nav__fav.has-items .nav__count { background: #d64545; color: #fff; }
[data-theme="dark"] .nav__fav.has-items .nav__count { background: #ff8a8a; color: #3b0b0b; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin: 18px auto 0;
  width: min(100% - 40px, calc(var(--container) + 40px));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 500px at 88% 8%, rgba(56, 190, 138, .28), transparent 62%),
    radial-gradient(600px 420px at 8% 92%, rgba(216, 242, 77, .12), transparent 65%),
    linear-gradient(140deg, #082a1f 0%, #0b3d2e 52%, #0d4b37 100%);
  color: #f2fff8;
  box-shadow: var(--shadow-md);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 30% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 40px;
  align-items: center;
  padding: 58px 44px 54px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .78rem;
}
.hero .crumbs { color: rgba(232, 255, 243, .62); margin-bottom: 22px; }
.hero .crumbs span:last-child { color: #eafff4; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--accent); }

.hero__title {
  max-width: 15ch;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero__title-accent {
  position: relative;
  display: inline;
  color: var(--accent);
  white-space: nowrap;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .09em;
  border-radius: 3px;
  background: rgba(216, 242, 77, .35);
}

.hero__lead {
  max-width: 56ch;
  margin-bottom: 26px;
  color: rgba(238, 255, 246, .78);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.hero__actions .btn--link { color: rgba(245, 255, 249, .82); }
.hero__actions .btn--link:hover { color: var(--accent); }
.hero__actions .btn--ghost {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05);
  color: #ecfff5;
}
.hero__actions .btn--ghost:hover {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero__stats dt {
  color: rgba(224, 248, 234, .58);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__stats dd {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.hero__visual { position: relative; display: grid; place-items: center; }

.hero-card {
  position: relative;
  width: min(100%, 350px);
  padding: 28px 26px 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(-3deg);
}
.hero-card__label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(216, 242, 77, .4);
  border-radius: 999px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-card__sum {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 20px;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.hero-card__sum small { font-size: 1.5rem; color: var(--accent); }
.hero-card__rows {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
}
.hero-card__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(5, 31, 22, .42);
}
.hero-card__rows span { color: rgba(226, 250, 236, .68); font-size: .8rem; }
.hero-card__rows b { color: #fff; font-size: .92rem; }
.hero-card__chip {
  display: block;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(216, 242, 77, .14);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
}
.hero-card__stamp {
  position: absolute;
  top: -22px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.9rem;
  font-weight: 800;
  transform: rotate(9deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.hero-float {
  position: absolute;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(8, 42, 31, .82);
  color: #eafff3;
  font-size: .75rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  animation: floaty 6s ease-in-out infinite;
}
.hero-float--two { right: -20px; bottom: 44px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Секции ---------- */
.section { padding: 74px 0; }
.section__head { max-width: 720px; margin-bottom: 30px; }
.section__title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -.03em;
}
.section__sub { margin: 0; color: var(--muted); font-size: .99rem; }

/* ---------- Калькулятор ---------- */
.calc-section { padding-top: 64px; }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.calc__panel { padding: 14px 16px 8px; }

.calc__field + .calc__field { margin-top: 22px; }

.calc__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.calc__label label { color: var(--muted); font-size: .86rem; font-weight: 600; }
.calc__label output {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.range {
  --fill: 50%;
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-3) 0 var(--fill), var(--surface-3) var(--fill) 100%);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 1px var(--brand-2), 0 4px 10px rgba(9, 32, 22, .25);
  appearance: none;
  -webkit-appearance: none;
  transition: transform .15s ease;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.08); }
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 1px var(--brand-2);
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }

.calc__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: .7rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.chip:hover { border-color: var(--brand-3); color: var(--brand-2); }
.chip.is-active {
  border-color: var(--brand-2);
  background: var(--brand-2);
  color: #fff;
}

.switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.switch:hover { border-color: var(--brand-3); }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch__box {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color .2s ease;
}
.switch__box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.switch input:checked + .switch__box { background: var(--brand-2); }
.switch input:checked + .switch__box::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__box { outline: 3px solid var(--brand-3); outline-offset: 3px; }
.switch__text { display: flex; flex-direction: column; gap: 2px; }
.switch__text b { font-size: .9rem; }
.switch__text small { color: var(--muted); font-size: .76rem; line-height: 1.45; }

.calc__result {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(420px 240px at 100% 0, rgba(57, 193, 141, .28), transparent 70%),
    linear-gradient(150deg, #0a2e22, #0c4534);
  color: #f3fff9;
}
.calc__result-eyebrow {
  margin: 0 0 8px;
  color: rgba(214, 245, 228, .62);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.calc__count {
  margin: 0 0 18px;
  color: rgba(238, 255, 246, .82);
  font-size: .92rem;
}
.calc__count strong {
  color: var(--accent);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.calc__list {
  display: grid;
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  list-style: none;
}
.calc__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(4, 28, 19, .38);
}
.calc__list span { color: rgba(222, 249, 236, .68); font-size: .8rem; }
.calc__list b { color: #fff; font-size: .95rem; white-space: nowrap; }

.zero-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(216, 242, 77, .45);
  border-radius: 14px;
  background: rgba(216, 242, 77, .1);
  animation: zero-in .35s ease both;
}
@keyframes zero-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.zero-banner__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 800;
}
.zero-banner b { display: block; margin-bottom: 2px; color: #fff; font-size: .87rem; }
.zero-banner p { margin: 0 0 8px; color: rgba(232, 255, 244, .78); font-size: .76rem; line-height: 1.45; }
.zero-banner .btn {
  grid-column: 1 / -1;
  width: 100%;
  padding: 8px 11px;
  font-size: .78rem;
  background: transparent;
  border-color: rgba(216, 242, 77, .5);
  color: var(--accent);
  box-shadow: none;
}
.zero-banner .btn:hover {
  background: rgba(216, 242, 77, .14);
  border-color: rgba(216, 242, 77, .8);
  color: var(--accent);
}

.calc__result .btn--full { margin-top: auto; }
.calc__result .fineprint { color: rgba(218, 243, 229, .52); }

/* ---------- Панель фильтров ---------- */
.offers-section { background: linear-gradient(180deg, transparent, var(--bg-soft) 18%, transparent); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.filter input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand-2);
  cursor: pointer;
}
.filter:hover { color: var(--brand-2); }
.filter--fav {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}
.filter__heart { display: inline-flex; color: #d64545; }
.filter__heart svg { width: 15px; height: 15px; }
.filter--fav:has(input:checked) {
  border-color: color-mix(in srgb, #d64545 45%, var(--line));
  background: color-mix(in srgb, #d64545 8%, var(--surface));
}

.toolbar__sort { display: flex; align-items: center; gap: 9px; }
.toolbar__sort label { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
select {
  min-width: 190px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 51%, calc(100% - 12px) 51%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
select:focus { border-color: var(--brand-2); }

/* ---------- Группы и карточки ---------- */
.offers-group + .offers-group { margin-top: 44px; }

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.group-title .count {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--brand-2);
  font-size: .74rem;
  font-weight: 800;
}
.group-note { margin: 0; color: var(--muted); font-size: .78rem; }

.loans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.loan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.loan-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-3) 38%, var(--line));
  box-shadow: var(--shadow-md);
}
.loan-card:focus-within { border-color: var(--brand-3); }

.loan-card--broker {
  border-color: color-mix(in srgb, var(--brand-3) 24%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-3) 5%, transparent), transparent 120px),
    var(--surface);
}
.loan-card--broker[data-free="1"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-sm);
}
.loan-card--broker[data-free="1"]:hover {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent), var(--shadow-md);
}

body.is-first-time .loan-card[data-first0="1"] {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-sm);
}

.loan-card__top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}
.loan-card__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 62px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.loan-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.loan-card__head { min-width: 0; }
.loan-card__name {
  margin: 2px 0 7px;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.loan-card__name a { color: var(--ink); }
.loan-card__name a:hover { color: var(--brand-2); }
.loan-card__badges { display: flex; flex-wrap: wrap; gap: 5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--accent {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  color: var(--brand);
}
[data-theme="dark"] .badge--accent { color: var(--accent); background: rgba(216, 242, 77, .12); }
.badge--outline {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.badge--warn {
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
  background: var(--warn-bg);
  color: var(--warn);
}

.loan-card__params {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr .9fr;
  gap: 0;
  margin: 0 0 13px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.loan-card__params > div {
  min-width: 0;
  padding: 0 9px;
  border-left: 1px solid var(--line);
}
.loan-card__params > div:first-child { padding-left: 0; border-left: 0; }
.loan-card__params > div:last-child { padding-right: 0; }
.loan-card__params dt {
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.loan-card__params dd {
  margin: 0;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.loan-card__params dd small { color: var(--muted); font-size: .65rem; font-weight: 600; }

.loan-card__note {
  min-height: 2.5em;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.loan-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.loan-card__actions .btn { flex: 1; min-width: 0; }

.loan-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 11px;
}
.compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: .71rem;
  font-weight: 600;
  cursor: pointer;
}
.compare input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand-2);
  cursor: pointer;
}
.compare:hover { color: var(--brand-2); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.catalog-note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}

.empty {
  margin-top: 16px;
  padding: 34px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.empty__title { margin-bottom: 6px; font-weight: 800; font-size: 1.05rem; }
.empty p { max-width: 60ch; margin: 0 auto 16px; color: var(--muted); font-size: .88rem; }

/* ---------- Подходящие условия ---------- */
.conditions-section { padding-top: 20px; }
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.condition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.condition:hover {
  transform: translateY(-3px);
  border-color: var(--brand-3);
  box-shadow: var(--shadow-md);
}
.condition__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 55%, var(--surface));
  color: var(--brand);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
[data-theme="dark"] .condition__icon { background: rgba(216, 242, 77, .14); color: var(--accent); }
.condition__title { font-size: .98rem; font-weight: 800; line-height: 1.25; }
.condition__text { color: var(--muted); font-size: .79rem; line-height: 1.5; }
.condition__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--brand-2);
  font-size: .74rem;
  font-weight: 700;
}
.condition:hover .condition__link svg { transform: translateX(3px); }
.condition__link svg { transition: transform .18s ease; }

/* ---------- Шаги ---------- */
.steps-section { padding-top: 20px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  width: 14px;
  height: 2px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-3);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.step h3 { margin-bottom: 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-section { padding-top: 20px; }
.faq {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__intro .section__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.faq__hint {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}
.faq__hint b { display: block; margin-bottom: 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); }
.faq__hint p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.faq__list { display: grid; gap: 9px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: color-mix(in srgb, var(--brand-3) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-2); }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-2);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq-item[open] .faq-item__icon { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-item__icon::before { background: var(--accent-ink); }
.faq-item__body { padding: 0 18px 18px; }
.faq-item__body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ---------- Дисклеймер ---------- */
.disclaimer {
  margin: 10px 0 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.disclaimer h2 { margin-bottom: 10px; font-size: .95rem; }
.disclaimer p { margin-bottom: 8px; color: var(--muted); font-size: .76rem; line-height: 1.65; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- Подвал ---------- */
.site-footer {
  margin-top: 60px;
  padding-top: 52px;
  background:
    radial-gradient(700px 300px at 85% 0, rgba(43, 150, 108, .18), transparent 70%),
    #071b14;
  color: #d8e9df;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr .7fr .8fr .9fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__about p { max-width: 42ch; margin: 16px 0; color: rgba(214, 235, 223, .66); font-size: .82rem; line-height: 1.65; }
.logo--footer { color: #fff; }
.logo--footer .logo__text b { color: #fff; }
.logo--footer .logo__text small { color: rgba(214, 235, 223, .5); }
.footer__age { display: flex; align-items: center; gap: 10px; }
.footer__age span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 242, 77, .4);
  border-radius: 50%;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
}
.footer__title { margin-bottom: 14px; color: #fff; font-size: .86rem; letter-spacing: .02em; }
.footer__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer__list a,
.footer__list li { color: rgba(214, 235, 223, .72); font-size: .82rem; }
.footer__list a:hover { color: var(--accent); }
.footer__note { margin: 16px 0 0; color: rgba(214, 235, 223, .46); font-size: .72rem; line-height: 1.6; }
.footer__note a { color: rgba(214, 235, 223, .7); text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__bottom p { margin: 0; color: rgba(214, 235, 223, .45); font-size: .72rem; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--brand-3); color: var(--brand-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 300;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #0c2a1f;
  color: #f2fff8;
  font-size: .84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Сравнение ---------- */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(92vw, 560px);
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(8, 36, 26, .96);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 10px);
  transition: transform .2s ease, opacity .2s ease;
  backdrop-filter: blur(10px);
}
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar__info { display: flex; flex-direction: column; line-height: 1.2; }
.compare-bar__info b { font-size: .86rem; }
.compare-bar__info span { color: rgba(222, 249, 236, .62); font-size: .72rem; }
.compare-bar__actions { display: flex; gap: 8px; margin-left: auto; }
.compare-bar .btn--ghost {
  border-color: rgba(255, 255, 255, .2);
  color: #eafff3;
}
.compare-bar .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 10, .62);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(100%, 1020px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in .24s ease both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; font-size: 1.15rem; }
.modal__body { overflow: auto; padding: 18px 22px 24px; }

.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 1;
}
.compare-table td b { font-size: .86rem; }
.compare-table .compare-logo {
  display: block;
  width: 86px;
  height: 52px;
  margin-bottom: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.compare-table .compare-logo img { width: 100%; height: 100%; object-fit: contain; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .btn { margin-top: 8px; }

body.no-scroll { overflow: hidden; }

/* ---------- Страница предложения ---------- */
.offer-page { padding-top: 22px; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-3));
  transition: width .1s linear;
}
.share-btn { margin-top: 0; gap: 8px; }
.vk-mark {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #0077ff;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 260px at 0 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.offer-hero__brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.offer-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 156px;
  height: 100px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.offer-logo img { width: 100%; height: 100%; object-fit: contain; }
.offer-hero__text { min-width: 0; }
.offer-hero h1 { margin-bottom: 10px; font-size: clamp(1.65rem, 3.2vw, 2.5rem); letter-spacing: -.03em; }
.offer-hero__lead { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

.offer-hero__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}
.offer-facts { display: grid; gap: 9px; margin: 0; }
.offer-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-strong);
}
.offer-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.offer-facts dt { color: var(--muted); font-size: .72rem; }
.offer-facts dd { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 800; text-align: right; }
.offer-facts dd small { color: var(--muted); font-size: .66rem; font-weight: 600; }
.offer-hero__side .fineprint { margin: 0; }
.offer-hero__side .btn--accent { margin-top: auto; }

.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: start;
  margin-top: 34px;
}

.offer-block { margin-bottom: 38px; }
.offer-block h2 {
  margin-bottom: 14px;
  font-size: 1.42rem;
  letter-spacing: -.025em;
}
.offer-block > h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: .82em;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--accent);
  vertical-align: -.05em;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.spec {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-last-child(-n+2) { border-bottom: 0; }
.spec:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}
.spec dt { color: var(--muted); font-size: .72rem; }
.spec dd { margin: 0; font-size: .88rem; font-weight: 700; line-height: 1.45; }

.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: .87rem;
  line-height: 1.5;
}
.check-list li svg { flex: none; margin-top: 3px; color: var(--brand-3); }
.check-list--req li svg { color: var(--muted); }

.prose p { color: var(--ink-soft); font-size: .94rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--brand-2);
  font-size: 2.6em;
  font-weight: 800;
  line-height: .9;
}

.flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px 12px 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  counter-increment: flow;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--brand-2);
  font-size: .68rem;
  font-weight: 800;
}
.flow b { font-size: .88rem; }
.flow span { color: var(--muted); font-size: .82rem; line-height: 1.5; }

.offer-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }

.calc-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.calc-card__title { margin-bottom: 14px; font-size: 1.02rem; }
.calc-card__field + .calc-card__field { margin-top: 14px; }
.calc-card .calc__label output { font-size: 1.18rem; }
.calc-card .range { margin: 8px 0 4px; height: 7px; }
.calc-card .range::-webkit-slider-thumb { width: 22px; height: 22px; }
.switch--sm { margin-top: 14px; padding: 11px 12px; border-style: solid; }
.switch--sm .switch__box { width: 38px; height: 22px; }
.switch--sm .switch__box::after { width: 16px; height: 16px; }
.switch--sm input:checked + .switch__box::after { transform: translateX(16px); }
.switch--sm .switch__text b { font-size: .78rem; }
.switch--sm .switch__text small { font-size: .68rem; }

.calc-card__result {
  display: grid;
  gap: 1px;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.calc-card__result div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
}
.calc-card__result dt { color: var(--muted); font-size: .74rem; }
.calc-card__result dd { margin: 0; font-size: .86rem; font-weight: 800; }
.calc-card .fineprint { margin-top: 10px; }

.aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.aside-card h2 { margin-bottom: 8px; font-size: .98rem; }
.aside-card p { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.aside-card .btn { margin-top: 4px; }
.aside-card--muted { background: var(--surface-2); }
.mini-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.mini-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-3);
}

.related { padding-top: 42px; margin-top: 10px; border-top: 1px solid var(--line); }
.loan-card--compact { padding: 17px; }
.loan-card--compact .loan-card__logo { width: 82px; height: 54px; }
.loan-card--compact .loan-card__name { font-size: 1rem; }
.loan-card--compact .loan-card__note { min-height: 0; margin-bottom: 12px; font-size: .72rem; }
.loan-card--compact .loan-card__actions .btn { flex: 1; }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 -8px 30px rgba(9, 32, 22, .12);
  backdrop-filter: blur(12px);
}
.mobile-cta__info { display: flex; flex-direction: column; line-height: 1.25; }
.mobile-cta__info b { font-size: .85rem; }
.mobile-cta__info span { color: var(--muted); font-size: .72rem; }
.mobile-cta .btn { flex: none; }

/* ---------- Текстовые страницы ---------- */
.page-text { padding-top: 28px; }
.text-page {
  max-width: 820px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.text-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.text-page h2 { margin-top: 30px; font-size: 1.25rem; }
.text-page p,
.text-page li { color: var(--ink-soft); font-size: .93rem; line-height: 1.75; }
.text-page .lead { font-size: 1.02rem; color: var(--ink); }
.text-list { display: grid; gap: 7px; margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); }
.text-list li { padding-left: 3px; }
.text-page a { text-decoration: underline; text-underline-offset: 3px; }

.error-page {
  padding: 60px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.error-page__code {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
}
.error-page p { color: var(--muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ==========================================================================
   Фишки: приватность, зарплата, избранное, колесо, квиз, конфетти
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Скрытие сумм */
.privacy-toggle__hide { display: none; }
html.is-private .privacy-toggle__show { display: none; }
html.is-private .privacy-toggle__hide { display: block; }
html.is-private .loan-card__params dd,
html.is-private .calc__label output,
html.is-private .calc__list b,
html.is-private .coffee,
html.is-private .hero-card__sum,
html.is-private .offer-facts dd,
html.is-private .spec dd,
html.is-private .calc-card__result dd,
html.is-private .mobile-cta__info span,
html.is-private .wheel-result__params b,
html.is-private .quiz-result__params b {
  filter: blur(7px);
  user-select: none;
}
html.is-private .compare-table td:nth-child(2),
html.is-private .compare-table td:nth-child(3),
html.is-private .compare-table td:nth-child(4),
html.is-private .compare-table td:nth-child(6) {
  filter: blur(7px);
}

/* Ссылки в hero */
.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -16px 0 28px;
}
.hero__links .btn--link {
  font-size: .84rem;
  color: rgba(238, 255, 246, .82);
}
.hero__links .btn--link:hover { color: var(--accent); }
.hero__sep { color: rgba(238, 255, 246, .35); }

/* До зарплаты */
.payday {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}
.payday__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.payday__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 45%, var(--surface));
  color: var(--brand);
}
[data-theme="dark"] .payday__icon { background: rgba(216, 242, 77, .14); color: var(--accent); }
.payday__head b { display: block; font-size: .87rem; }
.payday__head small { display: block; margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.payday__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.payday__date {
  flex: 1 1 150px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
}
.payday__date:focus { border-color: var(--brand-2); }
.payday__controls .btn { flex: none; }

/* Кофе и шеринг */
.coffee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(216, 242, 77, .1);
  color: var(--accent);
  font-size: .74rem;
  font-weight: 600;
}
.coffee::before { content: "☕"; font-size: .9rem; filter: grayscale(1) brightness(1.6); }
.share-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 5px 2px;
  border: 0;
  background: none;
  color: rgba(237, 255, 246, .72);
  font-size: .73rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.share-calc:hover { color: var(--accent); }
.share-calc svg { width: 14px; height: 14px; }

/* Совет дня */
.tip-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tip-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 38%, var(--surface));
  color: var(--brand);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
[data-theme="dark"] .tip-strip__badge { background: rgba(216, 242, 77, .14); color: var(--accent); }
.tip-strip__badge svg { width: 15px; height: 15px; }
.tip-strip p {
  flex: 1 1 300px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.5;
  transition: opacity .2s ease;
}
.tip-strip p.is-switching { opacity: 0; }
.tip-strip__next {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--brand-2);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tip-strip__next:hover { color: var(--brand-3); }

/* Избранное */
.fav-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}
.fav-btn:hover { color: #d64545; background: var(--surface-2); transform: scale(1.08); }
.fav-btn.is-active { color: #d64545; background: color-mix(in srgb, #d64545 10%, var(--surface)); }
.fav-btn.is-active svg { fill: currentColor; }
[data-theme="dark"] .fav-btn.is-active { color: #ff8a8a; }
.filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--brand-2);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
}

/* Конфетти */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 350;
  overflow: hidden;
  pointer-events: none;
}
.confetti-piece {
  position: absolute;
  top: -16px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 2.4s ease-in forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), 105vh, 0) rotate(var(--rot, 540deg)); }
}

/* Денежный дождь (пасхалка) */
.coin-layer {
  position: fixed;
  inset: 0;
  z-index: 360;
  overflow: hidden;
  pointer-events: none;
}
.coin {
  position: absolute;
  top: -60px;
  color: var(--accent);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  animation: coin-fall linear forwards;
}
@keyframes coin-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(115vh) rotate(420deg); opacity: .15; }
}

/* Модалки-фишки */
.modal__eyebrow {
  margin: 0 0 2px;
  color: var(--brand-2);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Колесо */
.wheel-dialog { width: min(100%, 700px); }
.wheel-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wheel-sub { max-width: 52ch; margin: 0; color: var(--muted); font-size: .84rem; text-align: center; }
.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78vw, 360px, 42vh);
  aspect-ratio: 1;
  margin: 2px auto;
}
.wheel-stage canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 18px 45px rgba(8, 35, 24, .22), inset 0 0 0 1px var(--line);
}
.wheel-pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 21px solid var(--accent);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2));
}
.wheel-spin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease;
}
.wheel-spin:hover { transform: scale(1.05); }
.wheel-spin:disabled { opacity: .65; cursor: wait; transform: none; }
.wheel-result {
  width: 100%;
  max-width: 560px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}
.wheel-result__empty { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.wheel-offer { display: flex; gap: 14px; align-items: center; }
.wheel-offer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 84px;
  height: 56px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.wheel-offer__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.wheel-offer__info { min-width: 0; }
.wheel-offer__info h3 { margin: 0 0 4px; font-size: 1.02rem; }
.wheel-result__params { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; color: var(--muted); font-size: .74rem; }
.wheel-result__params b { color: var(--ink); }
.wheel-result__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* На широком экране колесо и результат — рядом, чтобы модалка не была высокой */
@media (min-width: 900px) {
  .wheel-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 20px;
  }
  .wheel-sub { grid-column: 1 / -1; }
  .wheel-stage { width: min(340px, 46vh); justify-self: center; margin: 0; }
  .wheel-result { max-width: none; width: 100%; min-height: 0; }
  .wheel-offer { flex-direction: row; align-items: flex-start; gap: 12px; }
  .wheel-offer__logo { width: 96px; height: 60px; max-width: none; }
  .wheel-result__actions .btn { flex: 1; }
}

/* Квиз */
.quiz-dialog { width: min(100%, 620px); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background-color .2s ease;
}
.quiz-progress span.is-done { background: var(--brand-3); }
.quiz-question { margin: 0 0 6px; font-size: 1.16rem; letter-spacing: -.02em; }
.quiz-hint { margin: 0 0 14px; color: var(--muted); font-size: .8rem; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.quiz-option:hover { border-color: var(--brand-3); background: var(--surface-2); transform: translateX(2px); }
.quiz-option b { display: block; font-size: .9rem; }
.quiz-option small { display: block; margin-top: 1px; color: var(--muted); font-size: .72rem; }
.quiz-option__arrow { color: var(--brand-2); flex: none; }
.quiz-back {
  margin-top: 14px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz-result { text-align: left; }
.quiz-result__title { margin: 0 0 4px; font-size: 1.05rem; }
.quiz-result__sub { margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
.quiz-result__offer {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.quiz-result__params { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; color: var(--muted); font-size: .74rem; }
.quiz-result__params b { color: var(--ink); }
.quiz-result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Анимация появления ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .6s ease both; }
  .hero__content > :nth-child(2) { animation-delay: .04s; }
  .hero__content > :nth-child(3) { animation-delay: .08s; }
  .hero__content > :nth-child(4) { animation-delay: .12s; }
  .hero__content > :nth-child(5) { animation-delay: .16s; }
  .hero__content > :nth-child(6) { animation-delay: .2s; }
  .hero__visual { animation: rise .7s .1s ease both; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

/* ---------- Адаптивность ---------- */
@media (max-width: 1120px) {
  .header__cta { display: none; }
}

@media (max-width: 1080px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) 320px; padding: 46px 34px; gap: 28px; }
  .hero-float--one { left: -8px; }
  .hero-float--two { right: -14px; }
  .loans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conditions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.3fr .8fr .9fr; }
  .footer__grid > div:last-child { grid-column: 2 / -1; }
  .offer-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: .95rem; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero__in { grid-template-columns: 1fr; padding: 38px 26px 34px; }
  .hero__visual { display: none; }
  .hero__title { max-width: none; }
  .hero__stats { max-width: 560px; }

  .calc { grid-template-columns: 1fr; }
  .calc__result { padding: 20px; }

  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq__intro { position: static; }

  .offer-hero { grid-template-columns: 1fr; }
  .offer-hero__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .offer-facts { flex: 1 1 260px; }
  .offer-facts div { border-bottom: 0; padding-bottom: 0; }
  .offer-hero__side .btn { flex: 1 1 220px; }
  .offer-hero__side .fineprint { flex-basis: 100%; }
  .offer-layout { grid-template-columns: 1fr; }
  .offer-aside { position: static; grid-row: auto; }
  .offer-aside .calc-card { order: -1; }
  .mobile-cta { display: flex; }
  .page-offer { padding-bottom: 74px; }
  .to-top { bottom: 84px; }
  .compare-bar { bottom: 16px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero { width: min(100% - 20px, calc(var(--container) + 40px)); border-radius: 22px; }
  .hero__in { padding: 30px 18px 26px; }
  .hero__title { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero__lead { font-size: .94rem; }
  .hero__actions { gap: 8px; margin-bottom: 26px; }
  .hero__actions .btn--lg { flex: 1 1 100%; }
  .hero__actions .btn--link { order: 3; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero__stats dd { font-size: 1.35rem; }

  .section { padding: 48px 0; }
  .calc-section { padding-top: 40px; }
  .calc { padding: 12px; border-radius: 20px; }
  .calc__panel { padding: 8px 6px 4px; }
  .calc__label output { font-size: 1.32rem; }
  .calc__result { padding: 18px; border-radius: 18px; }

  .toolbar { padding: 12px; }
  .toolbar__filters { gap: 8px 12px; }
  .toolbar__sort { width: 100%; }
  .toolbar__sort select { flex: 1; min-width: 0; }

  .loans-grid { grid-template-columns: 1fr; }
  .loan-card { padding: 17px; }
  .loan-card__params { grid-template-columns: 1.15fr 1.05fr .85fr; }
  .loan-card__note { min-height: 0; }

  .conditions-grid { grid-template-columns: 1fr; }
  .condition { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 16px; }
  .condition__icon { margin-bottom: 0; width: 38px; height: 38px; }
  .condition__title { flex: 1; }
  .condition__text { flex-basis: 100%; padding-left: 50px; }
  .condition__link { flex-basis: 100%; padding-left: 50px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px; }

  .faq-item summary { padding: 14px; font-size: .88rem; }
  .faq-item__body { padding: 0 14px 14px; }
  .disclaimer { padding: 18px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__grid > div:last-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { margin-top: 40px; padding-top: 36px; }

  .offer-hero { padding: 18px; }
  .offer-hero__brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .offer-logo { width: 120px; height: 78px; }
  .offer-hero__side { flex-direction: column; align-items: stretch; }
  .offer-facts { flex: none; width: 100%; }
  .offer-facts div { border-bottom: 1px dashed var(--line-strong); padding-bottom: 9px; }
  .offer-hero__side .btn { flex: 0 0 auto; width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .spec { border-right: 0 !important; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .prose p { font-size: .9rem; }
  .offer-block h2 { font-size: 1.25rem; }
  .offer-layout { margin-top: 24px; }

  .text-page { padding: 20px; }
  .page-text { padding-top: 16px; }
  .error-page { padding: 40px 20px; }

  .compare-bar { flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; width: calc(100% - 24px); }
  .compare-bar__actions { width: 100%; }
  .compare-bar__actions .btn { flex: 1; }
  .modal { padding: 10px; }
  .modal__dialog { max-height: 92vh; }
  .modal__head { padding: 14px 16px; }
  .modal__body { padding: 14px 16px 20px; }

  .toast { bottom: 84px; }
}

@media (max-width: 680px) {
  .header__actions { gap: 6px; }
  .header__actions .icon-btn,
  .nav-toggle { width: 38px; height: 38px; }
  .hero__links { margin: -10px 0 24px; }
  .hero__links .btn--link { font-size: .8rem; }
  .tip-strip { padding: 12px 14px; gap: 8px 12px; }
  .tip-strip p { flex-basis: 100%; }
  .tip-strip__next { margin-left: auto; }
  .wheel-stage { width: min(76vw, 320px, 44vh); }
  .wheel-offer { align-items: flex-start; }
  .wheel-result { padding: 12px; }
  .quiz-result__offer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wheel-result__actions .btn,
  .quiz-result__actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .privacy-toggle { display: none; }
}

@media (max-width: 400px) {
  .loan-card__top { gap: 10px; }
  .loan-card__logo { width: 82px; height: 54px; }
  .loan-card__name { font-size: 1rem; }
  .loan-card__params dd { font-size: .76rem; }
  .loan-card__params > div { padding: 0 6px; }
  .logo__text b { font-size: .92rem; }
  .logo__mark { width: 36px; height: 36px; }
  .wheel-stage { width: min(72vw, 280px, 40vh); }
  .wheel-spin { width: 70px; height: 70px; font-size: .74rem; border-width: 4px; }
  .wheel-offer__logo { width: 68px; height: 46px; }
  .payday__controls .btn { width: 100%; }
}

/* Короткие экраны: колесо и результат должны влезать без обрезки */
@media (max-height: 640px) {
  .wheel-sub { display: none; }
  .wheel-body { gap: 10px; }
  .wheel-stage { width: min(78vw, 310px, 38vh); }
  .wheel-result { padding: 10px 12px; }
  .wheel-result__params { margin-bottom: 6px; }
  .wheel-spin { width: 72px; height: 72px; font-size: .76rem; }
}

@media (max-height: 560px) {
  .wheel-dialog .modal__head { padding: 11px 16px; }
  .wheel-dialog .modal__body { padding-top: 10px; padding-bottom: 12px; }
  .wheel-stage { width: min(70vw, 260px, 34vh); }
  .wheel-offer { gap: 10px; }
  .wheel-offer__logo { width: 64px; height: 44px; }
  .wheel-result__actions .btn { padding: 8px 12px; }
}

@media (max-width: 380px) {
  .wheel-offer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wheel-offer__logo { width: 100%; max-width: 120px; height: 44px; }
  .wheel-result__actions { width: 100%; }
  .wheel-result__actions .btn { flex: 1 1 0; padding: 8px 10px; }
}

