/* Design System Tokens — Extracted from Figma DS + References */

:root {
  /* === COLORS === */

  /* Background */
  --bg-primary: #080808;
  --bg-primary-light: #f9f9fa;
  --bg-elevated: #252a2e;
  --bg-elevated-light: #ffffff;
  --bg-modal: #ffffff;
  --bg-card-dark: #0e0e10;
  --bg-card-dark-to: #030303;

  /* Text */
  --text-headline: #040404;
  --text-headline-dark: #ffffff;
  --text-primary: #e8e9eb;
  --text-secondary: #a5aaaf;
  --text-secondary-light: #777f86;
  --text-tertiary: #bbbfc3;
  --text-tertiary-light: #777f86;
  --text-inverted: #ffffff;
  --text-bold-accent: #383f46;

  /* Accent */
  --accent-primary: #fa6a1c;
  --accent-gradient-start: #ed5228;
  --accent-gradient-mid: #fe7539;
  --accent-gradient-end: #fe7539;
  --accent-link: #0b60d6;
  --accent-glow: rgba(240, 110, 45, 0.2);

  /* Stroke / Border */
  --stroke-primary: #e8e9eb;
  --stroke-primary-dark: #393f45;
  --stroke-card: #1d1d20;
  --stroke-secondary: #464646;
  --transparent-white-10: rgba(255, 255, 255, 0.1);
  --transparent-white-20: rgba(37, 42, 46, 0.2);
  --transparent-gray-20: rgba(29, 41, 54, 0.2);

  /* Controls */
  --control-primary: #fa6a1c;

  /* Absolute */
  --absolute-white: #ffffff;
  --absolute-black: #000000;

  /* === TYPOGRAPHY === */

  /* Font Families */
  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-caption: 'Roboto Flex', sans-serif;

  /* Font Sizes */
  --text-display1: 78px;
  --text-h1: 62px;
  --text-h2: 48px;
  --text-h3: 40px;
  --text-h4: 32px;
  --text-h5: 28px;
  --text-h6: 24px;
  --text-h7: 20px;
  --text-base-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  /* Line Heights */
  --leading-display1: 94px;
  --leading-h1: 84px;
  --leading-h2: 60px;
  --leading-h3: 52px;
  --leading-h4: 44px;
  --leading-h5: 40px;
  --leading-h6: 36px;
  --leading-h7: 32px;
  --leading-base-lg: 28px;
  --leading-base: 24px;
  --leading-sm: 16px;
  --leading-xs: 18px;

  /* === SPACING === */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 42px;
  --space-2xl: 64px;
  --space-section: 100px;

  /* === LAYOUT === */
  --content-max-width: 1440px;
  --content-padding: 96px;

  /* === RADIUS === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 38px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-card: 0px 30px 30px rgba(85, 105, 135, 0.05);
  --shadow-button: 0px 4px 4px rgba(240, 110, 45, 0.2);

  /* === HEIGHTS === */
  --height-button: 48px;
  --height-button-lg: 60px;
  --height-button-xl: 72px;
  --height-input: 48px;
}

/* ==========================================================================
   Local accent layer: kamran-signals (cyan theme over base tokens)
   Base tokens above are copied from design-system/tokens.css verbatim and are
   NOT overridden. Everything below is additive.
   ========================================================================== */
:root {
  --sig-bg-top:        #060D1A;
  --sig-bg-bottom:     #0A1628;
  --sig-card:          #0D1B2E;
  --sig-card-border:   rgba(255,255,255,.06);
  --sig-accent:        #22D3EE;   /* главный акцент — бирюза */
  --sig-accent-soft:   rgba(34,211,238,.14);
  --sig-grad-start:    #2DD4BF;   /* кнопка: слева мятно-зелёный */
  --sig-grad-end:      #22D3EE;   /* кнопка: справа голубой */
  --sig-on-accent:     #06202B;   /* тёмный текст на кнопке */
  --sig-gold:          #E8B55B;   /* вторичный акцент AMarkets */
  --sig-green:         #34D399;   /* профит / BUY */
  --sig-red:           #F87171;   /* SELL / SL */
  --sig-blue:          #3B82F6;   /* BUY-бейдж на графике */
}

