/* ═══════════════════════════════════════════════════════════════════════
   SWAPNI — стили лендинга.
   Значения сверены 1:1 с дизайн-канвасом «SWAPNI - Сайт» и брендбуком v1.0:
   палитра §03 · типографика §04 · радиусы, сетка и линии §07.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Палитра (§03) ─────────────────────────────────────────────── */
  --ink:        #0F1012;
  --ink-2:      #3A3D42;
  --muted:      #74777E;
  --faint:      #9CA0A8;
  --line:       #E7E5DF;
  --line-soft:  #F1F0EC;  /* разделители внутри карточки */
  --soft:       #F4F3EF;
  --paper:      #FBFAF7;
  --amber:      #EDA92C;
  --amber-deep: #B87F14;
  --sky:        #5AA9F8;  /* системный, только внутри Mini App */

  /* ── На тёмном ─────────────────────────────────────────────────── */
  --on-ink:      rgba(255,255,255,0.75);
  --on-ink-body: rgba(255,255,255,0.7);
  --on-ink-dim:  rgba(255,255,255,0.5);
  --on-ink-line: rgba(255,255,255,0.14);

  /* ── Гарнитуры (§04) ───────────────────────────────────────────── */
  --display: Unbounded, "Golos Text", -apple-system, BlinkMacSystemFont, sans-serif;
  --text:    "Golos Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Радиусы и сетка (§07) ─────────────────────────────────────── */
  --r-card: 20px;
  --r-pill: 100px;
  --col: 1240px;
  --gut: clamp(18px, 4vw, 80px);
  --sec: clamp(62px, 8vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── Каркас ────────────────────────────────────────────────────────── */
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: clamp(54px, 7vw, 84px) 0; }
.section--ink { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section--ink .wrap { position: relative; z-index: 1; }

/* ── Типографика (§04) ─────────────────────────────────────────────── */
.h1, .h2 { font-family: var(--display); font-weight: 600; margin: 0; }
.h1 { font-size: clamp(33px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.04em; }
.h2 { font-size: clamp(27px, 3.4vw, 44px); line-height: 1.1;  letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 540px; margin: 26px 0 0; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.note { font-size: 13.5px; line-height: 1.55; color: var(--faint); max-width: 480px; margin: 18px 0 0; }
.amber { color: var(--amber); }

.section--ink .lead  { color: var(--on-ink); }
.section--ink .label { color: var(--on-ink-dim); }
.section--ink .note  { color: var(--on-ink-dim); }

/* ── Шапка секции ──────────────────────────────────────────────────── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 60px; flex-wrap: wrap; }
.head__note { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 320px; margin: 0; }
.section--ink .head__note { color: var(--on-ink-dim); }

/* ── Знак и лок-ап (§02) ───────────────────────────────────────────── */
.mark { display: block; position: relative; flex: 0 0 auto; }
.mark i { position: absolute; display: block; width: 40%; height: 40%; border-radius: 27.5%; background: var(--ink); }
.mark i:nth-child(1) { left: 6%;  top: 6%; }
.mark i:nth-child(2) { left: 59%; top: 1%;  background: var(--amber); }
.mark i:nth-child(3) { left: 1%;  top: 59%; background: var(--amber); }
.mark i:nth-child(4) { left: 54%; top: 54%; }
.mark--inverse i:nth-child(1), .mark--inverse i:nth-child(4) { background: #fff; }

.lockup { display: flex; align-items: center; gap: 13px; }
.lockup__word { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }

/* ── Кнопки (§07: капсула 100 px) ──────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--text); font-size: 15.5px; font-weight: 600;
  padding: 16px 28px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 15px 27px; }
.btn--ghost:hover { background: var(--soft); border-color: var(--ink); }
.section--ink .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.section--ink .btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.section--ink .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.section--ink .btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.45); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.btn-row--center { justify-content: center; }

/* ── Навигация ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,0.9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { min-height: 76px; padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 32px); align-items: center; flex-wrap: wrap; min-width: 0; }
.nav__links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav__links a:hover { color: var(--amber-deep); }
.nav .btn { padding: 12px 22px; font-size: 14px; }

/* ── Герой ─────────────────────────────────────────────────────────── */
.hero .wrap { display: flex; gap: clamp(34px, 5vw, 80px); align-items: center; flex-wrap: wrap;
  padding-top: clamp(52px, 7vw, 96px); padding-bottom: clamp(52px, 7vw, 88px); }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero .h1 { color: #fff; }
.hero__shot { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }

.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--hero-a { width: 900px; height: 900px; right: -260px; top: -380px; background: radial-gradient(circle, rgba(237,169,44,0.26) 0%, rgba(237,169,44,0) 66%); }
.glow--hero-b { width: 700px; height: 700px; left: -280px; bottom: -420px; background: radial-gradient(circle, rgba(237,169,44,0.14) 0%, rgba(237,169,44,0) 66%); }
.glow--caps   { width: 820px; height: 620px; left: -220px; bottom: -360px; background: radial-gradient(circle, rgba(237,169,44,0.2) 0%, rgba(237,169,44,0) 66%); }
.glow--final  { width: 1000px; height: 680px; left: 50%; transform: translateX(-50%); bottom: -420px; background: radial-gradient(circle, rgba(237,169,44,0.28) 0%, rgba(237,169,44,0) 66%); }

/* надзаголовок-пилюля с амберной точкой */
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-pill); margin: 0 0 30px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; }
.kicker span { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink); }

.segments { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--on-ink-line); }
.segments__label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-dim); margin: 0 0 14px; }
.segments__list { display: flex; flex-wrap: wrap; gap: 8px; }
.segments__list span { font-size: 13.5px; color: var(--on-ink); padding: 6px 13px; border-radius: var(--r-pill); background: rgba(255,255,255,0.07); }

