:root {
  --bg: #0e0e10;
  --fg: #f2f0eb;
  --muted: #8a8780;
  --accent: #ff5b2e;
  --blue: #3b3bff;
  --card: #1a1a1d;
  --line: rgba(242, 240, 235, 0.12);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* страховка: ничего не должно сдвигать страницу вбок (особенно на iPhone) */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Unbounded", sans-serif; font-weight: 600; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { padding-left: 6vw; padding-right: 6vw; }
section { position: relative; }

.tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.section-title {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  margin-bottom: 7vh;
}

/* ---------- Курсор ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
  opacity: 0;
  transition: width .3s, height .3s, margin .3s, opacity .3s;
}
.cursor.visible { opacity: 1; }
.cursor.big { width: 80px; height: 80px; margin: -40px 0 0 -40px; }

/* ---------- Кнопки (вариант Г: сплошная, пружинит) ---------- */
.magnet { display: inline-block; padding: 30px; margin: -30px; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: 600 17px "Manrope", sans-serif;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.btn .mag-inner { position: relative; z-index: 2; display: inline-block; }
.btn::before {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 150%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 0) scale(0);
  transition: transform .6s var(--ease), top .6s var(--ease);
  z-index: 1;
}
.btn:hover::before { top: 50%; transform: translate(-50%, -50%) scale(1); }
.btn-pill { padding: 22px 44px; border-radius: 99px; }
.btn-sm { padding: 14px 26px; font-size: 15px; }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { color: var(--fg); }
.btn-accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-accent::before { background: var(--bg); }
.btn-accent:hover { color: var(--fg); }

.link-arrow { font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.link-arrow:hover { border-color: var(--fg); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top)) calc(6vw + env(safe-area-inset-right)) 18px calc(6vw + env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background .3s, border-color .3s;
}
/* на iOS при сворачивании панелей страница может мелькнуть над шапкой — тянем фон шапки вверх */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 200px;
  background: var(--bg);
  pointer-events: none;
}
.nav.scrolled {
  background: rgba(14, 14, 16, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
/* в браузере Telegram шапка сплошная: под его стеклянной панелью и так просвечивает
   страница, а вторая полупрозрачная шапка превращала это в кашу */
.in-tg .nav, .in-tg .nav.scrolled {
  background: var(--bg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 20px; }
.logo-star {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 91, 46, .2), 0 0 24px var(--accent);
}
.nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Главный экран ---------- */
.hero { min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero-grid {
  position: relative; z-index: 1;
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center;
  padding-top: calc(120px + env(safe-area-inset-top)); padding-bottom: 80px;
}
.hero-content { position: relative; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, .6); }
  100% { box-shadow: 0 0 0 14px rgba(255, 91, 46, 0); }
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 88px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero h1 .word > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 520px; margin: 28px 0 40px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; padding-top: calc(110px + env(safe-area-inset-top)); }
  .hero h1 { font-size: clamp(38px, 9vw, 72px); }
}

/* Чёрная дыра на фоне: линии затягиваются в центр */
.vortex { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
.vortex canvas { display: block; width: 100%; height: 100%; }

/* Макет лендинга (все размеры в cqw — масштабируется целиком) */
.mock-wrap { position: relative; container-type: inline-size; width: 100%; max-width: 640px; justify-self: center; }
.mock {
  position: relative;
  border-radius: 2cqw;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .6), 0 0 0 1px rgba(242, 240, 235, .15);
}
.mock-bar {
  display: flex; align-items: center; gap: 3cqw;
  height: 7cqw; padding: 0 2.6cqw;
  background: #e2dfd8;
  border-radius: 2cqw 2cqw 0 0;
}
.mock-dots { display: flex; gap: 1.2cqw; }
.mock-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #c9c5bc; }
.mock-dots i:first-child { background: var(--accent); }
.mock-url {
  flex: 1; max-width: 46cqw;
  padding: 1cqw 2.4cqw;
  border-radius: 99px;
  background: var(--fg);
  font-size: 1.9cqw; color: #6b6861;
}
.mock-page { display: grid; gap: 4cqw; padding: 3.6cqw 4cqw 4.4cqw; overflow: hidden; border-radius: 0 0 2cqw 2cqw; }

.m-nav { display: flex; align-items: center; justify-content: space-between; }
.m-logo { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--bg); }
.m-links { display: flex; gap: 3cqw; }
.m-links i { width: 7cqw; height: 1.2cqw; border-radius: 99px; background: rgba(14, 14, 16, .2); }
.m-navbtn { width: 12cqw; height: 4cqw; border-radius: 99px; background: var(--bg); }