/* ===================== reset ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--text-secondary);
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(34,211,238,.10), transparent 70%),
    radial-gradient(760px 520px at 88% 42%, rgba(59,130,246,.08), transparent 70%),
    radial-gradient(700px 480px at 12% 78%, rgba(34,211,238,.06), transparent 70%),
    linear-gradient(180deg, var(--sig-bg-top) 0%, var(--sig-bg-bottom) 55%, var(--sig-bg-top) 100%);
  background-attachment: fixed, fixed, fixed, scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--sig-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ===================== layout ===================== */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-sm), 4vw, var(--content-padding));
}
.section { padding-block: var(--space-xl); position: relative; }
@media (min-width: 768px)  { .section { padding-block: var(--space-2xl); } }
@media (min-width: 1200px) { .section { padding-block: var(--space-section); } }

/* ===================== typography helpers ===================== */
.h1, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-headline-dark);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  letter-spacing: -.01em;
}
@media (min-width: 768px)  { .h1, .h2 { font-size: var(--text-h3); line-height: var(--leading-h3); } }
@media (min-width: 1200px) { .h1, .h2 { font-size: var(--text-h2); line-height: var(--leading-h2); } }

.accent { color: var(--sig-accent); }
.gold   { color: var(--sig-gold); }

.lead {
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--text-secondary);
}
@media (min-width: 768px) { .lead { font-size: var(--text-base-lg); line-height: var(--leading-base-lg); } }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-xs); line-height: var(--leading-xs);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow--gold { color: var(--sig-gold); }
.eyebrow--center { justify-content: center; }
.eyebrow__dash {
  display: block; width: 26px; height: 2px; flex: none;
  background: var(--sig-gold); border-radius: 2px;
}
/* ToV: название бренда внутри caps-метки остаётся в исходном регистре */
.no-caps { text-transform: none; letter-spacing: .06em; }

.note {
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary-light);
}

/* ===================== cards ===================== */
.card {
  background: var(--sig-card);
  border: 1px solid var(--sig-card-border);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 48px rgba(0,0,0,.35);
}
.card--glass {
  background: color-mix(in srgb, var(--sig-card) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ===================== button ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  height: var(--height-button-lg);
  padding-inline: var(--space-md) var(--space-xs);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--sig-grad-start) 0%, var(--sig-grad-end) 100%);
  color: var(--sig-on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: 0 8px 28px rgba(34,211,238,.28);
  transition: filter .25s ease, transform .25s ease;
}
@media (min-width: 768px) {
  .btn {
    width: fit-content;
    height: var(--height-button-xl);
    font-size: var(--text-base-lg);
    padding-inline: var(--space-lg) var(--space-xs);
    gap: var(--space-lg);
  }
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--sig-accent); outline-offset: 3px; }
.btn__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-full);
  background: var(--sig-on-accent);
  color: #fff;
}
@media (min-width: 768px) { .btn__arrow { width: 48px; height: 48px; } }
.btn__arrow .ic { width: 20px; height: 20px; }

/* ===================== icons ===================== */
.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== decorative art ===================== */
.art { position: absolute; height: auto; pointer-events: none; z-index: 0; }
.globe { width: 100%; height: auto; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-xl) var(--space-xl);
}
@media (min-width: 1200px) {
  /* 100vh по спеке, но с потолком: на очень высоких вьюпортах иначе возникает
     полоса пустоты между подписью героя и полосой преимуществ. */
  .hero { min-height: max(820px, min(100vh, 1040px)); padding-block: var(--space-2xl) var(--space-2xl); display: flex; flex-direction: column; justify-content: center; }
}
.hero__badge {
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary-light);
  text-align: right;
  margin-bottom: var(--space-md);
}
@media (min-width: 1200px) {
  .hero__badge {
    position: absolute; z-index: 3;
    top: var(--space-lg); right: clamp(16px, 4vw, 96px);
    margin: 0;
  }
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, .52fr) minmax(0, .48fr); gap: var(--space-xl); }
}

/* --- hero photo --- */
.hero__media { position: relative; order: 2; display: flex; justify-content: center; }
@media (min-width: 1200px) { .hero__media { order: 0; display: block; } }
.hero__media::before {
  content: ""; position: absolute; inset: -8% -12%;
  background: radial-gradient(420px 420px at 45% 45%, rgba(34,211,238,.16), transparent 70%);
  pointer-events: none; z-index: 0;
}
/* Растворение кадра сделано двумя вложенными одно-слойными масками
   (обёртка — вправо, сам <img> — вниз). Это надёжнее, чем mask-composite:
   пересечение получается самой вложенностью и работает во всех браузерах. */
