/* Вёрстка повторяет образцы из docs/research (решение D20): числа сняты со снимков, тексты и графика свои. */
:root {
  --bg-dark: rgb(11, 12, 20);
  --bg-light: rgb(243, 244, 247);
  --bg-footer: #0d0d10;
  --card-dark: #16151d;
  --card-ink: #0d0c12;
  --panel-dark: #100f17;
  --panel-light: #f0f1f4;
  --line-dark: rgba(255, 255, 255, 0.05);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text-dark: #d2d1e1;
  --muted-dark: #8b90a7;
  --title-light: #0b0c14;
  --text-light: #26252a;
  --muted-light: #6e6d76;
  --grad-primary: linear-gradient(132.68deg, #5b62f7 0%, #3b2ed3 100%);
  --accent-solid: #453ced;
  --accent-solid-hover: #5247f5;
  --link-light: #5346ed;
  --link-dark: #7c74ff;
  --auth-primary: #5464ff;
  --auth-primary-hover: #4655f5;
  --positive: #00a63e;
  --negative: #fb2c36;
  --warning: #f5a524;
  --focus-ring: #9d97ff;
  --header-h: 70px;
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-ui: Inter, system-ui, sans-serif;
  --font-text: Montserrat, system-ui, sans-serif;
}

[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  font: 500 15px/18px var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked,
html.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
output {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.section--light,
.auth,
.lang__menu,
.mobile-menu__panel {
  --focus-ring: var(--accent-solid);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-solid);
  font: 600 15px/1 var(--font-ui);
  transition: top 160ms var(--ease-out-quart);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1088px, 100% - 48px);
  margin-inline: auto;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font: 600 15px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition:
    filter 150ms var(--ease-out-quart),
    transform 150ms var(--ease-out-quart),
    background-color 150ms var(--ease-out-quart);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.9);
}

.btn--primary {
  height: 52px;
  padding: 0 36px;
  border-radius: 15px;
  background: var(--grad-primary);
  color: #fff;
  font: 500 16px/16px var(--font-text);
}

.btn--secondary {
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 500 16px/16px var(--font-text);
}

/* Видимая высота 36 px, зона нажатия расширена до 44 px. */
.btn--login {
  position: relative;
  min-width: 160px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  background: var(--accent-solid);
  color: #fff;
  font: 600 14px/1 var(--font-ui);
}

.btn--login::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.btn--login:hover,
.btn--auth:hover {
  filter: none;
}

.btn--login:hover {
  background: var(--accent-solid-hover);
}

.btn--auth {
  height: 48px;
  background: var(--auth-primary);
  color: #fff;
}

.btn--auth:hover {
  background: var(--auth-primary-hover);
}

.btn--ghost {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.chip {
  position: relative;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: #8b8a90;
  font: 500 14px/1 var(--font-ui);
  cursor: pointer;
}

/* Зона нажатия 44 px: inset считается от padding-box (36 − 2 × 1 px рамки + 2 × 5). */
.chip::after {
  content: "";
  position: absolute;
  inset: -5px -1px;
}

.chip:hover {
  color: #fff;
}

.chip[aria-current="true"] {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin-left: -6px;
  border-radius: 10px;
}

.logo__word {
  font: 600 21px/1 var(--font-text);
  letter-spacing: -0.02em;
  color: #c9ccff;
  white-space: nowrap;
}

.logo__word b {
  font-weight: 800;
  color: #fff;
}

.logo--menu {
  margin-left: 0;
}

.logo--menu .logo__word {
  font-size: 19px;
  color: #5346ed;
}

.logo--menu .logo__word b {
  color: #0b0c14;
}

.logo--footer {
  margin-left: 0;
  gap: 12px;
}

.logo--footer .logo__word {
  font-size: 24px;
}

/* На узком телефоне текстовый логотип, язык и кнопка входа должны уместиться в одну строку. */
@media (max-width: 419px) {
  .header__inner .logo__word {
    font-size: 17px;
  }

  .lang__code {
    display: none;
  }
}

.nav {
  margin-left: 34px;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e1e0e6;
  font: 600 16px/24px var(--font-ui);
  transition: color 150ms var(--ease-out-quart);
}

.nav__list a:hover {
  color: #fff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang {
  position: relative;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8b8a93;
  cursor: pointer;
  transition: color 150ms var(--ease-out-quart);
}

.lang__button:hover {
  color: #fff;
}

.lang__code {
  font: 600 14px/1 var(--font-ui);
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lang__menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--title-light);
  font: 500 15px/1 var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.lang__menu button:hover {
  background: #f1f1f3;
}

.lang__menu button[aria-current="true"] {
  color: var(--accent-solid);
  font-weight: 600;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e1e0e6;
  cursor: pointer;
}

/* Мобильное меню: белая панель слева поверх затемнения */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  width: min(300px, 85vw);
  height: 100%;
  padding-bottom: 24px;
  background: #fff;
  color: #000;
  overflow-y: auto;
  animation: menu-in 280ms var(--ease-out-quart);
}

