/* Лендинг под рекламу. Палитра и шрифт — как в Mini App (packages/miniapp/src/styles/tokens.css). */

@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-cyrillic-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-vietnamese-wght-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --bg: #07030d;
  --surface: rgba(24, 14, 40, 0.72);
  --surface-strong: #140b24;
  --border: rgba(255, 255, 255, 0.1);
  --border-violet: rgba(186, 82, 255, 0.45);
  --text: #fffaff;
  --body: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.58);
  --violet: #8d46ff;
  --pink: #ff4fc7;
  --green: #19f276;
  --gold: #ffc640;
  --grad-cta: linear-gradient(135deg, #9a6bff 0%, #ff5fa8 100%);
  --grad-title: linear-gradient(90deg, #ff7ad0 0%, #b98cff 100%);
  --radius: 24px;
  --font: 'Manrope', 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { font-family: system-ui, 'Segoe UI', Tahoma, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* ---------- фон: «северное сияние» как на главной Mini App ----------
   Статичные радиальные градиенты, без filter: blur и анимации — размытие
   огромных слоёв вешало рендер, а FB-трафик — это дешёвые Android во
   встроенном браузере. */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45vmax 45vmax at 5% 0%, rgba(74, 26, 143, 0.55), transparent 70%),
    radial-gradient(40vmax 40vmax at 100% 30%, rgba(138, 29, 94, 0.45), transparent 70%),
    radial-gradient(35vmax 35vmax at 40% 100%, rgba(29, 47, 138, 0.3), transparent 70%);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 16px;
  background: var(--grad-cta); color: #fff; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(255, 170, 215, 0.55);
  box-shadow: 0 14px 34px rgba(237, 44, 140, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 44px rgba(237, 44, 140, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 18px; border-radius: 18px; width: 100%; max-width: 360px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: none; }
.btn--big { position: relative; overflow: hidden; }
.btn--big::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.tg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- верхняя панель ---------- */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 3, 13, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(186, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 70% 40%, #000 30%, transparent 75%);
}
.hero__bg .candles { position: absolute; left: 0; right: 0; bottom: 12%; width: 100%; height: 55%; opacity: 0.55; }
.hero__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 18%;
  background: linear-gradient(90deg, transparent, rgba(141, 70, 255, 0.1) 70%, rgba(255, 95, 168, 0.2) 98%, transparent);
  animation: scan 6s linear infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-violet); background: rgba(141, 70, 255, 0.12);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #e3cfff;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero__title { font-size: clamp(38px, 10vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero__title span, .hero__title em { display: block; }
/* A/B: пока не пришёл вариант (≤ 400 мс), тексты первого экрана прозрачные */
.hero__title, .hero__sub, .btn--hero span { transition: opacity 0.18s ease; }
.ab-wait .hero__title, .ab-wait .hero__sub, .ab-wait .btn--hero span { opacity: 0; }
.hero__title em {
  font-style: normal; background: linear-gradient(90deg, #ff7ad0, #b98cff 55%, #7fd8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--body); max-width: 500px; }
.btn--hero { min-height: 62px; font-size: 17px; max-width: 380px; white-space: nowrap; padding: 0 18px; }
@media (min-width: 420px) { .btn--hero { font-size: 19px; padding: 0 30px; } }
.hero__note { font-size: 13px; color: var(--muted); margin-top: -6px; }
.bonus {
  display: inline-flex; align-items: center; gap: 8px; margin-top: -4px; padding: 8px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 700; color: #ffe7a3; background: rgba(255, 198, 64, 0.12); border: 1px solid rgba(255, 198, 64, 0.38);
}
.bonus[hidden] { display: none; }
.bonus__gift { font-size: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 2px 0 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--body); }
.trust li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(25, 242, 118, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319f276' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__visual { position: relative; display: flex; justify-content: center; min-height: 470px; }
.glow { position: absolute; inset: 5% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(170, 80, 255, 0.5), rgba(170, 80, 255, 0.12) 60%, transparent); }
.phone {
  margin: 0; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #3a2460, #140b24 60%, #5a1f4d);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 28px; width: 100%; }
.phone--live { position: relative; z-index: 2; width: min(64vw, 260px); animation: float 7s ease-in-out infinite; }
.phone__screens { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 560 / 1212; background: #07030d; }
.phone__screens .screen { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.phone__screens .screen.is-active { opacity: 1; }
@keyframes float { 50% { transform: translateY(-12px); } }
.chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px;
  background: rgba(20, 11, 36, 0.94); border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); font-size: 13px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chip b { font-size: 14px; }
.chip__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.chip--scan { left: 0; top: 14%; border-color: rgba(141, 70, 255, 0.5); min-width: 170px; }
.chip__bar { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--pink)); transform-origin: left; animation: bar 2.6s ease-in-out infinite; }
@keyframes bar { from { transform: scaleX(0.05); } to { transform: scaleX(1); } }
.chip--signal { right: 0; top: 40%; border-color: rgba(25, 242, 118, 0.4); }
.chip--signal b { color: var(--green); }
.chip--profit { left: 6%; bottom: 8%; border-color: rgba(255, 198, 64, 0.4); }
.chip--profit b { color: var(--gold); }
/* плашки следуют за сменой экранов (скрипт ставит data-step); без JS видны все */
.hero__visual[data-step] .chip { opacity: 0; transform: translateY(8px); }
.hero__visual[data-step='0'] .chip--scan,
.hero__visual[data-step='1'] .chip--scan,
.hero__visual[data-step='2'] .chip--signal,
.hero__visual[data-step='3'] .chip--profit { opacity: 1; transform: none; }
[dir='rtl'] .chip--scan { left: auto; right: 0; }
[dir='rtl'] .chip--signal { right: auto; left: 0; }
[dir='rtl'] .chip--profit { left: auto; right: 6%; }

/* ---------- первый экран: эффекты (transform/opacity, без тяжёлого blur) ---------- */
.hero__blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__blobs i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(141, 70, 255, 0.28), transparent 70%);
  animation: blob 18s ease-in-out infinite alternate;
}
.hero__blobs i:nth-child(1) { left: -25vmax; top: -30vmax; }
.hero__blobs i:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(255, 79, 199, 0.22), transparent 70%); animation-duration: 22s; }
.hero__blobs i:nth-child(3) { left: 20vw; bottom: -35vmax; background: radial-gradient(closest-side, rgba(69, 200, 255, 0.14), transparent 70%); animation-duration: 26s; }
@keyframes blob { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

/* строки заголовка появляются по очереди, градиент второй строки переливается */
.hero__title span, .hero__title em { animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero__title em { animation: rise-in 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both, shimmer 6s 1s linear infinite; background-size: 200% auto; }
.hero__sub { animation: rise-in 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero__copy .btn--hero, .hero__copy .trust { animation: rise-in 0.8s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes shimmer { to { background-position: -200% center; } }

/* бегущая светящаяся рамка вокруг главной кнопки */
.btn--hero { overflow: visible; }
/* кольцо рисуется маской только по краю — поверх самой кнопки оно не ложится */
.btn--hero::before {
  content: ''; position: absolute; inset: -3px; border-radius: 21px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), #ff5fa8, #9a6bff, #45c8ff, #ff5fa8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 4s linear infinite;
}
.btn--hero::after { display: none; } /* блик .btn--big вылезал бы за кнопку: рамки достаточно */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }

/* «ядро AI» за телефоном: кольца и орбиты */
.core { position: absolute; z-index: 1; width: min(88vw, 440px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.core__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 95, 168, 0.9) 75%, rgba(154, 107, 255, 0.9) 88%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%);
  mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%);
  animation: spin 7s linear infinite;
}
.core__ring--inner { inset: 14%; animation-duration: 11s; animation-direction: reverse; opacity: 0.6; }
.core__orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(186, 140, 255, 0.18); animation: spin 16s linear infinite; }
.core__orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #7fd8ff; box-shadow: 0 0 14px #7fd8ff; }
.core__orbit--slow { inset: 20%; animation-duration: 24s; animation-direction: reverse; }
.core__orbit--slow i { background: var(--gold); box-shadow: 0 0 14px var(--gold); }

