/* ==========================================================
   LUMA — тёмный лендинг студии сайтов
   ========================================================== */

:root {
  --bg: #000;
  --panel: #06110f;
  --panel-2: #0a1c19;
  --line: rgba(143, 220, 209, .14);
  --line-2: rgba(143, 220, 209, .26);
  --mint: #8fdcd1;
  --green: #22d39a;
  --teal: #2a8f84;
  --deep: #0f3f39;
  --text: #eef5f3;
  --muted: #8a9c98;
  --paper: #f3f6f5;
  --ink: #0d2c28;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.t-mint { color: var(--mint); }

.h2 {
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 17ch;
}

.kicker {
  color: var(--mint);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }

.btn-teal {
  background: linear-gradient(180deg, #2fa596, #1d6d64);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-teal:hover { background: linear-gradient(180deg, #38b8a8, #237d72); }

.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #b2ebe3; }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(143,220,209,.04);
}
.btn-ghost:hover { border-color: var(--mint); background: rgba(143,220,209,.1); }

/* ---------- Навигация ---------- */

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--mint); transform: translateX(-50%);
}

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mint); }
.logo svg { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(34,211,154,.45)); }
.logo span { font-size: 10px; letter-spacing: .3em; color: var(--text); padding-left: .3em; }

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 14px; }
.nav-tg { color: var(--muted); transition: color .2s; }
.nav-tg:hover { color: var(--text); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--text); transition: transform .25s;
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 22px; padding: 100px var(--gutter) 40px;
  font-size: 30px; font-weight: 300;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .btn { margin-top: 20px; font-size: 16px; align-self: flex-start; }

/* ---------- Вордмарк из полутоновых точек ---------- */

.wordmark {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 120px;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}
.wordmark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(760px, 100vh);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 52%, rgba(34,211,154,.10), transparent 70%),
    linear-gradient(180deg, #000 0%, transparent 18%, transparent 72%, #000 100%);
}

.hero-title {
  position: absolute;
  left: 0; right: 0;
  top: 11%;
  text-align: center;
  font-weight: 400;
  font-size: clamp(54px, 9.6vw, 156px);
  line-height: .92;
  letter-spacing: -.045em;
  color: #fff;
  text-shadow: 0 0 60px rgba(0,0,0,.6);
  pointer-events: none;
}
.hero-title .line { display: block; }
.hero-title .line:last-child {
  background: linear-gradient(180deg, #fff 15%, #a6eadf 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(10, 28, 25, .62);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: #d8e7e4;
  white-space: nowrap;
}
.pill i {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  position: relative;
}
.pill i::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--deep);
}
.pill-a { top: 5%; left: 15%; }
.pill-b { top: 47%; left: 6%; }
.pill-c { top: 50%; right: 7%; }

