/* ═══════════════════════════════════════════
   Changecript — design system
   ═══════════════════════════════════════════ */

:root {
  --bg:            #060814;
  --bg-soft:       #0B0F20;
  --surface:       rgba(255, 255, 255, .04);
  --surface-2:     rgba(255, 255, 255, .06);
  --stroke:        rgba(255, 255, 255, .09);
  --stroke-strong: rgba(255, 255, 255, .16);

  --text:          #EEF1FA;
  --text-dim:      #A2AAC4;
  --text-faint:    #6E7896;

  --violet:        #7C5CFF;
  --cyan:          #22D3EE;
  --mint:          #34E5A5;
  --amber:         #FFB13B;
  --danger:        #FF5F6D;

  --grad:          linear-gradient(115deg, #7C5CFF 0%, #22D3EE 55%, #34E5A5 100%);
  --grad-soft:     linear-gradient(115deg, rgba(124, 92, 255, .18), rgba(52, 229, 165, .12));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 90px -30px rgba(19, 8, 60, .95);

  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clip, в отличие от hidden, не создаёт прокручиваемую область: страницу
     нельзя утянуть вбок, даже если декоративное свечение вылезло за край. */
  overflow-x: clip;
  /* Длинные адреса и e-mail на узком экране переносятся, а не растягивают страницу. */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: rgba(124, 92, 255, .4); }

/* ── Скроллбар ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); }

/* ═══════════ Layout ═══════════ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 108px 0; position: relative; }

.section__head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 16px;
}
.section__lead {
  color: var(--text-dim);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Градиент в заголовке медленно «плывёт» — оживляет первый экран. */
.grad {
  background: linear-gradient(115deg, #7C5CFF, #22D3EE, #34E5A5, #22D3EE, #7C5CFF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 12s ease-in-out infinite;
}
@keyframes gradShift {
  50% { background-position: 100% 0; }
}

.muted { color: var(--text-faint); font-weight: 500; }

/* ═══════════ Фон ═══════════ */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Смещение задаёт JS по позиции курсора — лёгкий параллакс. */
  --px: 0px;
  --py: 0px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .5;
  translate: var(--px) var(--py);
  transition: translate 1.2s var(--ease);
}
.blob--1 {
  width: 620px; height: 620px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, #6D3BFF, transparent 68%);
  animation: drift 24s var(--ease) infinite alternate;
}
.blob--2 {
  width: 540px; height: 540px;
  top: 6%; right: -180px;
  background: radial-gradient(circle, #0E8F9E, transparent 68%);
  animation: drift 30s var(--ease) infinite alternate-reverse;
}
.blob--3 {
  width: 700px; height: 700px;
  bottom: -320px; left: 32%;
  background: radial-gradient(circle, #1E3A8A, transparent 70%);
  opacity: .38;
  animation: drift 36s var(--ease) infinite alternate;
}
/* Плёнка шума: убирает «пластиковость» больших градиентных заливок. */
.noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 70px, 0) scale(1.16); }
}

/* ═══════════ Индикатор прокрутки ═══════════ */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 14px rgba(124, 92, 255, .8);
}

/* ═══════════ Кнопки ═══════════ */

.btn {
  --btn-py: 13px;
  --btn-px: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--grad);
  background-size: 180% 100%;
  color: #060814;
  box-shadow: 0 12px 34px -12px rgba(124, 92, 255, .8);
}
.btn--primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(52, 229, 165, .55);
}
/* Блик, пробегающий по кнопке при наведении. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  background-size: 240% 100%;
  background-position: 140% 0;
  transition: background-position .7s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { background-position: -40% 0; }

.btn--ghost {
  background: var(--surface);
  border-color: var(--stroke);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
}

.btn--tg {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(34, 158, 217, .9);
}
.btn--tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(34, 158, 217, .75);
}

/* Наличные — отдельная услуга, поэтому кнопка янтарная: не спорит с основным
   градиентом, но сразу читается как «не то же самое, что обмен на карту». */
.btn--cash {
  background: linear-gradient(135deg, #FFC65C, #FF9C2E);
  color: #1B1200;
  box-shadow: 0 12px 30px -12px rgba(255, 177, 59, .85);
}
.btn--cash:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(255, 177, 59, .7);
}

