/* ── Шрифты ───────────────────────────────────────────────────────────
   Manrope, вариативный, самохостинг: убирает fonts.googleapis.com и
   fonts.gstatic.com с критического пути рендера (2 внешних хоста).

   ВАЖНО: в Manrope НЕТ глифов ә ғ қ ң ұ (5 из 9 казахских букв) и знака
   тенге ₸. Без подмены они рисуются системным фолбэком — на казахской
   версии это видно в каждом втором слове, а ₸ выбивается в каждом числе.
   Поэтому ниже объявлен второй файл — подмножество Inter ровно на эти
   11 кодовых точек (3,1 КБ). Он идёт ПОСЛЕ Manrope: при пересечении
   unicode-range выигрывает последнее объявление.
   ─────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-var-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 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-var-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 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-var-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;
}

/* Заплатка на глифы, которых нет в Manrope. Объявлена последней — выигрывает. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/inter-kkfix.woff2') format('woff2');
  unicode-range: U+0492-0493, U+049A-049B, U+04A2-04A3, U+04B0-04B1, U+04D8-04D9, U+20B8;
}


:root {
  --coral:        #FF5063;
  --ink:          #0F1820;
  --white:        #FFFFFF;

  --surface:      #F2F2F2;   /* серые карточки и плашки */
  --surface-rose: #FFF0F2;   /* розовые предупреждения */

  --text:         #0F1820;
  --text-muted:   #5A6172;
  --text-soft:    #7A8090;
  --text-faint:   #9AA0AB;
  --text-blank:   #B0B5BE;   /* незаполненные реквизиты */

  --line:         #ECECEC;
  --line-soft:    #ECEDEF;
  --line-card:    #E4E5E8;
  --line-dash:    #C6CAD2;
  --track:        #ECEDEF;

  --cta:          linear-gradient(90deg, #FD6059 0%, #FF8E3E 100%);
  --cta-shadow:   0 10px 26px rgba(253, 96, 89, .38);

  --r-shell:      44px;
  --r-card:       30px;
  --r-tile:       26px;
  --r-inner:      20px;
  --r-chip:       18px;
  --r-pill:       999px;

  --wrap:         1280px;
  --gutter:       28px;
  --pad-section:  80px;

  --font:         'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--coral); }

button { font-family: var(--font); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 0 0 var(--r-chip) 0;
  font-size: 15px;
  font-weight: 800;
}
.skip:focus { left: 0; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap--narrow { max-width: 860px; }

.section { padding: var(--pad-section) var(--gutter) 0; }

.h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 16px;
  text-wrap: balance;
}
.h2--flush { margin-bottom: 36px; }

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 40px;
  max-width: 640px;
}

/* ── Шапка ────────────────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hdr__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px 28px;
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo:hover { color: var(--text); }

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  flex-shrink: 0;
}

.logo__text { font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.logo__tld { color: var(--coral); }

.nav { display: flex; align-items: center; gap: 24px; flex: 1; flex-wrap: wrap; }
/* padding-block доводит цель нажатия до минимума WCAG 2.2 (24px), не меняя ритм */
.nav__link { font-size: 15px; font-weight: 600; padding-block: 3px; }

.hdr__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }

.langsw { display: flex; background: var(--surface); border-radius: var(--r-pill); padding: 3px; }

/* Ссылки, а не кнопки: языковые версии живут на отдельных URL (/ и /kk/) */
.langsw__btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}
.langsw__btn:hover { color: var(--ink); }
.langsw__btn.is-active,
.langsw__btn.is-active:hover { background: var(--ink); color: var(--white); }