/* ── Мокапы: единственное место, где по правилам есть тень (§07) ──── */
.shot { position: relative; width: 320px; max-width: 100%; border-radius: 30px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12); }
.shot--paper { width: 272px; border-radius: 26px;
  box-shadow: 0 32px 64px -26px rgba(15,16,18,0.3), 0 0 0 1px rgba(15,16,18,0.07); }

/* ── Полоса «что меняется» ─────────────────────────────────────────── */
.band { background: var(--ink); color: #fff; border-top: 1px solid var(--on-ink-line); }
.band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0 40px; }
.band__cell { padding: 34px 0; }
.band__v { font-family: var(--display); font-weight: 600; font-size: clamp(31px, 3vw, 40px); line-height: 1; letter-spacing: -0.035em; color: #fff; }
.band__v small { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--amber); }
.band__l { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--on-ink-dim); }

/* ── Проблема ──────────────────────────────────────────────────────── */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 clamp(30px, 4vw, 72px); margin-top: 56px; }
.problem { display: flex; gap: 20px; padding: 26px 0; }
.problem__n { flex: 0 0 26px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--amber); padding-top: 4px; }
.problem__t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.problem__d { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ── Путь объявления ───────────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 0 6px; margin-top: 64px; }
.flow__step { position: relative; padding: 32px 22px 0 0; }
.flow__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.flow__step::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.flow__n { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 12px; }
.flow__t { font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
.flow__d { font-size: 13px; line-height: 1.5; color: var(--muted); }
/* 04 — единственный ручной шаг: приподнятая карточка, рельс на ней не рисуется */
.flow__step--card { background: #fff; border-radius: 14px; margin-top: -14px;
  padding: 32px 22px 20px 18px; box-shadow: 0 2px 10px -4px rgba(15,16,18,0.12); }
.flow__step--card::before { display: none; }
.flow__step--card::after { top: 14px; left: 18px; background: var(--ink); }
.flow__step--card .flow__n { color: var(--ink); padding-top: 18px; }
/* 05 и 06 отодвинуты вправо, чтобы разойтись с карточкой */
.flow__step--shift { padding-left: 22px; }
.flow__step--shift::after { left: 22px; }
/* 06 — конец пути: рельс и точка чернилами */
.flow__step--last { padding-right: 0; }
.flow__step--last::before, .flow__step--last::after { background: var(--ink); }

/* ── Экраны ────────────────────────────────────────────────────────── */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 48px 30px; margin-top: 60px; }
.screen { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen__t { margin-top: 22px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.screen__d { margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 260px; }
.screens + .btn-row { margin-top: 52px; }

/* ── Возможности (тёмная секция, амберные заголовки) ───────────────── */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 44px 40px; margin-top: 60px; }
.cap__t { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; color: var(--amber); margin-bottom: 20px; }
.cap ul { list-style: none; margin: 0; padding: 0; }
.cap li { font-size: 13.5px; line-height: 1.5; color: var(--on-ink-body); padding: 12px 0; border-top: 1px solid var(--on-ink-line); }
.cap li:first-child { border-top: none; padding-top: 0; padding-bottom: 12px; }

/* ── Сравнение ─────────────────────────────────────────────────────── */
.cmp { margin-top: 56px; }
.cmp__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 1px solid var(--line); }
.cmp__row > div { font-size: 15.5px; line-height: 1.45; }
.cmp__old { color: var(--muted); padding: 17px clamp(14px, 2vw, 40px) 17px 0; }
.cmp__new { font-weight: 600; padding: 17px 0 17px clamp(14px, 2vw, 40px); border-left: 1px solid var(--line); }
.cmp__head { border-bottom: 1px solid var(--ink); }
.cmp__head > div { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0; padding-bottom: 14px; }
.cmp__head .cmp__old { color: var(--faint); }
.cmp__head .cmp__new { color: var(--ink); }