.hero__frame {
  display: block; position: relative; z-index: 1;
  width: 100%; max-width: 420px;
}
@media (min-width: 768px) { .hero__frame { max-width: 48vw; } }
@media (min-width: 1200px) {
  .hero__frame {
    width: min(600px, 46vw); max-width: none;
    margin-left: calc(0px - clamp(var(--space-sm), 4vw, var(--content-padding)));
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
  }
}
.hero__photo {
  width: 100%; height: auto;
  object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}
@media (min-width: 1200px) {
  .hero__photo {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }
}

/* --- hero name plate --- */
.hero__name {
  position: relative; z-index: 3;
  order: 3;
  display: flex; align-items: center; gap: var(--space-sm);
  margin-top: calc(0px - var(--space-lg));
}
@media (min-width: 1200px) {
  .hero__name { position: absolute; order: 0; margin: 0; left: 0; bottom: 60px; }
}
.hero__bar { width: 4px; height: 52px; flex: none; background: var(--sig-accent); border-radius: 2px; }
.hero__person-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h6); line-height: var(--leading-h6);
  color: var(--text-headline-dark);
}
@media (min-width: 768px) { .hero__person-name { font-size: var(--text-h5); line-height: var(--leading-h5); } }
.hero__person-role {
  font-weight: 500; color: var(--sig-accent);
  font-size: var(--text-sm); line-height: var(--leading-base);
}
@media (min-width: 768px) { .hero__person-role { font-size: var(--text-base); } }

/* --- hero copy --- */
.hero__copy { order: 1; }
@media (min-width: 1200px) { .hero__copy { order: 0; } }
.hero__sub { margin-top: var(--space-md); max-width: 34ch; }
.hero__cta { margin-top: var(--space-lg); }
@media (min-width: 768px) { .hero__cta { min-width: 440px; } }
.hero__cta-note { margin-top: var(--space-xs); }

/* --- hero globe --- */
.hero__globe { display: none; }
@media (min-width: 1200px) {
  .hero__globe { display: block; right: -310px; top: 6%; width: 560px; opacity: .6; z-index: 0; }
}

/* ===================== PERKS (4 преимущества) ===================== */
.perks {
  position: relative; z-index: 2;
  margin-top: var(--space-xl);
  padding: var(--space-sm);
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 768px) {
  .perks { margin-top: var(--space-2xl); padding: var(--space-md) var(--space-lg); grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) { .perks { grid-template-columns: repeat(4, 1fr); } }

.perk { display: flex; align-items: flex-start; gap: var(--space-sm); padding-block: var(--space-sm); }
.perk + .perk { border-top: 1px solid var(--sig-card-border); }
@media (min-width: 768px) {
  .perk { padding: var(--space-xs) 0; }
  .perk + .perk { border-top: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--sig-card-border); padding-top: var(--space-md); margin-top: var(--space-xs); }
  .perk:nth-child(even) { border-left: 1px solid var(--sig-card-border); padding-left: var(--space-md); }
}
@media (min-width: 1200px) {
  .perk:nth-child(n+3) { border-top: 0; padding-top: var(--space-xs); margin-top: 0; }
  .perk + .perk { border-left: 1px solid var(--sig-card-border); padding-left: var(--space-md); }
}
.perk__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none;
  border-radius: var(--radius-lg);
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.22);
  color: var(--sig-accent);
}
.perk__title {
  font-weight: 600; color: var(--text-headline-dark);
  font-size: var(--text-sm); line-height: var(--leading-base);
}
@media (min-width: 1200px) { .perk__title { font-size: var(--text-base); } }
.perk__text {
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary); margin-top: 4px;
}
@media (min-width: 768px) { .perk__text { font-size: var(--text-sm); } }

/* ===================== SIGNALS ===================== */
.signals { overflow: clip; }
.signals__head { position: relative; z-index: 1; max-width: 46rem; }
.signals__title { margin-top: var(--space-sm); }
.signals__sub { margin-top: var(--space-sm); }
.signals__art { display: none; }
@media (min-width: 1024px) {
  .signals__art { display: block; right: clamp(0px, 2vw, 40px); top: 0; width: 340px; opacity: .5; }
}
@media (min-width: 1200px) { .signals__art { width: 440px; opacity: .95; } }

.signals__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-sm);
  margin-top: var(--space-xl);
}
@media (min-width: 768px)  { .signals__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } }
@media (min-width: 1024px) { .signals__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 1023.98px) { .signals__grid > :last-child { grid-column: 1 / -1; } }

