/* ============================================================
   WE FAME — лендинг TikTok-агентства
   Design system + components + responsive
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #07040d;
  --bg-2:      #0d0820;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.18);

  --text:   #ffffff;
  --muted:  #b3a7d4;
  --muted-2:#8b80ad;

  --pink:   #ff2bd6;
  --violet: #7b2cff;
  --blue:   #2bb8ff;

  --grad:   linear-gradient(110deg, #ff2bd6 0%, #b22cff 50%, #7b2cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,43,214,.18), rgba(123,44,255,.18));

  --glow-pink:   0 0 40px rgba(255,43,214,.45);
  --glow-violet: 0 0 60px rgba(123,44,255,.40);

  --radius:   18px;
  --radius-lg:28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
/* height:auto обязателен: у картинок заданы атрибуты width/height,
   без него при сужении колонок на мобиле высота остаётся фиксированной → растягивание. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }
h1,h2,h3 { font-family: 'Montserrat', sans-serif; line-height: 1.05; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section__title {
  font-size: clamp(28px, 5.2vw, 56px);
  font-weight: 800; text-transform: uppercase; letter-spacing: -.02em;
}
.section__sub { color: var(--muted); margin-top: 14px; font-size: clamp(15px, 1.6vw, 18px); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx::before { /* base vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(123,44,255,.20), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(255,43,214,.16), transparent 60%),
    linear-gradient(180deg, #07040d, #0a0617 40%, #07040d);
}
/* Blobs намеренно рассеяны — большое blur не даёт резкой горизонтальной границы между секциями */
.blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .32; will-change: transform; }
.blob--pink   { width: 500px; height: 500px; background: #ff2bd6; top: -100px; left: -80px; animation: float1 16s var(--ease) infinite; }
.blob--violet { width: 640px; height: 640px; background: #7b2cff; top: 8%; right: -160px; animation: float2 20s var(--ease) infinite; }
.blob--blue   { width: 420px; height: 420px; background: #2b6bff; bottom: -100px; left: 25%; opacity: .20; animation: float1 24s var(--ease) infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
@keyframes float1 { 50% { transform: translate(60px, 50px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-70px, -40px) scale(1.05); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px rgba(178,44,255,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,43,214,.55); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface); color: #fff; border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--pink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,4,13,.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(7,4,13,.85); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo__img { height: 26px; width: auto; transition: filter .3s; }
.logo:hover .logo__img { filter: drop-shadow(0 0 12px rgba(255,43,214,.8)); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav__link { color: var(--muted); font-size: 15px; font-weight: 600; position: relative; transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }
.nav__cta { color: #fff; }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 12px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 90px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 22px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.hero__title { font-size: clamp(34px, 6.6vw, 76px); font-weight: 900; text-transform: uppercase; }
.hero__lead { color: var(--muted); font-size: clamp(15px, 1.8vw, 19px); max-width: 30em; margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__mini { display: flex; flex-wrap: wrap; gap: 24px 32px; list-style: none; padding: 0; margin-top: 38px; color: var(--muted-2); font-size: 14px; }
.hero__mini b { display: block; font-family: 'Montserrat'; font-size: 22px; font-weight: 800; color: #fff; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(123,44,255,.55), transparent 65%); filter: blur(20px); animation: pulseGlow 5s var(--ease) infinite; }
@keyframes pulseGlow { 50% { transform: scale(1.1); opacity: .8; } }
.hero__mascot { position: relative; width: min(100%, 460px); filter: drop-shadow(0 30px 60px rgba(123,44,255,.5)); animation: bob 6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-16px); } }
.chip {
  position: absolute; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(20,12,40,.7); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.chip--1 { top: 8%; left: -2%; animation: bob 5s var(--ease) infinite; }
.chip--2 { top: 44%; right: -6%; animation: bob 7s var(--ease) infinite .4s; }
.chip--3 { bottom: 8%; left: 6%; animation: bob 6.5s var(--ease) infinite .8s; }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.stat-card {
  position: relative; padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.stat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(123,44,255,.25); }
.stat-card:hover::before { opacity: 1; }
.stat-card__num { font-family: 'Montserrat'; font-weight: 900; font-size: clamp(40px, 6vw, 68px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card__label { color: var(--muted); margin-top: 14px; font-size: clamp(14px, 1.4vw, 16px); }

/* ---------- Phone component ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 19; border-radius: 32px;
  background: #0a0714; padding: 7px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.5);
  overflow: hidden;
}
.phone::before { /* neon edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(160deg, var(--pink), var(--violet) 60%, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3;
  box-shadow: var(--glow-violet);
}
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 38%; height: 18px; background: #0a0714; border-radius: 0 0 14px 14px; z-index: 4; }
.phone__media { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 26px; object-fit: cover; object-position: top center; background: #0d0820; }
.phone__live {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: rgba(255,43,214,.92); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: var(--radius-pill); letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(255,43,214,.5);
}
.phone__views {
  position: absolute; bottom: 14px; left: 16px; z-index: 5;
  background: rgba(10,7,20,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
}
.phone__views::before { content: "👁 "; }

/* ---------- Streamers — 3D-коверфлоу «фигура + телефон» (доделка/_ref_streamers.png) ----------
   Кольцо юнитов плавно вращается: центральный крупный и яркий, соседи меньше и затемнены,
   дальние тают. Каждой карточке JS пишет инлайн transform/opacity/filter (js/main.js →
   initStreamers) — поэтому здесь у .s-card только позиционирование и transition. */


.streamers .section__head { text-align: center; max-width: none; margin-inline: auto; margin-bottom: clamp(24px, 3.5vw, 58px); }
/* заголовок — белый, как в референсе (текст.png), с лёгким свечением */
.streamers .section__title { color: #fff; text-shadow: 0 0 30px rgba(123,44,255,.45), 0 0 60px rgba(255,43,214,.25); }
.streamers .section__title .grad { -webkit-text-fill-color: initial; background: none; color: #fff; }

.streamers__stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}

/* сцена-«окно»: по бокам обрезаем, сверху даём фигурам выходить за телефон */
.streamers__viewport {
  --unit-w: clamp(228px, 25vw, 360px);
  /* окно на ровно 3 телефона: соседи влезают, четвёртый/пятый обрезаются краем (не гаснут) */
  position: relative; width: 100%; max-width: calc(var(--unit-w) * 2.44);
  margin-inline: auto;
  /* высоты хватает, чтобы голова фигуры помещалась ВНУТРИ окна, поэтому можно
     обычный overflow:hidden (надёжно во всех браузерах) вместо хрупкой пары
     overflow-x:clip + overflow-y:visible, которая в Safari режет фигуры */
  height: calc(var(--unit-w) * 1.32 + clamp(60px, 9vw, 120px));
  overflow: hidden;
  /* плавное растворение краёв вместо жёсткого прямоугольного обреза */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  mask-composite: intersect;
}

/* тихая аура за центральным телефоном */
.streamers__viewport::before {
  content: ""; position: absolute; left: 50%; top: 52%;
  width: min(42%, 380px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,43,214,.16), rgba(123,44,255,.08) 40%, transparent 66%);
  filter: blur(32px); pointer-events: none; z-index: 0;
}

.streamers__track { position: absolute; inset: 0; }

/* карточка-юнит: абсолютно по центру сцены, дальше двигает/масштабирует JS */
.s-card {
  position: absolute; left: 50%; bottom: 0;
  width: var(--unit-w); aspect-ratio: 100 / 132;
  margin-left: calc(var(--unit-w) / -2);
  transform-origin: 50% 60%;
  transition: transform .62s cubic-bezier(.33, 0, .2, 1), opacity .5s var(--ease);
  cursor: pointer;
}
.s-card.is-center { cursor: default; }
.s-card.no-anim { transition: none; }
/* Затемнение — через filter:brightness() напрямую на .phone и .s-card__figure (JS ставит инлайн).
   Никаких ::after тёмных прямоугольников — нет видимых "бордеров" вокруг боковых карточек. */
.s-card.no-anim .phone,
.s-card.no-anim .s-card__figure { transition: none !important; }
.s-stage { position: relative; width: 100%; height: 100%; isolation: isolate; }

/* телефон — правые ~62.5% юнита, лёгкий 3D-наклон + магента-неон (как в референсе) */
.streamers .phone {
  position: absolute; right: 0; bottom: 0; width: 62.5%;
  transform: perspective(1300px) rotateY(-16deg); transform-origin: 50% 50%;
  transition: filter .5s var(--ease);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.05),
    0 26px 60px rgba(0,0,0,.6),
    -12px 16px 52px rgba(255,43,214,.45),
    0 0 72px rgba(123,44,255,.34);
}
/* центральный (геройский) телефон светится заметно сильнее боковых */
.s-card.is-center .phone {
  box-shadow:
    0 0 0 2px rgba(255,255,255,.06),
    0 30px 72px rgba(0,0,0,.6),
    -16px 20px 72px rgba(255,43,214,.6),
    0 0 100px rgba(123,44,255,.5);
}

/* аниме-фигура: статична (как в эталоне), filter+transition — яркость ставит JS */
.s-card__figure {
  position: absolute; left: 30%; bottom: 0;
  height: 113%; width: auto; max-width: none; z-index: 5; pointer-events: none;
  transform: translateX(-50%);
  transition: filter .5s var(--ease);
  filter: drop-shadow(0 26px 42px rgba(0,0,0,.62)) drop-shadow(0 0 0px rgba(255,43,214,0)) brightness(1);
}

/* стрелки-перелистывание (белые шевроны по краям, как в референсе) */
.streamers__arrow {
  position: absolute; top: 46%; transform: translateY(-50%);
  z-index: 6; padding: 10px 16px; background: none; border: 0; font-family: inherit;
  font-size: clamp(40px, 4.4vw, 62px); line-height: 1; color: #fff;
  opacity: .6; cursor: pointer; user-select: none; text-shadow: 0 2px 16px rgba(0,0,0,.6);
  transition: opacity .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.streamers__arrow:hover { opacity: 1; color: var(--pink); transform: translateY(-50%) scale(1.18); }
.streamers__arrow--prev { left:  clamp(4px, 3vw, 48px); }
.streamers__arrow--next { right: clamp(4px, 3vw, 48px); }

.carousel__nav { display: flex; gap: 10px; }
.cbtn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 26px; line-height: 1; color: #fff;
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.cbtn:hover { background: var(--grad); border-color: transparent; transform: scale(1.08); box-shadow: var(--glow-pink); }
.cbtn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; background: var(--surface); border-color: var(--line); }

/* ---------- Dots ---------- */
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all .3s var(--ease); }
.dots button.active { width: 26px; border-radius: 6px; background: var(--grad); }

/* ---------- Reviews slider ---------- */
.slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 2vw, 22px); }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .55s var(--ease); user-select: none; -webkit-user-select: none; }
.slider__viewport { cursor: grab; }
.slider__viewport.dragging { cursor: grabbing; }
.review {
  flex: 0 0 100%; position: relative;
  padding: clamp(30px, 4vw, 54px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--line);
}
.review__q { width: 46px; opacity: .9; margin-bottom: 18px; filter: drop-shadow(0 0 16px rgba(255,43,214,.5)); }
.review blockquote { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; line-height: 1.4; }
.review figcaption { margin-top: 22px; color: var(--muted); font-size: 15px; }
.review figcaption b { color: #fff; font-family: 'Montserrat'; }
.cbtn--edge { flex: 0 0 auto; }

/* ---------- Cooperation ---------- */
.coop__inner { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.features { list-style: none; padding: 0; margin-top: clamp(26px, 3vw, 40px); display: grid; gap: 14px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover { transform: translateX(6px); background: var(--surface-2); border-color: var(--line-2); }
.feature__ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 8px 20px rgba(178,44,255,.4);
}
.feature__ic svg { width: 24px; height: 24px; }
.feature b { font-family: 'Montserrat'; font-weight: 700; font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.coop__art { position: relative; display: grid; place-items: center; max-width: 380px; width: 100%; justify-self: center; }
.coop__glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,43,214,.4), transparent 65%); filter: blur(30px); }
.coop__phone { position: relative; width: min(100%, 300px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: bob 7s var(--ease) infinite; }
.coop__coins { position: absolute; right: -22px; bottom: 6%; width: 58px; opacity: .95; filter: drop-shadow(0 0 16px rgba(255,210,80,.5)); animation: bob 5s var(--ease) infinite .5s; }

/* ---------- Form ---------- */
.form { max-width: 760px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: block; }
.field__label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field__label i { color: var(--pink); font-style: normal; }
.field__input {
  width: 100%; padding: 15px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: #fff;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus { outline: none; border-color: var(--pink); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(255,43,214,.14); }
.field__input.invalid { border-color: #ff4d6d; box-shadow: 0 0 0 4px rgba(255,77,109,.14); }
.form .btn { margin-top: 6px; }
.form__status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form__status.ok { color: #46e6a0; }
.form__status.err { color: #ff6b85; }
.form__note { margin-top: 14px; font-size: 13px; color: var(--muted-2); }

/* Success overlay */
.success { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5,3,12,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .3s var(--ease); }
.success[hidden] { display: none; }
.success__box {
  max-width: 420px; width: 100%; text-align: center; padding: 44px 32px;
  border-radius: var(--radius-lg); background: linear-gradient(160deg, #160d2e, #0d0820);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: popIn .4s var(--ease);
}
.success__check { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 38px; font-weight: 800; box-shadow: var(--glow-pink); }
.success__box h3 { font-size: 26px; font-weight: 800; }
.success__box p { color: var(--muted); margin: 12px 0 26px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }

/* ---------- Community ---------- */
.community__inner { text-align: center; max-width: 820px; margin-inline: auto; }
.community .section__sub { margin-inline: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
.social {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 700;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.social img { width: 22px; height: 22px; object-fit: contain; }
.social:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--glow-pink); background: var(--surface-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { height: 24px; width: auto; opacity: .9; }
.footer__copy { color: var(--muted-2); font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { gap: clamp(10px, 3vw, 28px); }
  .hero__mascot { width: min(100%, 340px); }
  .coop__inner { gap: clamp(14px, 3vw, 40px); }
}

@media (max-width: 760px) {
  /* ---- Nav ---- */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px;
    padding: 96px 36px 40px; overflow-y: auto;
    background: rgba(9,5,20,.98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-size: 20px; }
  .nav__cta { margin-top: 6px; }
  .burger { display: flex; z-index: 95; }

  /* ---- Общие ---- */
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .section__head--row { align-items: center; }
  .slider { grid-template-columns: 1fr; }
  .cbtn--edge { display: none; }

  /* ---- Герой — схлопываем в 1 колонку ---- */
  .hero { padding-top: clamp(16px, 4vw, 28px); padding-bottom: clamp(24px, 5vw, 48px); }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* маскот идёт ПЕРВЫМ (над текстом) */
  .hero__art {
    order: -1;
    min-height: 220px;
    margin-inline: auto;
    width: 100%;
    max-width: 320px;
  }
  .hero__mascot { width: 100%; max-width: 260px; margin: 0 auto; }
  .hero__glow { width: 80%; }
  /* чипы — компактнее и по центру */
  .chip { font-size: 11px; padding: 5px 10px; }
  .chip--1 { left: 0; top: 12%; }
  .chip--2 { right: 0; top: 40%; }
  .chip--3 { bottom: 2%; left: 50%; transform: translateX(-50%); }
  /* текст и кнопки центрируем */
  .hero__actions { justify-content: center; }
  .hero__mini { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .badge { margin-inline: auto; }

  /* ---- Сотрудничество — 1 колонка, арт снизу ---- */
  .coop__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 48px);
  }
  .coop__art {
    max-width: 260px;
    margin-inline: auto;
  }
  .coop__phone { width: 100%; }
  .coop__coins { right: -16px; width: 46px; }

  /* ---- Стримеры — даём больше высоты чтобы голова не обрезалась ---- */
  .streamers__viewport {
    --unit-w: min(68vw, 290px);
    height: calc(var(--unit-w) * 1.32 + clamp(100px, 16vw, 150px));
  }
  .streamers .phone { transform: perspective(1100px) rotateY(-13deg); }

  /* ---- Форма ---- */
  .join .section__head { text-align: center; margin-inline: auto; }
  .join .section__sub  { margin-inline: auto; }
  .form { margin-inline: auto; }
}

@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .hero__mini { gap: 14px 24px; }
  .footer__inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