.m-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.m-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2cqw; }
.m-tag { padding: .7cqw 1.8cqw; border: 1px solid var(--accent); border-radius: 99px; color: var(--accent); font-size: 1.8cqw; font-weight: 700; }
.m-title { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 5.4cqw; line-height: 1.05; letter-spacing: -.03em; }
.m-title > span { display: inline-block; }
.m-line { width: 100%; height: 1.3cqw; border-radius: 99px; background: rgba(14, 14, 16, .14); }
.m-line--short { width: 65%; }
.m-btn {
  margin-top: 1cqw;
  padding: 1.8cqw 4cqw;
  border-radius: 99px;
  background: var(--accent); color: var(--bg);
  font-size: 2.2cqw; font-weight: 700;
}
.m-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1.05;
  border-radius: 2.4cqw;
  background: linear-gradient(145deg, var(--accent), #ff9a3d 45%, var(--blue));
}
.m-circle { position: absolute; border-radius: 50%; background: rgba(242, 240, 235, .9); }
.m-circle--1 { width: 22cqw; height: 22cqw; right: -5cqw; bottom: -5cqw; }
.m-circle--2 { width: 8cqw; height: 8cqw; left: 4cqw; top: 4cqw; background: var(--bg); }

.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.m-card { display: grid; gap: 1.4cqw; padding: 2.4cqw; border-radius: 2cqw; background: #e2dfd8; }
.m-card i { width: 4cqw; height: 4cqw; border-radius: 1.2cqw; background: var(--accent); margin-bottom: .6cqw; }
.m-card:nth-child(2) i { background: var(--blue); }
.m-card:nth-child(3) i { background: var(--bg); }
.m-card b { height: 1.2cqw; border-radius: 99px; background: rgba(14, 14, 16, .2); }
.m-card b:last-child { width: 60%; }

.m-form { display: flex; gap: 2cqw; }
.m-input {
  flex: 1;
  padding: 2cqw 2.8cqw;
  border: 1px solid rgba(14, 14, 16, .2);
  border-radius: 99px;
  font-size: 2.1cqw; color: #4a4843;
  white-space: nowrap; overflow: hidden;
}
.m-submit {
  padding: 2cqw 4cqw;
  border-radius: 99px;
  background: var(--bg); color: var(--fg);
  font-size: 2.1cqw; font-weight: 700;
  transition: background .3s;
}
.m-submit.done { background: #2fbf71; }

.m-cursor { position: absolute; left: 0; top: 0; width: 4.4cqw; height: 4.4cqw; opacity: 0; filter: drop-shadow(0 .4cqw .8cqw rgba(0, 0, 0, .4)); }
.m-toast {
  position: absolute; top: 12cqw; right: -4cqw;
  display: flex; align-items: center; gap: 2cqw;
  padding: 2cqw 3cqw 2cqw 2cqw;
  border-radius: 2cqw;
  background: var(--bg); color: var(--fg);
  border: 1px solid rgba(242, 240, 235, .15);
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .5);
  font-size: 2.2cqw;
  opacity: 0;
}
.m-toast-icon { display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 50%; background: #2fbf71; color: var(--bg); font-weight: 800; }
.m-toast b { display: block; font-family: "Unbounded", sans-serif; font-size: 2.4cqw; }
.m-toast small { display: block; margin-top: .4cqw; color: var(--muted); font-size: 1.9cqw; }

.mock-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.mock-steps li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 14px;
  transition: background .4s, color .4s, border-color .4s;
}
.mock-steps li.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Манифест ---------- */
.manifesto { min-height: 130vh; display: flex; flex-direction: column; justify-content: center; }
.reveal-text {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 4vw, 60px);
  line-height: 1.2;
  font-weight: 600;
  max-width: 1300px;
}
.reveal-text .w { opacity: .12; }

