/*
 * Лендинг reshai: две страницы — ученикам и партнёрам. Свёрстан по макету дизайнера
 * (design_handoff_landing), значения оттуда и перенесены: цвета, типографика, отступы.
 *
 * Шрифты свои, а не из Google Fonts: из России их сервис открывается медленно или никак —
 * по той же причине шрифты зашиты и в само приложение (web/src/main.tsx).
 */

/* ── Шрифты ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-400-normal.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-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-500-normal.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-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-600-normal.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-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-700-normal.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-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-800-normal.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-latin-800-normal.woff2) format("woff2");
}
/*
 * Армянские буквы. Manrope их не содержит — без этих начертаний браузер подставил бы под них
 * какой попало системный шрифт, у каждого ноутбука свой. Диапазон знаков тут обязателен: по нему
 * файл скачивается только на армянских страницах, а русская и английская его не трогают.
 */
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/noto-sans-armenian-400-normal.woff2) format("woff2");
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/noto-sans-armenian-500-normal.woff2) format("woff2");
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/noto-sans-armenian-600-normal.woff2) format("woff2");
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/noto-sans-armenian-700-normal.woff2) format("woff2");
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/noto-sans-armenian-800-normal.woff2) format("woff2");
  unicode-range: U+0530-058F, U+FB13-FB17;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/unbounded-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/unbounded-latin-800-normal.woff2) format("woff2");
}
@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/caveat-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/caveat-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2");
}

/* ── Основа ─────────────────────────────────────────────────────────────── */
:root {
  --cream: #f7f3e4;
  --paper: #fdfcf6;
  --ink: #101112;
  --ink-2: rgba(16, 17, 18, 0.72);
  --ink-3: rgba(16, 17, 18, 0.6);
  --muted: rgba(16, 17, 18, 0.55);
  --line: rgba(16, 17, 18, 0.14);
  --line-soft: rgba(16, 17, 18, 0.1);
  --red: #f0402a;
  --red-dark: #d9341f;
  --blue: #1668dc;
  --yellow: #ffc72c;
  --ui: Manrope, "Noto Sans Armenian", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 40px);
}

.section--band {
  background: var(--paper);
}

/* Две колонки, схлопываются в одну примерно на 830px */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 6vw, 80px);
}

.ruled {
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-soft);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font: 700 clamp(38px, 4.6vw, 60px) / 1.08 var(--ui);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

h2 {
  font: 700 clamp(28px, 3vw, 40px) / 1.15 var(--ui);
}

/* В макете у заголовков рядом с колонкой текста ширина ограничена — от этого зависит перенос */
.h2--narrow {
  max-width: 16ch;
}

