/*
 * Зона fees+calculator+exchange: /fees/ (макет PgFees), /exchange/ (PgSwap),
 * /calculator/ (в той же стилистике, расчёт — как блок расчёта макета Site).
 *
 * Классы — с приставкой fs-; общий слой (r-*) — assets/r26.css. Цвета — только
 * токены r26, пары тёмная/светлая взяты из PgFees/PgFeesLight и PgSwap/PgSwapLight.
 *
 * box-sizing: у нас border-box на всём (site.css), в макете у <div>/<span> —
 * content-box. Где у элемента в макете И размер, И рамка/поля, размер здесь
 * пересчитан (min-height первого экрана, кнопка-переворот обмена).
 */

:root {
  --fs-green-bg: rgba(61, 214, 140, 0.12);
  --fs-dash: rgba(255, 255, 255, 0.14);
  --fs-pop: 0 30px 70px rgba(0, 0, 0, 0.5);
  --fs-tag-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  --fs-calc-in: #0F0F15;    /* подложка ввода и итога в блоке расчёта (макет Site) */
  --fs-pk: #1C1C26;
}
:root[data-theme="light"] {
  --fs-green-bg: rgba(23, 138, 80, 0.12);
  --fs-dash: rgba(21, 19, 31, 0.16);
  --fs-pop: 0 30px 70px rgba(21, 19, 31, 0.12);
  --fs-calc-in: #F4F3F7;
  --fs-pk: #E4E2EC;
}
/* Тень главной кнопки в светлой теме макета — 0.25 (в общем слое — 0.35). */
:root[data-theme="light"] .fs-btns .r-btn:not(.r-btn--ghost) { box-shadow: 0 12px 30px rgba(91, 63, 235, 0.25); }

.fs-green { color: var(--r-green); }
.fs-rel { position: relative; }