/* ── Параметры ─────────────────────────────────────────────────────── */
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 0 24px; margin-top: 56px; }
.param { padding: 26px 0 0; border-top: 1px solid var(--ink); }
.param__v { font-family: var(--display); font-weight: 600; font-size: clamp(33px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.035em; }
.param__v--amber { color: var(--amber); }
.param__l { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── Статус ────────────────────────────────────────────────────────── */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(328px, 1fr)); gap: 40px 56px; margin-top: 52px; }
.proof__t { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.proof ul { list-style: none; margin: 0; padding: 0; }
.proof li { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line); }
.proof li:first-child { border-top: none; padding-top: 0; }
.proof li b { color: var(--ink); font-weight: 600; }

/* ── Цена ──────────────────────────────────────────────────────────── */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(338px, 1fr)); gap: 48px 72px; align-items: start; }
.price .lead { font-size: 17.5px; margin-top: 24px; max-width: 520px; }
.price .note { max-width: 440px; }
.incl { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px 34px; }
.incl__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.incl__head span { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.incl__head .incl__price { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.035em; text-transform: none; color: var(--amber); }
.incl__row { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.incl__row:last-child { border-bottom: none; }
.incl + .note { margin-top: 16px; max-width: none; }

.launch { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.launch .label { margin-bottom: 26px; }
.launch__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); gap: 28px 32px; }
.launch__k { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--amber); margin-bottom: 12px; }
.launch__d { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ── Финал ─────────────────────────────────────────────────────────── */
.final { padding: clamp(70px, 9vw, 112px) 0; text-align: center; }
.final .mark { margin: 0 auto 34px; width: 52px; height: 52px; }
.final .h2 { font-size: clamp(29px, 3.9vw, 50px); line-height: 1.1; letter-spacing: -0.035em; color: #fff; }
.final .btn-row { margin-top: 38px; }
.final .btn { padding: 16px 30px; }
.final .note { margin: 20px auto 0; max-width: 520px; }

/* ── Футер ─────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .lockup { gap: 12px; }
.foot .lockup__word { font-size: 16px; letter-spacing: -0.03em; color: var(--muted); }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot__links a:hover { color: var(--amber-deep); }

/* ── Узкие экраны ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { flex-direction: column; align-items: stretch; }
  .hero__shot { margin-top: 44px; }
  .head { display: block; }
  .head__note { margin-top: 22px; max-width: none; }
  .cmp__row > div { font-size: 13.5px; }
  .cmp__old { padding: 14px 14px 14px 0; }
  .cmp__new { padding: 14px 0 14px 14px; }
  .flow__step, .flow__step--shift, .flow__step--last { padding: 22px 0 0; }
  .flow__step--card { padding: 22px 18px 18px; margin-top: 0; }
  .flow__step--card::before, .flow__step--card::after { left: 18px; }
  .incl { padding: 26px 22px; }
  /* липкая шапка в три ряда съедала пятую часть экрана: оставляем знак и CTA */
  .nav__links { display: none; }
  .nav .wrap { min-height: 62px; }
  [id] { scroll-margin-top: 74px; }
}