@keyframes menu-in {
  from {
    transform: translateX(-100%);
  }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 70px;
  padding: 0 10px 0 22px;
}

.mobile-menu__close {
  color: #71717a;
}

.mobile-menu__close:hover {
  background: #f1f1f3;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  color: #000;
  font: 600 16px/24px var(--font-ui);
}

.mobile-menu__list a:hover {
  background: #f4f4f5;
}

.mobile-menu__list svg {
  flex: none;
  color: #9f9fa9;
}

.mobile-menu__lang {
  margin: 12px 12px 0;
  padding: 20px 10px 0;
  border-top: 1px solid #e4e4e7;
}

.mobile-menu__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-light);
  font: 500 13px/18px var(--font-ui);
}

.mobile-menu__lang-row {
  display: flex;
  gap: 8px;
}

.mobile-menu .chip {
  border-color: #e4e4e7;
  color: #3f3f46;
}

.mobile-menu .chip[aria-current="true"] {
  border-color: transparent;
  background: #f1f1f3;
  color: #000;
}

/* Первый экран. --hero-top держит полосу калькулятора над нижним краем окна 1280×720
   и сдвигает панели вместе с блоком, чтобы они не заходили на заголовок. */
.hero {
  --hero-top: max(96px, min(240px, 100svh - 480px));
  position: relative;
  min-height: 800px;
  padding: var(--hero-top) 0 64px;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 100%;
  color: #fff;
  font: 600 clamp(38px, 7vw, 72px) / 1.11 var(--font-text);
  letter-spacing: -0.025em;
  animation: rise 600ms var(--ease-out-quart) 100ms both;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero__title {
    background: linear-gradient(90deg, #d5daff 0%, #fff 55%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero__subtitle {
  margin-top: 16px;
  color: #e4e7ff;
  font: 500 clamp(16px, 3.3vw, 34px) / 1.18 var(--font-text);
  animation: rise 600ms var(--ease-out-quart) 180ms both;
}

.hero__cta {
  margin-top: 32px;
  animation: rise 600ms var(--ease-out-quart) 260ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

/* Декоративные панели интерфейса по краям первого экрана */
.hero__panels {
  position: absolute;
  top: calc(var(--hero-top) - 240px);
  left: 0;
  right: 0;
  height: 830px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
}

.hp {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #13121a;
  color: var(--text-dark);
  font: 500 13px/18px var(--font-ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: panel-in-left 1000ms var(--ease-out-quart) both;
}

.hp--left {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%);
  mask-image: linear-gradient(90deg, transparent, #000 20%);
}

.hp--right {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 20%);
  mask-image: linear-gradient(270deg, transparent, #000 20%);
  animation-name: panel-in-right;
}

@keyframes panel-in-left {
  from {
    opacity: 0;
    translate: -48px 0;
  }
}

@keyframes panel-in-right {
  from {
    opacity: 0;
    translate: 48px 0;
  }
}

.hp--balances {
  left: -40px;
  top: -30px;
  width: 450px;
  height: 248px;
  padding-left: 58px;
  opacity: 0.3;
  transform: perspective(1400px) rotateY(16deg) rotateX(8deg) rotateZ(-2deg);
}

.hp--order {
  left: -60px;
  top: 270px;
  width: 290px;
  height: 235px;
  padding-left: 70px;
  opacity: 0.28;
  transform: perspective(1400px) rotateY(16deg) rotateX(8deg) rotateZ(-2deg);
  animation-delay: 120ms;
}

.hp--chart {
  left: -10px;
  top: 520px;
  width: 350px;
  height: 300px;
  padding-left: 30px;
  opacity: 0.32;
  transform: perspective(1400px) rotateZ(-4deg) rotateY(12deg);
  animation-delay: 240ms;
}

.hp--book {
  right: -10px;
  top: -30px;
  width: 410px;
  height: 255px;
  gap: 3px;
  padding-right: 30px;
  opacity: 0.3;
  transform: perspective(1400px) rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
}

.hp--candles {
  right: -60px;
  top: 275px;
  width: 290px;
  height: 255px;
  padding-right: 70px;
  opacity: 0.32;
  transform: perspective(1400px) rotateY(-22deg) rotateZ(4deg);
  animation-delay: 120ms;
}

.hp--list {
  right: -20px;
  top: 540px;
  width: 400px;
  height: 280px;
  gap: 6px;
  padding-right: 40px;
  opacity: 0.3;
  transform: perspective(1400px) rotateY(-12deg);
  animation-delay: 240ms;
}

.hp b {
  color: #fff;
  font-weight: 600;
}

.hp small {
  display: block;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 16px;
}

.hp em {
  font-style: normal;
  font-weight: 600;
}

.hp__up {
  color: rgb(0 166 62 / 0.7);
}

.hp__down {
  color: rgb(251 44 54 / 0.7);
}

.hp__accent {
  color: #8f8cff !important;
}

.hp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-dark);
}

.hp__asset {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 28px 28px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.hp__coin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font: 700 12px/1 var(--font-ui);
}

.hp__coin--usdt {
  background: #26a17b;
}

.hp__coin--btc {
  background: #f7931a;
}

.hp__coin--eth {
  background: #627eea;
}

.hp__name {
  color: #fff;
  font-weight: 600;
}

.hp__sum {
  color: #fff;
  text-align: right;
}

.hp__btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hp__help {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted-dark);
  border-radius: 50%;
  font-size: 11px;
}

.hp__seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.hp__seg span {
  padding: 7px 0;
  border-radius: 8px;
  color: var(--muted-dark);
  font-weight: 600;
  text-align: center;
}

.hp__seg .is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hp__field {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
}

.hp__field small {
  display: inline;
}

.hp__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hp__svg text {
  fill: var(--muted-dark);
  font: 500 10px var(--font-ui);
}

.hp__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 1px 6px;
}