.sig { padding: var(--space-sm); transition: transform .25s ease, border-color .25s ease; }
@media (min-width: 1200px) { .sig { padding: var(--space-md); } }
.sig:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.18); }
.sig__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-sm); }
.sig__inst { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sig__disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-full);
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.28);
  color: var(--sig-accent);
}
.sig__disc .ic { width: 18px; height: 18px; }
.sig__ticker {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h7); line-height: var(--leading-h7);
  color: var(--text-headline-dark);
}
.sig__cat {
  font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary);
}
.sig__right { display: flex; flex-direction: column; align-items: flex-end; }
.sig__badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 14px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--text-sm);
  border: 1px solid currentColor;
}
.sig__badge .ic { width: 14px; height: 14px; }
.sig__badge--buy  { color: var(--sig-green); background: rgba(52,211,153,.10); }
.sig__badge--sell { color: var(--sig-red);   background: rgba(248,113,113,.10); }
.sig__result {
  margin-top: var(--space-xs);
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h5); line-height: var(--leading-h5);
  color: var(--sig-green);
}
@media (min-width: 768px) { .sig__result { font-size: var(--text-h4); line-height: var(--leading-h4); } }
.sig__chart { width: 100%; height: 160px; margin-block: var(--space-md); min-height: 160px; }
@media (min-width: 768px) { .sig__chart { height: 190px; min-height: 190px; } }
@media (max-width: 479.98px) { .chart-grid-v { display: none; } }

.sig__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--sig-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* 4 метрики в один ряд только с 1280px: ниже «Соотношение» (81px при 12px)
   не влезает в колонку шириной 45-75px и рвётся переносом. Сетка 2x2 даёт
   каждой подписи целую строку. */
@media (min-width: 1440px) { .sig__metrics { grid-template-columns: repeat(4, 1fr); } }
.sig__metric {
  display: flex; flex-direction: column;
  padding: 10px; min-width: 0;
}
.sig__metric:nth-child(n+3) { border-top: 1px solid var(--sig-card-border); }
.sig__metric:nth-child(even) { border-left: 1px solid var(--sig-card-border); }
@media (min-width: 1440px) {
  .sig__metric { padding: 10px 8px; }
  .sig__metric:nth-child(n+3) { border-top: 0; }
  .sig__metric + .sig__metric { border-left: 1px solid var(--sig-card-border); }
}
.sig__metric dt {
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary);
  hyphens: manual; overflow-wrap: break-word;
}
@media (min-width: 1440px) {
  .sig__metric dt { font-size: 11px; letter-spacing: -.01em; }
}
.sig__metric dd {
  margin: 2px 0 0 0; padding-top: 2px; margin-top: auto; font-weight: 600;
  font-size: var(--text-sm); line-height: var(--leading-base);
  color: var(--text-headline-dark);
}
@media (min-width: 768px) { .sig__metric dd { font-size: var(--text-base); } }
.sig__metric--ratio dt,
.sig__metric--ratio dd { color: var(--sig-accent); }

.sig__time {
  display: flex; align-items: center; gap: var(--space-xs);
  margin-top: var(--space-sm); padding-top: var(--space-sm);
  border-top: 1px solid var(--sig-card-border);
  font-size: var(--text-sm); color: var(--text-secondary);
}
.sig__time .ic { width: 16px; height: 16px; color: var(--sig-accent); }
.sig__time b { color: var(--text-headline-dark); font-weight: 600; }

.signals__disclaimer { margin-top: var(--space-md); max-width: 92ch; }

/* ===================== STEPS ===================== */
.steps__head { max-width: 60ch; margin-inline: auto; text-align: center; }
.steps__title { margin-top: var(--space-sm); }
.steps__sub { margin-top: var(--space-sm); }
.steps__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: var(--space-sm);
  margin-top: var(--space-xl);
}
@media (min-width: 768px)  { .steps__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } }
@media (min-width: 1024px) { .steps__grid { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative; text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--sig-card) 60%, transparent);
  border: 1px solid var(--sig-card-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.step__num {
  position: absolute; top: var(--space-sm); left: var(--space-sm);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(34,211,238,.35);
  color: var(--sig-accent);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
}
.step__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: var(--space-md);
  color: var(--sig-accent);
}
.step__icon::before {
  content: ""; position: absolute; inset: -22px;
  background: radial-gradient(60px 60px at 50% 50%, rgba(34,211,238,.18), transparent 70%);
}
.step__icon .ic { width: 56px; height: 56px; stroke-width: 1.4; position: relative; }
.step--gold .step__icon { color: var(--sig-gold); }
.step--gold .step__icon::before { background: radial-gradient(60px 60px at 50% 50%, rgba(232,181,91,.18), transparent 70%); }
.step__title {
  margin-top: var(--space-md);
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-base); line-height: var(--leading-base);
  color: var(--text-headline-dark);
}
@media (min-width: 768px) { .step__title { font-size: var(--text-base-lg); line-height: var(--leading-base-lg); } }
.step__text { margin-top: 4px; font-size: var(--text-sm); line-height: var(--leading-base); color: var(--text-secondary); }