.hdr__cabinet { font-size: 15px; font-weight: 800; white-space: nowrap; padding-block: 3px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 140ms ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.mnav__link {
  font-size: 17px;
  font-weight: 700;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mnav__link--accent { color: var(--coral); border-bottom: 0; }

/* ── Герой ────────────────────────────────────────────────────────── */

.hero { padding: 24px var(--gutter) 0; }

.hero__shell {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--coral);
  border-radius: var(--r-shell);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__copy { color: var(--white); }

.hero__title {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero__list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.35;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 10px;
}

.hero__note {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  max-width: 520px;
}

/* ── Калькулятор ──────────────────────────────────────────────────── */

.calc {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 30px;
}

.modesw {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: 26px;
}

.modesw__btn {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 8px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.modesw__btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 24, 32, .10);
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.calc__label { font-size: 16px; font-weight: 600; }
.calc__value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font);
  white-space: nowrap; /* «194 625 ₸» не должно разрываться по разряду */
}

.slider {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.slider:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; border-radius: var(--r-pill); }

.slider__track {
  position: absolute;
  left: 0; right: 0;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--track);
}
.slider__fill {
  position: absolute;
  left: 0;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--ink);
}
.slider__thumb {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--ink);
  transform: translateX(-50%);
}

.slider.is-locked { opacity: .35; pointer-events: none; }

.slider__ticks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.slider__ticks span { white-space: nowrap; }

.firsttoggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-chip);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 180ms ease;
}
.firsttoggle.is-zero { background: var(--surface-rose); }

.switch {
  width: 44px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--line-dash);
  position: relative;
  flex-shrink: 0;
  transition: background 180ms ease;
}
.firsttoggle.is-zero .switch { background: var(--coral); }

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  transition: left 180ms ease;
}
.firsttoggle.is-on .switch__knob { left: 21px; }

.firsttoggle__body { display: block; }
.firsttoggle__title { display: block; font-size: 15px; font-weight: 800; }
.firsttoggle__sub { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-top: 2px; }
.firsttoggle__warn { display: block; font-size: 13px; font-weight: 700; color: var(--coral); margin-top: 6px; }
.firsttoggle__warn[hidden] { display: none; }

.calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.stat { background: var(--surface); border-radius: var(--r-chip); padding: 14px 16px; }
.stat__k { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 4px; }
.stat__v {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  gap: 7px;
  align-items: baseline;
  flex-wrap: wrap;
}
.stat__v > span { white-space: nowrap; }
.stat__strike { text-decoration: line-through; color: var(--text-blank); font-size: 15px; }
.stat__strike[hidden] { display: none; }

.cta {
  /* display обязателен: CTA — ссылка <a>, а на инлайновом элементе
     width:100% игнорируется и кнопка съёживается по тексту. */
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cta);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  border: 0;
  border-radius: var(--r-pill);
  padding: 19px 28px;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
/* color нужен явно: глобальное правило a:hover красит ссылки в коралловый,
   а на градиенте CTA это дало бы нечитаемый текст */
.cta:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(253, 96, 89, .46); }
.cta:active { transform: translateY(0); }

.calc__legal {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-faint);
  margin: 14px 0 0;
  text-align: center;
}

/* ── Факты ────────────────────────────────────────────────────────── */

.facts { padding: 56px var(--gutter) 0; }
.facts__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.fact { background: var(--surface); border-radius: var(--r-tile); padding: 26px 28px; }
.fact__num { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: var(--coral); white-space: nowrap; }
.fact__cap { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-top: 6px; }

/* ── Продукты ─────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.card--dark { background: var(--ink); color: var(--white); }

.card__badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--white);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.card--dark .card__badge { color: var(--ink); }

.card__title { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 20px 0 10px; }

.card__text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 24px;
  flex: 1;
}
.card--dark .card__text { color: rgba(255, 255, 255, .72); }

.card__meta { display: flex; gap: 22px; padding-top: 20px; border-top: 1px solid var(--line-card); }
.card--dark .card__meta { border-top-color: rgba(255, 255, 255, .14); }

.meta__k { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.card--dark .meta__k { color: rgba(255, 255, 255, .55); }
.meta__v { font-size: 20px; font-weight: 800; }

/* ── Как работает ─────────────────────────────────────────────────── */