/* ══ Секции ══════════════════════════════════════════════════════════════ */
.fs-top { padding-top: 12px; }
.fs-sec { padding-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.fs-sec--56 { padding-top: 56px; }
.fs-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.fs-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fs-btns { padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.fs-btns .r-btn svg { flex: none; }
[dir="rtl"] .fs-btns .r-btn svg { transform: scaleX(-1); }

/* ══ Первый экран ════════════════════════════════════════════════════════ */
.fs-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
  padding: 40px 56px; min-height: 602px; /* 520 + поля + рамка: в макете content-box */
}
.fs-hero--swap { min-height: 642px; }
.fs-glow {
  position: absolute; inset-inline-end: -120px; top: -160px; width: 720px; height: 720px; border-radius: 999px;
  background: radial-gradient(circle, var(--r-glow) 0%, rgba(91, 63, 235, 0) 62%); pointer-events: none;
}
.fs-hero-txt { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fs-h1 { font-size: clamp(34px, 4.4vw + 4px, 60px); line-height: 1.02; text-wrap: wrap; }
/* В макете заголовки переносятся обычно (в общем слое — balance). */
.fs-head .r-h2, .fs-rate .r-h2, .fs-combo .r-h2 { text-wrap: wrap; }
.fs-hero .r-lead { font-size: 18px; max-width: 540px; }
.fs-hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; min-width: 0; }

/* Тарифы: чаша с монетами и две плашки поверх. */
.fs-bowl { position: relative; width: 100%; display: flex; justify-content: center; }
.fs-bowl img { width: 440px; height: 440px; max-width: 100%; object-fit: contain; }
.fs-tag {
  position: absolute; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--fs-tag-shadow);
}
.fs-tag--a { inset-inline-start: 0; top: 40px; }
.fs-tag--b { inset-inline-end: 6px; bottom: 50px; background: var(--r-brand); border: none; color: #FFFFFF; box-shadow: 0 16px 36px rgba(91, 63, 235, 0.45); }
.fs-tag-v { font-size: 26px; font-weight: 800; }
.fs-tag-t { font-size: 12px; color: var(--r-muted); }
.fs-tag--b .fs-tag-t { color: inherit; opacity: 0.85; }

/* Обмен: окно обмена и орбита за ним. */
.fs-swap-wrap { position: relative; max-width: 100%; }
.fs-orbit { position: absolute; inset-inline-end: -80px; top: -70px; width: 260px; height: 260px; max-width: 100%; object-fit: contain; }
.fs-swap {
  position: relative; width: 446px; /* 400 + поля + рамка (content-box макета) */ max-width: 100%; box-sizing: border-box; padding: 22px; border-radius: 28px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--fs-pop);
  display: flex; flex-direction: column; gap: 10px;
}
.fs-swap-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fs-swap-t { font-size: 18px; font-weight: 800; }
.fs-timer { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--r-muted); }
.fs-timer svg { flex: none; }
.fs-ring { animation: fs-ring 20s linear infinite; }
@keyframes fs-ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -151; } }
.fs-leg { padding: 16px; border-radius: 20px; background: var(--r-bg); display: flex; flex-direction: column; gap: 8px; }
.fs-leg-k { font-size: 12px; font-weight: 700; color: var(--r-muted); }
.fs-leg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fs-leg-v { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-leg-f { font-size: 12px; color: var(--r-muted); }
.fs-pair {
  display: flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 6px 12px; border-radius: 999px;
  background: var(--r-raise); font-size: 14px; font-weight: 800; flex: none;
}
.fs-flip { display: flex; justify-content: center; margin: -22px 0; position: relative; z-index: 2; }
.fs-flip span {
  width: 50px; height: 50px; box-sizing: border-box; border-radius: 14px; background: var(--r-brand); color: #FFFFFF;
  border: 4px solid var(--r-surface-3); display: flex; align-items: center; justify-content: center;
}
.fs-swap-btn {
  height: 52px; border-radius: 16px; background: var(--r-brand); color: #FFFFFF; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 4px;
}

/* Значок монеты (кружок с буквой — как в макете). */
.fs-coin {
  width: 26px; height: 26px; flex: none; border-radius: 999px; background: var(--c); color: #FFFFFF;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.fs-coin--48 { width: 48px; height: 48px; font-size: 21px; }
.fs-coin--64 { width: 64px; height: 64px; font-size: 28px; }

/* ══ Тарифы: плитки комиссий ═════════════════════════════════════════════ */
.fs-fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fs-fee { padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fs-fee--2 { grid-column: span 2; }
.fs-fee--4 { grid-column: span 4; }
.fs-fee-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fs-ic {
  width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--r-brand-tint); color: var(--r-link);
  display: flex; align-items: center; justify-content: center;
}
.fs-ic--green { background: var(--fs-green-bg); color: var(--r-green); }
.fs-ic--plain { width: 44px; height: 44px; border-radius: 14px; background: var(--r-fill-3); color: var(--r-text-2); }
.fs-badge { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--r-muted); text-transform: uppercase; text-align: end; }
.fs-badge--green { color: var(--r-green); }
.fs-fee-v { font-size: 52px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--r-text); }
.fs-fee-v.fs-green { color: var(--r-green); }
.fs-fee-v--big { font-size: 64px; }
.fs-fee-b { display: flex; flex-direction: column; gap: 4px; }
.fs-fee-t { font-size: 17px; font-weight: 800; }
.fs-fee-s { font-size: 14px; color: var(--r-muted); line-height: 1.45; }
.fs-more { align-self: flex-start; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--r-link); text-decoration: none; }
.fs-more:hover { color: var(--r-link-hover); }

/* Цены выпуска карты. */
.fs-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fs-plan { padding: 20px; display: flex; align-items: center; gap: 18px; min-width: 0; }
.fs-plan img { width: 120px; height: 91px; flex: none; object-fit: contain; }
.fs-plan-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fs-plan-n { font-size: 18px; font-weight: 800; }
.fs-plan-s { font-size: 13px; color: var(--r-muted); }
.fs-plan-p { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.fs-plan-p span { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--r-link); }
.fs-plan-p small { font-size: 12px; color: var(--r-muted); }