.step-arrow { display: none; }
@media (min-width: 1024px) {
  .step-arrow {
    display: block; position: absolute; top: 50%; width: 32px; height: 16px;
    transform: translate(-50%, -50%);
    color: var(--sig-accent);
    fill: none; stroke: currentColor; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none; z-index: 3;
  }
  /* центр k-го гапа в сетке из 4 равных колонок: k*W/4 + gap*(k/4 - .5) */
  .step-arrow--1 { left: calc(25% - 6px); }
  .step-arrow--2 { left: 50%; }
  .step-arrow--3 { left: calc(75% + 6px); }
}

/* ===================== WHY AMARKETS ===================== */
.why__card { overflow: hidden; display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .why__card { grid-template-columns: 1fr 1fr; } }
.why__body { padding: var(--space-md); }
@media (min-width: 768px)  { .why__body { padding: var(--space-lg); } }
@media (min-width: 1200px) { .why__body { padding: var(--space-xl); } }
.why__title { margin-top: var(--space-sm); }
.why__text { margin-top: var(--space-md); max-width: 42ch; }
.why__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-md); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  white-space: nowrap;
  min-height: 56px; padding-inline: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--sig-card-border);
  color: var(--text-headline-dark);
  font-size: var(--text-sm); font-weight: 500;
}
.chip__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: var(--radius-md);
  background: rgba(34,211,238,.12);
  color: var(--sig-accent);
}
.chip__icon .ic { width: 18px; height: 18px; }
.why__cta { margin-top: var(--space-lg); }
.why__cta-note { margin-top: var(--space-xs); }

.why__media { position: relative; }
.why__img {
  width: 100%; height: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; object-position: center 60%;
}
@media (min-width: 768px) { .why__img { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .why__img { aspect-ratio: auto; } }
.why__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sig-card) 0%, transparent 38%);
}
@media (min-width: 1024px) {
  .why__media::after { background: linear-gradient(90deg, var(--sig-card) 0%, transparent 38%); }
}
.why__logo { display: none; }
@media (min-width: 1024px) {
  .why__logo {
    display: block; position: absolute; z-index: 1;
    left: 18%; top: 14%; width: min(190px, 26%);
    text-align: center;
  }
  .why__logo img {
    width: 100%; height: auto;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.6));
  }
}

/* ===================== FAQ ===================== */
.faq__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: var(--space-xl); align-items: start; } }
.faq__title { margin-top: var(--space-sm); }
.faq__list { display: grid; gap: 12px; margin-top: var(--space-xl); }

.faq-item {
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--sig-card) 70%, transparent);
  border: 1px solid var(--sig-card-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 18px var(--space-sm);
  transition: border-color .25s ease;
}
@media (min-width: 768px) { .faq-item { padding: 18px var(--space-md); } }
.faq-item.is-open { border-color: rgba(34,211,238,.22); }
.faq-item__q {
  display: grid; grid-template-columns: 32px 1fr 24px; gap: var(--space-sm);
  align-items: start; width: 100%; text-align: left;
}
@media (min-width: 768px) { .faq-item__q { grid-template-columns: 40px 1fr 24px; } }
.faq-item__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: rgba(34,211,238,.10);
  color: var(--sig-accent);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
}
@media (min-width: 768px) { .faq-item__num { width: 40px; height: 40px; } }
.faq-item__text {
  font-weight: 600; color: var(--text-headline-dark);
  font-size: var(--text-sm); line-height: var(--leading-base);
  padding-top: 5px;
}
@media (min-width: 768px) { .faq-item__text { font-size: var(--text-base); } }
.faq-item__chev {
  width: 20px; height: 20px; margin-top: 8px; justify-self: end;
  color: var(--text-secondary);
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease, color .25s ease;
}
.faq-item__q[aria-expanded="true"] .faq-item__chev { transform: rotate(180deg); color: var(--sig-accent); }
.faq-item__a {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .32s ease, opacity .24s ease;
}
.faq-item__a.is-open {
  /* no-JS fallback: первый пункт открыт даже без скрипта; JS подставит точную высоту инлайном */
  max-height: 40rem;
  opacity: 1;
}
.faq-item__a > p {
  margin-top: 6px;
  padding-left: calc(32px + var(--space-sm));
  padding-right: calc(24px + var(--space-sm));
  font-size: var(--text-sm); line-height: var(--leading-base);
  color: var(--text-secondary);
}
@media (min-width: 768px) { .faq-item__a > p { padding-left: calc(40px + var(--space-sm)); } }