/* ---------- Пакеты ---------- */
.pricing { padding-top: 12vh; padding-bottom: 18vh; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 28px;
  padding: 40px 36px;
  background: rgba(26, 26, 29, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.plan--hit { background: rgba(242, 240, 235, .82); color: var(--bg); border-color: rgba(242, 240, 235, .9); }
.plan-badge {
  position: absolute; top: 28px; right: 28px;
  padding: 6px 14px; border-radius: 99px;
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.plan-name { font-size: 24px; }
.plan-term { margin-top: 6px; color: var(--muted); }
.plan--hit .plan-term { color: rgba(14, 14, 16, .6); }
.plan-price { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.03em; }
.plan-list { list-style: none; display: grid; gap: 14px; line-height: 1.4; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.plan-cta { margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Доп. услуги: таймлайн с горизонтальным скроллом ---------- */
.journey {
  --step: 13vw;        /* шаг между услугами по линии */
  --item-w: 24vw;      /* ширина подписи услуги */
  --head-w: 22vw;      /* место под заголовок слева */
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
  border-top: 1px solid var(--line);
}
.j-track {
  display: flex; align-items: center; gap: 5vw;
  height: min(64vh, 640px);
  padding: 0 14vw 0 6vw;
  width: max-content;
  will-change: transform;
}

/* Орбита вместо фото */
.j-orbit {
  position: relative;
  flex-shrink: 0;
  width: min(30vw, 64vh); height: 100%;
  display: grid; place-items: center;
  border-radius: 24px;
  background: rgba(26, 26, 29, .85);
  border: 1px solid var(--line);
  overflow: hidden;
}
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 240, 235, .14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit linear infinite;
}
.orbit-ring i { position: absolute; left: 50%; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-ring--1 { width: 42%; animation-duration: 9s; }
.orbit-ring--1 i { width: 12px; height: 12px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.orbit-ring--2 { width: 68%; animation-duration: 16s; animation-direction: reverse; }
.orbit-ring--2 i { width: 18px; height: 18px; background: var(--fg); }
.orbit-ring--3 { width: 94%; animation-duration: 26s; }
.orbit-ring--3 i { width: 14px; height: 14px; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit-core { position: relative; text-align: center; }
.orbit-core b { display: block; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(64px, 7vw, 120px); line-height: 1; color: var(--accent); }
.orbit-core span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; }

/* Поле таймлайна */
.j-area {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  width: calc(var(--head-w) + (var(--n) - 1) * var(--step) + var(--item-w));
}
.j-line {
  position: absolute; left: 0; right: 0; top: 50%;
  display: flex; align-items: center;
  transform: translateY(-50%);
}
.j-cap { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.j-bar { flex: 1; height: 1px; background: var(--accent); transform-origin: left center; }

.j-head { position: absolute; left: 0; top: 0; width: calc(var(--head-w) - 3vw); }
.j-head .tag { margin-bottom: 18px; }
.j-head h2 { font-size: clamp(32px, 3.2vw, 56px); line-height: .98; font-weight: 800; }
.j-period { position: absolute; left: 0; bottom: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 22px); line-height: 1.2; }

/* Услуга: ножка от линии, точка на линии, подпись */
.j-item {
  position: absolute;
  left: calc(var(--head-w) + var(--i) * var(--step));
  width: var(--item-w);
  height: 50%;
}
.j-top { top: 0; }
.j-bottom { top: 50%; }
.j-stem { position: absolute; left: 0; width: 1px; background: var(--accent); }
.j-top .j-stem { top: 8px; bottom: 0; transform-origin: bottom; }
.j-bottom .j-stem { top: 0; bottom: 8px; transform-origin: top; }
.j-dot {
  position: absolute; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 91, 46, .18);
  transform: translate(-50%, -50%);
}
.j-top .j-dot { top: 8px; }
.j-bottom .j-dot { top: calc(100% - 8px); }
.j-text { position: absolute; left: 0; right: 0; padding-left: 1.6vw; display: grid; gap: 10px; }
.j-top .j-text { top: -2px; }
.j-bottom .j-text { bottom: -2px; }
.j-mask { display: block; overflow: hidden; }
.j-title { display: block; font-size: clamp(18px, 1.7vw, 30px); line-height: 1.1; font-weight: 600; }
.j-title em { font-style: normal; color: var(--accent); margin-right: .3em; }
.j-desc { display: block; max-width: 20em; color: var(--muted); font-size: clamp(14px, 1vw, 17px); line-height: 1.4; }

@media (max-width: 700px) {
  .journey { --step: 46vw; --item-w: 74vw; --head-w: 78vw; }
  .j-track { height: 74vh; gap: 10vw; }
  .j-orbit { width: 84vw; height: 84vw; align-self: center; }
  .j-text { padding-left: 5vw; }
  .j-head h2 { font-size: 34px; }
}

/* ---------- Процесс (стопка) ---------- */
.process { padding-top: 16vh; padding-bottom: 16vh; border-top: 1px solid var(--line); }
.stack-card {
  position: sticky;
  height: 72vh;
  min-height: 420px;
  margin-bottom: 6vh;
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 4vw;
  border-radius: 32px;
  transform-origin: center top;
}
.stack-text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 8px; }
.stack-text h3 { margin-bottom: 20px; }
@media (max-width: 860px) {
  .stack-card { height: 82vh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 20px; padding: 24px; }
  .stack-text { padding: 0; gap: 12px; }
  .stack-text h3 { margin-bottom: 10px; }
  .stack-card p { font-size: 16px; }
}

/* ---------- Сцены в карточках (рисуются кодом) ---------- */
.scene {
  position: relative; min-height: 0;
  display: grid; place-items: center;
  border-radius: 22px;
  overflow: hidden;
  padding: 24px;
}

/* 1. Чат */
.scene-chat { background: var(--bg); border: 1px solid var(--line); }
.chat { width: 100%; max-width: 440px; height: 100%; max-height: 400px; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--blue)); flex-shrink: 0; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { color: #2fbf71; font-size: 13px; }
.chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-top: 14px; overflow: hidden; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.4; display: none; }
.msg--in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--accent); color: var(--bg); border-bottom-right-radius: 6px; }
.typing { display: none; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--card); align-self: flex-start; }
.typing.out { align-self: flex-end; background: rgba(255, 91, 46, .25); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* 2. Чертёж */
.scene-wire {
  background-color: #e4e1da;
  background-image:
    linear-gradient(rgba(14, 14, 16, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 14, 16, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.wire { width: 100%; max-width: 520px; height: auto; max-height: 100%; }
.wire .w { fill: rgba(14, 14, 16, 0); stroke: #0e0e10; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wire .wl { fill: var(--accent); font: 700 11px "Manrope", sans-serif; opacity: 0; }

/* 3. Дизайн */
.scene-design { background: rgba(14, 14, 16, .25); gap: 16px; align-content: center; }
.dpage {
  width: 100%; max-width: 460px;
  display: grid; gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--fg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.dpage i, .dpage span { display: block; background: #cfccc5; border-radius: 99px; }
.d-nav { display: flex; justify-content: space-between; align-items: center; }
.d-logo { width: 22px; height: 22px; border-radius: 50% !important; }
.d-links { width: 90px; height: 8px; }
.d-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.d-text { display: grid; gap: 8px; justify-items: start; }
.d-t1 { width: 100%; height: 16px; }
.d-t2 { width: 75%; height: 16px; }
.d-p { width: 90%; height: 7px; margin-top: 4px; }
.d-btn { width: 70px; height: 24px; margin-top: 6px; }
.d-img { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #cfccc5; }
.d-fill { position: absolute; inset: 0; border-radius: 0 !important; background: linear-gradient(145deg, var(--accent), #ff9a3d 45%, var(--blue)) !important; opacity: 0; }
.d-orb { position: absolute; width: 36%; aspect-ratio: 1; left: 14%; top: 14%; border-radius: 50% !important; background: var(--fg) !important; opacity: 0; }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-cards i { height: 44px; border-radius: 10px !important; }
.swatches { display: flex; gap: 10px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(242, 240, 235, .6); }
.swatches span:nth-child(1) { background: var(--accent); }
.swatches span:nth-child(2) { background: var(--blue); }
.swatches span:nth-child(3) { background: var(--bg); }
.swatches span:nth-child(4) { background: var(--fg); }

/* 4. Терминал запуска */
.scene-launch { background: var(--bg); border: 1px solid var(--line); }
.term { width: 100%; max-width: 460px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3f; }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 10px; color: var(--muted); font-size: 13px; }
.term-body { position: relative; padding: 18px 0; font-family: ui-monospace, Consolas, monospace; font-size: clamp(12px, 1.05vw, 15px); }
.t-line { color: #2fbf71; margin-bottom: 10px; opacity: 0; }
.t-progress { height: 8px; margin-top: 18px; border-radius: 99px; background: #2a2a2f; overflow: hidden; }
.t-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.t-pct { position: absolute; right: 0; bottom: -6px; color: var(--muted); font-size: 13px; }
.t-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px 22px;
  border-radius: 99px;
  background: rgba(47, 191, 113, .12); color: #2fbf71;
  font-weight: 700;
  opacity: 0;
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 12px #2fbf71; }

/* 5. Оплата */
.scene-pay { background: var(--bg); }
.pay { width: 100%; max-width: 420px; display: grid; gap: 14px; color: var(--fg); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pay-row:first-child { justify-content: flex-start; }
.pay-row b { display: block; font-size: 17px; }
.pay-row small { color: var(--muted); font-size: 13px; }
.pay-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #2a2a2f; border-top-color: var(--accent);
  animation: spin .8s linear infinite;
  display: grid; place-items: center;
  font-weight: 800; color: var(--bg);
}
.pay-icon.ok { animation: none; border: 0; background: #2fbf71; }
.pay-icon.ok::after { content: "✓"; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-bill b { font-family: "Unbounded", sans-serif; font-size: 22px; }
.pay-btn { padding: 12px 22px; border-radius: 99px; background: var(--accent); color: var(--bg); font-weight: 700; white-space: nowrap; transition: background .3s; }
.pay-btn.paid { background: #2fbf71; }
.pay-note { text-align: center; color: var(--muted); font-size: 13px; }
.stack-card:nth-child(1) { background: var(--card); border: 1px solid var(--line); }
.stack-card:nth-child(2) { background: var(--fg); color: var(--bg); }
.stack-card:nth-child(3) { background: var(--blue); }
.stack-card:nth-child(4) { background: #26262b; }
.stack-card:nth-child(5) { background: var(--accent); color: var(--bg); }
.stack-card .step { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.stack-card h3 { font-size: clamp(30px, 4.4vw, 72px); line-height: 1; }
.stack-card p { max-width: 540px; font-size: 18px; line-height: 1.5; }

/* ---------- Оплата в конце (круг) ---------- */
.guarantee { height: 100vh; height: 100svh; overflow: hidden; }
.guarantee-tag { position: absolute; top: 12vh; left: 6vw; }
.guarantee-circle {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6vw;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  clip-path: circle(6% at 50% 50%);
}
.guarantee-circle h2 { font-size: clamp(40px, 8vw, 136px); line-height: 1; font-weight: 800; }
.guarantee-circle p { max-width: 560px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; }

/* ---------- Бегущая строка ---------- */
.marquee-sec { padding: 14vh 0; overflow: hidden; }
.marquee { white-space: nowrap; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(52px, 10vw, 160px); line-height: 1.15; }
.marquee-inner { display: inline-block; will-change: transform; }
.marquee.outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.marquee .dot { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Только код ---------- */
.nocode { padding-top: 14vh; padding-bottom: 14vh; border-top: 1px solid var(--line); }
.nocode-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: end; }
.nocode-title { display: flex; align-items: flex-end; gap: 24px; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.05; font-weight: 800; }
.nocode-zero { font-size: clamp(140px, 22vw, 340px); line-height: .78; color: var(--accent); letter-spacing: -.06em; }
.nocode-title > span:last-child { max-width: 7em; padding-bottom: .2em; }
.nocode-text { font-size: 19px; line-height: 1.55; }
.nocode-text--muted { margin-top: 18px; color: var(--muted); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10vh; }
.stat { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(26, 26, 29, .6); }
.stat b { display: block; font-family: "Unbounded", sans-serif; font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
.stat:first-child b { color: var(--accent); }
@media (max-width: 900px) {
  .nocode-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px; }
}

/* ---------- Вопросы ---------- */
.faq { padding-top: 12vh; padding-bottom: 16vh; border-top: 1px solid var(--line); }
.faq-list { max-width: 1100px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 0;
  background: none; border: 0;
  text-align: left;
  cursor: pointer;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
}
.faq-icon { position: relative; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, border-color .4s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p { max-width: 760px; padding-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ---------- Контакты ---------- */
.contact { padding-top: 14vh; padding-bottom: 14vh; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.contact-title { font-size: clamp(34px, 7vw, 120px); line-height: 1; font-weight: 800; }
.contact-text { max-width: 440px; margin-top: 32px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.form { display: grid; gap: 32px; }
.field { display: grid; gap: 10px; border: 0; }
.field label, .field legend { color: var(--muted); font-size: 14px; }
.field legend { margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.invalid input { border-bottom-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
/* скрытый кружок-переключатель: без position у .choice и с width:100% от .field input
   он растягивался за пределы экрана, и страницу на телефоне можно было сдвинуть вбок */
.choice { position: relative; }
.field .choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.form .magnet { justify-self: start; }
.form-note { min-height: 1.5em; color: var(--accent); }
.form-done { font-family: "Unbounded", sans-serif; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; }
.form-done span { display: block; margin-top: 16px; font-family: "Manrope", sans-serif; font-size: 18px; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* ---------- Подвал ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer .logo { color: var(--fg); }

/* ---------- Мобильные ---------- */
@media (max-width: 700px) {
  .btn-pill { padding: 18px 32px; }
  .btn-sm { padding: 12px 20px; font-size: 14px; }
  .hero-sub { font-size: 16px; }
  .plan { padding: 32px 24px; }
  .scard-h { padding: 28px; }
  .stack-card { padding: 28px; }
}