/* Комиссии третьих сторон — пунктирные плашки. */
.fs-third { display: flex; gap: 16px; }
.fs-dash {
  flex: 1; min-width: 0; display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 22px;
  background: var(--r-fill-1); border: 1px dashed var(--fs-dash);
}
.fs-dash-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-dash-t { font-size: 17px; font-weight: 800; }
.fs-dash-s { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* Пример на 1000 USDT. */
.fs-ex { padding: 44px 48px; display: flex; flex-direction: column; gap: 28px; }
.fs-glow--ex {
  inset-inline-end: auto; inset-inline-start: -200px; top: -260px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91, 63, 235, 0.25) 0%, rgba(91, 63, 235, 0) 62%);
}
.fs-chain { position: relative; display: flex; align-items: center; }
.fs-step {
  flex: 1; min-width: 0; padding: 22px; border-radius: 22px; background: var(--r-surface-3); border: 1px solid var(--r-line-2);
  display: flex; flex-direction: column; gap: 6px;
}
.fs-step--on { background: var(--r-brand); color: #FFFFFF; border-color: var(--r-brand); }
.fs-step-k { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--r-muted); text-transform: uppercase; }
.fs-step-v { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fs-step-t { font-size: 13px; color: var(--r-muted); }
.fs-step--on .fs-step-k { color: inherit; opacity: 0.8; }
.fs-step--on .fs-step-t { color: inherit; opacity: 0.85; }
.fs-arrow-sep { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fs-pill { font-size: 12px; font-weight: 800; color: var(--r-green); padding: 4px 9px; border-radius: 999px; background: var(--fs-green-bg); }
.fs-flow {
  width: 80px; height: 4px; border-radius: 999px;
  background-image: repeating-linear-gradient(90deg, var(--r-accent) 0 12px, var(--r-line-2) 12px 24px);
  animation: fs-flow 3s linear infinite;
}
@keyframes fs-flow { from { background-position: 0 0; } to { background-position: 48px 0; } }
[dir="rtl"] .fs-flow { animation-direction: reverse; }
.fs-res { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-res-it {
  padding: 22px 24px; border-radius: 22px; background: var(--r-surface-3); border: 1px solid var(--r-line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0;
}
.fs-res-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fs-res-t { font-size: 16px; font-weight: 800; }
.fs-res-s { font-size: 13px; color: var(--r-muted); }
.fs-res-v { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-ex-note { position: relative; font-size: 13px; color: var(--r-faint); }

/* ══ Частые вопросы (раскрывашки) ════════════════════════════════════════ */
.fs-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.fs-qa { display: flex; flex-direction: column; border-bottom: 1px solid var(--r-line-2); min-width: 0; }
.fs-qa-it { border-top: 1px solid var(--r-line-2); padding: 20px 0; display: block; }
.fs-qa-it summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.fs-qa-it summary::-webkit-details-marker { display: none; }
.fs-qa-q { font-size: 18px; font-weight: 800; }
.fs-qa-ic {
  width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--r-fill-3); color: var(--r-text-2);
  display: flex; align-items: center; justify-content: center; transition: background .16s ease;
}
.fs-qa-it[open] .fs-qa-ic { background: var(--r-brand); color: #FFFFFF; }
.fs-qa-it[open] .fs-qa-v { display: none; }
.fs-qa-it summary:hover .fs-qa-ic { color: var(--r-text); }
.fs-qa-it[open] summary:hover .fs-qa-ic { color: #FFFFFF; }
.fs-qa-it p { margin: 10px 0 0; font-size: 15px; color: var(--r-muted); line-height: 1.6; max-width: 760px; }

/* ══ Обмен: блоки ═══════════════════════════════════════════════════════ */
.fs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-zero { padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--r-brand); border: none; color: #FFFFFF; }
.fs-zero-k { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; opacity: 0.8; text-transform: uppercase; }
.fs-zero-v { font-size: 120px; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.fs-zero-t { font-size: 17px; line-height: 1.55; opacity: 0.9; max-width: 420px; }
.fs-rate { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.fs-rate-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fs-h2-36 { font-size: clamp(28px, 2vw + 8px, 36px); }
.fs-live { display: flex; align-items: center; gap: 12px; padding-top: 6px; font-size: 14px; font-weight: 800; }
.fs-live-dot { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--r-green); box-shadow: 0 0 12px rgba(61, 214, 140, 0.8); }
.fs-hourglass { width: 220px; height: 220px; max-width: 100%; object-fit: contain; }

.fs-assets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.fs-asset { padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.fs-asset-b { display: flex; flex-direction: column; gap: 2px; }
.fs-asset-n { font-size: 20px; font-weight: 800; }
.fs-asset-s { font-size: 13px; color: var(--r-muted); }

.fs-hows { display: flex; gap: 16px; }
.fs-how {
  flex: 1; min-width: 0; display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 22px;
  background: var(--r-surface); border: 1px solid var(--r-line);
}
.fs-how-n { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--r-accent); }
.fs-how-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-how-t { font-size: 18px; font-weight: 800; }
.fs-how-s { font-size: 14px; color: var(--r-muted); line-height: 1.5; }

.fs-combo { padding: 44px 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.fs-glow--combo { inset-inline-end: -160px; top: -200px; width: 640px; height: 640px; }
.fs-combo-txt { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fs-combo-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.fs-arr { flex: none; color: var(--r-accent); }
[dir="rtl"] .fs-arr { transform: scaleX(-1); }
.fs-combo-art img { width: 170px; height: 129px; flex: none; object-fit: contain; filter: saturate(1.15) brightness(1.08); transform: rotate(-6deg); }

/* ══ Калькулятор (/calculator/) ══════════════════════════════════════════
 * Тот же расчёт и те же id, что на главной (оживляет assets/site.js), в
 * раскладке блока расчёта макета Site: слева ввод, справа итог. */
.fs-calc-hero { min-height: 0; grid-template-columns: 1.3fr 0.7fr; padding: 44px 56px; }
.fs-calc-hero .r-lead { max-width: 640px; }
.fs-calc-h1 { font-size: clamp(32px, 3.4vw + 4px, 52px); line-height: 1.06; }
.fs-calc-art { min-height: 0; }
.fs-calc-art img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; }
.fs-how-s--lg { font-size: 15px; color: var(--r-text-2); line-height: 1.55; }
.fs-dash-s--lg { font-size: 15px; color: var(--r-text-2); }
.fs-calc { padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.fs-calc-in {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px;
  background: var(--fs-calc-in, var(--r-bg)); border: 1px solid var(--r-line); min-width: 0;
}
.fs-calc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fs-calc-t { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
#demo .live {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--r-green);
  background: var(--fs-green-bg); padding: 5px 10px; border-radius: 999px; font-style: normal; flex: none;
}
#demo .live i { width: 6px; height: 6px; border-radius: 999px; background: var(--r-green); display: block; }
.fs-calc-k { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--r-muted); text-transform: uppercase; }
.fs-calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fs-calc-top #rateNote { font-size: 12px; color: var(--r-faint); font-weight: 700; }
.fs-calc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2);
}
.fs-calc-row:focus-within { border-color: var(--r-brand-2); }
#demo #fromAmt {
  flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--r-text); padding: 0;
  font: 800 36px/1.2 var(--r-font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
#demo #fromAmt::-webkit-outer-spin-button, #demo #fromAmt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#demo .pk { position: relative; flex: none; }
#demo .pk-btn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; border: 0;
  background: var(--fs-pk); color: var(--r-text); font-size: 14px; font-weight: 800; cursor: pointer;
}
#demo .pk-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; min-width: 220px; max-height: 300px; overflow-y: auto;
  overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: var(--r-surface); border: 1px solid var(--r-line-2);
  box-shadow: var(--r-pop-shadow);
}
#demo .pk-item { color: var(--r-text-2); border-radius: 12px; }
#demo .pk-item:hover, #demo .pk-item.on { background: var(--r-hover); color: var(--r-text); }
.fs-amts { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-amt {
  height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--r-line-2); background: transparent;
  color: var(--r-text-2); font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
}
.fs-amt:hover { background: var(--r-hover); color: var(--r-text); }
.fs-amt.on { border-color: var(--r-brand); background: var(--r-brand); color: #FFFFFF; }
.fs-calc-foot { margin: auto 0 0; font-size: 12px; color: var(--r-faint); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fs-calc-foot b { color: var(--r-green); }
#demo .demo-err { margin: 0; font-size: 13px; color: var(--r-red); }
.fs-calc-out { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fs-out {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px;
  background: var(--fs-calc-in, var(--r-bg)); border: 1px solid var(--r-line-2); min-width: 0;
}
.fs-out--main { background: rgba(61, 214, 140, 0.08); border-color: rgba(61, 214, 140, 0.25); }
:root[data-theme="light"] .fs-out--main { background: rgba(23, 138, 80, 0.06); border-color: rgba(23, 138, 80, 0.25); }
.fs-out-ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--r-brand-tint); color: var(--r-link);
  display: flex; align-items: center; justify-content: center;
}
.fs-out--main .fs-out-ic { background: var(--fs-green-bg); color: var(--r-green); }
.fs-out-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fs-out-k { font-size: 16px; font-weight: 800; }
.fs-out-s { font-size: 13px; color: var(--r-muted); }
.fs-out-v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-out--main .fs-out-v { color: var(--r-green); }
.fs-calc-note { margin: 0; font-size: 12px; color: var(--r-faint); line-height: 1.5; }

/* Шаги расчёта, формула, таблица примеров, «не учитывает». */
.fs-steps4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fs-formula {
  display: flex; gap: 14px; align-items: center; padding: 22px 24px; border-radius: 20px; margin: 0;
  background: var(--r-brand-tint); font-size: 16px; font-weight: 700; color: var(--r-text); line-height: 1.5;
}
.fs-formula svg { flex: none; color: var(--r-link); }
.fs-tbl-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface); }
.fs-tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.fs-tbl th, .fs-tbl td { padding: 18px 22px; text-align: end; border-top: 1px solid var(--r-line); white-space: nowrap; }
.fs-tbl thead th { border-top: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--r-faint); text-transform: uppercase; }
.fs-tbl th:first-child { text-align: start; }
.fs-tbl tbody th { font-weight: 800; color: var(--r-text); }
.fs-tbl td { color: var(--r-text-2); }
.fs-tbl td:nth-child(3) { color: var(--r-green); font-weight: 800; }
.fs-small { margin: 0; font-size: 13px; color: var(--r-faint); line-height: 1.55; }
.fs-third--3 .fs-dash { flex: 1 1 0; }
.fs-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.fs-next a { padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--r-text); transition: border-color .16s ease; }
.fs-next a:hover { border-color: var(--r-brand-2); }
.fs-next b { font-size: 17px; font-weight: 800; line-height: 1.3; }
.fs-next span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }

