/* ============================================================
   PironDev v3 — «Keynote».
   Главная как презентация продукта Apple: тёмная сцена с 3D,
   крупные мысли по одной на экран, шум, спотлайт и свечение
   акцентов. Сцены на ScrollTrigger + Lenis (оба опциональны:
   без JS и без библиотек страница читается целиком).
   Шрифты — системный стек (как у Apple), внешних запросов нет.
   ============================================================ */

:root {
  color-scheme: dark;
  /* ponytail: палитра = тёмные системные цвета Apple:
     фон #000, текст #f5f5f7, secondary #86868b,
     blue #0A84FF, purple #BF5AF2, cyan #64D2FF */
  --bg: #000000;
  --bg-2: #0a0a10;
  --card: #161617;
  --card-2: #1d1d1f;
  --line: rgba(255, 255, 255, 0.14);
  --txt: #f5f5f7;
  --mut: #a1a1a6;
  --dim: #86868b;
  --blue: #0a84ff;
  --vio: #bf5af2;
  --cyn: #64d2ff;
  --mag: #ff6482;
  --light: #f5f5f7;
  --ink: #1d1d1f;
  --r: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1160px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --card-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.12);
  --txt: #1d1d1f;
  --mut: #515154;
  --dim: #86868b;
}

* { box-sizing: border-box; }
html:not(.js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(10, 132, 255, 0.45); color: #fff; }
img { max-width: 100%; }
a { color: inherit; }

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

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  /* ponytail: навбар остаётся прозрачным — только жидкое стекло:
     слабый тинт, сильный блюр, светлая верхняя кромка */
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand b { font-weight: 800; letter-spacing: -0.02em; }
.brand b i { font-style: normal; color: var(--cyn); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--mut); font-size: 15px; font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--txt); }
/* «Решения»: один пункт с выпадающим списком посадочных */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--mut); transition: color 0.25s;
}
.nav-drop-btn svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.25s; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--txt); }
.nav-menu {
  position: absolute; top: 100%; left: 50%; min-width: 270px; padding: 8px; margin-top: 14px;
  display: grid; gap: 2px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
/* мостик над меню, чтобы курсор не «проваливался» в зазор */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-menu a { padding: 10px 14px; border-radius: 12px; white-space: nowrap; color: var(--mut); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--txt); background: color-mix(in srgb, var(--cyn) 12%, transparent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: #0071e3;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.45);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(0, 113, 227, 0.65); transform: translateY(-1px); background: #0077ed; }
.btn-ghost { border-color: var(--line); color: var(--txt); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
/* главный CTA: живое свечение по контуру (conic + blur) */
.btn-glow { position: relative; isolation: isolate; }
.btn-glow::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--a), #64d2ff, #0a84ff, #bf5af2, #ff6482, #64d2ff);
  filter: blur(12px); opacity: 0.7; animation: spin-a 4s linear infinite;
  transition: opacity 0.3s, filter 0.3s;
}
.btn-glow:hover::before { opacity: 1; filter: blur(16px); }
/* в собственном контексте наложения отрицательный z-index рисуется поверх
   фона кнопки — подкладываем фон отдельным слоем над свечением */
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: inherit;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-light { background: var(--txt); color: var(--bg); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 130vh; }
.hero-stage {
  position: sticky; top: 0; height: 100svh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-a {
  width: 62vmax; height: 62vmax; top: -34vmax; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(100, 210, 255, 0.3), transparent 65%);
}
.orb-b {
  width: 54vmax; height: 54vmax; bottom: -30vmax; left: 8%;
  background: radial-gradient(circle, rgba(162, 89, 255, 0.34), transparent 65%);
}
.orb-c {
  width: 44vmax; height: 44vmax; bottom: -24vmax; right: 4%;
  background: radial-gradient(circle, rgba(255, 55, 95, 0.15), transparent 65%);
}
/* горизонт «планеты» внизу сцены — светящаяся дуга, как на keynote */
.hero-floor {
  position: absolute; left: 50%; bottom: -46vh; z-index: 1;
  width: 150vw; height: 62vh; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  border-top: 1px solid rgba(160, 190, 255, 0.45);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(60, 90, 220, 0.35), transparent 70%);
  box-shadow: 0 -24px 90px -10px rgba(90, 120, 255, 0.4), inset 0 24px 70px -20px rgba(140, 160, 255, 0.3);
}
.hero-inner { position: relative; z-index: 2; padding: calc(var(--nav-h) + 12px) 20px 70px; }
.hero-mark { width: clamp(112px, 15vmin, 140px); margin: 0 auto 26px; position: relative; }
/* мягкий ореол за иконкой — «ядро», вокруг которого крутится 3D-сфера */
.hero-mark::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.45), rgba(191, 90, 242, 0.18) 55%, transparent);
  filter: blur(18px); animation: core-breathe 6s ease-in-out infinite;
}
@keyframes core-breathe { 50% { transform: scale(1.12); opacity: 0.8; } }
.hero-mark img {
  width: 100%; height: auto; display: block; border-radius: 26%;
  box-shadow: 0 24px 80px rgba(0, 113, 227, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.mark-float { animation: mark-float 7s ease-in-out 2.4s infinite; }
@keyframes mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mut); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyn); box-shadow: 0 0 12px var(--cyn); }

.display {
  margin: 20px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  text-wrap: balance;
}
.display .hl-line { display: block; }
.display .grad {
  --glow: rgba(150, 120, 255, 0.45);
  background: linear-gradient(91deg, #af5eff 1.53%, #edf 29.5%, #fff 70.59%, #3fcfff 99.09%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px var(--glow));
  padding-bottom: 0.06em; /* хвосты букв не обрезаются клипом */
}
/* вход hero как на презентации: строки проявляются из размытия */
html.js .display .hl-line, html.js .hero-sub, html.js .hero-cta {
  animation: blur-in 1.3s var(--ease) both;
}
html.js .display .hl-line:nth-child(1) { animation-delay: 0.2s; }
html.js .display .hl-line.grad { animation-name: blur-in-glow; animation-delay: 0.45s; }
html.js .hero-sub { animation-delay: 0.75s; }
html.js .hero-cta { animation-delay: 0.95s; }
@keyframes blur-in {
  from { opacity: 0; filter: blur(16px); transform: translateY(24px) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes blur-in-glow {
  from { opacity: 0; filter: blur(16px) drop-shadow(0 0 0 transparent); transform: translateY(24px) scale(0.97); }
  to { opacity: 1; filter: blur(0) drop-shadow(0 0 28px var(--glow)); transform: none; }
}
.hero-sub {
  margin: 22px auto 0; max-width: 640px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--mut);
  text-wrap: balance;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--cyn), transparent);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-height: 950px) {
  .scroll-hint { display: none; }
}