.orb {
  position: absolute;
  left: 50%; top: 61%;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(143,220,209,.35);
}
.orb-ring.r2 { inset: 34px; border-color: rgba(143,220,209,.22); }
.orb-core {
  position: relative;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  font-size: 13px; line-height: 1.3; color: var(--ink); font-weight: 500;
  padding: 0 18px;
  background: radial-gradient(circle at 35% 30%, #fff, #c9e6e1 55%, #8fb9b2);
  box-shadow: 0 0 60px rgba(143,220,209,.35), inset 0 -8px 20px rgba(15,63,57,.25);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.orb-plus {
  position: absolute; top: -10px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  box-shadow: 0 0 0 4px #000;
}
.orb:hover .orb-core { transform: scale(1.06); box-shadow: 0 0 90px rgba(143,220,209,.55), inset 0 -8px 20px rgba(15,63,57,.25); }

.hero-card {
  position: absolute;
  bottom: 7%;
  width: min(330px, 28vw);
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.hero-card h2 { font-size: 18px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.hero-card p { font-size: 13px; line-height: 1.45; color: #4a625e; margin-top: 8px; }
.hero-card .t-mint { color: var(--teal); }
.hero-card-left { left: var(--gutter); display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: center; }
.hero-card-right { right: var(--gutter); }
.hero-card-right .btn { margin-top: 16px; }

.torus {
  width: 96px; height: 96px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 26%, transparent 27%),
    conic-gradient(from 200deg, #0b5b45, #22d39a, #c3f5e3, #22d39a, #0a4d3c, #126e55, #0b5b45);
  filter: drop-shadow(0 8px 14px rgba(13,44,40,.35));
  transform: rotate(-18deg) scaleY(.82);
}

/* ---------- Анимации anime.js (animations.js) ---------- */

/* Обёртка орба: её двигает магнит и масштабирует вход, сам .orb держит позиционирование */
.orb-inner { position: absolute; inset: 0; display: grid; place-items: center; }

/* Первый экран скрыт, пока animations.js не запустит вход */
.anim-pending .wordmark canvas,
.anim-pending .hero-title,
.anim-pending .pill,
.anim-pending .orb-inner,
.anim-pending .hero-card { opacity: 0; }

/* Слова заголовков выезжают из-под маски */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .16em;
  margin: 0 -.06em -.16em;
}
.wi { display: inline-block; will-change: transform; }

/* Градиент второй строки hero переезжает на слово, иначе он не виден на сдвинутом тексте */
.hero-title.is-split .line:last-child { background: none; color: #fff; }
.hero-title.is-split .line:last-child .wi {
  background: linear-gradient(180deg, #fff 15%, #a6eadf 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Подход / bento ---------- */

.approach { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.approach .h2 { max-width: 14ch; }

.bento {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

.b-card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
}

.b-ribbon { grid-column: 1 / span 6; grid-row: 1 / span 2; min-height: 460px; }
.ribbon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.glass-chip {
  position: absolute;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(34, 60, 54, .42);
  border: 1px solid rgba(143,220,209,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 230px;
}
.glass-chip strong { display: block; font-weight: 300; font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.glass-chip span { display: block; margin-top: 8px; font-size: 13px; color: #b8cbc7; line-height: 1.35; }
.chip-1 { top: 9%; left: 7%; }
.chip-2 { bottom: 9%; right: 7%; }

.b-text {
  grid-column: 7 / span 6;
  position: relative;
  padding: 10px 40px 20px 8px;
}
.b-lead { font-size: 19px; line-height: 1.35; max-width: 34ch; }
.b-sub { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.b-text .btn { margin-top: 24px; }
.sparkle { position: absolute; right: 0; top: 4px; width: 26px; height: 26px; color: #fff; }

.b-chart { grid-column: 7 / span 3; padding: 22px 20px 0; display: flex; flex-direction: column; min-height: 280px; }
.chart-head strong { display: block; font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.chart-head span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; max-width: 24ch; }
.chart { flex: 1; width: calc(100% + 40px); margin: 16px -20px 0; min-height: 120px; }

.b-preview { grid-column: 10 / span 3; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.b-preview-label { font-size: 13px; color: var(--mint); }
.b-preview-text { font-size: 13px; color: var(--muted); line-height: 1.45; }

.mini-site {
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #000;
  padding: 8px;
  display: grid; gap: 6px;
}
.ms-nav { display: flex; gap: 4px; align-items: center; }
.ms-nav i { width: 14px; height: 3px; border-radius: 2px; background: #2c3f3b; }
.ms-nav b { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--mint); }
.ms-hero { position: relative; height: 70px; border-radius: 6px; overflow: hidden; background: #020807; }
.ms-wave {
  position: absolute; inset: 30% -10% -20%;
  background: repeating-linear-gradient(90deg, rgba(143,220,209,.6) 0 1px, transparent 1px 4px);
  -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent 75%);
          mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent 75%);
  transform: perspective(80px) rotateX(40deg);
}
.ms-title { position: absolute; left: 14%; right: 14%; top: 18%; height: 9px; border-radius: 3px; background: #fff; }
.ms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ms-row i { height: 20px; border-radius: 4px; background: #0d201d; border: 1px solid var(--line); }
.ms-row i:first-child { background: var(--paper); }

/* ---------- Процесс ---------- */

.process {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.mesh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, transparent 30%, transparent 88%, #000 100%);
}

.process-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.process-head .h2 { max-width: 20ch; }
.process-note { font-size: 13px; color: var(--muted); text-align: right; max-width: 26ch; margin-top: 10px; }

.steps {
  margin-top: clamp(60px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 26px;
  column-gap: 18px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 22px 22px 40px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(30, 80, 70, .42), rgba(10, 34, 30, .32));
  border: 1px solid rgba(143,220,209,.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  min-height: 170px;
}
.step h3 { font-size: 17px; font-weight: 500; }
.step p { margin-top: 8px; font-size: 14px; color: #a8bdb9; line-height: 1.45; max-width: 32ch; }
.step-n { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: var(--mint); }

.s1 { grid-column: 1 / span 4; }
.s2 { grid-column: 8 / span 4; }
.s3 { grid-column: 4 / span 4; grid-row: 2; }
.s4 { grid-column: 8 / span 4; grid-row: 2; }

/* ---------- Что входит (sticky scroll) ---------- */

.scope { position: relative; height: calc(var(--n) * 50vh + 100vh); }
.scope-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.scope-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.scope-left .kicker { margin-bottom: 10px; }

.scope-viewport { position: relative; height: min(440px, 56vh); overflow: hidden; }
.scope-list {
  position: absolute; left: 0; right: 0; top: 50%;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.scope-list li {
  height: 80px;
  display: flex; align-items: center;
  padding-left: clamp(0px, 8vw, 120px);
  transition: filter .6s, opacity .6s, transform .6s;
  transform-origin: left center;
}
.scope-name {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.scope-list li.is-active { transform: scale(1.04); }
.scope-mobile-desc { display: none; }

.scope-card {
  position: relative;
  min-height: min(460px, 60vh);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.scope-card-rings {
  position: absolute; right: -30%; top: -40%;
  width: 110%; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 9px, rgba(42,143,132,.55) 9px 10px);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
          mask: radial-gradient(circle, #000 30%, transparent 70%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.scope-card-body { position: relative; padding: clamp(24px, 3vw, 40px); max-width: 46ch; }
.scope-card-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.02em; color: var(--teal); }
.scope-card-text { margin-top: 12px; color: #3f5753; }
.scope-card-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-card-tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #e1ebe9; color: var(--ink); }
.scope-card-body.is-swapping { opacity: 0; transform: translateY(8px); }
.scope-card-body { transition: opacity .3s, transform .3s; }

/* ---------- Проблема ---------- */

.problem { padding: clamp(80px, 10vw, 140px) 0; }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.problem .h2 { max-width: 16ch; }

.problem-list { margin-top: 44px; display: grid; gap: 26px; }
.problem-list li { padding-left: 22px; border-left: 1px solid var(--line-2); }
.problem-list h3 { font-size: 18px; font-weight: 500; }
.problem-list p { margin-top: 4px; color: var(--muted); max-width: 46ch; }

.stat-card {
  position: relative; margin: 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-num {
  position: relative; z-index: 1;
  font-size: clamp(110px, 14vw, 210px);
  font-weight: 300; line-height: .85; letter-spacing: -.06em;
  color: var(--deep);
}
.stat-card figcaption { position: relative; z-index: 1; font-size: 20px; line-height: 1.35; max-width: 22ch; }
.stat-src { display: block; margin-top: 10px; font-size: 13px; color: #5d7672; }
.stat-rings {
  position: absolute; right: -35%; bottom: -45%;
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 7px, rgba(42,143,132,.45) 7px 8px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%);
          mask: radial-gradient(circle, #000 25%, transparent 68%);
}

/* ---------- Цены ---------- */

.pricing { padding: clamp(70px, 9vw, 120px) 0; }
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.pricing-head .h2 { max-width: 15ch; }
.pricing-note { color: var(--muted); font-size: 15px; max-width: 34ch; }

.plans {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .5s;
  will-change: transform;
}
/* Световое пятно, которое следует за курсором */
.plan::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143,220,209,.16), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
/* Бегущая подсветка рамки */
.plan::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(143,220,209,.9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.plan > *:not(.plan-badge) { position: relative; z-index: 1; }
.plan .plan-price { transition: color .35s, transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: left bottom; }
.plan .plan-list li { transition: transform .45s cubic-bezier(.2,.8,.2,1), color .3s; }
.plan .plan-list li::before { transition: border-color .3s; }

.plan:hover { --lift: -10px; border-color: rgba(143,220,209,.4); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 20px 60px rgba(34,211,154,.14); }
.plan:hover::before, .plan:hover::after { opacity: 1; }
.plan:hover .plan-price { color: var(--mint); transform: scale(1.04); }
.plan:hover .plan-list li { transform: translateX(4px); color: var(--text); }
.plan:hover .plan-list li::before { border-color: var(--mint); }
.plan:hover .btn-ghost { background: rgba(143,220,209,.12); border-color: var(--mint); }
.plan:hover .plan-list li:nth-child(2) { transition-delay: .03s; }
.plan:hover .plan-list li:nth-child(3) { transition-delay: .06s; }
.plan:hover .plan-list li:nth-child(4) { transition-delay: .09s; }
.plan:hover .plan-list li:nth-child(5) { transition-delay: .12s; }
.plan:hover .plan-list li:nth-child(6) { transition-delay: .15s; }
.plan:hover .plan-list li:nth-child(7) { transition-delay: .18s; }
.plan h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.plan-for { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 44px; }
.plan-price {
  margin-top: 26px;
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 300; letter-spacing: -.03em; line-height: 1;
  white-space: nowrap;
}
.plan-price small { font-size: 16px; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.plan-term { margin-top: 10px; font-size: 14px; color: var(--mint); }
.plan-list { margin: 26px 0 30px; display: grid; gap: 11px; font-size: 14.5px; color: #c9d8d5; }
.plan-list li { position: relative; padding-left: 24px; line-height: 1.4; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}
.plan-list .plan-plus { padding-left: 0; color: var(--mint); }
.plan-list .plan-plus::before { display: none; }
.plan-btn { margin-top: auto; width: 100%; }

.plan-featured {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(34,211,154,.18), transparent 70%),
    linear-gradient(180deg, #0c2622, #06130f);
  border-color: rgba(143,220,209,.45);
  box-shadow: 0 0 0 1px rgba(143,220,209,.1), 0 30px 80px rgba(34,211,154,.12);
}
.plan-badge {
  position: absolute; top: -13px; left: 28px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  background: var(--mint); color: var(--ink);
  font-size: 12px; font-weight: 500;
}

.addons {
  margin-top: 18px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.addons h3 { font-size: 17px; font-weight: 500; }
.addons-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; }
.addons-list dt { font-size: 14px; color: var(--muted); }
.addons-list dd { margin: 4px 0 0; font-size: 17px; }

/* ---------- FAQ ---------- */

.faq { padding: clamp(60px, 8vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  font-size: 18px;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mint); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 300; color: var(--mint);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 62ch; }

/* ---------- Контакт ---------- */

.contact {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
  isolation: isolate;
}
.contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.4) 70%, #000 100%);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.contact-copy .h2 { max-width: 16ch; }
.contact-copy > p { margin-top: 20px; color: var(--muted); max-width: 42ch; }
.tg-logo {
  position: relative;
  margin-top: 30px;
  display: inline-block;
  width: 72px; height: 72px;
  border-radius: 50%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  box-shadow: 0 0 0 0 rgba(55,187,254,0), 0 10px 30px rgba(0,125,187,.25);
}
.tg-logo svg { width: 100%; height: 100%; }
.tg-logo::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(55,187,254,.35);
  opacity: 0; transform: scale(.9);
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tg-logo:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 40px rgba(55,187,254,.45), 0 14px 34px rgba(0,125,187,.35); }
.tg-logo:hover::after { opacity: 1; transform: scale(1); }
.tg-logo:focus-visible { outline-offset: 6px; border-radius: 50%; }

.form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: rgba(8, 24, 21, .72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid; gap: 16px;
}
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  color: var(--text);
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 84px; }
.form select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.form select option { background: #06110f; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--mint); }
.form input[aria-invalid="true"] { border-color: #e98a7c; }
.form-btn { width: 100%; margin-top: 4px; height: 52px; font-size: 16px; }
.form-status { font-size: 14px; color: var(--mint); min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #f0a497; }
.form-legal { font-size: 12px; color: #61736f; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Подвал: Halftone Wordmark Footer ---------- */

.hwf-root {
  --hwf-bg: #000;
  --hwf-ink: #cfe9e4;
  --hwf-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  padding-bottom: clamp(22px, 3vw, 36px);
  background: var(--hwf-bg); color: var(--hwf-ink); -webkit-font-smoothing: antialiased;
  border-top: 1px solid var(--line);
}
.hwf-top {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 24px; padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.4vw, 44px) 0;
  font-family: var(--hwf-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.75;
}
.hwf-brand strong { display: block; font-weight: 500; }
.hwf-brand span { opacity: .45; }
.hwf-col h3 { margin: 0; font: inherit; opacity: .4; font-weight: 500; }
.hwf-col ul { list-style: none; margin: 0; padding: 0; }
.hwf-col a, .hwf-up {
  color: inherit; text-decoration: none; opacity: .78; background: none; border: 0; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px;
  background-repeat: no-repeat; background-position: 0 100%; transition: opacity .25s ease, background-size .35s cubic-bezier(.2,.7,.1,1);
}
.hwf-col a:hover, .hwf-up:hover { opacity: 1; background-size: 100% 1px; }
.hwf-col a:focus-visible, .hwf-up:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; opacity: 1; }
.hwf-rule {
  position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px;
  margin: clamp(18px, 2.6vw, 30px) clamp(20px, 3.4vw, 44px) 0; padding-top: 12px;
  border-top: 0.5px solid color-mix(in srgb, var(--hwf-ink) 16%, transparent);
  font-family: var(--hwf-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
}
.hwf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .hwf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; }
  .hwf-brand { grid-column: 1 / -1; }
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .b-ribbon { grid-column: 1 / -1; grid-row: auto; min-height: 400px; }
  .b-text { grid-column: 1 / -1; padding: 10px 40px 10px 0; }
  .b-chart { grid-column: 1 / span 6; }
  .b-preview { grid-column: 7 / span 6; }
  .hero-card { width: min(320px, 38vw); }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr; padding-top: 16px; }
  .nav-links { display: none; }
  .logo { flex-direction: row; gap: 10px; }
  .logo svg { width: 38px; height: 38px; }
  .nav-tg, .nav-right .btn { display: none; }
  .burger { display: block; }

  .hero { min-height: 0; padding: 40px 0 40px; display: flex; flex-direction: column; align-items: center; }
  .hero-title { position: relative; top: auto; font-size: clamp(46px, 13vw, 96px); padding: 0 var(--gutter); }
  .pill { position: relative; top: auto; left: auto; right: auto; margin-top: 10px; }
  .pill-a { margin-top: 28px; }
  .orb { position: relative; left: auto; top: auto; transform: none; margin: 30px 0; width: 220px; height: 220px; }
  .hero-card { position: relative; bottom: auto; left: auto; right: auto; width: calc(100% - 2 * var(--gutter)); max-width: 460px; margin-top: 14px; }

  .process-head, .pricing-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .process-note { text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; }
  .s1, .s2, .s3, .s4 { grid-column: auto; grid-row: auto; }

  /* Список «Что входит» на телефоне — обычный список без sticky */
  .scope { height: auto; padding: 70px 0; }
  .scope-sticky { position: static; height: auto; display: block; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-viewport { height: auto; overflow: visible; }
  .scope-list { position: static; transform: none !important; display: grid; gap: 4px; }
  .scope-list li { height: auto; display: block; padding: 18px 0; border-bottom: 1px solid var(--line); filter: none !important; opacity: 1 !important; transform: none !important; }
  .scope-name { font-size: 24px; white-space: normal; }
  .scope-mobile-desc { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
  .scope-card { display: none; }

  .problem-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 340px; }

  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan-for { min-height: 0; }
  .addons { grid-template-columns: 1fr; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .plan, .plan:hover { --lift: 0px; --rx: 0deg; --ry: 0deg; }
  .plan:hover .plan-price, .plan:hover .plan-list li { transform: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .b-chart, .b-preview { grid-column: 1 / -1; }
  .b-ribbon { min-height: 360px; }
  .glass-chip { max-width: 190px; padding: 12px 14px; }
  .glass-chip strong { font-size: 30px; }
  .pill { font-size: 12px; }
  .hero-card-left { grid-template-columns: 1fr 72px; }
  .torus { width: 72px; height: 72px; }
  .faq summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