/* телефон в 3D-ракурсе и блик по стеклу */
.phone--live { transform-style: preserve-3d; }
.phone--live .phone__screens::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%);
  transform: translateX(-120%); animation: glare 5.5s ease-in-out 1.2s infinite;
}
@keyframes glare { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* бегущая лента пар с выплатами брокера */
.ticker {
  position: relative; margin-top: 34px; overflow: hidden; border-block: 1px solid rgba(186, 140, 255, 0.14); background: rgba(10, 5, 20, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 10px; padding: 12px 26px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--body); }
.ticker__item b { color: #fff; letter-spacing: 0.02em; }
.ticker__item small { color: var(--green); font-weight: 700; font-size: 13px; }
.ticker__item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }
[dir='rtl'] .ticker__track { animation-direction: reverse; }

@media (min-width: 980px) {
  .phone--live { animation: float3d 8s ease-in-out infinite; }
  @keyframes float3d {
    0%, 100% { transform: perspective(1400px) rotateY(-16deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(-10deg) rotateX(3deg) translateY(-14px); }
  }
  [dir='rtl'] .phone--live { animation-name: float3d-rtl; }
  @keyframes float3d-rtl {
    0%, 100% { transform: perspective(1400px) rotateY(16deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(10deg) rotateX(3deg) translateY(-14px); }
  }
  .core { width: 560px; }
  .hero__title { font-size: clamp(56px, 5.6vw, 80px); }
}

/* ---------- секции ---------- */
.section { padding: 56px 0; }
.section__title { font-size: clamp(28px, 5.4vw, 44px); font-weight: 800; text-align: center; }
.section__sub { text-align: center; color: var(--muted); margin-top: 10px; }

.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px var(--gutter) 12px;
  scrollbar-width: none; max-width: 1160px; margin: 0 auto;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.shot { margin: 0; flex: 0 0 min(64vw, 230px); scroll-snap-align: center; }
.shot figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--body); font-weight: 600; }

.features { display: grid; gap: 14px; margin-top: 36px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: var(--border-violet); transform: translateY(-3px); }
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px;
  background: rgba(141, 70, 255, 0.16); border: 1px solid var(--border-violet); color: #e0c6ff; font-size: 20px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--body); font-size: 15px; }

.faq { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin-top: 12px; }
.faq:first-of-type { margin-top: 32px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
[dir='rtl'] .faq summary { padding: 18px 20px 18px 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--pink); transition: transform 0.2s; }
[dir='rtl'] .faq summary::after { right: auto; left: 20px; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--body); }