/* ---------- секции ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
/* «сценический» свет: мягкий конус спотлайта сверху каждого слайда */
.section:not(.finale)::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(640px, 80%);
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 70% at 50% 0%, rgba(110, 140, 255, 0.11), transparent 72%),
    radial-gradient(20% 34% at 50% 0%, rgba(200, 210, 255, 0.07), transparent 80%);
}
.section > .wrap { position: relative; z-index: 1; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyn);
  display: flex; align-items: center; gap: 10px;
}
/* светящаяся точка-акцент перед надзаголовком */
.kicker::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
}
.h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em; line-height: 1.06; font-weight: 800;
  text-wrap: balance;
}
.lead { margin: 18px 0 0; color: var(--mut); font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.slide-cta { padding: 8px 0 64px; }
.m-tag { font-family: var(--mono); color: var(--dim); font-size: 14px; }

/* ---------- глава «проблема → подход → результат»: три полноэкранных слайда ---------- */
.act {
  --acc: #ff453a; --acc2: #ff6482;
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
}
.act-approach { --acc: #0a84ff; --acc2: #64d2ff; }
.act-outcome { --acc: #bf5af2; --acc2: #30d158; }
/* у каждого слайда свой цвет света: тревожный → рабочий → итоговый */
.act::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 60% at 22% 18%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 85%, color-mix(in srgb, var(--acc2) 9%, transparent), transparent 70%);
}
.act-inner {
  position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.act .kicker { color: var(--acc2); margin: 0; }
.act-rail {
  list-style: none; margin: 0 0 30px; padding: 0; display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.act-rail li { display: flex; align-items: center; gap: 9px; color: var(--dim); }
.act-rail li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid currentColor; box-sizing: border-box;
}
/* соединительная линия между шагами */
.act-rail li:not(:last-child)::after {
  content: ""; width: clamp(18px, 3vw, 40px); height: 1px; margin-left: 3px; background: var(--line);
}
.act-rail .is-done { color: var(--mut); }
.act-rail .is-done::before { background: currentColor; }
.act-rail .is-on { color: var(--txt); }
.act-rail .is-on::before {
  border-color: var(--acc2); background: var(--acc2);
  box-shadow: 0 0 10px var(--acc2), 0 0 24px var(--acc);
}
.act-title {
  margin: 14px 0 0; font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance;
}
.act-text { margin: 22px 0 0; color: var(--mut); font-size: clamp(1.02rem, 1.45vw, 1.2rem); max-width: 54ch; }
.act-cta { margin: 32px 0 0; }
.act-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; perspective: 1100px; }
.act-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  padding: clamp(18px, 2vw, 26px); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-top-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -40px color-mix(in srgb, var(--acc) 60%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.act-card p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.5; }
.act-ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  color: var(--acc2); background: color-mix(in srgb, var(--acc) 16%, transparent);
  box-shadow: 0 0 28px -6px var(--acc), inset 0 0 0 1px color-mix(in srgb, var(--acc2) 30%, transparent);
}
.act-ico svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px currentColor);
}

/* ---------- стек услуг ---------- */
.stack { background: linear-gradient(var(--bg), var(--bg-2)); }
.stack-list { margin-top: 48px; display: grid; gap: clamp(24px, 8vh, 72px); }
.stack-card {
  position: sticky;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  padding: clamp(26px, 4vw, 52px);
  min-height: 58vh;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 60px);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.stack-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 12% 0%, rgba(162, 89, 255, 0.2), transparent 70%);
}
.stack-num {
  font-family: var(--mono); font-size: 14px; color: var(--cyn);
  letter-spacing: 0.2em;
}
.stack-card h3 { margin: 12px 0 0; font-size: clamp(1.5rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.12; }
.stack-promise { margin: 12px 0 0; color: var(--txt); font-weight: 650; font-size: 1.05rem; }
.stack-desc { margin: 12px 0 0; color: var(--mut); }
.stack-deliv { margin: 18px 0 0; padding: 0; list-style: none; }
.stack-deliv li { padding: 9px 0 9px 28px; position: relative; border-top: 1px dashed var(--line); color: var(--mut); font-size: 15px; }
.stack-deliv li::before { content: "✓"; position: absolute; left: 2px; color: var(--cyn); font-weight: 700; }
.stack-cta { margin-top: 22px; }

/* ---------- keynote-заявление: слова зажигаются по скроллу ---------- */
.statement { position: relative; height: 230vh; }
.statement-stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px;
  display: flex; align-items: center; overflow: hidden;
}
.statement-stage::before {
  content: ""; position: absolute; left: 50%; top: -20%; width: 90vw; height: 120%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(110, 120, 255, 0.12), transparent 70%);
}
.statement-text {
  position: relative; margin: 0; max-width: 21ch;
  font-size: clamp(2.1rem, 5.6vw, 4.8rem); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.07; text-wrap: balance;
}
.statement-text .hl {
  background: linear-gradient(95deg, #64d2ff, #8e9bff 45%, #bf5af2 80%, #ff6482);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(120, 130, 255, 0.45));
}

/* ---------- технологии: 3D-стена настоящих логотипов, без заголовков ----------
   По умолчанию (без JS/GSAP или с reduced-motion) — обычный блок, сетка целиком.
   С классом html.scenes (app.js) — sticky-сцена: наклонённая стена проплывает
   через экран, ряды зажигаются, проходя центр. */
.tech { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.tech-stage { position: relative; display: grid; place-items: center; }
html.scenes .tech { height: 420vh; padding: 0; }
html.scenes .tech-stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px;
  overflow: hidden; place-items: start center;
  perspective: 1400px; perspective-origin: 50% 40%;
}
.tech-glow {
  position: absolute; left: 50%; top: 50%; width: 90vmax; height: 56vmax;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0.7;
  background: radial-gradient(closest-side, rgba(70, 100, 255, 0.24), rgba(191, 90, 242, 0.1) 55%, transparent);
  filter: blur(30px);
}
.tech-scene {
  position: relative; width: min(1060px, 100% - 32px);
  transform-style: preserve-3d; transform-origin: 50% 50%;
}
/* затухание стены у верхнего и нижнего края кадра */
html.scenes .tech-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--bg), transparent 16%, transparent 84%, var(--bg));
}
.tech-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 22px); transform-style: preserve-3d;
}
.tile {
  --lit: 1;          /* 0 — «выключена», 1 — горит фирменным цветом (GSAP крутит по скроллу) */
  --k: var(--cd);    /* цвет знака для текущей темы */
  position: relative; aspect-ratio: 1; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%;
  border-radius: clamp(18px, 2.4vw, 32px);
  /* невыключенная плитка утоплена вглубь стены и выезжает, когда зажигается */
  transform: translateZ(calc((1 - var(--lit)) * -140px));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-color: color-mix(in srgb, var(--k) calc(var(--lit) * 45%), rgba(255, 255, 255, 0.09));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 calc(var(--lit) * 50px) calc(var(--lit) * -12px) var(--k);
  color: var(--k);
  color: color-mix(in srgb, var(--k) calc(var(--lit) * 100%), #6e6e73);
  transition: translate 0.35s var(--ease), scale 0.35s var(--ease);
}
/* блик за курсором — общий «фонарик» по всей сетке */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, -300px) var(--my, -300px),
    color-mix(in srgb, var(--k) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.tile svg {
  width: 38%; height: 38%; fill: currentColor; flex: none;
  filter: drop-shadow(0 0 calc(var(--lit) * 16px) color-mix(in srgb, var(--k) 70%, transparent));
}
.tile span {
  font-size: clamp(12px, 1.15vw, 15px); font-weight: 550; color: var(--mut); white-space: nowrap;
  letter-spacing: 0.01em; opacity: calc(0.35 + var(--lit) * 0.65);
}
.tile:hover { translate: 0 -8px; scale: 1.05; z-index: 2; }
/* фоновое «дыхание»: случайная плитка вспыхивает (app.js). Анимируем только
   opacity кольца — интерполяция color-mix в keyframes в Chromium путает цвета */
.tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--k); opacity: 0;
  box-shadow: 0 0 46px -4px var(--k), inset 0 0 22px -10px var(--k);
}
.tile.pulse::after { animation: tile-pulse 1.4s var(--ease); }
@keyframes tile-pulse { 30% { opacity: 1; } }