.hp__cols > :not(:first-child) {
  text-align: right;
}

.hp__cols--head {
  padding-bottom: 6px;
  color: var(--muted-dark);
  font-size: 12px;
}

.hp__ask {
  background: linear-gradient(270deg, rgb(251 44 54 / 0.14) var(--d), transparent var(--d));
}

.hp__ask > :first-child {
  color: rgb(251 44 54 / 0.85);
}

.hp__bid {
  background: linear-gradient(270deg, rgb(0 166 62 / 0.14) var(--d), transparent var(--d));
}

.hp__bid > :first-child {
  color: rgb(0 166 62 / 0.85);
}

.hp__mid {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px;
  font-size: 18px;
  line-height: 24px;
}

.hp__mid small {
  display: inline;
}

.hp__pairhead {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.hp__pairhead .hp__sum {
  text-align: left;
}

.hp--list .hp__cols {
  grid-template-columns: 1.3fr 1fr 0.8fr;
  padding: 4px 0;
}

/* Шапку списка видно у строки курса под полосой, подписи верхних панелей срезает шапка сайта. */
.hp--list .hp__cols--head,
.hp--balances .hp__head,
.hp--book .hp__cols--head {
  visibility: hidden;
}

/* Калькулятор: от 1024 px — полоса под главной кнопкой, ниже — карточка */
.spot {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) minmax(0, 1fr) 204px;
  grid-template-areas:
    "switch give result cta"
    "error error rate rate";
  column-gap: 12px;
  row-gap: 20px;
  width: 100%;
  margin-top: 40px;
  padding: 12px 12px 0;
  text-align: left;
  /* backwards: после анимации у полосы не остаётся эффекта opacity, иначе backdrop-filter перестаёт размывать панели. */
  animation: rise 600ms var(--ease-out-quart) 340ms backwards;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(22, 21, 29, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.spot__switch {
  grid-area: switch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.spot__option {
  position: relative;
  display: flex;
  min-height: 44px;
}

.spot__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.spot__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 9px;
  color: var(--muted-dark);
  font: 600 15px/1 var(--font-ui);
  transition:
    background-color 150ms var(--ease-out-quart),
    color 150ms var(--ease-out-quart);
}

.spot__option:hover span {
  color: #fff;
}

.spot__option input:checked + span {
  color: #fff;
}

/* Темнее образца (#189F40 / #E5353F): белый текст 15 px требует контраста 4,5:1. */
.spot__option--buy input:checked + span {
  background: #13843a;
}

.spot__option--sell input:checked + span {
  background: #d42a35;
}

.spot__option input:focus-visible + span {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.spot__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 150ms var(--ease-out-quart),
    box-shadow 150ms var(--ease-out-quart);
}

.spot__row--give {
  grid-area: give;
}

.spot__row--result {
  grid-area: result;
}

.spot__row:focus-within {
  border-color: #5b5bf5;
  box-shadow: 0 0 0 3px rgba(91, 91, 245, 0.25);
}

.spot__row:has([aria-invalid="true"]) {
  border-color: #ff6b6b;
}

.spot__label {
  flex: none;
  color: var(--muted-dark);
  font: 500 14px/1 var(--font-ui);
  cursor: text;
}

.spot__input,
.spot__output {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 600 18px/24px var(--font-ui);
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: none;
}

.spot__input {
  align-self: stretch;
}

.spot__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.spot__output {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot__unit {
  flex: none;
  color: var(--muted-dark);
  font: 600 14px/1 var(--font-ui);
}

.spot__unit:empty {
  display: none;
}

.spot__input:disabled,
.spot__input:disabled ~ .spot__unit {
  opacity: 0.55;
}

.spot__error {
  grid-area: error;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: -8px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(11, 12, 20, 0.9);
  color: #ff6b6b;
  font: 500 13px/20px var(--font-ui);
}

.spot__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6b6b;
  color: var(--card-dark);
  font: 700 10px/1 var(--font-ui);
}

.spot__rate {
  grid-area: rate;
  justify-self: end;
  margin-right: -8px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(11, 12, 20, 0.9);
  color: var(--muted-dark);
  font: 500 13px/20px var(--font-ui);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.spot__rate[data-tone="warning"] {
  color: var(--warning);
}

.spot__cta {
  grid-area: cta;
  width: 100%;
}

/* Секции */
.section {
  padding: 120px 0;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-light);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 40px;
}

/* Логотип abcDEX над заголовками, как логотип над секциями у образца. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand--hero {
  margin-bottom: 16px;
  animation: rise 600ms var(--ease-out-quart) both;
}

.brand--hero .logo__word {
  font-size: 31px;
}

.brand--banner {
  gap: 6px;
}

.brand--banner .logo__word {
  font-size: 15px;
}

.section--light .logo__word {
  color: #5346ed;
}

.section--light .logo__word b {
  color: #0b0c14;
}

/* Баннер тёмный внутри светлой секции. */
.section--light .banner .logo__word {
  color: #c9ccff;
}

.section--light .banner .logo__word b {
  color: #fff;
}

@media (min-width: 1024px) {
  /* Логотип занимает место над заголовком и не сдвигает заголовок, полосу калькулятора и панели. */
  .brand--hero {
    margin-top: -52px;
  }
}

.section__title {
  color: #fff;
  font: 700 45px/52px var(--font-text);
}

.section--light .section__title {
  color: var(--title-light);
}

main {
  overflow-x: clip;
}

/* Карточки */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 50px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: var(--text-light);
}

.card--dark {
  border: 1px solid var(--line-dark);
  background: var(--card-dark);
  color: var(--text-dark);
}

.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card__title {
  color: var(--title-light);
  font: 600 30px/36px var(--font-text);
}

.card__text {
  max-width: 420px;
  margin-top: 16px;
  color: var(--text-light);
  font: 500 15px/18px var(--font-text);
}

.card__note {
  margin-top: 12px;
  color: var(--muted-dark);
  font: 500 13px/18px var(--font-text);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--link-light);
  font: 600 15px/20px var(--font-text);
}

