/* Локальные шрифты. Сгенерировано из Google Fonts CSS — подмножества
   latin + cyrillic + cyrillic-ext (казахские Ә Ғ Қ Ң Ө Ұ Ү Һ І живут
   в cyrillic-ext, без него KZ-версия поедет системным шрифтом). */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexMono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexMono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/IBMPlexMono-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/IBMPlexMono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Manrope-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Manrope-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Manrope-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Manrope-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Manrope-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Manrope-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Manrope-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Manrope-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Manrope-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Manrope-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Manrope-800-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Manrope-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Manrope-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   ТФИНАНС — лендинг МФО (Казахстан)
   Реализация дизайн-компонента «TFINANCE KZ.dc.html» (Claude Design).
   Все значения перенесены 1:1 из инлайн-стилей компонента; добавлены только
   адаптивные брейкпоинты, состояния фокуса и Firefox-стили для range.
   ========================================================================== */

:root {
  /* поверхности */
  --bg:            #FBFAF8;
  --surface:       #FFFFFF;
  --wash:          #F4F2ED;
  --wash-2:        #EFECE6;

  /* текст */
  --ink:           #14130F;
  --ink-2:         #2E2C25;
  --ink-3:         #4A483F;
  --muted:         #5C5A52;
  /* #8A877C из макета давал 3,45:1 — ниже WCAG AA (4,5:1). Затемнено ровно
     настолько, чтобы пройти на обоих светлых фонах: 4,83:1 на #FBFAF8
     и 4,50:1 на плашках #F4F2ED. Оттенок сохранён. */
  --muted-2:       #716F66;
  /* Для текста на самой тёмной из светлых плашек (#EFECE6) нужен ещё
     на шаг темнее: там #716F66 даёт лишь 4,27:1. */
  --muted-on-wash: #6B6960;
  /* Светлый вариант — ТОЛЬКО для текста на тёмном фоне (секция «Инвесторам»),
     там он даёт 7,47:1. На светлом фоне использовать --muted-2. */
  --muted-3:       #A8A49A;

  /* линии */
  --line:          #E4E1DA;
  --line-2:        #EFECE6;
  --line-3:        #DCD8CF;
  --line-4:        #E0DCD3;
  --line-dark:     #2C2A24;

  /* акцент */
  --accent:        #0E7C8A;
  --accent-deep:   #0B5F6B;
  --accent-wash:   #E4F3F5;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--bg); }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ── кнопки ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--dark {
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 14.5px;
}
.btn--dark:hover { background: var(--accent); color: var(--bg); }

.btn--outline {
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 14.5px;
}
.btn--outline:hover { background: var(--ink); color: var(--bg); }