/* ---------- продукты: бенто с живыми мини-демо ---------- */
.prod-grid {
  margin-top: 48px; display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* WidgetsAI — широкая (бесплатный тариф, главная конверсия), ChatBot — высокая */
/* .prod.prod-widgetsai — специфичнее .prod { display: flex }, иначе демо уезжает вниз */
.prod.prod-widgetsai { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.prod-chatbot { grid-row: span 2; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.prod {
  --acc: #8e9bff;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.prod-widgetsai { --acc: #8e9bff; }
.prod-chatbot { --acc: #64d2ff; }
.prod-tkomap { --acc: #3ddc84; }
.prod-minfra { --acc: #ff9f0a; }
.prod::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--a), transparent 0 68%, var(--acc) 85%, transparent 100%);
  -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 0.4s; pointer-events: none;
}
.prod:hover::before { opacity: 1; animation: spin-a 3s linear infinite; }
@keyframes spin-a { to { --a: 360deg; } }
.prod:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 80px -34px var(--acc); }
.prod-body { padding: clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prod-top { display: flex; align-items: center; gap: 14px; }
.prod-top img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 13px;
  background: rgba(255, 255, 255, 0.06); flex: none;
}
.prod-name { margin: 0; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }
.prod-badge {
  margin: 3px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--acc);
}
.prod-tag { margin: 0; color: var(--txt); font-weight: 650; font-size: 1.08rem; line-height: 1.4; }
.prod-points { margin: 0; padding: 0; list-style: none; color: var(--mut); font-size: 15px; }
.prod-points li { padding-left: 22px; position: relative; margin-top: 8px; line-height: 1.45; }
.prod-points li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 10px var(--acc);
}
/* цена — меткой над кнопкой: одинаково во всех карточках, без переносов */
.prod-foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.prod-foot .prod-price { order: -1; }
.prod-price {
  font-size: 13px; color: var(--txt); padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
}
.prod-foot .btn-primary { box-shadow: 0 8px 26px -6px color-mix(in srgb, var(--acc) 70%, transparent); }

/* окно мини-демо */
.prod-vis {
  position: relative; overflow: hidden; border-radius: calc(var(--r) - 8px);
  min-height: 210px; border: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%),
    var(--bg-2);
}
.prod-widgetsai .prod-vis { order: 2; min-height: 100%; }
/* высокая карточка: окно чата забирает свободную высоту, а не пустота над кнопкой */
.prod-chatbot .prod-vis { min-height: 330px; flex: 1 1 auto; }
.prod-chatbot .prod-body { flex: none; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 12px; }
.mock i { display: block; height: 6px; border-radius: 4px; background: var(--line); margin-top: 6px; }
.mock i.s { width: 55%; }

