/* ────────────────────────────────────────────────────────────────────
   Finance Capital — «финансовый документ»
   Бумага · чернила · сургучная печать
   Prata (акциденция) · Manrope (текст) · IBM Plex Mono (маркировка)
   ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Prata';
  src: url('/fonts/prata-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-variable.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #F7F5EF;
  --paper-2: #EFECE3;
  --surface: #FDFCF9;
  --ink: #1B1915;
  --ink-2: #26231E;
  --ink-soft: #45413A;
  --muted: #6F6A5F;
  --muted-2: #A29C8E;
  --line: #DCD7CA;
  --line-strong: #BFB9A9;
  --wax: #8E2A21;
  --wax-deep: #711F18;
  --wax-soft: #EFDBD5;
  --paper-on-ink: #F3F0E8;
  --muted-on-ink: #B0AA9C;
  --line-on-ink: rgb(243 240 232 / 0.16);

  --font-display: 'Prata', 'Manrope', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', monospace;

  --shell: 1264px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* лёгкое бумажное зерно */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}
h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--wax); color: var(--paper); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

.mono { font-family: var(--font-mono); }
.wax { color: var(--wax); }
.label {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.label--onink { color: var(--muted-on-ink); }
.tick {
  display: inline-block; width: 7px; height: 7px;
  background: var(--wax); margin-right: 10px;
  transform: translateY(-1px) rotate(45deg);
}

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--lg { padding: 17px 30px; }
.btn--primary { background: var(--ink); color: var(--paper-on-ink); }
.btn--primary:hover { background: var(--wax); border-color: var(--wax); color: #fff; }
.btn--wax { background: var(--wax); border-color: var(--wax); color: #fff; }
.btn--wax:hover { background: var(--wax-deep); border-color: var(--wax-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-on-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wax); outline-offset: 2px;
}

/* ── Навигация ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 245 239 / 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__seal { width: 38px; height: 38px; color: var(--wax); flex: 0 0 auto; }
.brand__seal-fc {
  font-family: var(--font-display); font-size: 15px;
  fill: currentColor; letter-spacing: 0.02em;
}
.brand__word {
  font-family: var(--font-display); font-size: 21px;
  letter-spacing: 0.01em; white-space: nowrap;
}
.brand--onink { color: var(--paper-on-ink); }
.brand--onink .brand__seal { color: var(--paper-on-ink); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--wax); }

/* ── Hero ── */
.hero { padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.hero__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.hero__meta-sep { flex: 0 1 40px; height: 1px; background: var(--line-strong); }
.hero__meta-sep--wide { flex: 1 1 60px; }
.hero__head { position: relative; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8.2vw, 108px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 15ch;
}
.hero__title span { display: block; }
.hero__stamp {
  position: absolute;
  right: clamp(-30px, 2vw, 60px);
  top: clamp(-10px, 1vw, 30px);
  width: clamp(120px, 15vw, 190px);
  height: auto;
  color: var(--wax);
  transform: rotate(-9deg);
  opacity: 0;
  animation: stamp-in 640ms cubic-bezier(0.34, 1.4, 0.64, 1) 350ms forwards;
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-16deg) scale(1.35); }
  70%  { opacity: 1; }
  to   { opacity: 0.92; transform: rotate(-9deg) scale(1); }
}
.hero__stamp-ring {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.24em; fill: currentColor;
}
.hero__stamp-fc { font-family: var(--font-display); font-size: 34px; fill: currentColor; }
.hero__stamp-year {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  fill: currentColor;
}
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__stats > div {
  padding: clamp(20px, 2.4vw, 30px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
}
.hero__stats > div:last-child { border-right: 0; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.05;
  white-space: nowrap;
}
.hero__stats dd { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ── Партнёры ── */
.partners { padding: clamp(40px, 5.5vw, 72px) 0; }
.partners__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px);
}
.partners__head p { font-size: 14px; color: var(--muted); max-width: 46ch; }
.partners__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partners__grid li {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 23px);
  color: var(--muted);
  padding: clamp(16px, 2vw, 24px) clamp(14px, 1.8vw, 24px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}
.partners__grid li:hover { color: var(--ink); background: var(--surface); }

/* ── Секции-«статьи документа» ── */
.section { padding: clamp(64px, 8vw, 128px) 0 0; }
.section__head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 3.2fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(30px, 4.5vw, 56px);
}
.section__index { display: flex; flex-direction: column; gap: 6px; }
.section__index b {
  font-weight: 500; font-size: 13px; color: var(--wax);
}
.section__index span {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted);
}
.section__titles {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 3vw, 56px); flex-wrap: wrap;
}
.section__titles h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 16ch;
}
.section__titles p { font-size: 16px; color: var(--muted); max-width: 40ch; line-height: 1.6; }