.how { background: var(--surface); border-radius: var(--r-shell); padding: 48px; }

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { background: var(--white); border-radius: var(--r-tile); padding: 28px 30px; }
.step__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.step__text { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--text-muted); margin: 0; }

.flow {
  background: var(--coral);
  border-radius: var(--r-tile);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow__id {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.flow__row {
  background: var(--white);
  border-radius: var(--r-inner);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.flow__t { font-size: 16px; font-weight: 800; }
.flow__s { font-size: 14px; font-weight: 600; color: var(--text-soft); margin-top: 2px; }
.flow__ok {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow__paid {
  background: var(--ink);
  border-radius: var(--r-inner);
  padding: 22px;
  color: var(--white);
  margin-top: 4px;
}
.flow__paidk { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.flow__paidv { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; white-space: nowrap; }
.flow__paids { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); margin-top: 4px; }

/* ── Погашение ────────────────────────────────────────────────────── */

.repay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  align-items: start;
}
.repay .lead { margin-bottom: 28px; }

.repay__warn { background: var(--surface-rose); border-radius: var(--r-tile); padding: 26px 28px; }
.repay__warnh { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.repay__warnp { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--text-muted); margin: 0; }

.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.method { background: var(--surface); border-radius: var(--r-tile); padding: 26px 28px; }
.method__t { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.method__s { font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border-radius: var(--r-tile); overflow: hidden; }
.faq__h { margin: 0; font-size: inherit; font-weight: inherit; }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 24px 28px;
  cursor: pointer;
  text-align: left;
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 800;
  color: var(--ink);
}

.faq__sign {
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }

.faq__a { padding: 0 28px 26px; }
.faq__a[hidden] { display: none; }
.faq__a p { font-size: clamp(16px, 1.6vw, 17px); line-height: 1.6; font-weight: 600; color: var(--text-muted); margin: 0; }

/* ── Раскрытие информации ─────────────────────────────────────────── */

.legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.panel { background: var(--surface); border-radius: var(--r-card); padding: 32px; }
.panel__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }

.discl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.discl__row { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; font-weight: 600; }
.discl__k { color: var(--text-soft); }
.discl__v { margin: 0; text-align: right; }

/* gap уменьшен ровно на добавленный padding — визуальный ритм 13px сохранён */
.docs { display: flex; flex-direction: column; gap: 7px; }
.doc { font-size: 16px; font-weight: 600; align-self: flex-start; padding-block: 3px; }

/* Блок первоисточников: цифры на сайте должны быть проверяемы по актам */
.panel--sources { margin-bottom: 20px; }
.sources__lead { font-size: 15px; font-weight: 600; color: var(--text-muted); margin: -8px 0 20px; }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sources li { display: flex; flex-direction: column; gap: 4px; }
.sources a {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-dash);
  text-underline-offset: 3px;
  padding-block: 3px;
}
.sources a:hover { color: var(--coral); text-decoration-color: currentColor; }
.sources__what { font-size: 15px; font-weight: 600; color: var(--text-soft); }

.notice { background: var(--surface-rose); border-radius: var(--r-card); padding: 32px; }
.notice__h { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.notice__p { font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--text-muted); margin: 0; max-width: 900px; }

/* ── Согласие на аналитику ────────────────────────────────────────── */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  box-shadow: 0 16px 48px rgba(15, 24, 32, .18);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.consent[hidden] { display: none; }

.consent__body { flex: 1; min-width: 240px; }
.consent__text { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--text-muted); margin: 0; }
.consent__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-color: var(--line-dash);
  text-underline-offset: 3px;
  padding-block: 3px;
}

.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent__btn {
  font-size: 15px;
  font-weight: 800;
  border: 0;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}