.lead {
  margin: 24px 0 0;
  font: 400 clamp(17px, 1.5vw, 19px) / 1.6 var(--ui);
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.text {
  margin: 18px 0 0;
  font: 400 17px/1.6 var(--ui);
  color: rgba(16, 17, 18, 0.7);
  max-width: 40ch;
  text-wrap: pretty;
}

.label {
  /* Строка над заголовком — абзац, поэтому гасим его собственный отступ сверху */
  margin: 0;
  font: 500 15px/1.4 var(--ui);
  color: var(--ink-3);
}

.mark {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

.red {
  color: var(--red);
}

/* ── Логотип ────────────────────────────────────────────────────────────── */
/* Вытянут по вертикали, поэтому контейнеру нужна своя высота: иначе он наезжает на соседей */
.logo {
  display: block;
  height: 36px;
  /* На странице партнёрам логотип — ссылка на страницу ученикам, и браузер подчёркивал его */
  text-decoration: none;
}

.logo span {
  display: block;
  font: 800 22px/1 Unbounded, sans-serif;
  letter-spacing: -0.04em;
  color: var(--red);
  transform: scaleY(1.55);
  transform-origin: top left;
}

.logo--sm {
  height: 26px;
}
.logo--sm span {
  font-size: 16px;
}

.logo--xs {
  height: 22px;
}
.logo--xs span {
  font-size: 13px;
}

.logo--lg {
  height: 50px;
  flex: none;
}
.logo--lg span {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--cream);
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.head {
  padding: 28px clamp(20px, 5vw, 40px);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.menu a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font: 500 15px/1 var(--ui);
  text-decoration: none;
  transition: color 0.15s;
}

.menu a:hover {
  color: var(--ink);
}

.menu a[aria-current="page"] {
  border-bottom-color: var(--red);
  color: var(--ink);
  font-weight: 600;
}

/*
 * Переключатель языка. Выглядит не как пункты меню, а как отдельный тумблер: пункты ведут
 * в разделы сайта, а он показывает ту же страницу на другом языке, и путать их нельзя.
 *
 * Языков стало три, и прежняя одна пилюля с кодом текущего языка больше не годится: по ней
 * не видно, куда она переключит, а гадать между двумя оставшимися человек не обязан. Поэтому
 * показываем все три кода разом, включённый — залит. Текущий язык по-прежнему виден с первого
 * взгляда, а соседние читаются как выбор, а не как загадка.
 */
.menu .menu__lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.menu .menu__lang a {
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-3);
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.04em;
}

.menu .menu__lang a:hover {
  color: var(--ink);
}

/* Включённый язык залит: красная черта пунктов меню тут читалась бы как «раздел сайта» */
.menu .menu__lang a[aria-current="page"] {
  border: 0;
  background: var(--ink);
  color: var(--paper);
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btns {
  margin: 36px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btns--center {
  justify-content: center;
}

/* Под шагами кнопки стоят чуть ниже, чем в макете: вплотную они читались как часть четвёртого шага */
.btns--steps {
  margin-top: clamp(48px, 5vw, 64px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: min(100%, 240px);
  padding: 0 28px;
  border-radius: 14px;
  border: 1.5px solid var(--red);
  background: var(--red);
  color: var(--paper);
  font: 600 16px/1 var(--ui);
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(16, 17, 18, 0.25);
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
}

/* ── Первый экран ───────────────────────────────────────────────────────── */
.hero {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 112px);
}

.hero__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
}

/* ── Телефон с экраном разбора ──────────────────────────────────────────── */
.phone-box {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  flex: none;
  width: 310px;
  padding: 11px;
  border-radius: 52px;
  background: #1b1c1e;
  box-shadow:
    0 0 0 1.5px #3a3b3e inset,
    0 40px 80px rgba(16, 17, 18, 0.25);
}

.phone__screen {
  position: relative;
  width: 288px;
  height: 623px;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cream);
}

/* Экран нарисован в размерах настоящего телефона и ужат: так же, как в макете */
.phone__app {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(0.7385);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.ph-status {
  height: 54px;
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 34px 0;
  font: 600 16px/1 var(--ui);
}

.ph-status i {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  border-radius: 999px;
  background: #000;
}

.ph-head {
  flex: none;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ph-head__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ph-back {
  flex: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(16, 17, 18, 0.18);
  font: 700 13px/1 var(--ui);
}

.ph-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ph-step b {
  font: 800 15px/1 var(--ui);
}

.ph-step span {
  font: 500 11px/1.2 var(--ui);
  color: var(--muted);
}

.ph-bar {
  display: flex;
  gap: 6px;
}

.ph-bar i {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: rgba(16, 17, 18, 0.12);
}

.ph-bar i.on {
  background: var(--blue);
}

.ph-note {
  flex: 0 0 264px;
  overflow: hidden;
  border-bottom: 2px solid rgba(16, 17, 18, 0.12);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(22, 104, 220, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 104, 220, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ph-note__in {
  position: relative;
  height: 100%;
  padding: 14px 18px 0 0;
}

.ph-note__margin {
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(240, 64, 42, 0.45);
}

.ph-line {
  position: relative;
  min-height: 48px;
  padding: 4px 0 4px 62px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: 600 27px/1.2 Caveat, cursive;
}

.ph-line--dim {
  color: var(--ink-3);
}

.ph-line--now {
  background: rgba(22, 104, 220, 0.07);
}

.ph-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding: 2px 12px;
  border-radius: 9px;
  background: rgba(22, 104, 220, 0.16);
  color: var(--blue);
}

.ph-panel {
  flex: 1;
  position: relative;
  padding: 16px 18px 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ph-title {
  font: 800 19px/1.2 Unbounded, sans-serif;
  letter-spacing: -0.01em;
}

.ph-hint {
  margin: 6px 0 0;
  font: 500 14.5px/1.5 var(--ui);
  color: var(--ink-2);
}

.ph-move {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 14px;
  border-top: 1.5px solid var(--line-soft);
}

.ph-move__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-move__top span {
  font: 700 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.ph-xp {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--yellow);
  font: 800 10.5px/1 var(--ui);
}

.ph-q {
  font: 800 19px/1.3 var(--ui);
  margin-bottom: 2px;
}

.ph-opt {
  padding: 14px 16px;
  border-radius: 13px;
  background: #fff;
  border: 1.5px solid rgba(16, 17, 18, 0.12);
  font: 700 16px/1.3 var(--ui);
}

.ph-ask {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--cream);
  font: 800 13.5px/1 var(--ui);
  box-shadow: 0 8px 20px rgba(16, 17, 18, 0.22);
}

.ph-ask i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 12px/1 var(--ui);
  font-style: normal;
}

/* ── Когда пригодится ───────────────────────────────────────────────────── */
.triggers {
  display: flex;
  flex-direction: column;
}

.trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font: 500 18px/1.4 var(--ui);
}

.trigger i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.triggers p {
  margin: 28px 0 0;
  font: 500 18px/1.55 var(--ui);
  text-wrap: pretty;
}

/* ── Шаги ───────────────────────────────────────────────────────────────── */
.steps {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.step--ruled {
  padding-top: 20px;
  border-top: 1px solid rgba(16, 17, 18, 0.18);
}

.step__n {
  font: 500 15px/1 var(--ui);
  color: var(--red);
}

.step__title {
  margin: 14px 0 0;
  font: 600 19px/1.3 var(--ui);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.step__text {
  margin: 10px 0 0;
  font: 400 16px/1.6 var(--ui);
  color: rgba(16, 17, 18, 0.7);
  text-wrap: pretty;
}

/* ── Отличия ────────────────────────────────────────────────────────────── */
.diffs {
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.diff {
  border-radius: 20px;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.diff__top {
  padding: 24px 26px 22px;
}

.diff__label {
  font: 500 14px/1.4 var(--ui);
  color: rgba(16, 17, 18, 0.5);
}

.diff__them {
  margin: 8px 0 0;
  font: 500 17px/1.45 var(--ui);
  color: rgba(16, 17, 18, 0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(240, 64, 42, 0.6);
  text-wrap: pretty;
}

.diff__us {
  flex: 1;
  margin: 0 8px 8px;
  padding: 22px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 17, 18, 0.06);
}

.diff__text {
  margin: 4px 0 0;
  font: 600 19px/1.4 var(--ui);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ── Предметы ───────────────────────────────────────────────────────────── */
.subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  align-content: start;
}

.subject {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid rgba(16, 17, 18, 0.08);
  font: 600 18px/1.3 var(--ui);
}

/* ── SberDisrupt ────────────────────────────────────────────────────────── */
.sber {
  background: var(--blue);
  color: var(--cream);
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 40px);
}

.sber__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.sber__pair {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex-wrap: nowrap;
  min-width: 0;
}

.sber__x {
  flex: none;
  font: 400 26px/1 var(--ui);
}

.sber__logo {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 320px;
  height: auto;
  margin-top: 8px;
}

.sber__label {
  font: 500 14px/1.4 var(--ui);
  color: rgba(247, 243, 228, 0.8);
}

.sber h2 {
  margin: 10px 0 0;
  font: 700 clamp(24px, 2.4vw, 32px) / 1.2 var(--ui);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ── Итоговый экран ─────────────────────────────────────────────────────── */
.cta {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 40px);
}

.cta__in {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__price {
  font: 700 clamp(56px, 8vw, 104px) / 1 var(--ui);
  letter-spacing: -0.04em;
  color: var(--red);
}

.cta h2 {
  margin: 20px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  max-width: 20ch;
}

.cta p {
  margin: 16px 0 0;
  font: 400 17px/1.6 var(--ui);
  color: rgba(16, 17, 18, 0.7);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ── Подвал ─────────────────────────────────────────────────────────────── */
.foot {
  padding: 32px clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line-soft);
}

.foot__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted);
}

/* ── Страница партнёров ─────────────────────────────────────────────────── */
.hero--partners {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 112px);
}

.hero--partners h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  max-width: 17ch;
}

.hero--partners .lead {
  max-width: 50ch;
}

.platforms__text {
  margin: 0;
  font: 600 clamp(20px, 2vw, 24px) / 1.4 var(--ui);
  letter-spacing: -0.015em;
  max-width: 28ch;
  text-wrap: pretty;
}

.platforms__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-content: start;
  align-items: flex-start;
}

.offers {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer {
  margin-top: -1px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(12px, 3vw, 48px);
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}

.offer__head {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.offer__n {
  flex: none;
  font: 500 15px/1 var(--ui);
  color: var(--red);
}

.offer__title {
  font: 600 clamp(20px, 1.9vw, 24px) / 1.3 var(--ui);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* «Скоро» — для того, что обещано, но ещё не работает. Приглушённая, чтобы не спорила
   с жёлтой «бесплатно» в надзаголовке: та про факт, эта про планы */
.soon {
  display: inline-block;
  vertical-align: 0.18em;
  margin-left: 4px;
  padding: 3px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.offer__text {
  font: 400 17px/1.65 var(--ui);
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.offers__btn {
  padding-top: clamp(12px, 2vw, 20px);
  display: flex;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Телефон ────────────────────────────────────────────────────────────────
 * Макет оговаривает только схлопывание колонок. Остальное — правки под узкий
 * экран: на телефоне половина трафика, и там сайт должен читаться не хуже.
 */
@media (max-width: 560px) {
  /*
   * На телефоне четыре пункта в строку не помещаются (ряд шире шапки — страница начинала
   * ездить вбок). Переносим их и убираем лишний воздух между ними: названия короткие, и
   * 16 px хватает, чтобы они не слипались.
   */
  .menu {
    gap: 8px 16px;
  }

  /* Кнопка на всю ширину: палец попадает в неё не целясь, а пустое место справа пропадает */
  .btn {
    width: 100%;
  }

  .btns {
    gap: 10px;
  }

  /* В итоговом блоке колонка выравнивает детей по содержимому — ряду кнопок нужна вся ширина */
  .cta__in .btns {
    width: 100%;
  }

  /* Макет телефона занимал почти весь первый экран, и до текста под ним не доходили */
  .phone {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -115px;
  }

  .hero {
    padding-bottom: 72px;
  }

  /* Логотип партнёра в одну строку ужимался до 215 точек — переносим и даём ему ширину */
  .sber__pair {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .sber__logo {
    flex: 1 0 100%;
    max-width: 260px;
    margin-top: 0;
  }

  /* Заголовки в макете ограничены по ширине — на узком экране это лишние переносы */
  h1,
  h2,
  .h2--narrow,
  .lead,
  .text,
  .platforms__text {
    max-width: none;
  }
}

@media (max-width: 380px) {
  /* Два слова логотипа и меню в одну строку уже не помещаются — меню уходит под логотип */
  .head__in {
    gap: 12px;
  }

  .phone {
    transform: scale(0.74);
    margin-bottom: -170px;
  }
}

/* ── Для кого: цифры и предметы вместо абзаца ───────────────────────────── */
/* Строкой текста это читали через силу: класс, экзамены и четыре предмета в одном предложении.
   Цифра крупно и предметы плашками — тот же смысл, но схватывается взглядом */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 44px);
  margin-top: 24px;
}

.fact__n {
  font: 700 clamp(26px, 3vw, 34px) / 1 var(--ui);
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.fact__l {
  margin-top: 6px;
  font: 500 14px/1.3 var(--ui);
  color: var(--ink-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font: 600 13.5px/1.25 var(--ui);
  color: rgba(16, 17, 18, 0.72);
}

/* Отступ сверху от .ruled нужен, а линия — нет: на странице партнёрам блоки разделены воздухом */
.ruled--bare {
  border-top: 0;
}