.card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card--dark .card__title,
.card--ruble .card__title {
  color: #fff;
}

.card--dark .card__text,
.card--ruble .card__text {
  color: var(--text-dark);
}

.card--dark .card__link,
.card--ruble .card__link {
  color: var(--link-dark);
}

.card__img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

/* Пополнение и вывод */
.funding__grid {
  display: grid;
  grid-template-columns: minmax(0, 315fr) minmax(0, 753fr);
  grid-template-areas:
    "sbp sbp"
    "cards crypto"
    "cards ruble";
  gap: 20px;
}

.card--sbp {
  grid-area: sbp;
  min-height: 361px;
  padding: 60px 50px;
}

.card--sbp .card__title {
  max-width: 420px;
}

.sbp {
  position: absolute;
  top: 68px;
  right: 10px;
  width: 350px;
  height: 225px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-light);
}

.sbp__sheet {
  position: absolute;
  left: 40px;
  top: 35px;
  width: 310px;
  height: 230px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 12, 20, 0.05);
  font-family: var(--font-ui);
}

.sbp__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--title-light);
  font: 600 17px/24px var(--font-ui);
}

.sbp__rows {
  margin-top: 14px;
}

.sbp__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #f1f1f3;
}

.sbp__rows dt {
  color: var(--muted-light);
  font: 500 13px/18px var(--font-ui);
}

.sbp__rows dd {
  color: var(--title-light);
  font: 600 15px/20px var(--font-ui);
}

.sbp__ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sbp__ok::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
}

.card--cards {
  grid-area: cards;
  align-self: start;
  min-height: 440px;
}

.card--cards .card__img {
  right: -56px;
  bottom: -28px;
  width: 340px;
}

.card--crypto {
  grid-area: crypto;
  min-height: 256px;
}

.card--crypto .card__img {
  right: -20px;
  bottom: -36px;
  width: 330px;
}

.card--ruble {
  grid-area: ruble;
  min-height: 316px;
  overflow: visible;
  background: var(--card-ink);
  color: var(--text-dark);
  --focus-ring: #9d97ff;
}

.card--ruble .card__body {
  max-width: 320px;
}

