/*
  P2P Radar — сайт, website.13.

  Вёрстка по «P2P — Website.sketch»: «Лендинг · Desktop 1440px» и
  «Лендинг · Mobile 390px». Колонка 1080 (x 180 на 1440), серые карточки
  #F2F2F7 со скруглением 20 / 24 / 28, тёмные блоки 32. Цифры радиусов и
  кеглей — из слоёв макета; в комментариях у правил указан слой.

  Шрифт — San Francisco системным стеком (-apple-system): на iPhone, iPad и
  Mac это SF Pro с оптическими размерами. Файлы шрифта не встраиваются:
  лицензия Apple запрещает раздавать SF Pro с сайта. (В макете заголовки
  набраны Montserrat — это подстановка Sketch, по ТЗ сайта шрифт SF Pro.)

  Цвета — Apple iOS 27 UI Kit, светлая тема. Цветной текст на плашках
  секций затемнён против макета до контраста 4.5:1 (WCAG AA для 12 pt):
  #0088FF → #0062CC, #FF8D28 → #A85400, #34C759 → #1F7A35, #D98200 → #8A6100.
*/

:root {
  color-scheme: light;

  --bg: #ffffff;                          /* Backgrounds/Light/Primary */
  --surface: #f2f2f7;                     /* Backgrounds Grouped/Light/Primary — карточки макета */
  --surface-2: #f8f8fa;                   /* строки книги объявлений */
  --card: #ffffff;                        /* Backgrounds Grouped/Light/Secondary */
  --label: #000000;                       /* Labels/Light/1 Primary */
  --label-2: rgba(60, 60, 67, 0.6);       /* Labels/Light/2 Secondary */
  --label-3: rgba(60, 60, 67, 0.3);       /* Labels/Light/3 Tertiary */
  --fill: rgba(120, 120, 128, 0.2);       /* Fills/Light/1 Primary */
  --fill-3: rgba(118, 118, 128, 0.12);    /* Fills/Light/3 Tertiary */
  --sep: rgba(0, 0, 0, 0.12);             /* Separators/Light/Non-Opaque */
  --green: #34c759;                       /* System Colors/Light/4 Green */
  --blue: #0088ff;                        /* System Colors/Light/8 Blue */
  --orange: #ff8d28;                      /* System Colors/Light/2 Orange */
  --red: #ff383c;                         /* System Colors/Light/1 Red */
  --money-up: #248a3d;                    /* зелёный для текста на белом: контраст 4.5:1 */
  --warn-text: #a85400;

  /* Плашки секций: фон — цвет макета 10 %, текст — затемнённый до AA */
  --pill-blue: #0062cc;
  --pill-orange: #a85400;
  --pill-green: #1f7a35;
  --pill-yellow: #8a6100;

  /* Тёмные цвета — для острова и тёмных блоков */
  --d-label-2: rgba(235, 235, 245, 0.6);  /* Labels/Dark/2 Secondary */
  --d-blue: #0091ff;
  --d-orange: #ff9230;
  --d-red: #ff4245;
  --d-green: #30d158;
  --d-gray-3: #48484a;

  --binance: #f0b90b;
  --bybit: #f7a600;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Скругления — из макета */
  --r-20: 20px;   /* факты, книги, ноги арбитража, вопросы */
  --r-24: 24px;   /* шаги «Чатов», тарифы, безопасность */
  --r-28: 28px;   /* большие панели */
  --r-32: 32px;   /* «Скачать» */

  /* Масштабы устройств */
  --s-hero: 0.6;
  --s-hero-side: 0.52;
  --s-story: 0.6;
  --s-side: 0.58;
  --s-island: 0.78;
  --s-home: 0.62;
  --s-watch: 0.56;

  --page: min(1080px, calc(100vw - 48px));
  --nav-h: 64px;
  --gap: 20px;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Пружина Dynamic Island: один перелёт */
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

@media (max-width: 900px) {
  :root { --s-hero: 0.5; --s-hero-side: 0.42; --s-story: 0.52; --s-side: 0.54; --s-island: 0.74; --gap: 16px; }
}
/* «Лендинг · Mobile 390px»: поля 16 */
@media (max-width: 560px) {
  :root {
    --page: calc(100vw - 32px);
    --s-hero: 0.56; --s-story: 0.5; --s-side: 0.56; --s-island: 0.7; --s-home: 0.56; --s-watch: 0.5;
    --gap: 12px;
  }
}

/* ---------- База ---------- */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
main, .footer { overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--label);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: var(--page); margin: 0 auto; }
.center { text-align: center; }
.fine { margin-top: 16px; color: var(--label-2); font-size: 13px; line-height: 1.45; letter-spacing: -0.01em; }
.caption { margin-top: 14px; color: var(--label-3); font-size: 13px; text-align: center; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--label); color: #fff; }
.btn--dark:hover { background: #2c2c2e; }
.btn--gray { background: var(--surface); color: var(--label); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.btn--gray:hover { background: #e9e9ef; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #ececf0; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }
/* Header «Скачать» 150×36 r18; hero 220×55 r27 */
.btn--small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--large { height: 54px; min-width: 220px; padding: 0 28px; font-size: 16px; }
.btn[aria-disabled="true"] { cursor: default; }
.arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Навигация (Sketch «Header / Navigation» 1440×64, фон #FFFFFFEE, линия #00000018) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, 0.09); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: var(--page);
  height: 100%;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.brand__icon { width: 28px; height: 28px; border-radius: 22.5%; }
.nav__links { display: flex; gap: 28px; margin-left: 8px; margin-right: auto; }
.nav__links a { font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(0, 0, 0, 0.6); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--label); }
.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle__bar {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.6px;
  border-radius: 2px;
  background: var(--label);
  transition: transform 0.3s var(--ease);
}
.menu-toggle__bar:nth-child(1) { top: 18px; }
.menu-toggle__bar:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav__inner { gap: 12px; }
  .nav .btn--small { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav__links {
    position: fixed;
    /* У .nav есть backdrop-filter: он становится блоком для fixed */
    inset: var(--nav-h) 0 auto;
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 24px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--sep); color: var(--label); font-size: 24px; font-weight: 600; }
}

/* Переключатель языка: системный select в серой капсуле (Sketch 56×32 r16 #7676801F) */
.lang { position: relative; display: inline-flex; flex: none; }
.lang select {
  height: 32px;
  padding: 0 28px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--fill-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 11px center / 9px 6px no-repeat;
  color: var(--label);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.lang select:hover { background-color: var(--fill); }
@media (max-width: 1120px) {
  .nav .lang { margin-left: auto; }
  .nav .lang + .btn--small { margin-left: 0; }
  .lang select { max-width: 112px; }
}
/* На телефоне в шапке только иконка: со словами «Завантажити» или
   «ჩამოტვირთვა» и переключателем языка ряд иначе не помещается */
@media (max-width: 560px) {
  .nav .brand span { display: none; }
}

/* ---------- Появление ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-lines-reveal] .line { display: block; }
.js [data-lines-reveal] .line {
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 0.08s), transform 0.8s var(--ease) calc(var(--i, 0) * 0.08s);
}
.js [data-lines-reveal].is-in .line { opacity: 1; transform: none; }

/* Hero появляется чистым CSS при загрузке: на медленной сети текст не ждёт
   скрипта. Сцена с телефонами — чистым CSS вместе с hero. */
.js .hero__title .line,
.js .hero__lede,
.js .hero__actions,
.js .hero__fine {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 0.8s var(--ease) both;
}
.js .stage {
  opacity: 1;
  transform: none;
  transition: none;
}
/* M1 (website.17): строки заголовка поднимаются из-под маски. Маска —
   сама строка (overflow: clip), движется вложенный span. */
.hero__title .line { overflow: clip; overflow-clip-margin: 0.15em; }
.hero__title .line > span { display: block; }
.js .hero__title .line { animation: none; }
.js .hero__title .line > span { animation: line-rise 0.9s var(--ease) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: 0.04s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes line-rise {
  from { opacity: 0; transform: translateY(105%); filter: blur(6px); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; filter: none; }
}
.js .hero__lede { animation-delay: 0.16s; }
.js .hero__actions { animation-delay: 0.24s; }
.js .hero__fine { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Заголовки секций ----------
   Sketch: плашка 26 r13 (12 pt, полужирный) → 13 → заголовок 38 pt
   полужирный → 8 → лид 18 pt #3C3C4399 → 40 → содержимое. */

.section { padding: 80px 0 0; }
.section__head { margin-bottom: 40px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-bottom: 13px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.pill--blue { background: rgba(0, 136, 255, 0.1); color: var(--pill-blue); }
.pill--orange { background: rgba(255, 141, 40, 0.1); color: var(--pill-orange); }
.pill--green { background: rgba(52, 199, 89, 0.1); color: var(--pill-green); }
.pill--yellow { background: rgba(247, 166, 0, 0.1); color: var(--pill-yellow); }
.title {
  max-width: 28em;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  max-width: 48em;
  margin-top: 8px;
  color: var(--label-2);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
@media (max-width: 560px) {
  .section { padding-top: 56px; }
  .section__head { margin-bottom: 24px; }
  .title { font-size: 28px; line-height: 1.18; }
  .lede { font-size: 16px; }
}

.panel { border-radius: var(--r-28); background: var(--surface); }
.panel--pad { padding: 32px; }
@media (max-width: 560px) { .panel--pad { padding: 20px 16px; } .panel { border-radius: 24px; } }

/* ---------- 1 · Hero (Sketch «Section · Hero», y 64–1036) ---------- */

.hero {
  width: var(--page);
  margin: 0 auto;
  padding: 104px 0 0;
  text-align: center;
}
.hero__title {
  max-width: 16em;
  margin: 0 auto;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero__lede {
  max-width: 36em;
  margin: 20px auto 0;
  color: var(--label-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  --d: 0.08s;
}
.hero__fine { margin-top: 14px; color: var(--label-3); font-size: 13px; --d: 0.12s; }

/* Подложка hero: 1080×560 r40, #f2f2f7 (на 390px: 358×440 r28), телефоны внутри со срезом */
.stage {
  height: clamp(440px, 46vw, 560px);
  margin: 64px 0 0;
  overflow: hidden;
  border-radius: 40px;
  background: var(--surface);
  --d: 0.15s;
}
.stage__devices {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 4vw, 56px);
  padding-top: 48px;
}
.stage .iphone--side { margin-top: 48px; }
@media (max-width: 560px) {
  .hero__actions { gap: 10px; }
  .hero__actions .btn--large { width: 100%; }
  .stage { height: 440px; border-radius: 28px; }
  .stage__devices { padding-top: 32px; }
  .stage .iphone--side { display: none; }
}

/* ---------- 2 · Факты (4 карточки 260×122 r20) ---------- */

.facts { width: var(--page); margin: 0 auto; padding: 24px 0 0; }
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 122px;
  padding: 18px 20px 20px;
  border-radius: var(--r-20);
  background: var(--surface);
}
.fact-card .icon { margin-bottom: 8px; }
.fact-card strong { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.fact-card span { color: var(--label-2); font-size: 13px; line-height: 1.4; letter-spacing: -0.005em; }
.fact-card:nth-child(2) { --d: 0.05s; }
.fact-card:nth-child(3) { --d: 0.1s; }
.fact-card:nth-child(4) { --d: 0.15s; }
@media (max-width: 900px) { .facts__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .facts__list { grid-template-columns: 1fr; gap: 10px; }
  .fact-card { grid-template-columns: 24px 1fr; column-gap: 14px; min-height: 0; padding: 16px; }
  .fact-card .icon { grid-row: span 2; margin: 0; }
}

/* ============================================================
   Устройства
   ============================================================ */

.iphone {
  position: relative;
  flex: none;
  width: calc(450px * var(--s));
  height: calc(920px * var(--s));
}
.iphone__inner {
  position: absolute;
  left: 0; top: 0;
  width: 450px;
  height: 920px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.iphone__screen {
  position: absolute;
  left: 24px; top: 23px;
  width: 402px;
  height: 874px;
  overflow: hidden;
  border-radius: 56px;
  background: #000;
  isolation: isolate;
}
.iphone__bezel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 450px;
  height: 920px;
  pointer-events: none;
  user-select: none;
}
.screen-img {
  position: absolute;
  inset: 0;
  width: 402px;
  height: 874px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Фото часов 783×1293 px = 261×431 pt (3 px на pt). Стекло — прозрачная
   дыра 208×248 pt со смещением (20,67; 91,67): экран кладётся ПОД фото, и
   скруглённый край корпуса сам закрывает углы экрана. */
.watch {
  position: relative;
  flex: none;
  width: calc(261px * var(--s));
  height: calc(431px * var(--s));
}
.watch__inner {
  position: absolute;
  left: 0; top: 0;
  width: 261px;
  height: 431px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.watch__photo { position: absolute; inset: 0; z-index: 2; width: 261px; height: 431px; pointer-events: none; }
.watch__screen {
  position: absolute;
  left: 20.667px; top: 91.667px;
  z-index: 1;
  width: 208px;
  height: 248px;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
}
.watch__screen img {
  position: absolute;
  inset: 0;
  width: 208px;
  height: 248px;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.04);
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.6s var(--ease);
}
/* Смена одновременная, но через размытие: при последовательной (сначала
   погасить, потом проявить) между экранами мелькал чёрный кадр, а при
   обычном перекрёстном затухании читались два циферблата сразу */
.watch__screen img.is-active { opacity: 1; filter: none; transform: none; }

/* Push-уведомление на тёмном экране «Чаты» */
.push {
  position: absolute;
  left: 10px; right: 10px; top: 58px;
  z-index: 5;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 26px;
  /* website.17: стекло по токену кита «Liquid Glass/Dark/Regular - Medium»
     (фон #1A1A1A, blur 30, saturation 1.2, тень y18 b48, ободок и блик).
     liquidGL оценён и не подошёл — см. web/README.md, website.17. */
  background: rgba(26, 26, 26, 0.72);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  backdrop-filter: blur(30px) saturate(1.2);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-align: left;
  opacity: 0;
  /* M2: пуш вырастает из Dynamic Island (верхний центр экрана) и уходит
     обратно. Анимируется только сам пуш: любая анимация его детей делает
     текст пуша новым кандидатом LCP (+150 мс в Lighthouse, website.17) */
  transform-origin: 50% 0;
  transform: translateY(-46px) scale(0.33, 0.46);
  transition: transform 0.75s var(--spring), opacity 0.18s linear;
}
.push.is-shown { opacity: 1; transform: none; }
.push.is-leaving { transition: transform 0.36s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.2s linear 0.16s; }
.push__icon { width: 38px; height: 38px; border-radius: 9px; }
.push__top { display: flex; justify-content: space-between; gap: 8px; }
.push__top strong { font-weight: 600; }
.push__top time { color: var(--d-label-2); font-size: 13px; }
.push__body > span { display: block; color: rgba(255, 255, 255, 0.86); }

/* График «Лучшая цена» поверх экрана «Рынок»: линия прорисовывается слева
   направо, под ней проявляется заливка, точка «сейчас» пульсирует */
.chart-live {
  position: absolute;
  left: 32px; top: 352px;
  z-index: 3;
  width: 338px;
  height: 120px;
  overflow: visible;
}
.chart-live__line { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.chart-live__area { opacity: 0; }
.chart-live__dot, .chart-live__pulse { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.chart-live.is-drawn .chart-live__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.33, 0, 0.2, 1); }
.chart-live.is-drawn .chart-live__area { opacity: 1; transition: opacity 0.8s var(--ease) 0.9s; }
.chart-live.is-drawn .chart-live__dot { transform: scale(1); transition: transform 0.45s var(--spring) 1.5s; }
.chart-live.is-drawn .chart-live__pulse { animation: chart-pulse 1.8s ease-out 1.9s infinite; }
@keyframes chart-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-live__line { stroke-dashoffset: 0; }
  .chart-live__area { opacity: 1; }
  .chart-live__dot { transform: scale(1); }
}

/* Подсветка ленты «Ваш ход» */
.shot { position: absolute; inset: 0; }
.spotlight {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  border-radius: 26px;
  box-shadow: 0 0 0 1200px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.15s;
}
.shot.is-active .spotlight { opacity: 1; }

/* «Я оплатил» поверх такой же кнопки на картинке */
.overlay-btn {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.morph-btn { overflow: hidden; transition: background-color 0.35s, color 0.35s; }
.morph-btn__label, .morph-btn__spin, .morph-btn__done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.4s var(--spring);
}
.morph-btn__spin, .morph-btn__done { opacity: 0; transform: scale(0.5); }
.morph-btn__spin { width: 20px; height: 20px; border-radius: 50%; border: 2.4px solid rgba(0, 0, 0, 0.15); border-top-color: #000; }
.morph-btn__done svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.morph-btn[data-state="busy"] .morph-btn__label { opacity: 0; transform: scale(0.7); }
.morph-btn[data-state="busy"] .morph-btn__spin { opacity: 1; transform: none; animation: spin 0.8s linear infinite; }
.morph-btn[data-state="done"] { background: #30d158; color: #000; }
.morph-btn[data-state="done"] .morph-btn__label { opacity: 0; transform: scale(0.7); }
.morph-btn[data-state="done"] .morph-btn__done { opacity: 1; transform: none; }
.morph-btn[data-state="done"] .morph-btn__done svg { stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s var(--ease) 0.1s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   3 · Чаты (Sketch: телефон 480×587 r28, шаги 568×182 r24, номер в чёрном круге)
   ============================================================ */

.story {
  display: grid;
  grid-template-columns: 480fr 568fr;
  gap: 32px 32px;
  align-items: start;
}
.story__device {
  display: flex;
  justify-content: center;
  height: 587px;
  padding-top: 24px;
  overflow: hidden;
}
.story .shot { opacity: 0; transition: opacity 0.45s var(--ease); }
.story .shot.is-active { opacity: 1; }
.story__steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step:nth-child(2) { --d: 0.05s; }
.step:nth-child(3) { --d: 0.1s; }
.step__btn {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-height: 182px;
  padding: 28px 24px;
  border: 0;
  border-radius: var(--r-24);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.step__btn:hover { background: #ececf2; }
.step__btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--label); }
.step__index {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--label);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step__text { display: grid; gap: 8px; padding-top: 4px; }
.step__text strong { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.step__text span { color: var(--label-2); font-size: 15px; line-height: 1.47; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__device { height: 470px; }
  .step__btn { min-height: 0; padding: 20px; }
}
@media (max-width: 560px) {
  .story__device { height: 420px; padding-top: 20px; }
  .step__text strong { font-size: 17px; }
}

/* ============================================================
   4 · Экосистема Apple (2×2 карточки 524×334 r28, картинка сверху, текст снизу)
   ============================================================ */

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 32px; }
.card {
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
  border-radius: var(--r-28);
  background: var(--surface);
}
.card:nth-child(2) { --d: 0.05s; }
.card:nth-child(3) { --d: 0.05s; }
.card:nth-child(4) { --d: 0.1s; }
.card__visual { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 24px; overflow: hidden; }
.card__visual--island { padding-top: 16px; }
.card__visual--banners { align-items: stretch; padding: 24px 32px 0; }
.card__text { padding: 16px 32px 28px; }
.card__text h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.card__text p { margin-top: 6px; color: var(--label-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { height: auto; border-radius: 24px; }
  .card__visual { flex: none; height: 240px; }
  .card__text { padding: 14px 20px 22px; }
  .card__visual--banners { padding: 20px 16px 0; }
}


/* Dynamic Island по доске «B — Dynamic Island · несколько сделок»:
   minimal (рядом кольцо) → compact 230×36,67 → expanded 371×158.
   Стоит над островом рамки: (139, 14) от экрана, 124×36. */
.di-wrap { position: absolute; left: 225px; top: 37px; z-index: 3; transform: translateX(-50%); }
.di {
  position: relative;
  width: 124px; height: 36px;
  margin: 0 auto;
  border-radius: 18px;
  background: #000;
  color: #fff;
  overflow: hidden;
  transition: width 0.7s var(--spring), height 0.7s var(--spring), border-radius 0.7s var(--spring);
}
.di-wrap[data-state="compact"] .di { width: 230px; }
.di-wrap[data-state="expanded"] .di { width: 371px; height: 158px; border-radius: 44px; }
.di__minimal, .di__compact, .di__expanded { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; }
.di-wrap[data-state="minimal"] .di__minimal,
.di-wrap[data-state="compact"] .di__compact,
.di-wrap[data-state="expanded"] .di__expanded { opacity: 1; transition-delay: 0.2s; }
.di__minimal { display: flex; align-items: center; padding-left: 16px; }
.di__wave { display: flex; align-items: center; gap: 2px; height: 13px; }
.di__wave i { width: 2px; height: 100%; border-radius: 1px; background: rgba(255, 255, 255, 0.7); animation: wave 1s ease-in-out infinite alternate; }
.di__wave i:nth-child(2) { animation-delay: -0.3s; }
.di__wave i:nth-child(3) { animation-delay: -0.6s; }
.di__wave i:nth-child(4) { animation-delay: -0.15s; }
@keyframes wave { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.di__ring {
  position: absolute;
  top: 0; left: calc(100% + 6px);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #000;
  transition: opacity 0.25s, transform 0.5s var(--spring);
}
.di-wrap:not([data-state="minimal"]) .di__ring { opacity: 0; transform: scale(0.5) translateX(-40px); }
.di__ring svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.di__ring-bg { fill: none; stroke: rgba(10, 132, 255, 0.28); stroke-width: 3; }
.di__ring-fg { fill: none; stroke: var(--d-blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 30; }
.di__ring b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.di__compact { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 9px; }
.di__logos { display: flex; }
.di__logos .xl + .xl { margin-left: -6px; box-shadow: 0 0 0 2px #000; }
.di__time { color: #fff; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.di__time.is-warn { color: var(--d-orange); }
.di__time.is-red { color: var(--d-red); }
.di__expanded { display: grid; align-content: start; gap: 4px; padding: 14px 20px 0; min-width: 340px; text-align: left; }
.di__head { margin-bottom: 2px; color: var(--d-label-2); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.di__row { display: grid; grid-template-columns: 22px 1fr auto 52px; align-items: center; gap: 10px; }
.di__row strong { display: block; font-size: 14px; line-height: 17px; font-weight: 600; }
.di__row strong.is-blue { color: var(--d-blue); }
.di__row div span { display: block; color: var(--d-label-2); font-size: 11px; line-height: 14px; white-space: nowrap; }
.di__row .di__time { text-align: right; font-size: 15px; }
.dots { display: flex; align-items: center; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--d-gray-3); }
.dots i.on { width: 9px; height: 9px; background: var(--d-blue); }
.dots i.done { background: var(--d-blue); }
/* Условные знаки бирж в HTML-острове: квадрат цвета биржи, не логотип */
.xl { position: relative; flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 6px; }
.xl--binance { background: var(--binance); }
.xl--binance::after { content: ""; position: absolute; inset: 7px; border-radius: 1px; background: #000; transform: rotate(45deg); }
.xl--bybit { background: #111; box-shadow: inset 0 0 0 1px #3a3a3c; }
.xl--bybit::after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; border-radius: 1px; background: var(--bybit); }

/* Уведомления */
.banner {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  line-height: 1.3;
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease), opacity 0.45s;
}
.banner div { display: grid; min-width: 0; }
.banner strong { font-weight: 600; }
.banner span { color: var(--label-2); }
.banner time { color: var(--label-3); font-size: 13px; }
.banner__icon { width: 38px; height: 38px; border-radius: 9px; }
.banner[data-pos="0"] { z-index: 3; transform: none; opacity: 1; }
.banner[data-pos="1"] { z-index: 2; transform: translateY(90px) scale(0.96); opacity: 0.8; }
.banner[data-pos="2"] { z-index: 1; transform: translateY(166px) scale(0.92); opacity: 0.5; }
.banner[data-pos="enter"] { z-index: 4; transform: translateY(-30px) scale(0.96); opacity: 0; transition: none; }

/* Уведомления внутри карточки: стопка во всю ширину */
.banner-stack { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }

/* ============================================================
   5 · Автоотметка (две карточки 524×527 r28: настройки слева, ордер справа)
   ============================================================ */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pair > .panel { min-height: 527px; }
.pair > .panel:nth-child(2) { --d: 0.05s; }
.panel--device { display: flex; justify-content: center; align-items: flex-start; padding-top: 32px; overflow: hidden; height: 527px; }
.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.rules li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-content: start;
}
.rules li::before {
  content: "";
  grid-row: span 2;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.4' fill='none' stroke='%231f7a35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.rules strong { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.rules span { margin-top: 2px; color: var(--label-2); font-size: 14px; line-height: 1.45; }
.rules ~ .center { margin-top: 32px; }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; gap: 16px; }
  .pair > .panel { min-height: 0; }
  .panel--device { height: 460px; }
  .rules { grid-template-columns: 1fr; }
}

/* ============================================================
   6 · Рынок: две книги объявлений (панель 1080×547 r28, книги 492×425 r20,
   строки 460×77 r14 #F8F8FA, фильтры 41 r20)
   ============================================================ */

.market__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.book { padding: 16px; border-radius: var(--r-20); background: var(--card); }
.book__head { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px 8px; }
.book__head strong { font-size: 15px; font-weight: 600; }
.book__best { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(52, 199, 89, 0.14); color: var(--pill-green); font-size: 12px; font-weight: 600; }
.book__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 77px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  transition: background-color 0.4s;
}
.ad.is-fresh { background: rgba(52, 199, 89, 0.1); }
/* M3 (website.17): изменившаяся цена входит снизу (рост) или сверху
   (падение), подсветка строки гаснет до обычной */
.ad.is-fresh[data-dir] { animation: fresh-fade 1.6s var(--ease) both; }
.ad.is-fresh[data-dir] .ad__price b { display: inline-block; animation: tick-up 0.42s var(--ease) both; }
.ad.is-fresh[data-dir="down"] .ad__price b { animation-name: tick-down; }
@keyframes fresh-fade { from { background-color: rgba(52, 199, 89, 0.22); } to { background-color: rgba(52, 199, 89, 0.1); } }
@keyframes tick-up { from { opacity: 0; transform: translateY(0.7em); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tick-down { from { opacity: 0; transform: translateY(-0.7em); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.ad__who { display: grid; min-width: 0; }
.ad__who strong { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ad__who span { color: var(--label-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ad__price { display: grid; justify-items: end; }
.ad__price b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ad__price span { color: var(--label-2); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad:first-child .ad__price b { color: var(--money-up); }
.market .fine { margin-top: 20px; }
@media (max-width: 900px) { .books { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 560px) {
  .book { padding: 12px; }
  .ad { padding: 12px; }
  .market__controls .seg { width: 100%; }
}

/* ============================================================
   7 · Арбитраж (панель 1080 r28, ноги 460×263 r20, стрелка 40 r20,
   итог 1000×111 r20 чёрный, цифра 30 pt #30D158)
   ============================================================ */

.arb__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.arb__note { color: rgba(0, 0, 0, 0.8); font-size: 15px; font-weight: 500; }
.arb__legs { display: grid; grid-template-columns: 1fr 132px 1fr; align-items: stretch; }
.leg {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px;
  border-radius: var(--r-20);
  background: var(--card);
}
.leg__tag { justify-self: start; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; font-weight: 600; line-height: 26px; }
.leg__tag--bybit { background: rgba(247, 166, 0, 0.12); color: var(--pill-yellow); }
.leg__tag--binance { background: rgba(240, 185, 11, 0.12); color: var(--pill-yellow); }
.leg__title { margin-top: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.leg__sub { color: var(--label-2); font-size: 14px; transition: color 0.3s; }
.leg__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
}
.leg__sum span { color: var(--label-2); }
.leg__sum b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.leg__sum--up { background: rgba(52, 199, 89, 0.08); }
.leg__sum--up span, .leg__sum--up b { color: var(--money-up); }
.arb__transfer { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 0 4px; text-align: center; }
.arb__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--label); color: #fff; font-size: 18px; }
.arb__fee { display: grid; gap: 2px; }
.arb__fee b { color: var(--red); font-size: 13px; font-weight: 600; white-space: nowrap; }
.arb__fee span { color: var(--label-2); font-size: 11px; line-height: 1.3; }
.profit {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 48px;
  margin-top: 24px;
  padding: 24px 36px;
  border-radius: var(--r-20);
  background: #000;
  color: #fff;
}
.profit__main { display: grid; gap: 4px; }
.profit__main > span { font-size: 16px; font-weight: 500; }
.profit__main strong { color: var(--d-green); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profit__main em { font-style: normal; }
.profit__checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.86); font-size: 13px; }
.profit__checks li { display: flex; gap: 8px; }
.profit__checks li::before { content: "✓"; color: var(--d-green); font-weight: 700; }
.arb__warn { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 141, 40, 0.12); animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.arb__warn[hidden] { display: none; }
.arb__warn strong { color: var(--warn-text); font-size: 15px; }
.arb__warn span { color: var(--label-2); font-size: 13px; }
[data-arb][data-rail="mixed"] [data-arb-rail] { color: var(--warn-text); }
[data-arb][data-rail="mixed"] .profit__main strong { color: rgba(255, 255, 255, 0.4); }
@keyframes shake { 20%, 80% { transform: translateX(2px); } 40%, 60% { transform: translateX(-3px); } }
@media (max-width: 900px) {
  .arb__legs { grid-template-columns: 1fr; gap: 12px; }
  .arb__transfer { grid-template-columns: auto auto; justify-content: start; justify-items: start; padding: 0 8px; text-align: left; }
  .arb__arrow { transform: rotate(90deg); }
  .profit { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 560px) {
  .leg { padding: 18px; }
  .profit__main strong { font-size: 26px; white-space: normal; }
}

/* ============================================================
   8 · Тарифы (1 карточка P2P PRO 420×auto r24, чёрная, рамка 2 #34C759;
   цена 30 pt; кнопка через 24 px после списка)
   ============================================================ */

.plans { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; gap: 21px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--r-24);
  background: var(--surface);
}
.plan h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { margin-top: 10px; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { margin-top: 4px; color: var(--label-2); font-size: 12px; }
.plan ul { display: grid; gap: 10px; margin: 24px 0 24px; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.plan li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.plan li::before { content: "✓"; font-weight: 600; }
.plan__cta { width: 100%; }
.plan--pro { background: #000; color: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.plan--pro .plan__per { color: rgba(255, 255, 255, 0.6); }
.plan--pro li::before { color: var(--d-green); }
.plan__badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 11px;
  background: var(--green);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { min-height: 0; }
}

/* ============================================================
   9 · Безопасность (карточки r24, иконка в белом круге 52)
   ============================================================ */

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 21px; }
.sec-card { display: grid; align-content: start; gap: 8px; padding: 28px 24px; border-radius: var(--r-24); background: var(--surface); }
.sec-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--card); }
.sec-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sec-card p { color: var(--label-2); font-size: 14px; line-height: 1.47; }
.sec-card:nth-child(2) { --d: 0.05s; }
.sec-card:nth-child(3) { --d: 0.1s; }
.sec-card:nth-child(4) { --d: 0.15s; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; gap: 12px; }
  .sec-card { grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .sec-card__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}

/* ============================================================
   10 · Вопросы (пункты 1080×96 r20, вопрос 17 pt, ответ 14 pt)
   ============================================================ */

.faq { display: grid; gap: 14px; }
.acc { border-radius: var(--r-20); background: var(--surface); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 20px 32px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__chev { position: relative; flex: none; width: 20px; height: 20px; }
.acc__chev::before, .acc__chev::after { content: ""; position: absolute; left: 3px; top: 9px; width: 14px; height: 2px; border-radius: 2px; background: var(--label-2); transition: transform 0.35s var(--ease); }
.acc__chev::after { transform: rotate(90deg); }
.acc.is-open .acc__chev::after { transform: rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { max-width: 70ch; padding: 0 32px 22px; color: var(--label-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) {
  .acc summary { min-height: 60px; padding: 16px 18px; font-size: 16px; }
  .acc__body p { padding: 0 18px 18px; }
}

/* ============================================================
   11 · Скачать (1080×320 r32 чёрный; заголовок 40 pt, кнопка 240×56 r28 белая)
   ============================================================ */

.section--download { padding-top: 80px; }
.download {
  display: grid;
  justify-items: center;
  padding: 56px 32px 48px;
  border-radius: var(--r-32);
  background: #000;
  color: #fff;
  text-align: center;
}
.download__icon { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2); }
.download__title { max-width: 18em; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.download__lede { max-width: 36em; margin-top: 12px; color: rgba(255, 255, 255, 0.67); font-size: 18px; line-height: 1.45; }
.download__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.download__actions .btn--light { min-width: 240px; height: 56px; }
.download__fine { margin-top: 16px; color: rgba(255, 255, 255, 0.5); font-size: 13px; }
@media (max-width: 560px) {
  .download { padding: 40px 20px 32px; border-radius: 24px; }
  .download__title { font-size: 28px; }
  .download__lede { font-size: 16px; }
  .download > * { max-width: 100%; }
  .download__actions { width: 100%; }
  .download__actions .btn { width: 100%; min-width: 0; }
}
/* Длинные подписи («Wczesny dostęp do automatycznego…») переносятся, а не
   растягивают блок за край экрана */
@media (max-width: 560px) {
  .btn--large { height: auto; min-height: 54px; padding: 12px 20px; white-space: normal; text-align: center; line-height: 1.25; }
}

/* ============================================================
   12 · Подвал (линия, затем строка: © · ссылки · «Сделано для…», 13 pt)
   ============================================================ */

.footer { margin-top: 80px; color: rgba(0, 0, 0, 0.4); font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; }
.footer .wrap { padding: 28px 0 40px; border-top: 1px solid var(--sep); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.footer__nav a { color: rgba(0, 0, 0, 0.6); text-decoration: none; }
.footer__nav a:hover { color: var(--label); }
.footer__note { max-width: 90ch; margin-bottom: 18px; font-size: 12px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__legal { color: rgba(0, 0, 0, 0.6); }
@media (max-width: 560px) { .footer__row { flex-direction: column; } }

/* ---------- Автоотметка: настройки iOS в светлой теме ---------- */

/* ---------- Автоотметка: настройки iOS в светлой теме ---------- */

.settings { min-width: 0; }
.settings__group { border-radius: 26px; background: var(--card); }
.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;                       /* Lists/Rows/Large 402×68 */
  padding: 10px 16px;
}
.settings__row + .settings__row { border-top: 0.5px solid var(--sep); margin-left: 16px; padding-left: 0; }
.settings__row strong { display: block; font-size: 17px; font-weight: 400; }
.settings__row span { color: var(--label-2); font-size: 15px; }
.settings__row--slider { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 14px; }
.settings__row--slider output { color: var(--label-2); font-variant-numeric: tabular-nums; }
.settings__row--slider input, .slider-scale { grid-column: 1 / -1; }
.slider-scale { display: flex; justify-content: space-between; margin-top: -4px; color: var(--label-3); font-size: 12px; }

/* Toggles/Light 64×28, бегунок 38×24 */
.switch {
  position: relative;
  flex: none;
  width: 64px; height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  cursor: pointer;
  transition: background-color 0.25s;
}
.switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 38px; height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--spring);
}
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(22px); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 42.85%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0 var(--p), var(--fill-3) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--fill-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 24px; margin-top: -9px; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06); }
input[type="range"]::-moz-range-thumb { width: 38px; height: 24px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }

.timeline { margin: 24px 0 0; padding: 0 4px; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 18px; opacity: 0.4; transition: opacity 0.4s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--fill); }
.timeline li.is-done:not(:last-child)::after { background: var(--green); }
.timeline li.is-on { opacity: 1; }
.timeline li div { display: grid; }
.timeline li strong { font-size: 17px; font-weight: 600; }
.timeline li span { color: var(--label-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--fill); transition: background-color 0.3s, box-shadow 0.3s; }
.timeline li.is-on .timeline__dot { box-shadow: inset 0 0 0 2px var(--green); }
.timeline li.is-done .timeline__dot { background: var(--green); box-shadow: none; }
.timeline__dot svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.timeline li.is-done .timeline__dot svg { stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s var(--ease) 0.1s; }

/* ---------- Сегменты и фильтры ---------- */

.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill-3);
}
.seg button { position: relative; z-index: 1; padding: 0 16px; border: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg__pill {
  position: absolute;
  top: 3px; bottom: 3px; left: 0;
  width: var(--pw, 50%);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transform: translateX(var(--px, 3px));
  transition: transform 0.45s var(--spring), width 0.45s var(--spring);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--label-2);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--sep);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--label); }
.chip:active { transform: scale(0.96); }
.chip.is-on { background: var(--label); color: #fff; box-shadow: none; }
/* Фильтры рынка по макету: пара — чёрная, выбранный банк — синий контур */
.chip { height: 36px; padding: 0 16px; font-size: 14px; }
.chip.is-on { background: rgba(0, 136, 255, 0.12); color: var(--pill-blue); box-shadow: inset 0 0 0 1px var(--blue); }
.chip--static { display: inline-flex; align-items: center; background: var(--label); color: #fff; box-shadow: none; cursor: default; }
.chip--static:hover { color: #fff; }
.seg { background: rgba(118, 118, 128, 0.14); }

/* Number pop-in */
.digits { display: inline-flex; font-variant-numeric: tabular-nums; }
.digit { display: inline-block; }
.digit.is-pop { animation: digit-pop 0.5s var(--spring) both; animation-delay: calc(var(--n, 0) * 35ms); }
.digit.is-pop.up { --from: 0.3em; }
.digit.is-pop.down { --from: -0.3em; }
@keyframes digit-pop { 0% { opacity: 0; transform: translateY(var(--from, 0.3em)); } 100% { opacity: 1; transform: none; } }

.spin-counter { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: bottom; }
.reel { display: inline-flex; flex-direction: column; transition: transform 1.4s var(--ease); transition-delay: calc(var(--n, 0) * 80ms); }
.reel span { height: 1em; }

/* ---------- Уменьшение движения ---------- */

/* ---------- Уменьшение движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-lines-reveal] .line { opacity: 1; transform: none; }
  .js .hero__title .line > span, .js .stage, .ad.is-fresh[data-dir], .ad.is-fresh[data-dir] .ad__price b { animation: none; }
  .push { transition: none; }
}
