/* YXXY Landing — тёмная тема (единственная). Токены — под будущую светлую. */

/* Токены — значения сняты с макета Figma (Desktop 1296) 2026-08-28 */
:root {
  --bg: #000813;
  --bg-card: #001323;
  --bg-card-inner: #001E33;
  --bg-elevated: #001323;
  --btn-dark: #003657;
  --border: #0E2740;
  --text: #FFFFFF;
  --text-blue: #36A5E7;
  --text-muted: #8D9EAC;
  --text-dim: #566674;
  --accent: #C55C2D;
  --accent-hover: #D96A38;
  --outline-btn: #2C4463;
  --up: #5FB163;
  --down: #E4766F;
  --radius-btn: 2px;
  --radius-card: 2px;
  --radius-input: 12px;
  --radius-popup: 8px; /* попапы = карточки, унификация 2026-08-30 */
  --header-h: 48px;
  --content-w: 1296px;
  --pad-x: 48px;
  --font: 'Geist', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== Buttons (radius 12 — из аннотаций макета) ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font: 500 14px/20px var(--font);
  padding: 9px 15px;
  min-width: 161px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: #00507E; color: #CCD8E3; background: transparent; }
.button-outline:hover {
  background: var(--bg-card-inner);
  color: #EDF7FF;
  border-color: #00507E;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.button-dark { background: var(--btn-dark); color: var(--text); }
.button-dark:hover { background: #00436B; }
.button-sm { padding: 5px 11px; font-size: 14px; min-width: 0; box-shadow: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: rgba(4, 12, 22, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 4px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; color: var(--text); }
.brand-mark { width: 63px; height: 12px; }
.header-nav { flex: 1; }
.nav-link { font: 500 14px/20px var(--font); color: #CCD8E3; padding: 6px 12px; }
.nav-link:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .lang-switch { margin-left: 4px; }
.header-divider { flex: none; width: 1px; height: 16px; background: #00507E; margin: 0 8px; }
.icon-btn {
  background: none; border: 0; color: #CCD8E3;
  width: 32px; height: 32px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--text-blue); }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font: 500 14px/20px var(--font); color: #CCD8E3; padding: 6px; background: none; border: 0; cursor: pointer; }

.lang-switch:hover { color: var(--text); }
.lang-flag {
  width: 20px; height: 20px; border-radius: 50%;
  /* тонкое кольцо: белая часть флага не сливается с фоном */
  box-shadow: inset 0 0 0 1px rgba(0, 8, 19, .35);
}
.burger { display: none; }

/* Mobile menu — полноэкранная шторка как в платформе (2026-08-31) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 24px;
  background: var(--bg-card);
  overflow-y: auto;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.mobile-menu-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 100px;
  background: none; color: var(--text);
  cursor: pointer;
}
/* раскладка шторки (финал 2026-08-31): Торговля сверху под кнопками,
   Язык и Поддержка прижаты к низу; текст слева, значения справа */
.mobile-menu-list { margin-top: auto; }
.mobile-menu-list--top { margin-top: 0; }
.mobile-menu-list--top .mobile-menu-item { color: var(--text); }
.mobile-menu-item[data-lang-toggle], .mobile-menu-item[data-support-open] { cursor: pointer; }
.mobile-menu-item {
  display: flex; align-items: center; gap: 12px;
  /* без боковых полей: иконки в одну вертикаль с лого и кнопками */
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.mobile-menu-item svg { width: 20px; height: 20px; color: var(--text); }
.mobile-menu-item > span { flex: 1; }
.mobile-menu-value,
.mobile-menu-item > .mobile-menu-value {
  /* значения (стрелка, RU+флаг) — по правому краю строки; двойной
     селектор перебивает .mobile-menu-item > span { flex: 1 } */
  flex: none; margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--text); font-size: 15px; cursor: pointer;
}
.mobile-menu-value svg { width: 18px; height: 18px; color: var(--text-blue); }
.mobile-menu-auth { display: flex; gap: 12px; margin: 4px 0 12px; }
.mobile-menu-auth .button { flex: 1; }

/* ===== Hero ===== */
.hero { position: relative; }
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 1px solid rgba(0, 30, 51, .24);
  border-radius: 2px;
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 140px 0;
}
.hero-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}
.hero-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
}
.hero-actions {
  margin-top: 48px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* ===== Ticker ===== */
.ticker { position: relative; overflow: hidden; padding-top: 16px; }
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 16px; bottom: 0; width: 16px; z-index: 1;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(0, 8, 19, 0) 100%); }
.ticker::after { right: 0; background: linear-gradient(90deg, rgba(0, 8, 19, 0) 0%, var(--bg) 100%); }
.ticker-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.ticker:hover .ticker-track { animation-play-state: paused; }
/* карточка по ДС (Figma «ticker display»): две независимые строки
   space-between, слева группы [иконка+имя] и [изменение+объём] с зазором
   4px — размеры колонок не зависят от ширины текста соседней строки */
.ticker-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 190px; height: 62px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid rgba(0, 30, 51, .5);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
  flex: none;
}
.tk-row { display: flex; justify-content: space-between; align-items: center; }
.tk-coin, .tk-data { display: flex; align-items: center; gap: 4px; }
.tk-dot { width: 12px; height: 12px; border-radius: 50%; object-fit: cover; }
.tk-name { color: var(--text); }
.tk-price { color: var(--text-blue); }
.tk-sym { color: var(--text-dim); }
.tk-change.up { color: var(--up); }
.tk-change.down { color: var(--down); }
.tk-vol { color: var(--text-muted); }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ===== Sections (общее) ===== */
.section { margin-top: 120px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 64px;
  background: var(--bg-card);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.section-title { font-size: 32px; font-weight: 500; letter-spacing: -.5px; line-height: 38px; }
.accent-blue {
  /* направление по спеке ДС, развёрнуто на 180° (правка юзера 2026-08-31) */
  background: linear-gradient(270deg, #7FD4FF 0%, #0088CD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-blue);
}
.section-lead { max-width: 490px; color: var(--text-muted); font-size: 16px; line-height: 140%; font-weight: 300; }
.section-cta { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ===== Features ===== */
.features-section .section-head { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card-inner);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.feature-card {
  position: relative;
  padding: 24px;
}
.feature-card + .feature-card::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 1px; background: #003657;
}
.feature-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border-radius: 1px;
  color: #006BA7;
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-title { font-size: 20px; line-height: 24px; font-weight: 500; letter-spacing: -.5px; margin-top: 24px;
  /* высота под две строки: описания всех четырёх карточек начинаются
     на одном уровне, как в макете */
  min-height: 48px; }
.feature-text { color: var(--text-blue); font-size: 16px; font-weight: 300; line-height: 1.4; margin-top: 16px; }

/* ===== Reliability ===== */
.rely-section .section-head {
  background: linear-gradient(180deg, #001323 0%, rgba(0, 19, 35, 0) 100%);
  align-items: center;
}
.rely-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.rely-card {
  display: flex; flex-direction: column; justify-content: center; gap: 72px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 248px;
}
.rely-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rely-title { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.rely-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border-radius: 1px;
  color: #006BA7;
}
.rely-icon svg { width: 40px; height: 40px; }
.rely-text { color: var(--text-blue); font-size: 16px; font-weight: 300; line-height: 1.4; margin: 0; }

/* ===== Roadmap (геометрия снята попиксельно с Desktop 1296) =====
   Колонки вплотную, тонкая вертикаль слева у каждой; линии 12px во всю
   ширину колонки «лесенкой» (Available внизу), planned-линии тянутся
   до правого края сетки. */
.roadmap-section .section-head { background: none; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 24px;
  padding: 24px 0 64px;
}
.roadmap-col {
  position: relative;
  padding: 256px 24px 0 0;
}
.roadmap-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 224px;
  border-left: 1px solid #003657;
  pointer-events: none;
}
.roadmap-col:last-child .roadmap-bar { border-right: 1px solid #003657; }
.roadmap-col.is-available .roadmap-bar::after,
.roadmap-col.is-dev .roadmap-bar::after,
.roadmap-col.is-planned .roadmap-bar::after {
  content: ""; position: absolute; left: 0; height: 12px;
}
.roadmap-col.is-available .roadmap-bar::after { top: 196px; width: 100%; background: #fff; }
.roadmap-col.is-dev .roadmap-bar::after { top: 148px; width: 100%; background: linear-gradient(90deg, #FFFFFF 0%, #36A5E7 100%); }
.roadmap-col.is-planned .roadmap-bar::after { background: var(--bg-card-inner); }
.roadmap-col.is-planned:nth-child(3) .roadmap-bar::after { top: 84px; width: 100%; }
.roadmap-col.is-planned:nth-child(4) .roadmap-bar::after { top: 20px; width: 100%; }
.roadmap-title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.5px; }
.rm-arrow { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; }
.roadmap-status { display: block; font-size: 16px; line-height: 20px; letter-spacing: -.3px; margin-top: 6px; }
.roadmap-col.is-available .roadmap-status { color: #CCD8E3; }
.roadmap-col.is-dev .roadmap-title, .roadmap-col.is-dev .roadmap-status { color: var(--text-muted); }
.roadmap-col.is-planned .roadmap-title, .roadmap-col.is-planned .roadmap-status { color: var(--text-dim); }

/* Promo row */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.promo-eyebrow { display: block; color: var(--text-dim); font-size: 16px; line-height: 120%; margin-bottom: 12px; padding: 0 24px; }
.promo-card {
  display: flex; align-items: stretch; justify-content: space-between; gap: 0;
  background: var(--bg-card-inner);
  border-radius: var(--radius-card);
}
.promo-copy { flex: 1; padding: 24px; }
.promo-title { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.promo-text { color: var(--text-blue); font-size: 16px; font-weight: 300; line-height: 1.4; margin-top: 12px; max-width: 300px; }
.promo-img { border-radius: 1px; flex-shrink: 0; margin: 16px; align-self: center; }

/* ===== Steps ===== */
.steps-section .section-head { background: none; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step-item { display: flex; flex-direction: column; }
.step-num { display: block; color: var(--text-dim); font-size: 20px; line-height: 120%; margin-bottom: 12px; padding-left: 24px; }
.step-card {
  background: var(--bg-card-inner);
  border-radius: var(--radius-card);
  padding: 24px 24px 34px;
  flex: 1;
  min-height: 126px;
}
.step-title { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.step-text { color: var(--text-blue); font-size: 16px; font-weight: 300; line-height: 1.4; margin-top: 16px; }

/* ===== Support ===== */
.support-section .section-head { background: none; }
.support-section .section-lead { color: var(--text-muted); }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.support-card {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-card-inner);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 167px;
}
.support-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border-radius: 1px;
  color: #006BA7;
}
.support-icon svg { width: 40px; height: 40px; }
.support-label { display: block; color: var(--text-muted); font-size: 14px; line-height: 120%; margin-top: 32px; }
.support-value { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 24px; letter-spacing: -.5px; font-weight: 500; margin-top: 6px; }
.support-value a:hover { color: var(--text-blue); }
.copy-btn {
  background: none; border: 0; color: var(--text-blue); cursor: pointer;
  width: 24px; height: 24px; padding: 0;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn:hover { color: var(--text); }

/* ===== FAQ ===== */
.faq-section .section-head {
  background: linear-gradient(180deg, #001323 0%, rgba(0, 19, 35, 0) 100%);
  border-bottom: 1px solid #001323;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  align-items: center;
}
.faq-list { background: transparent; }
.faq-item { border-bottom: 1px solid #001323; background: transparent; }
.faq-item.is-open { background: rgba(0, 30, 51, .5); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: 0; color: var(--text);
  font: 500 18px/24px var(--font);
  letter-spacing: -.5px;
  text-align: left;
  padding: 16px 24px;
  cursor: pointer;
}
.faq-q:hover { background: rgba(20, 41, 66, .35); }
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.fi-h, .fi-v {
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--text);
  transition: transform .2s;
}
.fi-v { transform: rotate(90deg); }
.faq-icon { transition: transform .2s; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  color: var(--text-blue);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  padding: 0 24px 16px;
}
.faq-answer-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-answer-inner a:hover { color: #fff; }
.faq-answer-inner strong { font-weight: 500; }

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  margin-top: 120px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #00050D;
}
/* канвас выше блока и прижат низом: яркие вершины лучей уходят за
   верхний край (overflow скрыт), в кадре остаются короткие хвосты */
.cta-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 128%; }
.cta-inner {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 17px;
  padding: 40px;
}
.cta-title { font-size: 32px; font-weight: 500; letter-spacing: -.5px; line-height: 38px; }
.cta-text { color: var(--text-muted); font-size: 16px; line-height: 140%; font-weight: 300; margin-top: 16px; max-width: 330px; }

/* ===== Footer ===== */
.site-footer { margin-top: 120px; border-top: 1px solid transparent; }
.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px var(--pad-x) 72px;
  display: flex; justify-content: space-between; gap: 48px;
}
.footer-logo { color: var(--text); width: 126px; height: 24px; }
/* по выгрузке Figma: одна строка на десктопе/960/640, две — только на ≤480 */
.footer-note { color: var(--text-dim); font-size: 16px; line-height: 140%; margin-top: 24px; }
.footer-nav { display: flex; gap: 84px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1; }
.footer-col-title { color: var(--text); font-weight: 500; font-size: 16px; line-height: 20px; letter-spacing: -.3px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }

/* ===== Popup (radius 24, close 30/30 — из аннотаций макета) ===== */
.popup-overlay[hidden], .mobile-menu[hidden] { display: none; }
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1, 5, 10, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-popup);
  padding: 30px;
  width: 100%;
  max-width: 440px;
}
.popup__close {
  /* в углу 15/15 — как .popup__close в ui-kit платформы */
  position: absolute; top: 15px; right: 15px;
  background: none; border: 0; color: var(--text-muted); cursor: pointer;
  width: 24px; height: 24px; padding: 0;
}
.popup__close svg { width: 20px; height: 20px; }
.popup__close:hover { color: var(--text); }
.popup-title { font-size: 17px; font-weight: 600; text-align: center; }
.popup-text { color: var(--text-muted); font-size: 13.5px; margin-top: 12px; text-align: center; }
.popup-form { margin-top: 20px; display: grid; gap: 8px; }
.popup-label { font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.input-item, .textarea {
  width: 100%;
  background: #0A1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  padding: 12px 14px;
  font: 400 14px/1.4 var(--font);
}
.input-item::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input-item:focus, .textarea:focus { outline: none; border-color: var(--text-blue); }
.textarea { resize: vertical; min-height: 96px; }
/* кнопки попапа — оранжевые primary из ДС (решение юзера 2026-08-31) */
.popup-send {
  width: 100%;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
}
.popup-send:hover { background: var(--accent-hover); }
.popup-status { margin-top: 12px; font-size: 14px; }
.popup-status--err { color: var(--down); }
.popup-form[hidden] { display: none; }
/* экран успеха отправки обращения */
.popup-success { text-align: center; padding-top: 4px; }
.popup-success__icon {
  width: 56px; height: 56px;
  margin: 12px auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(95, 177, 99, .12);
  color: var(--up);
}
/* «Номер тикета» строкой, сам номер ниже зелёным + копирование
   (решение юзера 2026-08-31) */
.popup-success__label { margin-top: 14px; font-size: 14px; color: var(--text); }
.popup-success__ticket {
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 22px; font-weight: 600; color: var(--up); letter-spacing: .5px;
}
.popup-success__ticket .copy-btn svg { width: 18px; height: 18px; }
.popup-success__note { margin-top: 8px; }
.popup-success .popup-send { margin-top: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Toast */
.copy-toast {
  position: fixed; top: 22px; right: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card-inner); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 18px;
  font-size: 14px;
  z-index: 110;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
  opacity: 1; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}
.copy-toast[hidden] {
  display: inline-flex;
  opacity: 0; transform: translateY(-10px);
  pointer-events: none;
}
.toast-check { width: 16px; height: 16px; }

/* ===== Tablet 960: как десктоп, но промо-карточки вертикальные
   (картинка сверху крупно), подвал с переносом списков ===== */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
  .hero-title { font-size: 38px; }
  .section { margin-top: 90px; }
  .roadmap-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-card { flex-direction: column; align-items: stretch; }
  .promo-img { order: -1; width: calc(100% - 32px); height: auto; margin: 16px 16px 0; }
  .promo-text { max-width: none; }
  .footer-nav { gap: 50px; flex-wrap: wrap; }
}

/* ===== Tablet 640: фичи 2×2, надёжность в столбик, роадмап те же 4 колонки,
   промо — горизонтальные карточки одна под другой, шаги с номером в карточке;
   шапка и кнопки хиро — ещё десктопные ===== */
@media (max-width: 767px) {
  .popup { padding: 15px; padding-top: 30px; }
  .popup__close { right: 15px; }
  :root { --pad-x: 24px; }
  .section { margin-top: 80px; }
  .section-head { flex-direction: column; }
  /* в макетах Tablet 640 и Mobile 390 эти заголовки слева, не по центру */
  .rely-section .section-head, .faq-section .section-head { align-items: flex-start; }

  /* роадмап: строки, текст слева, шкала справа. В макете Tablet 640 колонки,
     но с полными названиями («Future, Margin, Option Trading») они ломаются
     на 2–4 строки — поэтому строчный вид, как на мобилке: названия в одну строку */
  /* метрики по мобильному макету (css2, фрейм 390): название 16/20,
     статус 14/16, строка 72, низ секции 48, заголовок ближе к строкам */
  .roadmap-section .section-head { padding-bottom: 32px; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 0; margin: 0 24px; padding: 0 0 48px; }
  .roadmap-col {
    position: relative;
    padding: 12px 46% 12px 0;
    border-left: 0; border-right: 0 !important;
    min-height: 72px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .roadmap-title { font-size: 16px; line-height: 20px; letter-spacing: -.3px; }
  .roadmap-status { font-size: 14px; line-height: 16px; margin-top: 4px; }
  .roadmap-bar {
    inset: auto; position: absolute; top: 0; bottom: 0; right: 0;
    width: 42%; height: auto;
    border-left: 1px solid #003657;
    border-bottom: 1px solid #003657;
  }
  .roadmap-col:last-child .roadmap-bar { border-bottom: 0; border-right: 0; }
  .roadmap-col.is-available .roadmap-bar::after,
  .roadmap-col.is-dev .roadmap-bar::after,
  .roadmap-col.is-planned .roadmap-bar::after {
    top: 12px; bottom: 12px; left: 12%; right: auto;
    width: 12px; height: auto;
  }
  .roadmap-col.is-dev .roadmap-bar::after { left: 36%; background: linear-gradient(180deg, #FFFFFF 0%, #36A5E7 100%); }
  /* nth-child — та же специфичность, что у десктопных правил, иначе оттуда
     протекают width:100% и десктопные top */
  .roadmap-col.is-planned:nth-child(3) .roadmap-bar::after { left: 60%; top: 12px; bottom: 12px; width: 12px; }
  .roadmap-col.is-planned:nth-child(4) .roadmap-bar::after { left: 84%; top: 12px; bottom: 12px; width: 12px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(3)::before { display: none; }
  .feature-card:nth-child(3)::after, .feature-card:nth-child(4)::after {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px;
    height: 1px; background: #003657;
  }
  .rely-grid { grid-template-columns: 1fr; }
  .rely-card { gap: 16px; min-height: 148px; }
  .promo-row { grid-template-columns: 1fr; margin-top: 44px; }
  .promo-card { flex-direction: row; align-items: stretch; }
  .promo-img { order: 1; width: 248px; height: 160px; margin: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { position: relative; }
  .step-num { position: absolute; top: 24px; right: 24px; margin: 0; padding: 0; color: var(--text-muted); }
  .step-card { min-height: 0; }
  .faq-q { font-size: 15.5px; padding: 18px 20px; }
  .faq-answer-inner p { padding: 0 40px 20px 20px; }
  .cta-band { margin-top: 80px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; padding: 40px; }
  .cta-inner .button { width: 100%; }
  .site-footer { margin-top: 80px; }
  .footer-inner { flex-direction: column; gap: 48px; }
  .footer-nav { flex-wrap: wrap; gap: 64px; }
}

/* ===== Mobile 390 — по CSS-выгрузке из Фигмы ===== */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  /* «Войти» остаётся видимым и на мобилке (решение юзера 2026-08-30) */
  .header-actions .header-divider,
  .header-actions .icon-btn, .header-actions .lang-switch { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; align-items: center;
    background: none; border: 0; cursor: pointer; padding: 4px;
  }
  .burger span { width: 20px; height: 2px; background: #CCD8E3; transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .brand-mark { width: 84px; height: 16px; }

  /* 8px по бокам, чтобы «…compliant infrastructure» умещалось первой строкой,
     как в макете (у Figma бокс 328px) */
  .hero-content { padding: 140px 8px 16px; }
  .hero-title { font-size: 32px; line-height: 110%; }
  .hero-sub { font-size: 16px; line-height: 120%; margin-top: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 72px; }

  .section-head { padding: 24px 24px 32px; }
  .section-title { font-size: 24px; line-height: 28px; letter-spacing: -.3px; }
  .section-lead { font-size: 14px; }

  /* фичи: колонка, иконка в строке с заголовком, горизонтальные разделители */
  .features-grid { grid-template-columns: 1fr; gap: 8px; }
  .feature-card {
    display: grid; grid-template-columns: 40px 1fr;
    column-gap: 12px; row-gap: 16px; align-items: center;
  }
  .feature-card + .feature-card::before {
    top: -5px; bottom: auto; left: 24px; right: 24px; width: auto; height: 1px;
  }
  .feature-card:nth-child(3)::before { display: block; }
  .feature-card:nth-child(3)::after, .feature-card:nth-child(4)::after { display: none; }
  .feature-title { margin: 0; font-size: 18px; min-height: 0; }
  .feature-text { grid-column: 1 / -1; margin: 0; font-size: 14px; }

  .section-cta { margin-top: 32px; }
  .section-cta .button {
    width: 100%;
    font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: -.3px;
  }

  .rely-card { min-height: 164px; gap: 16px; justify-content: flex-start; }
  .rely-title { font-size: 18px; }
  .rely-text { font-size: 14px; }

  .roadmap-title { font-size: 16px; line-height: 20px; letter-spacing: -.3px; }
  .roadmap-status { font-size: 14px; line-height: 16px; margin-top: 4px; }

  .promo-row { gap: 32px; margin-top: 44px; }
  .promo-card { flex-direction: column; align-items: stretch; }
  .promo-img { order: -1; width: calc(100% - 32px); height: auto; margin: 16px 16px 0; }
  .promo-eyebrow { font-size: 14px; }
  .promo-title { font-size: 18px; }
  .promo-text { font-size: 14px; max-width: none; }

  .step-num { font-size: 18px; }
  .step-title { font-size: 18px; }
  .step-text { font-size: 14px; }

  /* поддержка: горизонтальные карточки 90px */
  .support-grid { grid-template-columns: 1fr; }
  .support-card {
    display: grid; grid-template-columns: 40px 1fr;
    column-gap: 16px; align-items: center;
    padding: 24px; min-height: 90px;
  }
  .support-icon { grid-row: 1 / 3; }
  .support-label { margin: 0; font-size: 12px; }
  .support-value { margin-top: 4px; font-size: 18px; }

  .faq-q { font-size: 16px; line-height: 24px; letter-spacing: -.3px; }
  .faq-answer-inner p { font-size: 14px; }
  /* в мобильном макете заголовок FAQ слева, не по центру */
  .faq-section .section-head { align-items: flex-start; }

  /* 24px по бокам, чтобы «Ready to Work with YXXY?» не переносился на 375px */
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; padding: 32px 24px; }
  .cta-title { font-size: 24px; line-height: 28px; letter-spacing: -.3px; }
  .cta-text { font-size: 14px; }
  .cta-inner .button {
    width: 100%;
    font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: -.3px;
  }

  .footer-nav { gap: 32px; }
  .footer-col { flex: 1; }
  .footer-note { max-width: 356px; }
}