/* ── Калькулятор ── */
.calc {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: stretch;
}
.calc__controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 42px);
  display: flex; flex-direction: column; gap: clamp(26px, 3vw, 38px);
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  white-space: nowrap;
}
.field__value--sm { font-size: clamp(20px, 2vw, 24px); }
.field__scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); }

.rng {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px;
  background: transparent; margin: 0; padding: 0; border: 0;
  cursor: pointer;
  --fill: 30%;
}
.rng::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--line) var(--fill));
}
.rng::-moz-range-track { height: 2px; background: var(--line); }
.rng::-moz-range-progress { height: 2px; background: var(--ink); }
.rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  margin-top: -9px;
  transition: transform 120ms ease, background 120ms ease;
}
.rng::-webkit-slider-thumb:hover { transform: scale(1.12); background: var(--wax); }
.rng::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.rng:focus-visible { outline: 2px solid var(--wax); outline-offset: 4px; }

.calc__rate {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px dashed var(--line-strong);
  padding-top: clamp(20px, 2.4vw, 28px);
  margin-top: auto;
}
.calc__rate-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  margin-top: 6px;
}
.calc__rate p { font-size: 12.5px; color: var(--muted); max-width: 24ch; text-align: right; line-height: 1.5; }

.calc__result {
  background: var(--ink);
  color: var(--paper-on-ink);
  border-radius: var(--r);
  border-top: 3px solid var(--wax);
  padding: clamp(24px, 3vw, 42px);
  display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px);
}
.calc__payment-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.05;
  margin-top: 10px;
  white-space: nowrap;
}
.calc__breakdown > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-ink);
  font-size: 14px;
}
.calc__breakdown > div:first-child { border-top: 1px solid var(--line-on-ink); }
.calc__breakdown dt { color: var(--muted-on-ink); }
.calc__breakdown dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__cta { margin-top: auto; }

/* ── Шаги ── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.steps li {
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 28px) clamp(24px, 3vw, 36px) 0;
  border-right: 1px solid var(--line);
  margin-right: clamp(16px, 2vw, 28px);
}
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps__num { font-size: 12px; font-weight: 500; color: var(--wax); letter-spacing: 0.14em; }
.steps h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: clamp(28px, 4vw, 56px) 0 10px;
}
.steps p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 30ch; }

/* ── Почему мы ── */
.why__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.why__grid article {
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.why__grid h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 10px;
}
.why__grid p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 44ch; }

.stats { background: var(--ink); border-top: 3px solid var(--wax); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid > div {
  padding: clamp(28px, 4vw, 52px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line-on-ink);
}
.stats__grid > div:last-child { border-right: 0; }
.stats__grid dt {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  color: var(--paper-on-ink);
  line-height: 1.05;
  white-space: nowrap;
}
.stats__grid dd { margin-top: 10px; font-size: 13px; color: var(--muted-on-ink); max-width: 20ch; }

/* ── Условия ── */
.terms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.terms__sheet > div {
  display: grid; grid-template-columns: minmax(150px, 1fr) 2.2fr;
  gap: 20px; align-items: baseline;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}
.terms__sheet dt {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.terms__sheet dd {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 24px);
}
.terms__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 3vw, 42px);
  background: var(--paper-2);
}
.terms__foot p { font-size: 12.5px; color: var(--muted); max-width: 58ch; line-height: 1.55; }