.card--ruble .card__img {
  right: -20px;
  bottom: -34px;
  /* Левый край не заходит в колонку текста (50 + 320 px), когда карточка уже 753 px (1024–1135). */
  width: min(400px, 100% - 360px);
}

/* Спот и P2P */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card--product {
  min-height: 660px;
  padding: 13px 13px 40px;
}

.card__panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.card--product .card__panel {
  height: 365px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--panel-dark);
}

.card--product .card__panel .card__img {
  position: static;
  width: 100%;
  max-width: 508px;
}

.card--product .card__body {
  flex: 1 1 auto;
  padding: 42px 39px 0;
}

.card--product .card__link {
  margin-top: auto;
  padding-top: 16px;
}

.card--fees {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 300px;
}

.card--fees .card__body {
  max-width: 420px;
}

.card--fees .card__img {
  right: 0;
  bottom: 0;
  width: 442px;
}

/* Безопасность и баннер */
.card--security {
  min-height: 360px;
  padding: 74px 560px 50px 50px;
}

.card--security .card__panel {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 500px;
  align-items: center;
  background: var(--panel-light);
}

.card--security .card__panel .card__img {
  position: static;
  width: 262px;
}

.security__title {
  color: var(--title-light);
  font: 700 36px/44px var(--font-text);
}

.security__lead {
  max-width: 380px;
  margin-top: 24px;
  color: var(--text-light);
  font: 500 15px/18px var(--font-text);
}

.security__list {
  margin-top: 24px;
}

.security__list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-light);
  font: 500 15px/22px var(--font-text);
}

.security__list li::before {
  content: "•";
  position: absolute;
  left: 2px;
}

.banner {
  position: relative;
  min-height: 213px;
  margin-top: 70px;
  padding: 32px;
  border-radius: 24px;
  background: #16141f;
  color: #fff;
  --focus-ring: #9d97ff;
}

.banner__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}

.banner__title {
  margin-top: 8px;
  font: 700 24px/32px var(--font-text);
}

.banner__text {
  max-width: 380px;
  margin-top: 8px;
  color: #cdccdc;
  font: 500 14px/18px var(--font-text);
}

.banner__cta {
  min-width: 176px;
  margin-top: 22px;
}

.banner__art {
  position: absolute;
  right: 60px;
  top: -40px;
  width: auto;
  height: calc(100% + 40px);
  max-width: none;
  pointer-events: none;
}

/* Рынки: бегущая строка во всю ширину окна и таблица в карточке */
.ticker {
  position: relative;
  height: 48px;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
}

.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ticker-scroll 40s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

.ticker__list {
  display: flex;
  align-items: center;
}

.ticker__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 16px;
  font: 500 14px/20px var(--font-ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticker__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  margin-top: -8px;
  background: rgba(255, 255, 255, 0.12);
}

.ticker__pair {
  color: #fff;
  font-weight: 600;
}

.ticker__price {
  color: var(--text-dark);
}

.ticker .market-table__change {
  color: var(--muted-dark);
  font-weight: 600;
}

.markets__status {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: 12px;
}

/* Строку состояния показываем только при сбое: в обычной работе служебный текст не нужен. */
.markets__status:has(.status:is([data-status="loading"], [data-status="live"], [data-status="partial"])) {
  display: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-dark);
  font: 500 14px/20px var(--font-ui);
}

.status__icon {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-dark);
}

.status[data-status="live"] .status__icon {
  background: var(--positive);
}

.status[data-status="partial"] .status__icon {
  border-radius: 2px;
  background: var(--warning);
}

.status[data-status="stale"] .status__icon {
  border-radius: 2px;
}

.status[data-status="unavailable"] .status__icon,
.status[data-status="offline"] .status__icon {
  border-radius: 2px;
  border: 2px solid var(--negative);
  background: transparent;
}

.status[data-status="loading"] .status__icon {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.table-card {
  margin-top: 4px;
  padding: 8px 24px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: var(--card-dark);
}

.market-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.market-table th {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-dark);
  font: 500 13px/18px var(--font-ui);
  text-align: right;
}

.market-table th:first-child,
.market-table td:first-child {
  text-align: left;
}

.market-table__pair-col {
  width: 28.85%;
}

.market-table__price-col {
  width: 21.15%;
}

th.market-table__change {
  width: 14.42%;
}

th.market-table__volume {
  width: 18.27%;
}

th.market-table__chart {
  width: 17.31%;
}

.market-table td {
  height: 64px;
  padding: 0 12px;
  color: #fff;
  font: 600 15px/20px var(--font-ui);
  font-variant-numeric: tabular-nums;
  text-align: right;
  vertical-align: middle;
}

.market-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.market-table tbody tr:hover td:first-child {
  border-radius: 12px 0 0 12px;
}