.btn--sm  { --btn-py: 9px;  --btn-px: 18px; font-size: 14px; }
.btn--lg  { --btn-py: 16px; --btn-px: 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ═══════════ Хедер ═══════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  padding: 10px 0;
  background: rgba(6, 8, 20, .78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--stroke);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #060814;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .9);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.logo__text span { color: var(--text-faint); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 2px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--grad);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
  color: #2AABEE;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover {
  background: rgba(42, 171, 238, .14);
  border-color: rgba(42, 171, 238, .5);
  transform: translateY(-2px);
}
.icon-btn svg { width: 19px; height: 19px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ═══════════ Hero ═══════════ */

.hero { padding: 56px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 64px;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--stroke);
  border-radius: 99px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(52, 229, 165, .18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(52, 229, 165, 0); }
}

.hero__title {
  margin: 26px 0 22px;
  font-size: clamp(38px, 5.6vw, 66px);
}
.hero__lead {
  max-width: 520px;
  font-size: 18px;
  color: var(--text-dim);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--stroke);
}
.stats__item dt {
  font-size: 13px;
  color: #8B93A8;
  font-weight: 600;
}
.stats__item dd {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -.03em;
}

/* ═══════════ Виджет обмена ═══════════ */

.exchange { position: relative; }
.exchange__glow {
  position: absolute;
  inset: -30px -20px 20px;
  background: var(--grad);
  filter: blur(70px);
  opacity: .22;
  border-radius: 50%;
}
.exchange__card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(19, 24, 48, .92), rgba(9, 12, 28, .95));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
}

/* Живая градиентная обводка: тонкая рамка из вращающегося конического градиента.
   Браузеры без @property покажут её статичной — верстка при этом не ломается. */
@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.exchange__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang),
    transparent 0 42%, #7C5CFF 58%, #22D3EE 72%, #34E5A5 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spinBorder 7s linear infinite;
  pointer-events: none;
}
@keyframes spinBorder { to { --ang: 360deg; } }

.exchange__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.exchange__head h2 { font-size: 20px; }

.rate-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(52, 229, 165, .3);
  border-radius: 99px;
  background: rgba(52, 229, 165, .1);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint);
  white-space: nowrap;
}
.rate-live__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52, 229, 165, .55);
  animation: pulse 2s ease-in-out infinite;
}

.field { position: relative; }
.field + .field, .field-row + .field { margin-top: 16px; }
.field-row > .field + .field { margin-top: 0; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.field__hint {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.field__error {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
  min-height: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--text-faint); font-weight: 500; }
.input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, .7);
  background: rgba(124, 92, 255, .06);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
}
.input.is-invalid {
  border-color: rgba(255, 95, 109, .7);
  box-shadow: 0 0 0 4px rgba(255, 95, 109, .12);
}

/* Блок «сумма + валюта» */
.money {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.money:focus-within {
  border-color: rgba(124, 92, 255, .7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
}
.money__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.money__input:focus { outline: none; }

/* Кастомный селект */
.select { position: relative; flex: none; }
.select__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.select__btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--stroke-strong); }
.select__ico {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--grad-soft);
  font-size: 13px;
  line-height: 1;
}
.select__ico svg { width: 100%; height: 100%; }

/* Логотипы банков приходят с разным фоном и пропорциями, поэтому каждый
   вписывается в общую белую плашку — набор выглядит единообразно. */
.bank-logo {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  background: #fff;
  border-radius: inherit;
}
.select__label { max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__chev {
  width: 15px; height: 15px;
  color: var(--text-faint);
  transition: transform .25s var(--ease);
}
.select.is-open .select__chev { transform: rotate(180deg); }

.select__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 262px;
  max-height: 336px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-md);
  background: rgba(13, 17, 36, .97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.select.is-open .select__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.select__opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  cursor: pointer;
  transition: background .16s var(--ease);
}
.select__opt:hover, .select__opt.is-sel { background: rgba(124, 92, 255, .17); }
.select__opt-ico {
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  overflow: hidden;
  background: var(--grad-soft);
  font-size: 14px;
}
.select__opt-ico svg { width: 100%; height: 100%; }
.select__opt-main { min-width: 0; }
.select__opt-name { font-size: 14px; font-weight: 700; }
.select__opt-sub { font-size: 11.5px; color: var(--text-faint); font-weight: 600; }

/* Разделитель с курсом */
.swap-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.swap-line::before, .swap-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}
.swap-line__rate {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 4px 12px;
  border: 1px solid var(--stroke);
  border-radius: 99px;
  background: var(--surface);
}

/* Чекбокс */
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 20px 0 4px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.check__box svg { width: 13px; height: 13px; }
.check input:checked + .check__box {
  background: var(--grad);
  border-color: transparent;
  color: #060814;
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.check__text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

#submitBtn { margin-top: 16px; }

.exchange__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.exchange__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
}
.exchange__trust svg { width: 16px; height: 16px; color: var(--mint); }