.final__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 44px 20px; border-radius: 32px; max-width: 1128px;
  background: linear-gradient(160deg, rgba(74, 26, 143, 0.55), rgba(20, 11, 36, 0.9) 55%, rgba(138, 29, 94, 0.5));
  border: 1px solid var(--border-violet);
}
.final__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; z-index: -1; }
.final__card h2 { font-size: clamp(28px, 5.4vw, 44px); font-weight: 800; }
.final__card p { color: var(--body); max-width: 480px; }

.footer { padding: 40px 0 120px; border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 40px; }
.footer__risk { font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer__copy { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------- липкая кнопка на мобильных ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 3, 13, 0.92) 40%);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky.is-visible { transform: none; }

/* ---------- живые цифры и доверие ---------- */
.live { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.live[hidden], .live__item[hidden] { display: none; }
.live__item {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(25, 242, 118, 0.3); font-size: 15px; color: var(--body);
}
.live__num { font-size: 20px; font-weight: 800; color: #fff; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; }
.trust-cards { margin-top: 24px; }

/* ---------- мини-демо «AI-сигнал» ---------- */
.demo__card {
  position: relative; margin-top: 30px; padding: 26px 20px; border-radius: 28px; min-height: 320px;
  background: linear-gradient(160deg, rgba(74, 26, 143, 0.4), rgba(20, 11, 36, 0.92) 60%); border: 1px solid var(--border-violet);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.demo__pick, .demo__scan, .demo__result { display: none; width: 100%; flex-direction: column; align-items: center; gap: 16px; }
.demo__card[data-state='pick'] .demo__pick,
.demo__card[data-state='scan'] .demo__scan,
.demo__card[data-state='result'] .demo__result { display: flex; animation: fade 0.3s ease; }
.demo__label { font-weight: 700; color: var(--body); }
.demo__pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.demo__pair {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border-radius: 18px; cursor: pointer; font: inherit; color: #fff;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.demo__pair:hover { border-color: var(--border-violet); background: rgba(141, 70, 255, 0.14); transform: translateY(-2px); }
.demo__pair:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.demo__pair b { font-size: 18px; letter-spacing: 0.02em; }
.demo__pair small { font-size: 12px; color: var(--green); font-weight: 700; }
.demo__ring {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(141, 70, 255, 0.25), transparent 70%);
}
.demo__ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--pink) 90%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo__pair-name { font-size: 20px; font-weight: 800; }
.demo__step { min-height: 24px; color: var(--body); font-weight: 600; }
.demo__progress { width: 100%; max-width: 320px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.demo__progress i { display: block; height: 100%; width: 0; background: var(--grad-cta); }
.demo__card[data-state='scan'] .demo__progress i { animation: fill 2.4s linear forwards; }
@keyframes fill { to { width: 100%; } }
.demo__badge { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: rgba(255, 198, 64, 0.12); border: 1px solid rgba(255, 198, 64, 0.35); }
.demo__pair-name--result { color: var(--muted); font-size: 15px; letter-spacing: 0.08em; }
.demo__dir { display: flex; align-items: center; gap: 12px; font-size: clamp(38px, 10vw, 56px); font-weight: 800; letter-spacing: -0.02em; margin-top: -6px; }
.demo__dir[data-dir='up'] { color: var(--green); text-shadow: 0 0 30px rgba(25, 242, 118, 0.35); }
.demo__dir[data-dir='down'] { color: var(--pink); text-shadow: 0 0 30px rgba(255, 79, 199, 0.35); }
.demo__arrow { font-size: 0.8em; }
.demo__note { color: var(--muted); font-size: 14px; max-width: 420px; }
.demo__again { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media (min-width: 720px) { .demo__pairs { grid-template-columns: repeat(4, 1fr); max-width: 620px; } }

/* ---------- «что будет после клика»: макет чата ---------- */
.section__title--left, .section__sub--left { text-align: start; }
.after__grid { display: grid; gap: 36px; align-items: center; }
.after__copy { display: flex; flex-direction: column; gap: 14px; }
.after__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.after__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.after__list b { display: block; font-size: 17px; margin-bottom: 2px; }
.after__list p { color: var(--body); font-size: 15px; }
.after__num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--grad-cta); }

.chat { width: 100%; max-width: 380px; justify-self: center; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); background: #0e1621; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #17212b; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chat__head b { display: block; font-size: 15px; }
.chat__head span { font-size: 12px; color: #6d7f8f; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff !important; background: var(--grad-cta); }
.chat__body {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 18px; min-height: 420px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(141, 70, 255, 0.12), transparent 60%), #0e1621;
}
.msg { max-width: 84%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; color: #e9eef3; }
.msg--bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
[dir='rtl'] .msg--bot { align-self: flex-end; border-radius: 16px 16px 4px 16px; }
[dir='rtl'] .msg--me { align-self: flex-start; border-radius: 16px 16px 16px 4px; }
.msg__kb { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.msg__kb span { padding: 7px 8px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: #fff; }
.msg--signal { display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(25, 242, 118, 0.35); background: linear-gradient(160deg, #0b2a1d, #182533); }
.msg--signal b { color: var(--green); }
.msg__pair { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #8aa0b2; }
.chat__typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #182533; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #6d7f8f; animation: typing 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.5; } }
/* анимация включается скриптом; без JS все сообщения видны сразу */
.chat.is-anim .msg { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.35s ease, transform 0.35s ease; }
.chat.is-anim .msg.is-shown { opacity: 1; transform: none; }
.chat.is-anim.is-typing .chat__typing { display: flex; }
@media (min-width: 980px) {
  .after__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- отзывы ---------- */
.reviews[hidden] { display: none; }
.reviews__wrap { position: relative; max-width: 1160px; margin: 0 auto; }
.reviews__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px var(--gutter) 12px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.review {
  flex: 0 0 min(72vw, 280px); scroll-snap-align: center; margin: 0; padding: 8px; border: 0; cursor: zoom-in;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s;
}
.review:hover { transform: translateY(-3px); border-color: var(--border-violet); }
.review img { width: 100%; height: 380px; object-fit: cover; object-position: top; border-radius: 16px; background: #0e0818; }
.reviews__nav {
  display: none; position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -8px; border-radius: 50%;
  border: 1px solid var(--border-violet); background: rgba(20, 11, 36, 0.92); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.reviews__nav--prev { left: 6px; }
.reviews__nav--next { right: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; background: rgba(4, 2, 8, 0.92); animation: fade 0.2s ease; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 16px; cursor: zoom-out; }
.lightbox__close { position: absolute; top: 12px; right: 12px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
[dir='rtl'] .lightbox__close { right: auto; left: 12px; }
@media (min-width: 980px) {
  .reviews__nav { display: block; }
  .review { flex-basis: 260px; }
}

/* ---------- видео-гайд ---------- */
.guide[hidden] { display: none; }
.guide__player {
  position: relative; max-width: 880px; margin: 32px auto 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  background: #07030d; border: 1px solid var(--border-violet); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.guide__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.guide__cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(80% 90% at 30% 50%, rgba(141, 70, 255, 0.45), transparent 70%), linear-gradient(135deg, #1c1033, #07030d 70%, #3a0b2c);
  color: #fff; font-family: inherit;
}
.guide__cover.is-hidden { display: none; }
.guide__shot { position: absolute; right: 7%; top: 10%; height: 125%; width: auto; border-radius: 22px; opacity: 0.85; transform: rotate(6deg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
[dir='rtl'] .guide__shot { right: auto; left: 7%; transform: rotate(-6deg); }
.guide__play {
  position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); box-shadow: 0 0 0 10px rgba(255, 95, 168, 0.18), 0 16px 40px rgba(237, 44, 140, 0.45);
  transition: transform 0.2s ease;
}
.guide__play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.guide__cover:hover .guide__play { transform: scale(1.06); }
.guide__cover:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.guide__label { position: absolute; z-index: 1; left: 22px; bottom: 18px; display: flex; align-items: center; gap: 10px; font-size: 16px; }
[dir='rtl'] .guide__label { left: auto; right: 22px; }
.guide__cta { display: flex; justify-content: center; margin-top: 24px; }
@media (max-width: 719px) {
  .guide__play { width: 64px; height: 64px; }
  .guide__play svg { width: 26px; height: 26px; }
  .guide__label { font-size: 14px; left: 14px; bottom: 12px; }
}

/* ---------- «Telegram не открылся» ---------- */
.tg-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.tg-overlay[hidden] { display: none; }
.tg-overlay__backdrop { position: absolute; inset: 0; background: rgba(4, 2, 8, 0.72); animation: fade 0.2s ease; }
.tg-overlay__card {
  position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
  background: linear-gradient(170deg, #1c1033, #0d0718 70%); border: 1px solid var(--border-violet); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5); animation: rise 0.28s ease;
}
.tg-overlay__card h2 { font-size: 22px; font-weight: 800; }
.tg-overlay__text { color: var(--body); font-size: 15px; }
.tg-overlay__inapp { display: none; font-size: 14px; color: var(--gold); padding: 10px 14px; border-radius: 14px; background: rgba(255, 198, 64, 0.1); border: 1px solid rgba(255, 198, 64, 0.3); }
.tg-overlay.is-inapp .tg-overlay__inapp { display: block; }
.tg-overlay__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 12px 30px rgba(30, 150, 200, 0.4); }
.tg-overlay__icon .tg { width: 34px; height: 34px; color: #fff; }
.tg-overlay__x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
[dir='rtl'] .tg-overlay__x { right: auto; left: 12px; }
.tg-overlay__row { display: flex; gap: 10px; width: 100%; max-width: 360px; }
.tg-overlay__row .btn { flex: 1; }
.tg-overlay .btn--big { max-width: 360px; }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--border); box-shadow: none; font-size: 14px; padding: 0 12px; cursor: pointer; font-family: inherit; }
.btn--ghost:hover { box-shadow: none; background: rgba(255, 255, 255, 0.1); }
.btn--ghost.is-done { color: var(--green); border-color: rgba(25, 242, 118, 0.4); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) {
  .tg-overlay { align-items: center; }
  .tg-overlay__card { border-radius: 28px; border-bottom: 1px solid var(--border-violet); padding-bottom: 28px; }
}

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- планшет и десктоп ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .hero { padding: 64px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero__title { font-size: clamp(52px, 5.2vw, 72px); }
  .hero__visual { min-height: 620px; }
  .phone--live { width: 300px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 80px 0; }
  .gallery { justify-content: center; }
  .shot { flex-basis: 200px; }
  .sticky { display: none; }
  .footer { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- стартовый экран (?g=1): одна кнопка «СТАРТ» перед страницей ---------- */
.gate { display: none; }
.gate-on .gate {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(60vmax 60vmax at 50% 20%, rgba(74, 26, 143, 0.6), transparent 70%),
    radial-gradient(50vmax 50vmax at 50% 110%, rgba(138, 29, 94, 0.5), transparent 70%),
    var(--bg);
}
.gate-on body { overflow: hidden; }
.gate.is-leaving { animation: gate-out 0.35s ease forwards; }
@keyframes gate-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
.gate__btn {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  border: 1px solid rgba(255, 170, 215, 0.55); background: var(--grad-cta); color: #fff;
  font: 800 26px/1 var(--font); letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 18px 50px rgba(237, 44, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-tap-highlight-color: transparent; transition: transform 0.18s ease, filter 0.18s ease;
}
.gate__btn::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 95, 168, 0.55); animation: gate-ring 1.8s ease-out infinite;
}
@keyframes gate-ring { from { transform: scale(0.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.gate__btn:hover { filter: brightness(1.06); }
.gate__btn:active { transform: scale(0.96); }
.gate__btn:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .gate__btn::before { animation: none; }
  .gate.is-leaving { animation-duration: 0.01s; }
}