.market-table tbody tr:hover td:last-child {
  border-radius: 0 12px 12px 0;
}

.market-table__pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-table__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font: 700 12px/1 var(--font-ui);
}

.market-table__symbol,
.market-table__value {
  display: block;
  white-space: nowrap;
}

.market-table__quote {
  color: var(--muted-dark);
  font-weight: 500;
}

.market-table__name,
.market-table__sub {
  display: block;
  color: var(--muted-dark);
  font: 500 13px/18px var(--font-ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.market-table__change {
  color: var(--muted-dark);
}

td.market-table__volume {
  color: var(--text-dark);
  font-weight: 500;
}

.market-table__change[data-direction="up"] {
  color: var(--positive);
}

.market-table__change[data-direction="down"] {
  color: var(--negative);
}

.sparkline {
  width: 120px;
  height: 36px;
  margin-left: auto;
}

.sparkline[data-direction="up"] {
  color: var(--positive);
}

.sparkline[data-direction="down"] {
  color: var(--negative);
}

.skeleton {
  display: inline-block;
  width: 100%;
  max-width: 120px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  vertical-align: middle;
  animation: skeleton 1.4s linear infinite;
}

.skeleton--icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

.markets[data-state="stale"] .market-table tbody,
.markets[data-state="unavailable"] .market-table tbody {
  opacity: 0.6;
}

/* Частые вопросы */
.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: var(--card-dark);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 0 32px;
  border-radius: 24px;
  color: #fff;
  font: 600 20px/28px var(--font-text);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
  transition: transform 200ms var(--ease-out-quart);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__item p {
  max-width: 760px;
  padding: 0 32px 28px;
  color: var(--text-dark);
  font: 500 16px/24px var(--font-text);
}

/* Подвал */
.footer {
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-footer);
  color: #8b8a90;
}

.footer__inner,
.footer__bottom {
  width: min(1184px, 100% - 96px);
  margin-inline: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 395fr 284fr 284fr 221fr;
}

.footer__tagline {
  max-width: 300px;
  margin-top: 28px;
  font: 500 16px/24px var(--font-text);
}

.footer__heading {
  color: #e2e2e4;
  font: 600 18px/24px var(--font-text);
}

/* Шаг 44 px вместо 38 у образца: у каждой ссылки собственная зона нажатия 44×44 (REQ-20). */
.footer__links {
  display: grid;
  justify-items: start;
  margin-top: 4px;
}

.footer__links a,
.footer__links .link-button {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: #8b8a90;
  font: 500 16px/24px var(--font-text);
  transition: color 150ms var(--ease-out-quart);
}

.footer__links a:hover,
.footer__links .link-button:hover {
  color: #fff;
}

.footer__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer__lang .chip {
  font-family: var(--font-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  font: 500 14px/20px var(--font-text);
}

.footer__bottom p:first-child {
  color: #a09fa7;
}

/* Окно входа и регистрации: светлое, Inter */
.auth {
  width: min(488px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-family: var(--font-ui);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.auth[open] {
  animation: auth-in 200ms var(--ease-out-quart);
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.auth::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.auth__panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow-y: auto;
}

.auth__close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #71717a;
}

.auth__close:hover {
  background: #f1f1f3;
}

.auth__title {
  padding: 0 36px;
  color: #000;
  font: 500 30px/36px var(--font-ui);
  text-align: center;
}

.auth__tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.auth__tab {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted-light);
  font: 500 17px/24px var(--font-ui);
  cursor: pointer;
}

.auth__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
}

.auth__tab:hover {
  color: #000;
}

.auth__tab[aria-pressed="true"] {
  color: #000;
}

.auth__tab[aria-pressed="true"]::after {
  background: var(--auth-primary);
}

.auth__form {
  margin-top: 20px;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

.field__icon {
  position: absolute;
  left: 12px;
  top: 13px;
  display: inline-flex;
  color: #9f9fa9;
  pointer-events: none;
}

.field__label {
  position: absolute;
  left: 46px;
  top: 6px;
  color: var(--muted-light);
  font: 500 11px/14px var(--font-ui);
  pointer-events: none;
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 20px 14px 6px 46px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font: 500 15px/20px var(--font-ui);
  outline: none;
  transition:
    border-color 150ms var(--ease-out-quart),
    box-shadow 150ms var(--ease-out-quart);
}

.field__input--toggle {
  padding-right: 52px;
}

.field__input:hover {
  border-color: #d4d4d8;
}

.field__input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(84, 100, 255, 0.2);
}

.field__input[aria-invalid="true"] {
  border-color: var(--negative);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(251, 44, 54, 0.18);
}

.field__toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #71717a;
  cursor: pointer;
}

.field__toggle:hover {
  background: #f1f1f3;
}