/* ═══════════ Тикер ═══════════ */

.ticker {
  position: relative;
  padding: 18px 0;
  border-block: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Отступ задаётся padding'ом, а не gap: тогда дубль набора ровно равен 50%
   ширины дорожки и цикл translateX(-50%) идёт без рывка. */
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 46px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker__sym { color: var(--text-dim); }
.ticker__val { letter-spacing: -.02em; }
.ticker__chg { font-size: 12.5px; font-weight: 700; }
.ticker__chg--up { color: var(--mint); }
.ticker__chg--down { color: var(--danger); }

/* ═══════════ Свет под курсором ═══════════ */

.tile, .step, .review, .faq__item { position: relative; }

.tile::after, .step::after, .review::after, .faq__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(124, 92, 255, .18), transparent 62%);
}
.tile:hover::after, .step:hover::after,
.review:hover::after, .faq__item:hover::after { opacity: 1; }

/* ═══════════ Шаги ═══════════ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: s;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}
.step:hover::before { opacity: 1; }
.step__num {
  display: block;
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 17.5px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* ═══════════ Bento ═══════════ */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.tile--wide { grid-column: span 2; }
.tile:hover {
  transform: translateY(-5px);
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}
.tile__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--mint);
}
.tile__ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; margin-bottom: 10px; }
.tile p { font-size: 14.5px; color: var(--text-dim); }
.tile__spark {
  margin-top: 22px;
  height: 60px;
  opacity: .85;
}
.tile__spark svg { width: 100%; height: 100%; }

/* ═══════════ Отзывы ═══════════ */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.review {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review:hover { transform: translateY(-5px); border-color: var(--stroke-strong); }
.review__stars { color: var(--amber); font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.review blockquote {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.62;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
}
.avatar {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--a) 26%, transparent);
  color: var(--a);
  font-weight: 800;
}

/* ═══════════ FAQ ═══════════ */

.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq__item[open] {
  border-color: rgba(124, 92, 255, .45);
  background: rgba(124, 92, 255, .07);
}
.faq__item summary {
  position: relative;
  padding: 19px 56px 19px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%; right: 22px;
  width: 11px; height: 11px;
  translate: 0 -50%;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  rotate: 45deg;
  transition: rotate .28s var(--ease), border-color .28s var(--ease);
}
.faq__item[open] summary::after {
  rotate: -135deg;
  border-color: var(--cyan);
}
.faq__body {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-dim);
  animation: fadeDown .3s var(--ease);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ═══════════ CTA ═══════════ */

.cta {
  position: relative;
  padding: 66px 32px;
  text-align: center;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(19, 24, 48, .9), rgba(9, 12, 28, .92));
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  top: -60%; left: 50%;
  width: 640px; height: 400px;
  translate: -50% 0;
  background: var(--grad);
  filter: blur(100px);
  opacity: .3;
}
.cta h2 {
  position: relative;
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 14px;
}
.cta p {
  position: relative;
  color: var(--text-dim);
  font-size: 17px;
}
.cta__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ═══════════ Футер ═══════════ */

.footer {
  padding: 66px 0 34px;
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .015);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  color: var(--text-faint);
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  width: fit-content;
}
.footer__col a:hover { color: var(--text); }
.footer__small { font-size: 12.5px; color: var(--text-faint); }

.footer__col .footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #45B6F0;
}
.footer__col .footer__tg:hover { color: #7FD0F7; }
.footer__col .footer__tg svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--stroke);
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer__disclaimer { max-width: 660px; line-height: 1.55; }

/* ═══════════ Модалка ═══════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, .78);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }

.modal__win {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  /* dvh учитывает адресную строку мобильных браузеров — иначе низ окна обрезается. */
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 36px 32px 30px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #141936, #0A0D1F);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: popIn .34s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
}
.modal__x {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.modal__x:hover { color: var(--text); background: var(--surface-2); }
.modal__x svg { width: 16px; height: 16px; }

.modal__ok {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #060814;
  box-shadow: 0 14px 36px -12px rgba(52, 229, 165, .8);
}
.modal__ok svg { width: 28px; height: 28px; }
.modal__win h3 { font-size: 22px; margin-bottom: 10px; }
.modal__lead { font-size: 14.5px; color: var(--text-dim); }

.summary {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
  text-align: left;
}
.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.summary__row + .summary__row {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.summary__row dt { color: var(--text-faint); font-weight: 600; }
.summary__row dd { margin: 0; font-weight: 800; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary__row dd.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.deposit { text-align: left; }
.deposit__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
}
.deposit__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
}
.deposit__row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  color: var(--cyan);
}