/* WidgetsAI: лента отзывов */
.mock-wg { justify-content: center; gap: 16px; padding: 22px 0; }
.wg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 22px; }
.wg-head b { color: #ffcc00; letter-spacing: 2px; margin-right: 4px; font-size: 15px; text-shadow: 0 0 12px rgba(255, 204, 0, 0.6); }
.wg-head span {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.wg-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.wg-row { display: flex; gap: 12px; width: max-content; animation: wg-scroll 28s linear infinite; }
@keyframes wg-scroll { to { transform: translateX(-50%); } }
.wg-card {
  width: 170px; padding: 14px; border-radius: 16px; flex: none;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.6);
}
.wg-card b { display: block; color: #ffcc00; letter-spacing: 1px; margin-top: 8px; }
.wg-ava { display: block; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), #bf5af2); }

/* ChatBot: вопрос → печатает → ответ с источником (цикл 8 с) */
.mock-chat { padding: 14px; gap: 10px; }
.ch-bar { display: flex; align-items: center; gap: 8px; color: var(--mut); font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ch-bar span { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; }
.ch-msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; line-height: 1.4; }
.ch-user { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 5px; animation: ch-in 8s infinite; }
.ch-bot {
  align-self: flex-start; width: 78%; background: var(--card); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; position: relative; min-height: 44px;
}
.ch-typing { display: flex; gap: 4px; animation: ch-typing 8s infinite; }
.ch-typing i { width: 7px; height: 7px; margin: 0; border-radius: 50%; background: var(--dim); animation: ch-dot 1s infinite; }
.ch-typing i:nth-child(2) { animation-delay: 0.15s; }
.ch-typing i:nth-child(3) { animation-delay: 0.3s; }
.ch-lines, .ch-src { display: block; animation: ch-answer 8s infinite; }
.ch-lines i:first-child { margin-top: 0; }
.ch-src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 9px;
  border-radius: 8px; color: var(--cyn); background: color-mix(in srgb, var(--cyn) 12%, transparent);
  animation-name: ch-source;
}
.ch-src svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.ch-input {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 9px 9px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--dim);
}
.ch-input b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0a84ff; color: #fff; }
@keyframes ch-in { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ch-typing { 0%, 12% { opacity: 0; } 16%, 34% { opacity: 1; } 38%, 100% { opacity: 0; height: 0; } }
@keyframes ch-answer { 0%, 36% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ch-source { 0%, 50% { opacity: 0; transform: translateY(4px); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ch-dot { 50% { transform: translateY(-3px); opacity: 0.4; } }

/* TKO Map: улицы, река, маршрут и метки */
.mock-map svg { width: 100%; height: 100%; display: block; }
.mock-map .streets path { stroke: var(--line); stroke-width: 6; fill: none; }
.mock-map .river { stroke: color-mix(in srgb, #0a84ff 35%, transparent); stroke-width: 14; fill: none; }
.mock-map .route {
  fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 7 7;
  filter: drop-shadow(0 0 6px var(--acc)); animation: lane-flow 2.4s linear infinite;
}
@keyframes lane-flow { to { stroke-dashoffset: -84; } }
.pin circle { fill: var(--c); }
.pin .ring { fill: none; stroke: var(--c); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pin-ping 2.4s var(--d) ease-out infinite; }
.pin-ok { --c: #30d158; } .pin-new { --c: #0a84ff; } .pin-warn { --c: #ff9f0a; }
@keyframes pin-ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(2.2); opacity: 0; } }

/* MInfra: телефон с доменами */
.mock-phone { align-items: center; justify-content: flex-end; padding-top: 22px; }
.mi-phone {
  width: 190px; height: 100%; padding: 16px 14px 0; border-radius: 30px 30px 0 0;
  background: var(--card); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -10px 40px -16px color-mix(in srgb, var(--acc) 60%, transparent);
  animation: phone-rise 6s ease-in-out infinite;
}
@keyframes phone-rise { 50% { transform: translateY(-6px); } }
.mi-notch { width: 56px; height: 6px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.mi-title { margin: 0 0 8px; font-weight: 700; font-size: 13px; }
.mi-row { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--mut); font-size: 11px; }
.mi-row b { margin-left: auto; font-weight: 700; }
.mi-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; }
.mi-ok { color: #30d158; } .mi-warn { color: #ff9f0a; } .mi-bad { color: #ff453a; }
.mi-dot.mi-bad { box-shadow: 0 0 10px #ff453a; animation: ch-dot 1.2s infinite; }
.mi-spark { width: 100%; height: 34px; margin-top: 8px; }
.mi-spark path { fill: none; stroke: var(--acc); stroke-width: 2; filter: drop-shadow(0 0 4px var(--acc)); }

/* ---------- процесс ---------- */
.steps { margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--mono); color: var(--cyn); font-size: 15px; padding-top: 6px;
}
.step h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: var(--mut); max-width: 64ch; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.02); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--cyn); font-size: 18px; transition: transform 0.3s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--mut); max-width: 75ch; }
.faq .a p { margin: 0; }

/* ---------- финал-контакт (светлая сцена): шаги, человек, быстрый бриф ---------- */
.finale { background: var(--light); color: var(--ink); border-radius: 36px 36px 0 0; }
.finale .kicker { color: #7d2ae8; }
.finale .h2 { color: var(--ink); }
.finale .lead { color: #3f3f46; }
.finale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ns-title { margin: 34px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6e6e73; }
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
/* линия между шагами */
.next-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 2px;
  background: linear-gradient(#7d2ae8, rgba(125, 42, 232, 0.1));
}
.ns-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #0071e3, #7d2ae8);
  box-shadow: 0 6px 18px -4px rgba(125, 42, 232, 0.6);
}
.next-steps b { display: block; padding-top: 6px; }
.next-steps p { margin: 4px 0 0; color: #52525b; font-size: 15px; }
.person {
  margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px -26px rgba(20, 10, 60, 0.45);
}
.person-ava {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #0071e3, #bf5af2);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(125, 42, 232, 0.25), 0 8px 24px -6px rgba(125, 42, 232, 0.6);
}
.person p { margin: 2px 0 0; color: #6e6e73; font-size: 14px; }
.person-links { margin-left: auto; display: flex; gap: 14px; }
.person-links a { color: #0066cc; font-weight: 600; font-size: 14px; text-decoration: none; }
.person-links a:hover { text-decoration: underline; }

.brief-card {
  position: relative; isolation: isolate; background: #fff; border-radius: var(--r);
  padding: clamp(22px, 3vw, 38px); box-shadow: 0 30px 80px -30px rgba(20, 10, 60, 0.3);
  display: grid; gap: 20px;
}
.brief-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.35), rgba(191, 90, 242, 0.35), rgba(255, 100, 130, 0.25));
  filter: blur(26px); opacity: 0.5;
}
.brief-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; }
.brief-tasks { border: 0; margin: 0; padding: 0; }
.brief-tasks legend { padding: 0; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 550;
  border: 1px solid rgba(0, 0, 0, 0.12); background: #f5f5f7; color: var(--ink);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.chip:hover span { border-color: rgba(0, 113, 227, 0.5); }
.chip input:checked + span {
  background: #0071e3; color: #fff; border-color: #0071e3;
  box-shadow: 0 6px 20px -4px rgba(0, 113, 227, 0.6);
}
.chip input:focus-visible + span { outline: 2px solid #0071e3; outline-offset: 3px; }
.brief-field { display: grid; gap: 8px; font-size: 14px; color: #52525b; }
.brief-field input, .brief-field textarea {
  font: inherit; font-size: 15px; color: var(--ink); resize: vertical; min-height: 92px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, 0.14); background: #fbfbfd;
}
.brief-field input:focus, .brief-field textarea:focus { outline: 2px solid #0071e3; outline-offset: 1px; border-color: transparent; }
.brief-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.brief-actions .btn-light { background: #1d1d1f; color: #fff; }
.brief-direct {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.08); font-weight: 650;
}
.brief-direct button {
  font: inherit; font-size: 13.5px; font-weight: 600; color: #0066cc; cursor: pointer;
  background: none; border: 1px solid rgba(0, 102, 204, 0.3); border-radius: 999px; padding: 6px 12px;
}
.brief-status { margin: 0; min-height: 1.2em; font-size: 14px; color: #1f9d48; }
.finale-note { margin-top: 28px; color: #6e6e73; font-size: 14px; max-width: 90ch; }

/* ---------- услуги: ссылка на посадочную ---------- */
.stack-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack-more { color: var(--cyn); font-weight: 650; font-size: 15px; text-decoration: none; }
.stack-more:hover { text-decoration: underline; }
[data-theme="light"] .stack-more { color: #0066cc; }

/* ============================================================
   ПОСАДОЧНЫЕ СТРАНИЦЫ (v3/content/<slug>.json)
   ============================================================ */
.lp-hero {
  position: relative; min-height: 100svh; overflow: hidden; text-align: center;
  display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 72px;
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 10%, rgba(10, 132, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(191, 90, 242, 0.14), transparent 70%);
}
.lp-hero-inner { position: relative; z-index: 2; }
.lp-kicker { justify-content: center; }
.lp-hero .display { margin-top: 18px; font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
[data-theme="light"] .lp-hero::before {
  background:
    radial-gradient(50% 50% at 50% 10%, rgba(0, 113, 227, 0.12), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(125, 42, 232, 0.08), transparent 70%);
}
/* схема переезда «сейчас → Беларусь» */
.mv { margin: 34px auto 0; max-width: 680px; }
.mv svg { width: 100%; height: auto; display: block; overflow: visible; }
.mv-lane {
  fill: none; stroke: color-mix(in srgb, var(--cyn) 45%, transparent); stroke-width: 1.6;
  stroke-dasharray: 6 12; animation: lane-flow var(--d) linear infinite;
}
.mv-pkt { fill: var(--cyn); filter: drop-shadow(0 0 8px var(--cyn)); }
.mv-node rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.mv-node path { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.mv-from rect { stroke-dasharray: 5 6; }
.mv-from path { opacity: 0.6; }
.mv-to rect { stroke: #30d158; filter: drop-shadow(0 0 22px rgba(48, 209, 88, 0.45)); }
.mv-to circle { fill: #30d158; filter: drop-shadow(0 0 6px #30d158); }
.mv-labels { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; text-align: center; }
.mv-labels span { flex: 0 1 220px; display: grid; gap: 2px; font-size: 14px; color: var(--mut); }
.mv-labels b { color: var(--txt); font-size: 15px; }
.lp-why { min-height: 0; padding: clamp(80px, 10vw, 130px) 0; }
.lp-why .act-card { grid-template-columns: 48px 1fr; }
.lp-why .act-card b { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.lp-why .act-card p { color: var(--mut); font-size: 15px; }
.lp-note { margin: 22px 0 0; color: var(--dim); font-size: 14px; max-width: 52ch; }
.lp-scope {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
}
.lp-scope li {
  padding: 22px 22px 22px 54px; position: relative; border-radius: 20px; font-weight: 600;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.lp-scope li::before {
  content: "✓"; position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, #0a84ff, #bf5af2); box-shadow: 0 0 14px rgba(10, 132, 255, 0.6);
}
[data-theme="light"] .lp-scope li { background: #fff; box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.35); }
.lp-partner {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r); border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(48, 209, 88, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.lp-partner > * { position: relative; z-index: 1; }
.lp-partner .kicker { margin: 0; }
.lp-partner-side { display: grid; gap: 20px; justify-items: start; }
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, #30d158 40%, transparent);
  background: color-mix(in srgb, #30d158 10%, transparent);
}
[data-theme="light"] .lp-partner { background: radial-gradient(60% 80% at 100% 0%, rgba(31, 157, 72, 0.1), transparent 70%), #fff; }
/* иллюстрации hero посадочных: окно с мини-интерфейсом */
.lp-vis {
  --acc: #64d2ff;
  position: relative; margin: 44px auto 0; max-width: 680px; height: 300px; text-align: left;
  border-radius: 26px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(80% 90% at 50% 0%, rgba(10, 132, 255, 0.2), transparent 70%), var(--bg-2);
  box-shadow: 0 40px 90px -40px rgba(10, 132, 255, 0.55);
}
[data-theme="light"] .lp-vis {
  background: radial-gradient(80% 90% at 50% 0%, rgba(0, 113, 227, 0.1), transparent 70%), #fff;
  box-shadow: 0 40px 90px -46px rgba(0, 113, 227, 0.45);
}
.lp-vis-chat { max-width: 520px; height: 330px; }
/* браузер: сайт собирается, приходит заявка */
.br-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.br-bar span {
  margin-left: 14px; flex: 1; max-width: 260px; padding: 5px 12px; border-radius: 8px;
  font-size: 12px; color: var(--mut); background: color-mix(in srgb, var(--card) 80%, transparent);
}
.br-page { padding: 22px; display: grid; gap: 18px; }
.br-hero { display: grid; gap: 8px; justify-items: start; }
.br-hero b { width: 60%; height: 18px; border-radius: 6px; background: linear-gradient(90deg, #0a84ff, #bf5af2); animation: br-in 6s infinite; }
.br-hero i, .br-cards div::before { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.br-hero i { width: 80%; } .br-hero i.s { width: 50%; }
.br-btn { margin-top: 6px; padding: 7px 14px; border-radius: 999px; font-size: 12px; color: #fff; background: #0a84ff; box-shadow: 0 6px 18px -4px rgba(10, 132, 255, 0.7); }
.br-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.br-cards div {
  height: 74px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  animation: br-in 6s infinite; padding: 12px;
}
.br-cards div::before { content: ""; width: 60%; }
.br-cards div:nth-child(2) { animation-delay: 0.2s; } .br-cards div:nth-child(3) { animation-delay: 0.4s; }
.br-toast {
  position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
  animation: toast 6s infinite;
}
.br-toast span { width: 9px; height: 9px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; }
@keyframes br-in { 0%, 6% { opacity: 0; transform: translateY(8px); } 16%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes toast { 0%, 50% { opacity: 0; transform: translateY(14px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* два телефона и push-уведомление */
.lp-vis-phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.ph {
  width: 170px; height: 270px; padding: 14px 14px 0; border-radius: 30px 30px 0 0; border: 1px solid var(--line);
  border-bottom: 0; background: var(--card); display: grid; align-content: start; gap: 10px;
}
.ph-back { transform: translate(24px, 26px) rotate(-6deg); opacity: 0.75; }
.ph-front { position: relative; z-index: 1; box-shadow: 0 -10px 50px -16px rgba(10, 132, 255, 0.6); animation: phone-rise 6s ease-in-out infinite; }
.ph-map {
  height: 110px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px;
}
.ph-map i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; }
.ph-map i:nth-child(1) { left: 20%; top: 30%; } .ph-map i:nth-child(2) { left: 60%; top: 55%; background: #ff9f0a; box-shadow: 0 0 10px #ff9f0a; } .ph-map i:nth-child(3) { left: 40%; top: 75%; }
.ph-img { height: 110px; border-radius: 14px; background: linear-gradient(135deg, #0a84ff, #bf5af2 60%, #ff6482); }
.ph-line { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.ph-line.s { width: 60%; }
.ph-btn { justify-self: start; padding: 8px 14px; border-radius: 999px; font-size: 12px; color: #fff; background: #0a84ff; }
.ph-push {
  position: absolute; top: 36px; left: calc(50% + 100px); z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5); animation: toast 6s infinite;
}
.ph-push span { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #0a84ff, #bf5af2); }
/* панель серверов: полоски аптайма */
.lp-vis-status { height: auto; padding: 22px; display: grid; gap: 12px; }
.st-row {
  display: grid; grid-template-columns: 12px 120px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 13px;
}
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.st-ok { color: #30d158; } .st-warn { color: #ff9f0a; }
.st-row em { font-style: normal; font-weight: 600; }
.st-bars { display: flex; gap: 3px; }
.st-bars i { flex: 1; height: 18px; border-radius: 3px; background: color-mix(in srgb, #30d158 70%, transparent); }
.st-row:last-child .st-bars i:nth-last-child(-n + 3) { background: #ff9f0a; animation: ch-dot 1.4s infinite; }
/* схема потока: узлы и бегущие точки */
.flow {
  margin: 48px auto 0; max-width: 900px; display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: 0;
}
.fl-node {
  flex: none; padding: 14px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 650; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.6);
}
.fl-core {
  color: #fff; border-color: transparent; background: linear-gradient(135deg, #0a84ff, #bf5af2);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12), 0 14px 44px -8px rgba(124, 92, 255, 0.8);
  animation: core-breathe 4s ease-in-out infinite;
}
.fl-done { border-color: color-mix(in srgb, #30d158 55%, transparent); box-shadow: 0 0 28px -8px rgba(48, 209, 88, 0.7); }
.fl-link { position: relative; flex: 1 1 40px; min-width: 28px; height: 2px; background: linear-gradient(90deg, var(--line), var(--line)); }
.fl-link i {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyn); box-shadow: 0 0 10px var(--cyn);
  animation: fl-run 2.4s linear infinite; animation-delay: calc(var(--i) * 0.4s);
}
@keyframes fl-run { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

/* опыт: свои продукты как доказательство */
.lp-proof {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r); border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 0% 0%, rgba(10, 132, 255, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.lp-proof > * { position: relative; z-index: 1; }
.lp-proof .kicker { margin: 0; }
.lp-prods { display: grid; gap: 12px; }
.lp-prod {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.lp-prod:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cyn) 50%, transparent); }
.lp-prod img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.lp-prod span { display: grid; font-size: 13px; color: var(--mut); }
.lp-prod b { color: var(--txt); font-size: 1.05rem; }
[data-theme="light"] .lp-proof { background: radial-gradient(60% 80% at 0% 0%, rgba(0, 113, 227, 0.08), transparent 70%), #fff; }
/* цена и «когда мы не нужны» */
.lp-price-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.lp-price .lead { max-width: 56ch; }
.lp-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-checks li {
  position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)); font-weight: 550;
}
.lp-checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #bf5af2); box-shadow: 0 0 10px rgba(124, 92, 255, 0.8);
}
[data-theme="light"] .lp-checks li { background: #fff; }
/* «С чего начать»: позитивный первый шаг с кнопкой к брифу */
.lp-start {
  --acc: #0a84ff; --acc2: #64d2ff;
  position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; justify-items: start;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r);
  border: 1px solid color-mix(in srgb, #0a84ff 40%, transparent);
  background: radial-gradient(90% 80% at 100% 0%, rgba(10, 132, 255, 0.2), transparent 70%),
    radial-gradient(70% 70% at 0% 100%, rgba(191, 90, 242, 0.12), transparent 70%), var(--card);
  box-shadow: 0 30px 80px -40px rgba(10, 132, 255, 0.6);
}
.lp-start b { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.25; }
.lp-start p { margin: 0; color: var(--mut); }
.lp-start .btn { margin-top: 6px; }
[data-theme="light"] .lp-start {
  --acc: #0071e3; --acc2: #0071e3;
  background: radial-gradient(90% 80% at 100% 0%, rgba(0, 113, 227, 0.1), transparent 70%),
    radial-gradient(70% 70% at 0% 100%, rgba(125, 42, 232, 0.06), transparent 70%), #fff;
}

@media (max-width: 900px) {
  .lp-proof, .lp-price-grid { grid-template-columns: 1fr; }
  .lp-start { position: static; }
}
@media (max-width: 640px) {
  .mv-labels span { font-size: 12px; }
  .lp-hero { min-height: 0; }
  .lp-vis { height: 260px; }
  .lp-vis-status { height: auto; }
  .st-row { grid-template-columns: 10px 1fr; }
  .st-bars { grid-column: 1 / -1; }
  .st-row em { display: none; }
  .ph-push { left: auto; right: 12px; }
  /* поток на телефоне — вертикально */
  .flow { flex-direction: column; align-items: stretch; max-width: 280px; }
  .fl-node { text-align: center; white-space: normal; }
  .fl-link { flex: none; width: 2px; min-width: 0; height: 30px; align-self: center; }
  .fl-link i { left: -3px; animation-name: fl-run-v; }
  @keyframes fl-run-v { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
}

/* ---------- футер ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.footer-tag { color: var(--mut); max-width: 40ch; margin-top: 10px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--mut); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--txt); }
.legal { margin-top: 28px; color: var(--dim); font-size: 13px; max-width: 90ch; }
.totop { color: var(--dim); text-decoration: none; font-size: 14px; }
.totop:hover { color: var(--txt); }

/* ---------- reveal (включается только с JS) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
}

/* ---------- переключатель темы ---------- */
.theme-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--txt);
  cursor: pointer; transition: background 0.3s, transform 0.25s var(--ease);
}
.theme-toggle:hover { background: rgba(128, 128, 128, 0.14); }
.theme-toggle:active { transform: scale(0.93); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }

/* ============================================================
   СВЕТЛАЯ ТЕМА — переопределения поверх тёмной базы.
   ============================================================ */
[data-theme="light"] .nav.scrolled {
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35)),
    rgba(251, 251, 253, 0.55);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* навбар над светлым финалом в тёмной теме: локально светлая палитра (app.js) */
.nav.on-light { --txt: #1d1d1f; --mut: #515154; --line: rgba(0, 0, 0, 0.12); color: var(--txt); }
.nav.on-light.scrolled {
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35)), rgba(251, 251, 253, 0.55);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.nav.on-light .btn-ghost { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] :focus-visible { outline-color: #0071e3; }
[data-theme="light"] .btn-ghost { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .kicker,
[data-theme="light"] .step-n,
[data-theme="light"] .stack-num,
[data-theme="light"] .brand b i { color: #0066cc; }
/* у глав и финала свой цвет надзаголовка — общее правило выше его не перебивает */
[data-theme="light"] .act .kicker { color: var(--acc2); }
[data-theme="light"] .finale .kicker { color: #7d2ae8; }
[data-theme="light"] .prod-vis { background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), #f5f5f7; }
[data-theme="light"] .display .grad {
  background: linear-gradient(91deg, #7d2ae8 1.53%, #b345d8 29.5%, #1d1d1f 70.59%, #0071e3 99.09%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .prod { background: #fff; box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.28); }
[data-theme="light"] .prod:hover { background: #fff; }
[data-theme="light"] .stack-card { box-shadow: 0 24px 70px -40px rgba(0, 0, 0, 0.35); }
[data-theme="light"] [data-spot]::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.07), transparent 65%);
}
[data-theme="light"] .faq { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .route-dot.is-active {
  background: #0071e3; box-shadow: 0 0 14px rgba(0, 113, 227, 0.6);
}
/* WebGL: в светлой аврору не рисуем (webgl.js), сфера остаётся,
   под ней — пастельные орбы */
[data-theme="light"].gl .orb { display: block; }
[data-theme="light"] .display .grad { --glow: rgba(125, 42, 232, 0.22); }
[data-theme="light"] .hero-floor {
  border-top-color: rgba(0, 113, 227, 0.28);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 113, 227, 0.1), transparent 70%);
  box-shadow: 0 -24px 90px -10px rgba(0, 113, 227, 0.16), inset 0 24px 70px -20px rgba(125, 42, 232, 0.1);
}
[data-theme="light"] .hero-mark::before {
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.22), rgba(125, 42, 232, 0.1) 55%, transparent);
}
[data-theme="light"] .section:not(.finale)::before {
  background: radial-gradient(42% 70% at 50% 0%, rgba(0, 113, 227, 0.07), transparent 72%);
}
[data-theme="light"] .statement-stage::before {
  background: radial-gradient(50% 60% at 50% 30%, rgba(0, 113, 227, 0.07), transparent 70%);
}
[data-theme="light"] .statement-text .hl {
  background: linear-gradient(95deg, #0071e3, #5b4bff 45%, #7d2ae8 80%, #d6246e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(91, 75, 255, 0.18));
}
[data-theme="light"] .tile {
  --k: var(--c);
  background: linear-gradient(160deg, #ffffff, #f5f5f7);
  border-color: rgba(0, 0, 0, 0.07);
  border-color: color-mix(in srgb, var(--k) calc(var(--lit) * 30%), rgba(0, 0, 0, 0.07));
  box-shadow:
    0 10px 30px -18px rgba(0, 0, 0, 0.25),
    0 0 calc(var(--lit) * 30px) calc(var(--lit) * -10px) var(--k);
  color: color-mix(in srgb, var(--k) calc(var(--lit) * 100%), #a1a1a6);
}
[data-theme="light"] .tech-glow {
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.12), rgba(125, 42, 232, 0.06) 55%, transparent);
}
[data-theme="light"] .nav-links.open { background: rgb(251, 251, 253); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.18); }
[data-theme="light"] .act-approach { --acc: #0071e3; --acc2: #0071e3; }
[data-theme="light"] .act-problem { --acc: #e0352b; --acc2: #d6246e; }
[data-theme="light"] .act-outcome { --acc: #7d2ae8; --acc2: #1f9d48; }
[data-theme="light"] .act-card {
  background: rgba(255, 255, 255, 0.82); border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.3), 0 30px 60px -44px color-mix(in srgb, var(--acc) 50%, transparent);
}
[data-theme="light"] .orb-a { background: radial-gradient(circle, rgba(0, 113, 227, 0.16), transparent 65%); }
[data-theme="light"] .orb-b { background: radial-gradient(circle, rgba(162, 89, 255, 0.15), transparent 65%); }
[data-theme="light"] .orb-c { background: radial-gradient(circle, rgba(255, 55, 95, 0.1), transparent 65%); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod.prod-widgetsai { grid-column: auto; grid-template-columns: 1fr; }
  .prod-widgetsai .prod-vis { order: 0; min-height: 220px; }
  .prod-chatbot { grid-row: auto; }
  .finale-grid { grid-template-columns: 1fr; }
  .lp-partner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger {
    display: grid; place-items: center; margin-left: 4px;
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line); background: transparent; color: var(--txt);
    font-size: 20px; cursor: pointer;
  }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; padding: 14px 22px 22px; gap: 14px;
    background: rgb(7, 5, 18); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
  /* в мобильном меню «Решения» — раскрытый список с отступом */
  .nav-links.open { max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .nav-drop-btn { pointer-events: none; color: var(--txt); }
  .nav-drop-btn svg { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none; margin: 8px 0 0; padding: 0 0 0 12px;
    min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .nav-drop:hover .nav-menu, .nav-drop.open .nav-menu { transform: none; }
  .nav-menu a { padding: 7px 10px; white-space: normal; }
  .hero { height: 130vh; }
  .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .act-inner { grid-template-columns: 1fr; }
  .act { min-height: 0; padding: 96px 0; }
}
@media (max-width: 640px) {
  /* в навбаре остаются знак, тема, язык и меню: CTA есть прямо в hero */
  .nav-inner { gap: 10px; }
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile span { font-size: 11px; }
  .tile svg { width: 40%; height: 40%; }
  .tile:hover { translate: none; scale: none; }
  .statement { height: 190vh; }
  html.scenes .tech { height: 520vh; }
  .hero-floor { bottom: -50vh; width: 220vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark-float, .scroll-hint::after, .prod-top img, .hero-mark::before,
  .btn-glow::before, .tile.pulse, .wg-row, .ch-user, .ch-typing, .ch-typing i, .ch-lines,
  .ch-src, .mock-map .route, .pin .ring, .mi-phone, .mi-dot, .mv-lane, .br-hero b, .br-cards div,
  .br-toast, .ph-front, .ph-push, .fl-core, .fl-link i, .st-bars i { animation: none !important; }
  .ch-typing { display: none !important; }
  html.js .display .hl-line, html.js .hero-sub, html.js .hero-cta { animation: none; }
  .prod:hover::before { animation: none; opacity: 0; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  /* без анимации sticky-сцены не нужны — обычный поток */
  .statement { height: auto; }
  .statement-stage { position: relative; height: auto; min-height: 0; padding: 110px 0; }
}

/* ============================================================
   LIQUID-слой: прогресс скролла, канвасы, стекло, маршрут.
   ============================================================ */

/* ---------- полоса прогресса: CSS scroll-driven + JS-фолбэк ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, #0071e3, #a259ff, #64d2ff);
  transform-origin: 0 50%; transform: scaleX(0);
}
/* ponytail: нативный scroll-timeline вместо JS-расчёта ширины;
   фолбэк — класс .no-sda ставит ширину из app.js */
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: sp-fill linear forwards; animation-timeline: scroll(); }
}
@keyframes sp-fill { to { transform: scaleX(1); } }

/* ---------- канвасы: искры поверх фона, WebGL внутри hero ---------- */
#sparks {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }
/* въезд карточек сбоку не должен давать горизонтальный скролл;
   clip, а не hidden — hidden сделал бы main скролл-контейнером и сломал sticky */
main { overflow-x: clip; }
#gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
html.gl .orb { display: none; }

/* ---------- жидкое стекло: блик за курсором ---------- */
.prod, .stack-card { position: relative; isolation: isolate; }
[data-spot]::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.14), transparent 65%);
}
[data-spot]:hover::after { opacity: 1; }
.prod > *, .stack-card > * { position: relative; z-index: 1; }
.prod, .stack-card {
  border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 -18px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

/* ---------- маршрут по разделам (десктоп) ---------- */
.route {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: none; align-items: flex-start; gap: 0;
}
@media (min-width: 1180px) {
  .route { display: flex; }
}
.route-track { position: relative; width: 2px; align-self: stretch; background: var(--line); border-radius: 2px; }
.route-fill {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(#0071e3, #a259ff, #64d2ff);
  transform-origin: 50% 0; transform: scaleY(0);
  box-shadow: 0 0 12px rgba(162, 89, 255, 0.8);
}
.route-dots { position: absolute; inset: 0; }
.route-dot {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--dim);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.route-dot.is-active {
  border-color: #fff; background: var(--cyn);
  box-shadow: 0 0 14px var(--cyn);
}
.route-dot span {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap; opacity: 0; transition: opacity 0.3s;
}
.route-dot.is-active span { opacity: 1; color: var(--txt); }

/* ---------- плёночный шум поверх всего (статичная текстура, один слой) ---------- */
.fx-noise {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .fx-noise { opacity: 0.045; mix-blend-mode: multiply; }

/* ---------- мягкий спотлайт за курсором (только точный указатель) ---------- */
.fx-spot {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 130, 255, 0.14), rgba(191, 90, 242, 0.05) 50%, transparent);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.6s;
  transform: translate3d(-999px, -999px, 0); will-change: transform;
}
.fx-spot.on { opacity: 1; }
[data-theme="light"] .fx-spot {
  mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.06), rgba(125, 42, 232, 0.03) 50%, transparent);
}
@media (pointer: coarse) { .fx-spot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  #sparks, #gl, .route, .fx-spot { display: none !important; }
  [data-spot]::after { display: none; }
}

/* ============================================================
   ТАЧ-УСТРОЙСТВА И ПЛАНШЕТЫ
   ============================================================ */
/* цели для пальца не меньше 44px (рекомендация Apple HIG / WCAG 2.5.5) */
@media (pointer: coarse) {
  .nav-links > a, .nav-drop-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-menu a { min-height: 44px; display: flex; align-items: center; }
  .footer-links a, .person-links a, .stack-more { display: inline-flex; align-items: center; min-height: 44px; }
  .brief-direct button { min-height: 44px; }
  .chip span { padding: 11px 16px; }
}
@media (max-width: 900px) {
  .nav-links.open { gap: 0; }
  .nav-links.open > a, .nav-links.open .nav-drop-btn { min-height: 48px; display: flex; align-items: center; }
}
/* без мыши hover «залипает» после тапа — подъёмы и масштаб оставляем только для мыши */
@media (hover: none) {
  .prod:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .prod:hover::before { opacity: 0; animation: none; }
  .tile:hover { translate: none; scale: none; }
  .lp-prod:hover, .btn-primary:hover, .btn-light:hover { transform: none; }
}
/* портретный планшет: бенто продуктов в две колонки вместо одной */
@media (min-width: 641px) and (max-width: 900px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod.prod-widgetsai { grid-column: span 2; grid-template-columns: 1fr 1fr; }
  .prod-widgetsai .prod-vis { order: 2; min-height: 100%; }
  .prod-chatbot { grid-row: span 2; }
}

/* ---------- форма заявки: контакт, ловушка, согласие, итог ---------- */
.brief-field input { min-height: 48px; resize: none; }
.brief-field b { color: #d6246e; font-weight: 700; }
/* ловушка для ботов: людям не видна, скринридерам не объявляется */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-consent { margin: -6px 0 0; font-size: 12.5px; color: #86868b; line-height: 1.45; }
.brief-status.is-error { color: #d70015; }
.brief-status.is-ok { color: #1f9d48; }
.brief-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.brief-direct { font-weight: 500; color: #52525b; font-size: 14px; justify-content: flex-start; }
.brief-direct span { margin-right: 2px; }
.brief-alt { color: #0066cc; font-weight: 650; text-decoration: none; }
.brief-alt:hover { text-decoration: underline; }
.brief-direct button { margin-left: auto; }
/* после отправки форма сворачивается в благодарность */
.brief-done { display: grid; justify-items: start; gap: 10px; }
.brief-done[hidden] { display: none; }
.brief-done .ns-n { width: 48px; height: 48px; font-size: 20px; background: linear-gradient(135deg, #1f9d48, #30d158); }
.brief-done b { font-size: 1.4rem; letter-spacing: -0.015em; }
.brief-done p { margin: 0; color: #52525b; }
.brief-done:focus { outline: none; }
.brief-card.is-sent > :not(.brief-done):not(.hp) { display: none; }

/* ---------- страницы ошибок (404/500) ---------- */
.lp-hero.err { min-height: 100svh; }
.err-links { max-width: 900px; margin-inline: auto; text-align: left; }
.err-links a { text-decoration: none; }
.err-links a:hover { color: var(--cyn); }
.err-en { margin: 26px auto 0; text-align: center; }
.err-en a { color: var(--cyn); text-decoration: none; }

/* строка проверки на робота (капча proof-of-work) */
.brief-captcha { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6e6e73; }
.bc-icon {
  width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative;
  border: 2px solid rgba(0, 113, 227, 0.25); border-top-color: #0071e3;
  animation: bc-spin 0.8s linear infinite;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }
.brief-captcha.is-ok { color: #1f9d48; }
.brief-captcha.is-ok .bc-icon { animation: none; border: 0; background: #30d158; }
.brief-captcha.is-ok .bc-icon::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.brief-captcha.is-fail { color: #d70015; }
.brief-captcha.is-fail .bc-icon { animation: none; border-color: #ff453a; }
@media (prefers-reduced-motion: reduce) { .bc-icon { animation-duration: 2.4s; } }