/* Текст ошибки темнее #FB2C36: 13 px на белом требует контраста 4,5:1. */
.field-error {
  margin-top: 6px;
  color: #d91e2b;
  font: 500 13px/18px var(--font-ui);
}

.hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f1f3;
  color: #3f3f46;
  font: 500 13px/18px var(--font-ui);
}

.hint__icon {
  display: none;
}

.hint[data-ok="true"] {
  color: #0d7a48;
}

.hint[data-ok="true"] .hint__icon {
  display: inline-flex;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-light);
  font: 400 14px/20px var(--font-ui);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-primary);
}

.auth__done {
  text-align: center;
}

.auth__done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #eef0ff;
  color: var(--auth-primary);
}

.auth__done-text {
  margin: 20px 0 24px;
  color: #000;
  font: 500 17px/24px var(--font-ui);
}

/* Появление при прокрутке: только при работающем JS */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

html.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease-out-quart),
    transform 600ms var(--ease-out-quart);
}

html.has-js .reveal .card__img,
html.has-js .reveal .banner__art {
  transform: translateY(24px) scale(0.96);
}

html.has-js .reveal.is-visible .card__img,
html.has-js .reveal.is-visible .banner__art {
  transform: none;
  transition: transform 800ms var(--ease-out-quart);
}

.funding__grid > :nth-child(2),
.products__grid > :nth-child(2),
.faq__list > :nth-child(2) {
  transition-delay: 80ms;
}

.funding__grid > :nth-child(3),
.products__grid > :nth-child(3),
.faq__list > :nth-child(3) {
  transition-delay: 160ms;
}

.funding__grid > :nth-child(n + 4),
.faq__list > :nth-child(n + 4) {
  transition-delay: 240ms;
}