.timer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}
.timer strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ Плавающая кнопка поддержки ═══════════ */

.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 16px 40px -12px rgba(34, 158, 217, .9);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 24px 52px -14px rgba(34, 158, 217, .95);
}
.fab__ico { width: 21px; height: 21px; flex: none; }

/* Расходящееся кольцо — привлекает внимание к поддержке, но не мигает навязчиво. */
.fab__ping {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(42, 171, 238, .6);
  animation: ping 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ping {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Тост */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  z-index: 120;
  translate: -50% 0;
  padding: 12px 22px;
  border: 1px solid var(--stroke-strong);
  border-radius: 99px;
  background: rgba(13, 17, 36, .96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  animation: toastIn .3s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
}
.toast.is-out { opacity: 0; transform: translateY(14px); transition: .3s var(--ease); }

/* ═══════════ Reveal ═══════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ═══════════ Адаптив ═══════════ */

/* Везде minmax(0, 1fr), а не 1fr: у 1fr минимум равен min-content, поэтому
   широкое содержимое распирает колонку и вылезает за пределы экрана. */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .exchange { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 780px) {
  .section { padding: 76px 0; }
  html { scroll-padding-top: 80px; }

  .nav {
    position: fixed;
    inset: 68px 16px auto;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--stroke-strong);
    border-radius: var(--r-lg);
    background: rgba(10, 13, 31, .97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 15.5px; }
  .nav a.is-active::after { display: none; }
  .burger { display: block; }
  /* Меню становится fixed и выпадает из потока, поэтому его margin-left: auto
     перестаёт работать — прижимаем к правому краю сами кнопки. */
  .header__actions { margin-left: auto; }
  .header__actions .btn--primary { display: none; }

  /* На узких экранах кнопка поддержки — только иконка, чтобы не перекрывать контент. */
  .fab { right: 16px; bottom: 16px; padding: 14px; }
  .fab__text { display: none; }

  .hero { padding: 40px 0 24px; }
  .section__head { margin-bottom: 40px; }

  .exchange { max-width: none; }
  /* Свечение выходило на 20 px за края карточки и утягивало страницу вбок. */
  .exchange__glow { inset: -20px 14px 20px; filter: blur(55px); }
  .exchange__card { padding: 20px 18px; }
  .exchange__head { flex-wrap: wrap; }
  .money__input { font-size: 19px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }

  /* Меньше 16px iOS считает поводом увеличить страницу при фокусе — после
     этого макет остаётся «уехавшим», пока пользователь не отмасштабирует его сам. */
  .input { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: left; }
  .stats__item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stats__item dd { margin: 0; }

  .steps, .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--wide { grid-column: span 1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 48px 22px; }
  .modal__win { padding: 30px 20px 24px; }
  .select__menu { width: min(262px, calc(100vw - 72px)); }
}

/* Узкие телефоны: 360–430 px. Здесь начинает не хватать ширины строке
   «сумма + сеть» в калькуляторе, поэтому ужимаем отступы и селект. */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
  .header__inner { gap: 14px; }

  .hero { padding: 28px 0 18px; }
  /* Заголовок разбит на строки через <br>, поэтому размер привязан к ширине
     экрана: на 360 px строка «на российскую карту» иначе вылезает за край. */
  .hero__title { font-size: clamp(26px, 8vw, 34px); }
  .hero__lead { font-size: 16px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .stats { margin-top: 38px; padding-top: 26px; }

  .exchange__card { padding: 18px 14px; }
  .exchange__head h2 { font-size: 18px; }
  .money__input { font-size: 18px; padding: 10px 6px; }
  .select__btn { gap: 6px; padding: 8px 10px; }
  .select__label { max-width: 108px; }
  .select__ico { width: 24px; height: 24px; }

  .step, .tile, .review { padding: 22px 18px; }
  .faq__item summary { padding: 16px 46px 16px 18px; font-size: 15px; }
  .faq__item summary::after { right: 18px; }
  .faq__body { padding: 0 18px 18px; }
  .cta { padding: 40px 18px; }
  .cta__row .btn { width: 100%; }

  .modal { padding: 12px; }
  .modal__win { padding: 26px 18px 22px; max-height: calc(100dvh - 24px); }
  .summary { padding: 16px; }
  .summary__row { font-size: 13.5px; }

  /* Тост во всю ширину: по центру он на узком экране обрезался по краям. */
  .toast { left: 16px; right: 16px; translate: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .fab__ping { display: none; }
}