.faq__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.faq__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px)  { .faq__img { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .faq__img { aspect-ratio: 1 / 1; } }
.faq__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--sig-bg-bottom) 0%, transparent 32%),
    linear-gradient(180deg, rgba(6,13,26,.45), transparent 35%);
}

/* ===================== FINAL CTA ===================== */
.final {
  position: relative; overflow: clip;
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, #0A1628 0%, #060D1A 100%);
  border-block: 1px solid var(--sig-card-border);
}
@media (min-width: 768px) { .final { padding-block: var(--space-2xl); min-height: 380px; display: flex; align-items: center; } }
.final__globe, .final__candles { display: none; }
@media (min-width: 768px) {
  .final__globe   { display: block; left: -20px; top: 50%; transform: translateY(-50%); width: 480px; opacity: .5; }
  .final__candles { display: block; right: -20px; bottom: 0; width: 460px; opacity: .75;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%); }
}
.final__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; text-align: center; }
.final__sub { margin-top: var(--space-sm); }
.final__cta { margin-top: var(--space-lg); }
@media (min-width: 768px) { .final__cta { margin-inline: auto; } }
.final__note { margin-top: var(--space-xs); }

/* ===================== CONTACTS ===================== */
.contacts__card {
  padding: var(--space-md); text-align: center;
  background: color-mix(in srgb, var(--sig-card) 60%, transparent);
  border: 1px solid var(--sig-card-border);
  border-radius: var(--radius-xl);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px) { .contacts__card { padding: var(--space-xl); } }
.contacts__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-h7); line-height: var(--leading-h7);
  color: var(--text-headline-dark);
}
.contacts__row {
  display: flex; flex-direction: column; align-items: stretch;
  gap: var(--space-sm); margin-top: var(--space-md);
}
@media (min-width: 768px) { .contacts__row { flex-direction: row; justify-content: center; flex-wrap: wrap; } }
.contact-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--height-button); padding-inline: 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-headline-dark);
  font-size: var(--text-sm); font-weight: 500;
  transition: background .25s ease, border-color .25s ease;
}
@media (min-width: 1200px) { .contact-pill { font-size: var(--text-base); } }
.contact-pill .ic { width: 18px; height: 18px; color: var(--text-secondary); transition: color .25s ease; }
.contact-pill:hover { background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.28); }
.contact-pill:hover .ic { color: var(--sig-accent); }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--sig-card-border);
  background: var(--sig-bg-top);
  padding-block: var(--space-xl);
}
@media (min-width: 768px) { .site-footer { padding-block: var(--space-2xl); } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); } }
.site-footer__brand {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm);
  order: -1;
}
@media (min-width: 1024px) { .site-footer__brand { order: 2; justify-content: flex-end; } }
.wordmark {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h7); line-height: var(--leading-h7);
  color: var(--text-headline-dark);
}
.wordmark b { font-weight: 700; }
.wordmark__dot { color: var(--text-secondary-light); }
.pill-note {
  display: inline-flex; align-items: center;
  height: 34px; padding-inline: 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--sig-card-border);
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.site-footer__partner { width: 24px; height: 24px; }
.site-footer__legal { max-width: 72ch; order: 1; }
.site-footer__legal p {
  font-size: var(--text-xs); line-height: var(--leading-base);
  color: var(--text-secondary-light);
}
@media (min-width: 768px) { .site-footer__legal p { font-size: var(--text-sm); } }
.site-footer__legal p + p { margin-top: var(--space-sm); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-md); }
.site-footer__links a {
  font-size: var(--text-sm); color: var(--text-secondary-light);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s ease;
}
.site-footer__links a:hover { color: var(--sig-accent); }
.site-footer__copy {
  margin-top: var(--space-md);
  font-size: var(--text-xs); line-height: var(--leading-xs);
  color: var(--text-secondary-light);
}

/* ===================== reveal ===================== */
/* Скрываем только если JS жив: без скрипта контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes sig-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .globe__meridians {
    animation: sig-spin 48s linear infinite;
    transform-origin: 260px 260px;
    transform-box: view-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