/* ══ Движение ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .fs-ring, .fs-flow { animation: none; }
}

/* ══ Планшет и телефон ═══════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .fs-assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fs-plans { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .fs-hero, .fs-hero--swap { grid-template-columns: 1fr; min-height: 0; padding: 32px 28px; gap: 28px; }
  .fs-hero-art { min-height: 0; }
  .fs-bowl img { width: 320px; height: 320px; }
  .fs-swap-wrap { padding-top: 30px; }
  .fs-orbit { top: -30px; inset-inline-end: -40px; width: 180px; height: 180px; }
  .fs-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-fee--4 { grid-column: span 2; }
  .fs-third { flex-direction: column; }
  .fs-faq { grid-template-columns: 1fr; gap: 24px; }
  .fs-duo { grid-template-columns: 1fr; }
  .fs-hows { flex-direction: column; }
  .fs-combo { grid-template-columns: 1fr; padding: 32px 28px; }
  .fs-ex { padding: 32px 28px; }
  .fs-calc-hero { padding: 32px 28px; grid-template-columns: 1fr; }
  .fs-calc-art img { width: 150px; height: 150px; }
  .fs-steps4 { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .fs-top { padding-top: 4px; }
  .fs-sec { padding-top: 36px; gap: 22px; }
  .fs-sec--56 { padding-top: 40px; }
  .fs-hero, .fs-hero--swap, .fs-calc-hero { padding: 26px 20px; gap: 22px; }
  .fs-hero-txt { gap: 14px; }
  .fs-hero .r-lead { font-size: 16px; }
  .fs-calc-art { display: none; }
  .fs-btns .r-btn { flex: 1 1 auto; }
  .fs-bowl img { width: 240px; height: 240px; }
  .fs-tag { padding: 10px 12px; border-radius: 14px; }
  .fs-tag-v { font-size: 20px; }
  .fs-tag--a { top: 16px; }
  .fs-tag--b { bottom: 16px; inset-inline-end: 0; }
  .fs-swap { padding: 16px; border-radius: 24px; }
  .fs-leg { padding: 14px; }
  .fs-leg-v { font-size: 26px; }
  .fs-orbit { width: 140px; height: 140px; top: -20px; inset-inline-end: -24px; }
  .fs-fee { padding: 22px; gap: 14px; }
  .fs-fee-v { font-size: 44px; }
  .fs-fee-v--big { font-size: 52px; }
  .fs-head-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .fs-plan { padding: 16px; gap: 14px; }
  .fs-plan img { width: 88px; height: 67px; }
  .fs-dash { padding: 20px; gap: 14px; }
  .fs-ex { padding: 26px 20px; gap: 22px; }
  .fs-chain { flex-direction: column; align-items: stretch; }
  .fs-arrow-sep { width: auto; flex-direction: row; justify-content: center; padding: 8px 0; }
  .fs-flow { width: 48px; }
  .fs-res { grid-template-columns: 1fr; }
  .fs-res-it { padding: 18px 20px; }
  .fs-res-v, .fs-step-v { font-size: 28px; }
  .fs-qa-q { font-size: 16px; }
  .fs-zero, .fs-rate { padding: 28px 22px; }
  .fs-zero-v { font-size: 88px; }
  .fs-rate { grid-template-columns: 1fr; }
  .fs-hourglass { width: 130px; height: 130px; justify-self: center; }
  .fs-assets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fs-asset { padding: 14px; gap: 10px; }
  .fs-asset .fs-coin--48 { width: 40px; height: 40px; font-size: 18px; }
  .fs-asset-n { font-size: 17px; }
  .fs-asset-s { font-size: 12px; }
  .fs-how { padding: 20px; }
  .fs-how-n { font-size: 36px; }
  .fs-combo { padding: 26px 20px; gap: 24px; }
  .fs-combo-art { gap: 8px; }
  .fs-combo-art .fs-coin--64 { width: 48px; height: 48px; font-size: 21px; }
  .fs-arr { width: 26px; }
  .fs-combo-art img { width: 110px; height: 84px; }
  .fs-calc { padding: 14px; gap: 14px; }
  .fs-calc-in { padding: 18px; }
  #demo #fromAmt { font-size: 30px; }
  .fs-out { padding: 16px; gap: 12px; }
  .fs-out-ic { width: 40px; height: 40px; }
  .fs-out-v { font-size: 22px; }
  .fs-tbl th, .fs-tbl td { padding: 14px 14px; font-size: 14px; }
  .fs-formula { padding: 18px 20px; font-size: 15px; }
}
@media (max-width: 559px) {
  .fs-tbl th, .fs-tbl td { padding: 12px 10px; font-size: 13px; }
  .fs-tbl thead th { font-size: 10px; letter-spacing: 0.06em; white-space: normal; vertical-align: bottom; }
  .fs-fees { grid-template-columns: 1fr; }
  .fs-fee--2, .fs-fee--4 { grid-column: auto; }
}
@media (max-width: 359px) {
  .fs-hero, .fs-hero--swap, .fs-calc-hero { padding: 22px 16px; }
  .fs-btns .r-btn { padding: 0 16px; }
  .fs-leg-v { font-size: 22px; }
  .fs-pair { font-size: 13px; }
  .fs-timer { font-size: 11px; }
  .fs-plan img { width: 64px; height: 49px; }
  .fs-plan-p span { font-size: 24px; }
  .fs-zero-v { font-size: 72px; }
  .fs-asset { padding: 12px; }
  .fs-asset-s { font-size: 11px; }
  .fs-res-it { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fs-out { flex-wrap: wrap; }
  .fs-out-v { font-size: 20px; }
  .fs-calc-in { padding: 14px; }
}