.consent__btn:hover { background: var(--line-card); }
.consent__btn--accept { background: var(--ink); color: var(--white); }
.consent__btn--accept:hover { background: var(--coral); color: var(--white); }

@media (max-width: 640px) {
  .consent { padding: 18px; gap: 14px; }
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1; padding: 14px 12px; }
}

/* ── Страница 404 ─────────────────────────────────────────────────── */

.e404 { padding: 40px var(--gutter) 0; }
.e404__shell {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--coral);
  border-radius: var(--r-shell);
  padding: 64px 48px 72px;
  color: var(--white);
  text-align: center;
}
.e404__code {
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, .28);
}
.e404__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 8px 0 16px;
  text-wrap: balance;
}
.e404__text {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.45;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  margin: 0 auto 32px;
  max-width: 520px;
  text-wrap: balance;
}
.e404__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
}
/* На коралловом фоне фирменный градиент CTA сливается с подложкой —
   на 404 кнопка инвертирована в белую с тёмным текстом. */
.cta--inline {
  width: auto;
  display: inline-block;
  padding: 16px 34px;
  font-size: 17px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(15, 24, 32, .16);
}
.cta--inline:hover {
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(15, 24, 32, .22);
}
.e404__link {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
  padding-block: 4px;
}
.e404__link:hover { color: var(--white); text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .e404__shell { padding: 40px 24px 48px; }
}

/* ── Подвал ───────────────────────────────────────────────────────── */

.ftr { padding: var(--pad-section) var(--gutter) 0; }

.ftr__grid {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}

.logo--ftr { margin-bottom: 18px; }
.logo--ftr .logo__mark { width: 32px; height: 32px; font-size: 19px; }
.logo--ftr .logo__text { font-size: 21px; }

.ftr__about {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 260px;
}

.pays { display: flex; gap: 8px; flex-wrap: wrap; }
.pay {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 14px;
}

.ftr__h {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

/* gap уменьшен ровно на добавленный padding — визуальный ритм 11px сохранён */
.ftr__links { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ftr__links a, .ftr__links span { font-size: 15px; font-weight: 600; color: var(--text-muted); padding-block: 3px; }
.ftr__links a:hover { color: var(--coral); }

.ftr__phone {
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  white-space: nowrap;
}
.ftr__phone:hover { color: var(--coral) !important; }

.ftr__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
}

/* ── Адаптив ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav, .hdr__cabinet { display: none; }
  .burger { display: flex; }
  .mnav { display: flex; }
  .mnav[hidden] { display: none; }
}

@media (max-width: 900px) {
  :root { --pad-section: 60px; --r-shell: 32px; }
  .hero__shell { padding: 28px; gap: 36px; grid-template-columns: 1fr; }
  .how { padding: 32px; }
  .repay { gap: 32px; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --pad-section: 48px;
    --r-shell: 26px;
    --r-card: 24px;
    --r-tile: 22px;
  }

  .hdr__inner { padding: 12px var(--gutter); min-height: 68px; gap: 12px; }
  .hero__shell { padding: 18px; }
  .calc { padding: 20px; }
  .calc__grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .facts__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .card, .panel, .notice { padding: 24px; }
  .how { padding: 22px; }
  .flow { padding: 22px; }
  .step { padding: 22px; }
  .fact, .method, .repay__warn { padding: 22px; }
  .faq__q { padding: 20px; gap: 12px; }
  .faq__a { padding: 0 20px 22px; }
  .discl__row { flex-direction: column; gap: 4px; }
  .discl__v { text-align: left; align-self: flex-start; }
  .ftr__bottom { padding-bottom: 36px; }
}

/* «Частями — 4 платежа» не помещается в половину узкого экрана:
   вместо нечитаемого кегля раскладываем переключатель в столбец. */
@media (max-width: 480px) {
  .modesw { flex-direction: column; border-radius: 24px; }
  .modesw__btn { padding: 13px 10px; white-space: nowrap; }
}

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