.btn--light {
  padding: 14px 24px;
  border-radius: 11px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
.btn--light:hover { background: var(--accent); color: #FFFFFF; }

/* ── шапка ───────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 18px;
}
.logo__word { font-weight: 800; font-size: 18px; letter-spacing: 0.1em; }

.logo--footer .logo__mark { width: 30px; height: 30px; font-size: 17px; }
.logo--footer .logo__word { font-size: 17px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 10px 20px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

.site-header__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--wash-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.lang__btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--muted-on-wash);
  transition: background-color .15s ease, color .15s ease;
}
.lang__btn.is-on { background: var(--ink); color: var(--bg); }
/* Переключатель — ссылки между /ru и /kk, а не рантайм-подмена текста. */
a.lang__btn { display: inline-flex; align-items: center; text-decoration: none; }
a.lang__btn:hover { background: var(--line-3); color: var(--ink); }
span.lang__btn { cursor: default; }

.site-header__phone { font-size: 14.5px; font-weight: 600; white-space: nowrap; }

/* ── герой ───────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  padding: 72px 0 80px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__title {
  margin: 24px 0 0;
  font-size: 60px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px 0 0;
  max-width: 480px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  padding: 9px 15px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.stats__cell { padding: 22px 24px; background: var(--bg); }
.stats__value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stats__label { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* ── калькулятор ─────────────────────────────────────────────────────── */
.calc {
  padding: 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -32px rgba(20, 19, 15, .28);
}
.calc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.calc__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.calc__toggle {
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-3);
  background: var(--surface);
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.calc__toggle.is-on {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-deep);
}

/* Пояснение, почему при нажатом «0%» всё равно начислено вознаграждение. */
.calc__limit {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-size: 12.5px;
  line-height: 1.45;
  text-wrap: pretty;
}
.calc__limit[hidden] { display: none; }

.calc__field { margin-top: 26px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.calc__readout { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.calc__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: -5px; /* компенсирует увеличенную область захвата ползунка */
}

/* Дорожка визуально остаётся 4px, как в макете, но сам input — 26px:
   иначе область захвата равна 4px и в неё почти невозможно попасть
   ни пальцем, ни курсором. Отрицательные отступы возвращают исходный
   вертикальный ритм поля. */
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 5px 0 0;
  background: transparent;
  outline: none;
}
.calc__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-3);
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px; /* центрируем бегунок 26px на дорожке 4px */
  border-radius: 50%;
  background: var(--ink);
  border: 5px solid var(--surface);
  box-shadow: 0 2px 8px rgba(20, 19, 15, .25);
  cursor: grab;
}
.calc__range::-webkit-slider-thumb:active { cursor: grabbing; }
.calc__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-3); }
.calc__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 5px solid var(--surface);
  box-shadow: 0 2px 8px rgba(20, 19, 15, .25);
  cursor: grab;
}
.calc__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.calc__result {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--wash);
}
.calc__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.calc__line + .calc__line { margin-top: 10px; }
.calc__lineValue { font-weight: 700; color: var(--ink); }
.calc__rule { height: 1px; border: 0; background: var(--line-4); margin: 16px 0; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__totalLabel { font-size: 15px; font-weight: 700; }
.calc__totalValue { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.calc__date { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

.calc__cta {
  display: block;
  margin-top: 20px;
  padding: 17px;
  border-radius: 13px;
  text-align: center;
  font-size: 16px;
}
.calc__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-2);
  text-wrap: pretty;
}

/* ── общие секции ────────────────────────────────────────────────────── */
.section { padding: 0 0 88px; }
.section__title { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}
.section__aside { font-size: 15px; color: var(--muted); }

/* ── продукты ────────────────────────────────────────────────────────── */
#products { padding-top: 8px; }
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.product {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s ease;
}
.product:hover { border-color: var(--accent); }
.product__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.product__title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.product__text {
  margin: 12px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.product__rows {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.product__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.product__row dt { color: var(--muted-2); }
.product__row dd { font-weight: 700; text-align: right; }

/* ── как получить ────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.step__title { margin-top: 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.step__text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── условия ─────────────────────────────────────────────────────────── */
.terms {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.terms { width: 100%; border-collapse: collapse; table-layout: fixed; }
.terms__row { border-bottom: 1px solid var(--line-2); }
.terms__row:last-child { border-bottom: none; }
.terms__k, .terms__v { padding: 20px 0; vertical-align: top; text-align: left; }
.terms__k {
  width: 41.5%;                 /* соответствует прежним 1fr из 1fr + 1.4fr */
  padding-left: 28px;
  padding-right: 24px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.terms__v { padding-right: 28px; font-size: 15.5px; font-weight: 600; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.terms__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 760px;
  text-wrap: pretty;
}

/* ── погашение ───────────────────────────────────────────────────────── */
.repay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.repay__item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--wash);
}
.repay__n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.repay__title { font-size: 16.5px; font-weight: 700; }
.repay__text {
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── приложение ──────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.app .section__title { text-wrap: balance; }
.app__text {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 440px;
  text-wrap: pretty;
}
.app__bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.app__bullets li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.app__bullets li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.app__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.app__shot {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--line-3);
  background-color: var(--wash);
  background-image: repeating-linear-gradient(135deg, #EAE7E0 0 10px, #F4F2ED 10px 20px);
  display: grid;
  place-items: center;
}
.app__shotLabel {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ── отзывы ──────────────────────────────────────────────────────────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.review__stars { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.review__text {
  margin: 16px 0 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.review__author { margin-top: auto; font-size: 14px; color: var(--muted-2); }

/* ── инвесторам ──────────────────────────────────────────────────────── */
.investors {
  display: grid;
  /* min(340px, 100%) вместо 340px: иначе на узких экранах колонка
     не может сжаться и распирает страницу по горизонтали. */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 40px 56px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--bg);
  margin-bottom: 88px;
}
.investors__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.investors__text {
  margin: 16px 0 26px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted-3);
  text-wrap: pretty;
}
.investors__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
}
.investors__cell { padding: 24px 22px; background: var(--ink); min-width: 0; }
.investors__value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--bg); }
.investors__label {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted-3);
  overflow-wrap: break-word;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
#faq { padding-bottom: 96px; }
.section__title--faq { margin-bottom: 32px; }

.faq { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__sign {
  flex: none;
  color: var(--muted-2);
  font-weight: 400;
  transition: transform .18s ease;
}
.faq[open] .faq__sign { transform: rotate(45deg); }
.faq__a {
  margin: 0 0 24px;
  max-width: 840px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* ── подвал ──────────────────────────────────────────────────────────── */
.footer { padding: 40px 0 64px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer__about {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 340px;
  text-wrap: pretty;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer__colTitle {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.footer__col a { color: var(--ink-3); }
.footer__col a:hover { color: var(--accent); }
.footer__phone { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.footer__address { color: var(--muted); line-height: 1.5; }

.footer__legal {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
}
.footer__legal p + p { margin-top: 12px; }
.footer__copy { margin-top: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

/* ==========================================================================
   Страница «Раскрытие информации» (disclosure.html)
   ========================================================================== */

.dsc-header { flex-wrap: nowrap; gap: 40px; }
.dsc-nav { flex-wrap: nowrap; gap: 24px; }
.dsc-nav a.is-current { color: var(--ink); font-weight: 700; }

.dsc-hero { padding: 64px 0 56px; max-width: 820px; }
.dsc-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dsc-title {
  margin: 18px 0 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.dsc-lead {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

.dsc-section { padding: 0 0 72px; }
.dsc-section--last { padding-bottom: 88px; }
.dsc-h2 { margin: 0 0 24px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }

.dsc-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.dsc-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-2);
}
.dsc-row:last-child { border-bottom: none; }
.dsc-row dt { font-size: 15px; color: var(--muted); font-weight: 500; }
.dsc-row dd { font-size: 15.5px; font-weight: 600; }
.dsc-link { color: var(--accent); }

.dsc-note { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); text-wrap: pretty; }
.dsc-note--wide { margin-top: 16px; font-size: 13px; line-height: 1.55; max-width: 820px; }
.dsc-formula { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

.dsc-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dsc-doc {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .15s ease;
}
.dsc-doc:hover { border-color: var(--accent); color: var(--ink); }
.dsc-doc__type {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--accent-wash);
}
.dsc-doc__title { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.dsc-doc__meta { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted-2); }

.dsc-limits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.dsc-limit { padding: 26px 24px; background: var(--surface); }
.dsc-limit__value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.dsc-limit__label { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.35; }

.dsc-appeals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dsc-appeal { padding: 26px; border-radius: 18px; background: var(--wash); }
.dsc-appeal__n { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.dsc-appeal__title { margin-top: 12px; font-size: 18px; font-weight: 700; }
.dsc-appeal__text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.dsc-footer {
  padding: 36px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
}
.dsc-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ==========================================================================
   Адаптив. Десктопная композиция (≥1080px) полностью соответствует макету.
   ========================================================================== */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .hero__title { font-size: 52px; }
  .hero__sub, .app__text { max-width: none; }
  .calc { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .app { grid-template-columns: 1fr; gap: 40px; }
  .app__shot { max-width: 560px; }
}

@media (max-width: 1080px) {
  .dsc-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { padding: 0 28px; }
  .dsc-header { flex-wrap: wrap; gap: 16px 28px; }
  .dsc-nav { flex-wrap: wrap; }
  .dsc-title { font-size: 42px; }
  .dsc-docs, .dsc-appeals { grid-template-columns: 1fr; }
  .dsc-footer__grid { grid-template-columns: 1fr; gap: 14px; }
  .products, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repay { grid-template-columns: 1fr; }
  .investors { padding: 36px 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__about { max-width: none; }
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }

  .site-header { gap: 16px 20px; padding: 20px 0; }
  .site-header__end { width: 100%; margin-left: 0; gap: 12px; }
  .site-header__cta { margin-left: auto; }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; display: flex; align-items: center; min-height: 44px; }
  .lang__btn { min-height: 38px; min-width: 44px; }

  /* Зоны нажатия не меньше 44px по вертикали. */
  .logo, .site-header__phone { min-height: 44px; display: flex; align-items: center; }
  .calc__toggle, .btn--dark, .btn--outline { min-height: 44px; }
  .btn--dark, .btn--outline { display: inline-flex; align-items: center; justify-content: center; }
  .calc__range { height: 44px; margin: -4px 0 0; }
  .calc__scale { margin-top: -14px; }

  .hero { padding: 44px 0 56px; gap: 40px; }
  .hero__title { font-size: 40px; letter-spacing: -0.03em; }
  .hero__sub { font-size: 17px; }
  .stats { margin-top: 36px; }
  .stats__cell { padding: 18px 18px; }
  .stats__value { font-size: 26px; }

  .calc { padding: 22px; border-radius: 18px; }
  .calc__head { flex-wrap: wrap; gap: 12px; }
  .calc__readout { font-size: 23px; }
  .calc__totalValue { font-size: 25px; }

  .section { padding: 0 0 64px; }
  .section__title { font-size: 29px; }
  .section__head { flex-direction: column; gap: 10px; }
  #faq { padding-bottom: 72px; }

  .products, .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .product { padding: 24px; }

  /* На узком экране колонки не помещаются — раскладываем в блоки.
     Роли role=table/row/rowheader/cell в разметке сохраняют семантику,
     которую браузер теряет при display:block на табличных элементах. */
  .terms, .terms tbody, .terms__row, .terms__k, .terms__v { display: block; width: auto; }
  .terms__row { padding: 18px 20px; }
  .terms__k { padding: 0 0 6px; }
  .terms__v { padding: 0; }

  .investors { padding: 32px 24px; margin-bottom: 64px; gap: 32px; }
  .investors__title { font-size: 27px; }
  .investors__stats { grid-template-columns: 1fr; }

  .faq__q { font-size: 16.5px; gap: 16px; padding: 20px 0; }

  .dsc-hero { padding: 40px 0 40px; }
  .dsc-title { font-size: 33px; }
  .dsc-lead { font-size: 16.5px; }
  .dsc-section { padding-bottom: 56px; }
  .dsc-h2 { font-size: 25px; }
  .dsc-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .dsc-limits { grid-template-columns: 1fr; }
  .dsc-nav a { min-height: 44px; display: flex; align-items: center; }
  .dsc-row .dsc-link { min-height: 44px; display: inline-flex; align-items: center; }
  .dsc-formula { white-space: normal; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { grid-template-columns: 1fr; gap: 12px; }
  .footer__col { gap: 4px; }
  .footer__col a { min-height: 44px; display: flex; align-items: center; }
  .footer__address { margin-top: 8px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 33px; }
  .site-header__phone { font-size: 13.5px; }
  .app__stores .btn--outline { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── штамп актуальности условий (YMYL: обязателен при меняющихся ставках) ── */
.terms__stamp {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--accent-wash);
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
}

/* Кнопка-заглушка: приложения ещё нет, поэтому это не ссылка. */
.btn.is-soon {
  cursor: default;
  color: var(--muted-2);
  border-color: var(--line-3);
}
.btn.is-soon:hover { background: transparent; color: var(--muted-2); }

/* ── заявка ──────────────────────────────────────────────────────────────── */
.apply {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.apply__lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}
.apply__points { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.apply__points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--muted);
}
.apply__points li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.apply__form {
  padding: 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -32px rgba(20, 19, 15, .28);
}
/* Ловушка для ботов. display:none некоторые боты распознают, поэтому
   убираем поле из потока, оставляя его «настоящим» для автозаполнения. */
.apply__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-3);
  border-radius: 11px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;           /* 16px — иначе iOS зумит форму при фокусе */
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.field__input::placeholder { color: var(--muted-2); font-weight: 400; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field__input:user-invalid { border-color: #B3402F; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.field--check input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}
.field--check label { cursor: pointer; text-wrap: pretty; }

.apply__submit { display: block; width: 100%; margin-top: 22px; padding: 17px; border-radius: 13px; font-size: 16px; }
.apply__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-2);
  text-wrap: pretty;
}
.apply__status {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}
.apply__status[hidden] { display: none; }
.apply__status--ok  { background: var(--accent-wash); color: var(--accent-deep); }
.apply__status--err { background: #FBEDEA; color: #8C2F20; }

@media (max-width: 1080px) {
  .apply { grid-template-columns: 1fr; gap: 32px; }
  .apply__form { max-width: 620px; }
}
@media (max-width: 720px) {
  .apply__form { padding: 22px; border-radius: 18px; }
  .apply__grid { grid-template-columns: 1fr; gap: 16px; }
  .field--check input { width: 22px; height: 22px; }
}

/* Ошибка под полем формы. Создаётся скриптом, связывается с инпутом
   через aria-describedby. */
.field__error {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #8C2F20;
}
.field__error[hidden] { display: none; }
.field__input[aria-invalid="true"] { border-color: #B3402F; }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #FBEDEA; }
.apply__status:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── печать ──────────────────────────────────────────────────────────────── */
/* Страницу условий и раскрытия информации распечатывают — убираем всё,
   что на бумаге бессмысленно, и разворачиваем ссылки. */
@media print {
  .site-header, .site-nav, .lang, .site-header__cta, .site-header__phone,
  .skip-link, .apply, .app, .investors, .calc__cta, .app__stores,
  .footer__col, .review__stars { display: none !important; }

  body { background: #FFF; color: #000; font-size: 11pt; }
  .shell { max-width: none; padding: 0; }
  .section, .dsc-section { padding: 0 0 18pt; break-inside: avoid; }
  .section__title, .dsc-h2 { font-size: 15pt; }
  .hero__title, .dsc-title { font-size: 22pt; }

  /* Таблицы и карточки не должны рваться между страницами. */
  .terms__row, .dsc-row, .product, .dsc-doc, .faq { break-inside: avoid; }
  .faq[open] .faq__a, .faq__a { display: block !important; }
  details { break-inside: avoid; }

  /* Адрес ссылки на бумаге не виден — печатаем его рядом. */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="#"]::after, a[href^="mailto"]::after, a[href^="tel"]::after { content: ""; }

  .calc, .apply__form, .dsc-table, .terms { box-shadow: none; border-color: #999; }
}