/* 1024–1279: средние панели упираются в подзаголовок и кнопку */
@media (max-width: 1279px) {
  .hp--order,
  .hp--candles {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .logo {
    margin-left: 0;
  }

  .hero {
    min-height: 0;
    padding: 80px 0 64px;
  }

  .hero__panels {
    top: 0;
  }

  .hero__panels .hp {
    display: none;
  }

  /* Узкие полосы над заголовком: на 360–414 панели не пересекают H1 и подзаголовок. */
  .hero__panels .hp--chart,
  .hero__panels .hp--list {
    display: flex;
    height: 100px;
    opacity: 0.4;
    scale: 0.5;
    transform-origin: 0 0;
  }

  .hp--chart {
    left: -100px;
    top: 0;
  }

  .hp--list {
    right: auto;
    left: calc(100% - 60px);
    top: 0;
  }

  .spot {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(400px, 100%);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(22, 21, 29, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  }

  .spot::before {
    display: none;
  }

  .spot__switch {
    height: 48px;
    padding: 2px;
  }

  .spot__row--give {
    margin-top: 12px;
  }

  .spot__error {
    margin-top: 6px;
    margin-left: 0;
    padding: 0;
    background: none;
  }

  .spot__row--result {
    margin-top: 8px;
  }

  .spot__rate {
    margin-top: 12px;
    margin-right: 0;
    padding: 0;
    background: none;
    line-height: 18px;
    text-align: left;
  }

  .spot__cta {
    margin-top: 12px;
  }

  .funding__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "sbp" "cards" "crypto" "ruble";
  }

  .card--sbp {
    min-height: 0;
    padding: 0;
  }

  .card--sbp .card__body {
    padding: 25px 25px 32px;
  }

  .sbp {
    position: relative;
    top: auto;
    right: auto;
    order: -1;
    width: auto;
    height: 200px;
    margin: 15px 15px 0;
    border-radius: 16px;
  }

  .sbp__sheet {
    left: max(16px, 50% - 155px);
    top: 20px;
    width: min(310px, 100% - 32px);
  }

  .card--cards {
    min-height: 440px;
    padding-bottom: 32px;
  }

  .card--cards .card__img {
    right: -64px;
    bottom: -36px;
    width: 400px;
  }

  .card--crypto,
  .card--fees {
    min-height: 0;
    padding-top: 0;
  }

  .card--crypto .card__img,
  .card--fees .card__img {
    position: static;
    order: -1;
    align-self: flex-end;
    margin: 0 -25px 8px 0;
  }

  .card--crypto .card__img {
    width: 250px;
  }

  .card--fees .card__img {
    width: 310px;
  }

  .card--ruble {
    min-height: 0;
    margin-top: 20px;
    padding-top: 0;
  }

  .card--ruble .card__body {
    max-width: none;
  }

  .card--ruble .card__img {
    position: static;
    order: -1;
    align-self: center;
    width: 300px;
    margin: -40px 0 12px;
  }

  .card--security {
    min-height: 0;
    padding: 0;
  }

  .card--security .card__panel {
    position: relative;
    inset: auto;
    order: -1;
    width: auto;
    height: 220px;
    margin: 15px 15px 0;
    border-radius: 16px;
  }

  .card--security .card__panel .card__img {
    width: auto;
    height: 200px;
  }

  .card--security .card__body {
    padding: 25px 25px 32px;
  }

  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 0 20px 24px;
    text-align: center;
  }

  .banner__art {
    position: static;
    order: -1;
    height: 230px;
    margin: -40px auto 16px;
  }

  .banner__body {
    align-items: center;
    max-width: none;
  }

  .banner__cta {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .products__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--product {
    min-height: 0;
    padding: 10px 10px 32px;
  }

  .card--product .card__panel {
    height: 225px;
    border-radius: 16px;
  }

  .card--product .card__panel .card__img {
    width: 310px;
  }

  .card--product .card__body {
    padding: 25px 15px 0;
  }
}

/* Телефон: раскладка 390 px */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 60px);
  }

  .hero .container {
    width: calc(100% - 32px);
  }

  .security .container {
    width: calc(100% - 30px);
  }

  .header__inner {
    gap: 4px;
  }

  .btn--login {
    min-width: 161px;
    height: 38px;
    min-height: 38px;
  }

  .btn--login::after {
    inset: -3px 0;
  }

  .hero {
    padding: 56px 0 32px;
  }

  .hero__title {
    line-height: 44px;
  }

  .hero__subtitle {
    margin-top: 12px;
    line-height: 22px;
  }

  .hero__cta {
    height: 44px;
    margin-top: 24px;
    padding: 0 24px;
    font-size: 15px;
  }

  .spot {
    margin-top: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section__head {
    margin-bottom: 24px;
  }

  .brand--hero .logo__word {
    font-size: 24px;
  }

  .section__title {
    font-size: 30px;
    line-height: 34px;
  }

  .card {
    padding: 25px;
    border-radius: 20px;
  }

  .card__title {
    font-size: 21px;
    line-height: 24px;
  }

  .card__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 18px;
  }

  .card__link {
    margin-top: 12px;
    font-size: 14px;
  }

  .card--product,
  .card--sbp,
  .card--security {
    padding: 0;
  }

  .card--product {
    padding: 10px 10px 32px;
  }

  .card--crypto,
  .card--fees,
  .card--ruble {
    padding-top: 0;
  }

  .security__title {
    font-size: 26px;
    line-height: 32px;
  }

  .security__lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .security__list {
    margin-top: 16px;
  }

  .security__list li {
    font-size: 14px;
    line-height: 20px;
  }

  .banner {
    border-radius: 20px;
  }

  .table-card {
    padding: 4px 12px;
    border-radius: 20px;
  }

  .market-table__volume,
  .market-table__chart {
    display: none;
  }

  .market-table__pair-col {
    width: 41%;
  }

  .market-table__price-col {
    width: 31%;
  }

  th.market-table__change {
    width: 28%;
  }

  .market-table th,
  .market-table td {
    padding: 0 4px;
  }

  .market-table th:first-child,
  .market-table td:first-child {
    padding-left: 0;
  }

  .market-table th:last-child,
  .market-table td:last-child {
    padding-right: 0;
  }

  .market-table td {
    height: 60px;
  }

  .market-table__pair {
    gap: 8px;
  }

  .market-table__icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .market-table__sub,
  .market-table__name {
    font-size: 12px;
  }

  .faq__item {
    border-radius: 20px;
  }

  .faq__item summary {
    min-height: 64px;
    padding: 12px 20px;
    gap: 16px;
    border-radius: 20px;
    font-size: 17px;
    line-height: 24px;
  }

  .faq__item p {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer__inner,
  .footer__bottom {
    width: calc(100% - 40px);
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .footer__links a,
  .footer__links .link-button {
    font-size: 14px;
  }

  .footer__bottom {
    flex-direction: column;
    margin-top: 40px;
  }

  .auth__panel {
    padding: 24px;
  }

  .auth__title {
    font-size: 24px;
    line-height: 30px;
  }
}

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

  html.has-js .reveal,
  html.has-js .reveal.is-visible,
  html.has-js .reveal .card__img,
  html.has-js .reveal .banner__art {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand--hero,
  .hero__title,
  .hero__subtitle,
  .hero__cta,
  .spot,
  .hp,
  .ticker__track,
  .mobile-menu__panel,
  .auth[open],
  .skeleton,
  .status[data-status="loading"] .status__icon {
    animation: none;
  }

  .ticker {
    overflow-x: auto;
  }

  .btn,
  .faq__icon,
  .spot__option span,
  .spot__row,
  .field__input,
  .nav__list a,
  .lang__button,
  .footer__links a,
  .footer__links .link-button {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