/* ── FAQ ── */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.3;
}
.faq__icon {
  position: relative; flex: 0 0 auto;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: background 200ms ease, border-color 200ms ease;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--ink);
  transition: transform 240ms ease, background 200ms ease;
}
.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 14px; }
.faq__q:hover .faq__icon { border-color: var(--ink); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--wax); border-color: var(--wax); }
.faq__q[aria-expanded="true"] .faq__icon::before,
.faq__q[aria-expanded="true"] .faq__icon::after { background: #fff; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { min-height: 0; overflow: hidden; }
.faq__a p {
  font-size: 16px; color: var(--muted); line-height: 1.65;
  max-width: 68ch; padding: 0 60px 26px 0;
}

/* ── Форма ── */
.lead {
  margin-top: clamp(64px, 8vw, 128px);
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.lead__wrap {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.lead__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lead__title span { display: block; }
.lead__copy > p {
  margin-top: 22px;
  font-size: 17px; color: var(--ink-soft); line-height: 1.6; max-width: 40ch;
}
.lead__points { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.lead__points li {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted);
  display: flex; align-items: center;
}
.lead__points li::before {
  content: ''; width: 7px; height: 7px;
  background: var(--wax); transform: rotate(45deg);
  margin-right: 12px; flex: 0 0 auto;
}
.lead__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wax);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
}
.lead__card form { display: flex; flex-direction: column; gap: 22px; }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inp {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 13px 14px;
  min-height: 50px;
  font-family: var(--font-body);
  font-size: max(16px, 1em);
  color: var(--ink);
  transition: border-color 160ms ease;
}
.inp::placeholder { color: var(--muted-2); }
.inp:hover { border-color: var(--ink-soft); }
.inp:focus { border-color: var(--ink); outline: none; }
.inp.is-invalid { border-color: var(--wax); }
.lead__tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 4px; gap: 4px;
}
.lead__tab {
  min-height: 42px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.lead__tab:hover { color: var(--ink); }
.lead__tab.is-on { background: var(--ink); color: var(--paper-on-ink); }
.lead__submit { width: 100%; }
.lead__note { font-size: 12px; color: var(--muted); line-height: 1.55; }
.lead__note a { text-decoration: underline; text-underline-offset: 2px; }
.lead__note a:hover { color: var(--wax); }
.lead__error {
  font-size: 13px; color: var(--wax);
  border: 1px solid var(--wax);
  border-radius: var(--r);
  background: var(--wax-soft);
  padding: 10px 14px;
}
.lead__done {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 28px 0;
}
.lead__done svg { width: 72px; height: 72px; color: var(--wax); }
.lead__done h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; }
.lead__done p { color: var(--muted); max-width: 38ch; line-height: 1.6; }

/* ── Футер ── */
.footer {
  background: var(--ink);
  color: var(--paper-on-ink);
  padding: clamp(48px, 6vw, 80px) 0 32px;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}
.footer__brand p {
  margin-top: 18px;
  font-size: 14px; color: var(--muted-on-ink);
  max-width: 38ch; line-height: 1.6;
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted-on-ink);
  transition: color 160ms ease;
}
.footer__nav a:hover { color: var(--paper-on-ink); }
.footer__bot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 12px; color: var(--muted-on-ink);
}
.footer__bot p { max-width: 56ch; line-height: 1.6; }
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; transition: color 160ms ease; }
.footer__legal a:hover { color: var(--paper-on-ink); }

/* ── Появление при скролле ── */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__stamp { animation: none; opacity: 0.92; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Планшет ── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .section__head { grid-template-columns: 1fr; gap: 14px; }
  .section__index { flex-direction: row; align-items: baseline; gap: 12px; }
  .calc { grid-template-columns: 1fr; }
  .lead__wrap { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__stamp { right: -8px; width: clamp(104px, 16vw, 150px); }
}

/* ── Мобильный (~390px) ── */
@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .nav__row { height: 62px; }
  .brand__word { font-size: 18px; }
  .brand__seal { width: 32px; height: 32px; }
  .nav__cta { padding: 10px 14px; font-size: 11px; }
  .hero__meta { gap: 10px; font-size: 10px; }
  .hero__meta-sep { display: none; }
  .hero__meta span:last-child { display: none; }
  .hero__title { font-size: clamp(40px, 12vw, 52px); }
  .hero__stamp {
    position: static; margin: 26px 0 0;
    transform: rotate(-6deg); width: 108px;
  }
  @keyframes stamp-in {
    from { opacity: 0; transform: rotate(-13deg) scale(1.3); }
    70%  { opacity: 1; }
    to   { opacity: 0.92; transform: rotate(-6deg) scale(1); }
  }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .hero__stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero__stats > div:nth-child(even) { padding-left: 16px; }
  .hero__stats > div:nth-child(n+3) { border-bottom: 0; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .steps li:last-child { border-bottom: 0; }
  .steps h3 { margin-top: 14px; }
  .why__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid > div { border-right: 0; border-bottom: 1px solid var(--line-on-ink); }
  .stats__grid > div:nth-child(odd) { border-right: 1px solid var(--line-on-ink); }
  .stats__grid > div:nth-child(n+3) { border-bottom: 0; }
  .terms__sheet > div { grid-template-columns: 1fr; gap: 4px; }
  .faq__a p { padding-right: 0; }
  .lead__grid { grid-template-columns: 1fr; }
  .lead__tabs { grid-template-columns: 1fr 1fr 1fr; }
  .calc__rate { flex-direction: column; align-items: flex-start; gap: 8px; }
  .calc__rate p { text-align: left; max-width: none; }
  .footer__nav { flex-direction: column; }
}
