:root {
  --accent: #766bf6;
  --accent-mid: #948cf9;
  --accent-soft: #bcb8fd;
  --accent-tint: #e6e4ff;
  --accent-deep: #3b2fb8;
  --green: #2fd26d;
  --green-dark: #1fab55;
  --green-deep: #0d5b2d;
  --green-tint: #cfffe1;
  --lime: #4cef8a;
  --ink-primary: #131313;
  --ink-secondary: #5f5f6e;
  --ink-muted: #8a8a99;
  --border-subtle: #d8d9df;
  --bg: #f4f5f6;
  --bg-soft: #e8ebf6;
  --surface: #ffffff;
  --radius-md: 16px;
  --shadow-card: 0 8px 24px 0 rgba(18, 18, 61, 0.06);
  --shadow-float: 0 16px 40px 0 rgba(18, 18, 61, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Onest', sans-serif;
  color: var(--ink-primary);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  padding: 16px 32px;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18,18,61,.18); }
.btn-dark { background: var(--ink-primary); color: #fff; }
.btn-white { background: #fff; color: var(--ink-primary); }
.btn-tg { background: rgba(255,255,255,.22); color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn-tg:hover { background: rgba(255,255,255,.34); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  text-wrap: balance;
}

.section { margin-top: 90px; }

/* ── Header ─────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { width: 30px; height: 30px; }
.logo span { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink-primary);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  transition: background .15s ease;
}
.login:hover { background: #fff; }
.login img { width: 13px; height: 13px; }

/* ── Hero ───────────────────────────────── */
.hero { margin-top: 8px; }
.hero-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 60px 62px;
  background: linear-gradient(104deg, #7166f4 0%, #8d84f8 38%, #a9a2fa 68%, #cbc7fd 100%);
  color: #fff;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Фактура растягивается на всю карточку (cover), поэтому внутри нет края
   картинки — раньше именно он давал вертикальный шов. Маска только смягчает. */
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/wave-dots.png') center center / cover no-repeat;
  opacity: .45;
  -webkit-mask-image: linear-gradient(100deg, transparent 12%, rgba(0,0,0,.45) 48%, #000 88%);
  mask-image: linear-gradient(100deg, transparent 12%, rgba(0,0,0,.45) 48%, #000 88%);
  pointer-events: none;
}
.hero-main::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -120px; top: -160px;
  border-radius: 58% 42% 52% 48% / 55% 50% 50% 45%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.dec { position: absolute; pointer-events: none; z-index: 0; max-width: none; }
/* Векторы из макета: размеры и привязка 1:1 с Figma.
   В макете hero-карточка 769px, оба элемента прижаты к её правому краю. */
.dec-hero-glow   { right: -188px; top: 14px;  width: 618px; height: 545px; }
.dec-hero-ribbon { right: -29px;  top: -68px; width: 305px; height: 356px; }
.hero-wm {
  position: absolute;
  right: 40px;
  bottom: -70px;
  font-size: 200px;
  font-weight: 800;
  letter-spacing: -6px;
  color: rgba(255,255,255,.13);
  line-height: 1;
  pointer-events: none;
}
.hero-label {
  position: relative; z-index: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  opacity: .88;
  margin-bottom: 24px;
}
.hero h1 {
  position: relative; z-index: 2;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 760px;
}
.hero-sub {
  position: relative; z-index: 2;
  font-size: 16px;
  line-height: 1.6;
  opacity: .94;
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-cta { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-faces {
  position: absolute; z-index: 2;
  top: 56px;
  right: 60px;
  display: flex;
  align-items: center;
}
.hero-faces .face {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  overflow: hidden;
  margin-left: -12px;
  background: #cfc9ff;
}
.hero-faces .face img { width: 100%; height: 100%; object-fit: cover; }
.hero-faces .more {
  width: 50px; height: 50px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--ink-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* вторичная полоса «Пример дохода» — только в варианте Б */
.income-strip {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.income-strip .t { font-size: 14px; font-weight: 600; white-space: nowrap; }
.income-strip .items { display: flex; gap: 26px; flex: 1 1 auto; flex-wrap: nowrap; }
.income-strip .it { font-size: 14px; color: var(--ink-secondary); white-space: nowrap; }
.income-strip .it b { color: var(--ink-primary); font-weight: 600; }
.income-strip .x2 {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-tint);
  border-radius: 100px;
  padding: 10px 18px 10px 10px;
  flex-basis: 100%;
}
.income-strip .x2 i {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-style: normal;
}
.income-strip .x2 span { font-size: 12.5px; font-weight: 500; color: var(--green-deep); }

/* ── Кому подходит — 3 крупные карточки ── */
.aud-sec {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 24px;
  padding: 56px 40px 60px;
}
.dec-aud-wave { left: -42px; bottom: -88px; width: 534px; height: 502px; }
.aud-head { position: relative; z-index: 1; text-align: center; margin-bottom: 34px; }
.aud-head .h2 { margin-bottom: 14px; }
.aud-head p { font-size: 14px; color: var(--ink-secondary); max-width: 660px; margin: 0 auto; }
.aud-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aud-card {
  position: relative;
  background: #f6f7fb;
  border-radius: 20px;
  padding: 34px 32px 36px;
  overflow: hidden;
}
.aud-card .num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.aud-card h3 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.aud-card p { font-size: 14px; color: var(--ink-secondary); line-height: 1.6; position: relative; }

/* ── What is ────────────────────────────── */
.whatis {
  background: var(--ink-primary);
  border-radius: 24px;
  padding: 58px 60px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.whatis .glow {
  position: absolute;
  width: 640px; height: 340px;
  left: 50%; top: -220px;
  transform: translateX(-50%);
  background: rgba(118,107,246,.55);
  filter: blur(160px);
  pointer-events: none;
}
.whatis .h2 { margin-bottom: 40px; position: relative; }
.whatis-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 30px;
  text-align: left;
  margin-bottom: 44px;
  position: relative;
}
.whatis-cols .rule { background: rgba(255,255,255,.14); }
.whatis-cols p { font-size: 14px; line-height: 1.65; color: #c9c9d4; }
.whatis-cols .hl { color: #9d94ff; font-weight: 600; }
.formula { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.formula .pill { border-radius: 100px; padding: 15px 28px; font-size: 15px; font-weight: 600; }
.formula .pill.p1 { background: var(--accent); color: #fff; }
.formula .pill.p2 { background: #fff; color: var(--ink-primary); }
.formula .pill.p3 { background: var(--lime); color: #0d3a20; }
.formula .arr { color: var(--ink-muted); font-size: 18px; }

/* ── How it works ───────────────────────── */
.how {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 60px 40px 44px;
  position: relative;
  overflow: hidden;
}
.dec-how-wave { left: -476px; top: 66px; width: 2217px; height: 355px; }
.how .h2 { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }
.how-cards, .how-note { z-index: 1; }
.how-cards { position: relative; height: 500px; }
.how-card {
  position: absolute;
  width: 340px;
  transform-origin: 0 0;
  background: var(--surface);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-float);
}
.how-card h3 { font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 14px; }
.how-card.c1 h3, .how-card.c3 h3 { color: var(--accent); }
.how-card.c2 h3, .how-card.c4 h3 { color: var(--green); }
.how-card p { font-size: 15px; color: var(--ink-secondary); line-height: 1.45; }
.how-card .btn { margin-top: 18px; padding: 12px 24px; font-size: 13px; }
.how-card .hold {
  margin-top: 16px;
  background: var(--accent-mid);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.5;
}
/* координаты и углы из макета; порядок наложения — как слои в Figma:
   каждая следующая карточка лежит поверх предыдущей */
.how-card.c1 { left: 3px;   top: 32px;  transform: rotate(-2deg); z-index: 1; }
.how-card.c2 { left: 239px; top: 126px; transform: rotate(-5deg); z-index: 2; }
.how-card.c3 { left: 503px; top: 0;     transform: rotate(4deg);  z-index: 3; }
.how-card.c4 { left: 737px; top: 151px; transform: rotate(7deg);  z-index: 4; }
.how-note {
  position: relative;
  margin-top: -115px;
  max-width: 380px;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Earnings ───────────────────────────── */
.earn-head { margin-bottom: 30px; }
.earn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.earn-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 30px;
  color: #fff;
  min-height: 232px;
  display: flex;
  flex-direction: column;
}
.earn-card.green  { background: #3fd476 url('assets/earn-green.jpg') right bottom / cover no-repeat; }
.earn-card.purple { background: #8a80f7 url('assets/earn-purple.jpg') right bottom / cover no-repeat; }
.earn-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 18px; position: relative; z-index: 1; }
.earn-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.earn-line .l { opacity: .85; }
.earn-line .v { font-weight: 600; }
.earn-sum { position: relative; margin-top: auto; }
.earn-sum .l { font-size: 12.5px; opacity: .85; display: block; margin-bottom: 4px; }
.earn-sum .v { font-size: 40px; font-weight: 600; letter-spacing: -1px; line-height: 1.05; }
.earn-note { margin-top: 22px; font-size: 12.5px; color: var(--ink-muted); }

/* ── Grades ─────────────────────────────── */
.grades {
  background: var(--surface);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.grades .h2 { margin-bottom: 12px; }
.grades .sub { font-size: 15px; color: var(--ink-secondary); margin-bottom: 40px; }
.grades-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.grades-row::before {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 59px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-soft), var(--accent), var(--green), var(--lime));
  border-radius: 4px;
  z-index: 0;
}
.grade { z-index: 1; }
.grade {
  position: relative;
  background: #f6f7fb;
  border-radius: 18px;
  padding: 30px 22px 26px;
}
.grade .medal {
  width: 62px; height: 62px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-card);
  position: relative;
}
.grade.g1 .medal { background: linear-gradient(140deg, #e3a76d, #b06a2c); }
.grade.g2 .medal { background: linear-gradient(140deg, #dfe3ea, #98a1b0); }
.grade.g3 .medal { background: linear-gradient(140deg, #ffd97a, #e0a520); }
.grade.g4 .medal { background: linear-gradient(140deg, #cfd6ee, #7f8bb0); }
.grade h3 { font-size: 19px; font-weight: 600; }
.grade.g4 { background: var(--ink-primary); }
.grade.g4 h3 { color: #fff; }

/* ── Calculator ─────────────────────────── */
.calc-head {
  position: relative; z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.calc-head .sub {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: right;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 300px;
}
.calc {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}
.calc > * { min-width: 0; }
.slider-box { background: #f5f7fc; border-radius: 14px; padding: 24px; margin-bottom: 14px; }
.slider-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.slider-top .name { font-size: 15px; font-weight: 500; }
.slider-top .val {
  background: #fff;
  border-radius: 100px;
  padding: 6px 15px;
  border: 1px solid #ddddf0;
  display: inline-flex;
  transition: border-color .15s ease, box-shadow .15s ease;
  flex: none;
}
.slider-top .val:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(118,107,246,.15); }
.slider-top .val input {
  width: 9ch;
  border: 0; outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  padding: 0;
  cursor: text;
}
#qtyVal { width: 3ch; }
.slider-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-top: 8px; }
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 15%), #dfe3ef var(--fill, 15%), #dfe3ef 100%);
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 6px rgba(20,19,61,.2);
  cursor: grab;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; }
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: grab;
}
.calc-example {
  background: var(--accent-tint);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}
.calc-result {
  background: var(--ink-primary);
  border-radius: 14px;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.calc-result .l { font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.calc-result .sum { font-size: 46px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; margin-bottom: 18px; }
.calc-alt { background: #1b3a28; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.calc-alt .or { display: block; font-size: 12px; color: #8fdcab; margin-bottom: 2px; }
.calc-alt .v { font-size: 16.5px; font-weight: 600; color: var(--lime); }
.calc-note { font-size: 11.5px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 18px; }
.calc-result .btn { margin-top: auto; width: 100%; }

/* ── x2 offer ───────────────────────────── */
.offer {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 70px 60px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #8d84f8 0%, #a9a2fa 45%, #c9c5fd 100%);
}
.dec-offer-l { left: -76px;  top: -87px;    width: 288px; height: 208px; }
.dec-offer-r { right: -69px; bottom: -76px; width: 291px; height: 204px; }
.offer .h2, .offer .sub, .offer-example { z-index: 1; }
.offer .wm {
  position: absolute;
  right: -30px; bottom: -110px;
  font-size: 300px; font-weight: 800;
  color: rgba(255,255,255,.14);
  line-height: 1;
  pointer-events: none;
}
.offer .h2 { position: relative; margin-bottom: 16px; }
.offer .sub { position: relative; font-size: 15px; line-height: 1.6; opacity: .95; margin-bottom: 34px; }
.offer-example {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 26px 12px 12px;
  color: var(--ink-primary);
  text-align: left;
  box-shadow: var(--shadow-float);
}
.offer-example .chip {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.offer-example .cap { display: block; font-size: 11.5px; color: var(--ink-muted); margin-bottom: 2px; }
.offer-example .line { font-size: 17px; font-weight: 600; }

/* ── Why ────────────────────────────────── */
.why { background: var(--surface); border-radius: 24px; padding: 60px 40px; }
.why .h2 { text-align: center; margin-bottom: 36px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-card { border-radius: var(--radius-md); padding: 34px; position: relative; overflow: hidden; }
.why-card.purple { background: linear-gradient(135deg, #877df7 0%, #b5affb 100%); color: #fff; }
.why-card.white  { background: #f6f7fb; }
.why-card.green  { background: linear-gradient(135deg, #43d377 0%, #23b357 100%); color: #fff; }
.why-card.dark   { background: var(--ink-primary); color: #fff; }
.why-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; position: relative; }
.why-card p { font-size: 13.5px; line-height: 1.6; position: relative; max-width: 380px; }
.why-card.purple p, .why-card.green p { opacity: .93; }
.why-card.white p { color: var(--ink-secondary); }
.why-card .art { position: absolute; pointer-events: none; }
.why-card.purple .art { width: 230px; right: -18px; bottom: -26px; }
.why-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; }
.why-chips span {
  background: #fff;
  border: 1px solid #e3e5ef;
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}
.why-card.green .art { width: 215px; right: -14px; bottom: -12px; }
.why-card.green p { max-width: 275px; }
.facts { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.fact {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 16px;
}
.fact b { color: var(--lime); font-size: 15px; font-weight: 600; white-space: nowrap; }
.fact span { font-size: 12.5px; color: #c4c7d0; font-weight: 500; }

/* ── Promote ────────────────────────────── */
.promote-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 28px;
}
.promote-head .sub {
  font-size: 13px; color: var(--ink-muted); text-align: right;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
}
.promote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 30px;
  color: #fff;
  min-height: 228px;
}
.promo-card.purple { background: linear-gradient(120deg, #7166f4 0%, #a49dfa 100%); }
.promo-card.green  { background: linear-gradient(120deg, #2fc768 0%, #4ce88a 100%); }
.promo-card h3 { font-size: 23px; font-weight: 600; line-height: 32px; margin-bottom: 24px; position: relative; z-index: 1; }
.promo-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 400px; position: relative; z-index: 1; }
/* у детской карточки чипы не должны заходить под джойстик */
.promo-card.green .promo-chips { max-width: 290px; }
.promo-chips span {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
/* ракета и джойстик — рендер из макета с её цветокором, 3×; место и размер как в Figma */
.promo-card .art { position: absolute; pointer-events: none; max-width: none; }
.promo-card.purple .art { width: 155px; right: 10px; top: 30px; }
.promo-card.green .art { width: 368px; right: -40px; top: -11px; }

/* ── Terms scatter ──────────────────────── */
.terms { background: var(--bg-soft); border-radius: 24px; padding: 60px 40px 50px; position: relative; overflow: hidden; }
.dec-terms-wave { left: -476px; top: 66px; width: 2217px; height: 355px; }
.terms .h2 { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }
.terms-canvas { z-index: 1; }
.terms-canvas { position: relative; height: 470px; margin-top: 15px; }
.term-card {
  position: absolute;
  background: var(--surface);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-float);
  width: 340px;
  transform-origin: 0 0;
}
.term-card h3 { font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 12px; }
.term-card p { font-size: 15px; color: var(--ink-secondary); line-height: 1.45; }
.term-card.purple h3 { color: var(--accent); }
.term-card.green h3 { color: var(--green); }
/* координаты и углы из макета, порядок наложения — как слои в Figma */
.term-card.t1 { left: 3px;   top: 114px; transform: rotate(-2deg); z-index: 1; }
.term-card.t2 { left: 240px; top: 27px;  transform: rotate(-4deg); z-index: 2; }
.term-card.t3 { left: 184px; top: 260px; transform: rotate(2deg);  z-index: 3; }
.term-card.t4 { left: 503px; top: 124px; transform: rotate(4deg);  z-index: 4; }
.term-card.t5 { left: 698px; top: 283px; transform: rotate(-4deg); z-index: 5; }
.term-card.t6 { left: 737px; top: -15px; transform: rotate(7deg);  z-index: 6; }

/* ── Dashboard ──────────────────────────── */
.dash {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 50px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: center;
}
.dash > * { min-width: 0; }
.dash-left .h2 { margin-bottom: 16px; }
.dash-left .q { font-size: 14px; font-weight: 500; color: var(--ink-secondary); margin-bottom: 22px; }
.dash-list { list-style: none; }
.dash-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #eceef4;
  font-size: 14.5px;
  font-weight: 600;
}
.dash-list li:first-child { border-top: 0; }
.dash-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.mock {
  background: #f5f7fc;
  border: 1px solid #e3e7f1;
  border-radius: 18px;
  padding: 26px;
}
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-top .t { font-size: 17px; font-weight: 600; }
.mock-top .tag {
  background: var(--accent-tint); color: var(--accent-deep);
  border-radius: 100px; padding: 5px 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
}
.mock-link {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #e3e7f1;
  border-radius: 100px;
  padding: 8px 9px 8px 16px;
  margin-bottom: 16px;
}
.mock-link .url { font-size: 13.5px; color: var(--ink-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-link .copy {
  background: var(--ink-primary); color: #fff;
  border: 0; border-radius: 100px;
  padding: 9px 18px;
  font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-tile { background: #fff; border-radius: 12px; padding: 16px 18px; }
.mock-tile .l { font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }
.mock-tile .v { font-size: 20px; font-weight: 600; }
.mock-tile .v.green { color: var(--green-dark); }
.mock-chart { background: #fff; border-radius: 12px; padding: 18px; }
.mock-chart-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-bottom: 14px; }
.mock-chart-top .t { color: var(--ink-secondary); font-weight: 500; font-size: 13px; }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.mock-bars i { flex: 1; border-radius: 4px; background: #d6d3ff; }
.mock-bars i:nth-child(3n) { background: var(--accent); }

/* ── Cases ──────────────────────────────── */
.cases-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 28px;
}
.cases-head .sub {
  font-size: 13px; color: var(--ink-muted); text-align: right;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
  max-width: 360px;
}
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 34px 36px;
  position: relative;
  overflow: hidden;
}
.case-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; position: relative; }
.case-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eceef4;
  font-size: 13.5px;
  color: var(--ink-secondary);
  position: relative;
}
.case-row:last-child { border-bottom: 0; padding-bottom: 0; }
.case-row .v { font-size: 16px; font-weight: 600; color: var(--ink-primary); white-space: nowrap; }
.case-row .v.income { font-size: 26px; color: var(--green-dark); letter-spacing: -.5px; }

/* ── Become ─────────────────────────────── */
.become {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 56px 60px;
  color: #fff;
  background: linear-gradient(120deg, #7166f4 0%, #948cf9 55%, #bcb8fd 100%);
  display: grid;
  grid-template-columns: 1fr 396px;
  gap: 54px;
  align-items: center;
}
.become > * { min-width: 0; }
.dec-become-wave { left: 677px; top: 38px; width: 534px; height: 502px; }
.become-left, .become-cta { position: relative; z-index: 1; }
.become-left .h2 { margin-bottom: 26px; }
.become-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 16px;
  font-weight: 600;
}
.become-step:first-of-type { border-top: 0; }
.become-step .chk {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-deep);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.become-cta {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 34px 32px;
  color: var(--ink-primary);
  box-shadow: var(--shadow-float);
  text-align: center;
}
.become-cta .ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 21px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.become-cta h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.become-cta p { font-size: 13.5px; color: var(--ink-secondary); margin-bottom: 20px; }
.become-cta .btn { width: 100%; }
.become-cta .tg {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 13px; font-weight: 500;
  color: var(--accent-deep);
}
.become-cta .tg svg { width: 16px; height: 16px; fill: var(--accent); }
.become-cta .tg:hover { text-decoration: underline; }

/* ── FAQ ────────────────────────────────── */
.faq { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.faq-aside { position: sticky; top: 24px; }
.faq-aside .h2 { margin-bottom: 16px; }
.faq-aside p { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.6; margin-bottom: 20px; }
.faq-aside .tg-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.faq-aside .tg-card i {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.faq-aside .tg-card svg { width: 19px; height: 19px; fill: var(--accent); }
.faq-aside .tg-card .l { display: block; font-size: 12px; color: var(--ink-muted); }
.faq-aside .tg-card .n { font-size: 14px; font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border-radius: 12px; padding: 20px 24px; cursor: pointer; transition: background .2s ease; }
.faq-item.open { background: var(--accent-tint); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq-q h3 { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.faq-q .ic {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f0f2f8;
  color: var(--ink-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.faq-item.open .ic { background: var(--accent); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  font-size: 13.5px; color: var(--ink-secondary); line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 260px; padding-top: 14px; }

/* ── Final ──────────────────────────────── */
.final {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 60px 70px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #22b358 0%, #35ca6c 55%, #3fd876 100%);
}
.final-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.14);
  border-radius: 100px;
  padding: 8px 17px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 26px;
}
.final-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.final h2 { font-size: 52px; font-weight: 600; line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 24px; text-wrap: balance; }
.final p { font-size: 15px; line-height: 1.7; opacity: .97; margin-bottom: 34px; }
.final-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.final .note { display: block; margin-top: 18px; font-size: 12.5px; opacity: .85; }

/* ── Floating CTA ───────────────────────── */
.float-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(18,18,61,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.float-cta.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-cta .btn { padding: 13px 26px; font-size: 14px; }
.float-cta .tg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.float-cta .tg svg { width: 19px; height: 19px; fill: var(--accent); }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--ink-primary);
  border-radius: 24px;
  color: #fff;
  padding: 44px 44px 28px;
  margin: 90px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .logo span { color: #fff; }
.footer-contacts { margin-top: 24px; font-size: 13.5px; color: #c4c7d0; line-height: 1.7; }
.footer-contacts a { display: block; color: #fff; margin-top: 12px; font-size: 14.5px; }
.footer h4 { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #e8e8ee; margin-bottom: 12px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.soc-tg { background: #34aadf; }
.soc-wa { background: #2fd26d; }
.soc-dz { background: linear-gradient(135deg, #5b47f5, #a03bd6); }
.soc-yt { background: #f21b3f; }
.sk-badge { margin-top: 16px; width: 130px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
  font-size: 12.5px; color: var(--ink-muted);
}

/* ═══ Автоскейл по ширине ════════════════
   1000–1239px: макет 1200px пропорционально ужимается (zoom ставит JS).
   Ниже 1000px — обычные адаптивные раскладки.                        */

@media (max-width: 999px) {
  .hero-main { padding: 48px 40px; min-height: 380px; }
  .hero h1 { font-size: 42px; }
  .hero-faces { top: 40px; right: 40px; }
  .aud-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq-aside { position: static; }
  .become { grid-template-columns: 1fr; gap: 36px; }
  .how-cards { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .how-note { margin-top: 24px; }
  .how-card { position: static; width: auto; }
  .how-card.c1, .how-card.c2, .how-card.c3, .how-card.c4 { transform: rotate(0); }
  .terms-canvas { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .term-card { position: static; width: auto; }
  .term-card.t1, .term-card.t2, .term-card.t3, .term-card.t4, .term-card.t5, .term-card.t6 { transform: rotate(0); width: auto; }
  .calc { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .promote-grid { grid-template-columns: 1fr; }
  .earn-cards { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .grades-row { grid-template-columns: 1fr 1fr; }
  .grades-row::before { display: none; }
  .whatis-cols { grid-template-columns: 1fr; gap: 20px; }
  .whatis-cols .rule { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 84px; }
  .section { margin-top: 60px; }
  .h2 { font-size: 28px; letter-spacing: -.5px; }

  .hero-main { padding: 30px 22px 34px; min-height: 0; border-radius: 20px; }
  .hero h1 { font-size: 31px; letter-spacing: -.5px; }
  .hero-sub { font-size: 14px; }
  .hero-faces { position: static; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-wm { font-size: 120px; bottom: -40px; right: 10px; }
  .hero-main::before { -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 90%); mask-image: linear-gradient(to bottom, transparent 20%, #000 90%); }

  .income-strip { padding: 20px; gap: 16px; }
  .income-strip .items { flex-direction: column; gap: 10px; width: 100%; }

  .aud-sec { padding: 32px 18px 36px; border-radius: 20px; }
  .aud-card { padding: 26px 22px 30px; }
  .aud-card h3 { font-size: 19px; }

  .whatis { padding: 36px 22px; }
  .formula .arr { display: none; }
  .formula .pill { width: 100%; text-align: center; }

  .how { padding: 40px 18px 30px; }
  .how-cards { grid-template-columns: 1fr; }
  .how-note { text-align: left; }

  .grades { padding: 36px 20px; }
  .grades-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grade { padding: 22px 14px 20px; }
  .grade h3 { font-size: 16px; }

  .calc-head, .promote-head, .cases-head { flex-direction: column; align-items: flex-start; }
  .calc-head .sub, .promote-head .sub, .cases-head .sub { text-align: left; min-width: 0; max-width: none; }
  .calc { padding: 20px; }
  .slider-box { padding: 20px 18px; }
  /* значение — на вторую строку, чтобы тысячи не ломались */
  .slider-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .slider-top .val { align-self: flex-start; }
  .slider-top .val input { width: auto; min-width: 7ch; text-align: left; }
  #qtyVal { width: auto; min-width: 2ch; }
  .calc-result { padding: 24px 22px; }
  .calc-result .sum { font-size: 38px; }

  .offer { padding: 44px 22px; }
  .offer .wm { font-size: 170px; bottom: -60px; }
  .offer-example { width: 100%; padding: 12px 18px 12px 12px; }
  .offer-example .line { font-size: 15px; }
  .offer-example .tail { display: block; }

  .why { padding: 36px 18px; }
  .why-card { padding: 26px 22px 150px; }
  .why-card.purple { padding-bottom: 130px; }
  .why-card.dark, .why-card.white { padding-bottom: 26px; }
  .why-card.green .art { width: 190px; right: -20px; bottom: -22px; }
  .why-card.purple .art { width: 150px; right: -10px; bottom: -14px; }
  .why-card p { max-width: none; }

  .promo-card { padding: 28px 22px 160px; min-height: 0; }
  .promo-chips { max-width: none; }
  .promo-card .art { top: auto !important; bottom: -30px; }
  .promo-card.purple .art { width: 110px; right: 16px; bottom: -70px; }
  .promo-card.green .art { width: 290px; right: -40px; bottom: -60px; }

  .terms { padding: 40px 18px 30px; }
  .terms-canvas { grid-template-columns: 1fr; }

  .dash { padding: 26px 18px; gap: 28px; }
  .dash-left .q { font-size: 13.5px; line-height: 1.5; word-break: break-word; hyphens: auto; }
  .mock { padding: 16px; border-radius: 14px; }
  .mock-top .t { font-size: 15px; }
  .mock-link { flex-direction: column; align-items: stretch; gap: 8px; border-radius: 14px; padding: 12px; }
  .mock-link .url { white-space: normal; word-break: break-all; font-size: 12.5px; text-align: center; }
  .mock-link .copy { width: 100%; padding: 11px; }
  .mock-tiles { grid-template-columns: 1fr; gap: 8px; }
  .mock-tile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; }
  .mock-tile .l { margin-bottom: 0; }
  .mock-tile .v { font-size: 17px; }
  .mock-bars { height: 84px; gap: 5px; }

  .case-card { padding: 26px 22px; }
  .case-row { flex-wrap: wrap; gap: 4px; }
  .case-row .v.income { font-size: 22px; }

  .become { padding: 34px 22px; }
  .become-cta { padding: 26px 22px; }

  .final { padding: 44px 20px 50px; }
  .final h2 { font-size: 32px; letter-spacing: -.5px; }
  .final-actions .btn { width: 100%; }

  .float-cta {
    right: 12px; left: 12px; bottom: 12px;
    padding: 8px;
  }
  .float-cta .btn { flex: 1; padding: 14px 20px; }

  .footer { padding: 32px 22px 22px; margin-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
