/* Лендинг под рекламу. Палитра и шрифт — как в 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 { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.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(34px, 8.6vw, 56px); font-weight: 800; }
.hero__title em { font-style: normal; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--body); max-width: 540px; }
.hero__note { font-size: 13px; color: var(--muted); margin-top: -8px; }
.stats { display: flex; gap: 12px; padding: 0; margin: 4px 0 0; list-style: none; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; padding: 12px 16px; min-width: 96px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.stats b { font-size: 22px; font-weight: 800; }
.stats span { font-size: 12px; color: var(--muted); }

.hero__visual { position: relative; display: flex; justify-content: center; min-height: 460px; }
.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--main { position: relative; z-index: 2; width: min(62vw, 270px); animation: float 7s ease-in-out infinite; }
.phone--side { position: absolute; z-index: 1; width: min(46vw, 210px); right: 2%; top: 16%; transform: rotate(7deg); opacity: 0.85; }
@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;
}
.chip b { font-size: 14px; }
.chip__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.chip--signal { left: 0; top: 18%; border-color: rgba(25, 242, 118, 0.4); }
.chip--signal b { color: var(--green); }
.chip--profit { left: 6%; bottom: 10%; border-color: rgba(255, 198, 64, 0.4); animation: float 8s ease-in-out infinite reverse; }
.chip--profit b { color: var(--gold); }

/* ---------- секции ---------- */
.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; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 76px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
[dir='rtl'] .step { padding: 22px 76px 22px 22px; }
.step__num {
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; background: var(--grad-cta); box-shadow: 0 8px 20px rgba(237, 44, 140, 0.3);
}
[dir='rtl'] .step__num { left: auto; right: 20px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--body); font-size: 15px; }

.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; }

/* ---------- появление при прокрутке ---------- */
.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; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero__title { font-size: clamp(44px, 4.4vw, 56px); }
  .hero__visual { min-height: 600px; }
  .phone--main { width: 300px; }
  .phone--side { width: 240px; right: 4%; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 76px 22px 24px; }
  [dir='rtl'] .step { padding: 76px 22px 24px; }
  .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; }
}
