/* Labgramm MMS — лендінг.
   Рішення: графітово-чорна основа (як labgramm.com), один зелений акцент Labgramm (#4ae042) — лише на точці впливу,
   CTA і даних. Мотив — сітка й вузли: дані як структурований масив, проблема як фокусна точка. */

:root {
  /* палітра */
  --bg: #0c0d0c;
  --surface: #151716;
  --surface-2: #1c1f1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f1;
  --muted: #a3a8a4;
  --faint: #858b87;
  --accent: #4ae042;
  --accent-dim: rgba(74,224,66, 0.14);
  --bad: #ff8a7a;
  --bad-dim: rgba(255,138,122,.16);
  --warn: #f5c451;
  --on-accent: #0c0d0c;
  --cta: #4ae042;
  --cta-hover: #73e96d;
  --on-cta: #0c0d0c;

  /* типографіка */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(34px, 4.6vw, 64px);
  --fs-h2: clamp(28px, 3.6vw, 48px);
  --fs-h3: clamp(20px, 1.8vw, 24px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* відступи: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-sm: 4px;
  --r-md: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 14px; }

/* ---------- мітки ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--accent); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--accent); }
.node { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); flex: none; }
.node.on { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(12, 13, 12, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.logo { display: inline-flex; align-items: baseline; gap: var(--s2); text-decoration: none; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: .08em; }
.logo-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--on-accent); background: var(--accent); padding: 2px 6px; border-radius: 3px; transform: translateY(-2px); }
.nav { display: flex; gap: var(--s5); }
.nav a { font-size: var(--fs-small); color: var(--muted); text-decoration: none; padding: var(--s2) 0; }
.nav a:hover { color: var(--text); }
.nav a { position: relative; transition: color .2s; }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: #4ae042; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 420px) { .site-header .btn { padding: 0 var(--s3); font-size: 13px; } .logo-word { font-size: 16px; } }

/* ---------- секції ---------- */
.section { padding: var(--s9) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--s4); max-width: 820px; margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p:not(.eyebrow) { font-size: var(--fs-lead); color: var(--muted); max-width: 680px; }
@media (max-width: 640px) { .section { padding: var(--s8) 0; } .section-head { margin-bottom: var(--s6); } }

/* ---------- перший екран ---------- */
.hero { position: relative; isolation: isolate; padding: var(--s8) 0 var(--s9); overflow: clip; }
.hero-bg {
  /* сітка з вузлами — фон першого екрана; окремий шар для паралаксу */
  position: absolute; inset: -120px 0; z-index: -1; pointer-events: none; will-change: transform;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 1.5px),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "text fig" "facts fig";
  grid-template-rows: auto 1fr;
  column-gap: var(--s8); align-items: center;
}
.hero-text { grid-area: text; align-self: end; }
.hero-fig { grid-area: fig; }
.hero-facts { grid-area: facts; align-self: start; }
.hero h1 { font-size: min(var(--fs-display), 4vw); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 .pre { display: block; color: var(--faint); }
.hero-lead { margin-top: var(--s5); font-size: var(--fs-lead); color: var(--muted); max-width: 560px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-facts { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-small); color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s2); }
@media (max-width: 960px) {
  .hero { padding: var(--s6) 0 var(--s8); }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "fig" "facts"; grid-template-rows: none; row-gap: var(--s6); }
  .hero-facts { margin-top: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: var(--s5); }
  .hero h1 { font-size: 31px; }
  .hero-lead { margin-top: var(--s4); font-size: 16px; }
  .hero-cta { margin-top: var(--s5); }
  .hero-cta .btn-primary { flex: 1 1 auto; }
  .hero-second { display: none; }
  .hero-grid { row-gap: var(--s5); }
  .ui-bar > span:last-child { display: none; }
}

/* ---------- фрагменти інтерфейсу ---------- */
.ui {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
  font-size: var(--fs-small);
  overflow: hidden;
}
.ui-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-micro); color: var(--muted);
}
.ui-bar b { color: var(--text); font-weight: 500; }
.ui-body { padding: var(--s4); display: grid; gap: var(--s4); }
.ui-caption { margin-top: var(--s3); font-size: var(--fs-micro); color: var(--faint); font-family: var(--mono); }
.blur { filter: blur(4px); user-select: none; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-micro); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--accent); border-color: rgba(74,224,66,.35); }
.chip.solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.delta-up { color: var(--accent); }
.delta-down { color: #ff8a7a; }

.bar { position: relative; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--muted); border-radius: 3px; transform-origin: left; }
.bar s { position: absolute; top: -4px; bottom: -4px; left: var(--b, 50%); width: 2px; background: var(--text); opacity: .5; text-decoration: none; }
@media (max-width: 420px) {
}

@media (prefers-reduced-motion: no-preference) {
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes focus-in { from { background: transparent; outline-color: transparent; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- логотипи ---------- */
.logos { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.logos-row { display: flex; align-items: center; gap: var(--s5); }
.logos-label { flex: none; max-width: 170px; font-size: var(--fs-small); color: var(--muted); }
.logos-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-list { display: flex; gap: var(--s3); width: max-content; }
.logos-list li { flex: none; width: 132px; height: 64px; display: grid; place-items: center; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.logos-list img { max-height: 36px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .logos-list { animation: marquee 50s linear infinite; }
  .logos-track:hover .logos-list { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s3) / 2)); } }
@media (max-width: 640px) { .logos-row { flex-direction: column; align-items: flex-start; } .logos-label { max-width: none; } .logos-track { width: 100%; } }

/* ---------- інсайт: як зазвичай в агенціях проти Labgramm ---------- */
.vs-meter { display: inline-flex; gap: 4px; }
.vs-meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.vs-meter i:nth-child(-n+1) { background: var(--muted); }
/* ---------- айсберг: над водою — реклама, під водою — усе інше ---------- */
.berg { margin: var(--s6) 0 0; }
.berg-top { position: relative; height: 230px; display: grid; grid-template-columns: minmax(0, 1fr) 30% minmax(0, 1fr); align-items: center; }
.berg-tip { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.berg:not(.in) .berg-tip { transform: translateY(14px); }
.berg-sky { position: relative; grid-column: 1; max-width: 300px; }
.berg-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.berg-sky-t { margin-top: 6px; font-size: 16px; color: var(--muted); }
.berg-ad { position: relative; grid-column: 3; justify-self: start; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(12,13,12,.82); }
.berg-ad::before { content: ""; position: absolute; right: 100%; top: 50%; width: 46px; border-top: 1px dashed var(--line-strong); }
.berg-ad b, .berg-zone b { display: block; font-size: 16px; }
.berg-ad span span { font-size: 14px; color: var(--muted); }
.berg-ok { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #4ae042; color: #0c0d0c; font-style: normal; font-size: 12px; font-weight: 700; }
.berg-ok::before { content: "✓"; }
.berg-ok.is-grey { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.berg-deep { position: relative; isolation: isolate; margin-inline: calc(50% - 50vw); padding: 56px calc(50vw - 50%) 64px; background: linear-gradient(180deg, #0b2a31 0%, #071a1f 50%, #050f12 82%, var(--bg) 100%); overflow: hidden; }
.berg-in { position: relative; padding: 0 13%; }
.berg-water { position: absolute; left: 0; top: -8px; width: 200%; max-width: none; height: 34px; z-index: 1; animation: berg-wave 9s linear infinite; }
.berg-wave { fill: none; stroke: rgba(190,235,240,.55); stroke-width: 2; vector-effect: non-scaling-stroke; }
.berg-wave2 { fill: none; stroke: rgba(190,235,240,.18); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@keyframes berg-wave { to { transform: translateX(-50%); } }
.berg-body { position: absolute; left: 0; top: -56px; width: 100%; height: calc(100% + 80px); z-index: -1; }
/* на широкому екрані підводна частина звужується донизу, як кіль, на телефоні — висока й рівна */
.berg-shape-tall { display: none; }
.berg-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* акула випливає з-за айсберга на рівні «Продажів» і зникає за лівим краєм екрана */
.berg-shark { position: absolute; left: 50%; top: var(--shark-y, 46%); width: 300px; height: auto; max-width: none; z-index: -2; opacity: 0; fill: #3b6a74; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.berg-shark-b path:not(.berg-shark-gill) { stroke: rgba(200,240,245,.45); stroke-width: 1.2; }
.berg-shark-gill { fill: none; stroke: rgba(10,30,36,.55); stroke-width: 1.4; }
.berg-shark-eye { fill: #071a1f; }
.berg-shark-tail { transform-box: view-box; transform-origin: 214px 52px; }
.berg.in .berg-shark { animation: berg-shark 20s linear 1.5s infinite; }
.berg.in .berg-shark-b { animation: berg-bob 3.2s ease-in-out infinite; }
.berg.in .berg-shark-tail { animation: berg-tail .7s ease-in-out infinite alternate; }
@keyframes berg-shark {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  70% { transform: translateX(calc(-50vw - 100% - 40px)); opacity: 1; }
  71%, 100% { transform: translateX(calc(-50vw - 100% - 40px)); opacity: 0; }
}
@keyframes berg-bob { 50% { transform: translateY(5px) rotate(-1.5deg); } }
@keyframes berg-tail { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.berg-dive { position: relative; justify-self: center; display: block; width: max-content; margin: 0 auto; padding: 6px 14px; border-radius: 999px; background: rgba(74,224,66,.14); border: 1px solid rgba(74,224,66,.45); color: #4ae042; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.berg-dive span { display: inline-block; margin-right: 4px; }
.berg.in .berg-dive span { animation: berg-dive 1.6s ease-in-out infinite; }
@keyframes berg-dive { 50% { transform: translateY(4px); } }
.berg-under { margin: 12px auto 0; max-width: 520px; text-align: center; font-size: 15px; color: #a8c3c7; }
.berg-zones { margin-top: var(--s5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.berg-zone { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(4,14,17,.78); border: 1px solid rgba(74,224,66,.3); backdrop-filter: blur(2px); }
.berg-zone:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
.berg-zone .berg-ok { margin-top: 1px; }
.berg-zone span span { display: block; margin-top: 2px; font-size: 14px; color: #d6e4e6; }
.berg-zone small { display: block; margin-top: 6px; font-size: 12.5px; color: #7d979b; }
.berg-merge { display: block; width: 60%; height: 64px; margin: 6px auto 0; overflow: visible; }
.berg-merge path { fill: none; stroke: #4ae042; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; opacity: .75; }
.berg.in .berg-merge path { animation: berg-flow 1.2s linear infinite; }
@keyframes berg-flow { to { stroke-dashoffset: -24; } }
.berg-core { margin: 0 auto; width: min(100%, 420px); display: grid; justify-items: center; gap: 4px; padding: 18px 22px; border-radius: 18px; background: #4ae042; color: #0c0d0c; text-align: center; box-shadow: 0 0 0 8px rgba(74,224,66,.12), 0 18px 50px rgba(74,224,66,.25); }
.berg-core b { font-size: 22px; letter-spacing: -0.02em; }
.berg-core > span { font-size: 15px; color: #0f3a1c; }
.berg-power { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.berg-power li { padding: 4px 10px; border-radius: 999px; background: rgba(12,13,12,.12); font-size: 13px; font-weight: 600; }
.berg-score { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--muted); }
.berg-score > span { display: inline-flex; align-items: center; gap: 12px; }
.berg-score-us { color: var(--accent); }
.berg-score-us .vs-meter i { background: var(--accent); }
@media (max-width: 860px) {
  .berg-top { height: auto; grid-template-columns: 1fr; gap: 14px; padding-bottom: 150px; }
  .berg-tip { height: 140px; }
  .berg-ad { grid-column: 1; }
  .berg-ad::before { display: none; }
  .berg-deep { padding-top: 48px; padding-bottom: 48px; }
  .berg-in { padding: 0 7%; }
  .berg-body { top: -48px; }
  .berg-shape-keel { display: none; }
  .berg-shape-tall { display: inline; }
  .berg-shark { width: 170px; }
  .berg-zones { grid-template-columns: 1fr; }
  .berg-zone:last-child { width: 100%; }
  .berg-merge { width: 80%; }
}
@media (prefers-reduced-motion: reduce) { .berg-water, .berg.in .berg-merge path, .berg.in .berg-dive span, .berg.in .berg-shark, .berg.in .berg-shark-b, .berg.in .berg-shark-tail { animation: none; } .berg-tip { transition: none; } }


.modules { margin-top: var(--s5); display: grid; border-top: 1px solid var(--line); }
.modules li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.modules li .node { margin-top: 8px; }
.modules b { font-weight: 700; }
.modules span { color: var(--muted); font-size: 15px; }
.who { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px; vertical-align: 2px; white-space: nowrap; }
.who.client { color: var(--muted); }
.who.team { border-style: dashed; }
.section-cta { margin-top: var(--s8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); padding: var(--s5) var(--s6); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.section-cta p { flex: 1 1 320px; font-size: 17px; }
.section-cta p span { color: var(--muted); }

/* плитки, графік */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tile { background: var(--surface); padding: var(--s3); display: grid; gap: 2px; }
.tile .l { font-size: 11px; color: var(--muted); }
.tile .v { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.tile .d { font-family: var(--mono); font-size: 11px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 11px; color: var(--muted); font-family: var(--mono); }
.chart-legend i { display: inline-block; width: 10px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.chart-legend i.mk { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid var(--text); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }

.ui-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3) var(--s4); display: grid; gap: 6px; }
.ui-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.ui-card .k.a { color: var(--accent); }
.ui-card p { color: var(--muted); line-height: 1.5; }
.ui-card p b { color: var(--text); font-weight: 600; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.kpi { display: grid; gap: 6px; }
.kpi-bar { position: relative; height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; }
.kpi-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 4px; }
.kpi-bar u { position: absolute; inset: 0 auto 0 0; width: var(--f); border: 1px dashed var(--accent); border-radius: 4px; opacity: .6; text-decoration: none; }
.kpi-bar s { position: absolute; top: -4px; bottom: -4px; left: var(--t); width: 2px; background: var(--text); text-decoration: none; }
.kpi-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-family: var(--mono); font-size: 11px; color: var(--muted); }

.banners { display: grid; grid-template-columns: 1fr .8fr .56fr; gap: var(--s3); align-items: end; }
.banner { display: grid; gap: 6px; }
.banner .art {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(74,224,66,.16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    var(--surface-2);
  border: 1px solid var(--line);
}
.banner .art::before { content: ""; position: absolute; left: 12%; right: 12%; top: 14%; height: 9%; border-radius: 3px; background: rgba(255,255,255,.22); }
.banner .art::after { content: ""; position: absolute; left: 12%; width: 42%; bottom: 10%; height: 10%; border-radius: 3px; background: var(--accent); opacity: .85; }
.banner .art.r11 { aspect-ratio: 1 / 1; }
.banner .art.r45 { aspect-ratio: 4 / 5; }
.banner .art.r916 { aspect-ratio: 9 / 16; }
.banner .meta { display: flex; justify-content: space-between; gap: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.banner .meta b { color: var(--accent); font-weight: 500; }
.approve { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- досвід клієнта ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.questions { display: grid; gap: 0; border-top: 1px solid var(--line-strong); counter-reset: q; }
.questions li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--line); counter-increment: q; }
.questions li::before { content: "0" counter(q); font-family: var(--mono); color: var(--accent); font-size: 14px; padding-top: 4px; }
.questions h3 { font-size: var(--fs-h3); }
.questions p { margin-top: 6px; color: var(--muted); }
.ai-line { margin-top: var(--s7); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); }
.ai-line .flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-weight: 700; font-size: 17px; }
.ai-line .flow span:nth-child(even) { color: var(--faint); font-weight: 400; }
.ai-line p { margin-top: var(--s3); color: var(--muted); font-size: 15px; }

.tg { background: #17212b; border-color: rgba(255,255,255,.1); }
.tg .ui-bar { background: #1e2c3a; color: #aab8c6; border-color: rgba(255,255,255,.06); }
.tg-msg { margin: var(--s4); padding: var(--s4); border-radius: 12px 12px 12px 4px; background: #182533; border: 1px solid rgba(255,255,255,.06); display: grid; gap: var(--s3); font-size: 14px; line-height: 1.5; color: #e7edf3; }
.tg-msg p { color: #c9d4de; }
.tg-msg b { color: #fff; font-weight: 700; }
.tg-msg .lnk { color: #6ab3f3; text-decoration: none; }
.tg-time { justify-self: end; font-size: 11px; color: #6d7f8f; font-family: var(--mono); }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; gap: var(--s7); } }

/* ---------- кейси ---------- */
.cases { display: grid; border-top: 1px solid var(--line-strong); }
.case { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--s7); padding: var(--s7) 0; border-bottom: 1px solid var(--line); }
.case-num .big { white-space: nowrap; font-family: var(--mono); font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.case-num .big small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.case-num .cap { margin-top: var(--s3); color: var(--muted); font-size: 15px; max-width: 280px; }
.case-num .tags { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 6px; }
.case h3 { font-size: clamp(22px, 2.2vw, 28px); }
.case-steps { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.case-steps .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--s2); }
.case-steps .k.a { color: var(--accent); }
.case-steps p { color: var(--muted); font-size: 15px; }
.case-steps p b { color: var(--text); font-weight: 600; }
.case-link { display: inline-flex; margin-top: var(--s5); color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.case-link:hover { color: var(--accent); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: var(--s5); } .case-steps { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- відгуки ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); }
.review { margin: 0; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s5); }
.review blockquote { margin: 0; color: var(--text); }
.review.main blockquote { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-small); color: var(--muted); }
.review figcaption b { display: block; color: var(--text); font-weight: 600; }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.reviews-side { display: grid; gap: var(--s5); }
.reviews-side .review { padding: var(--s5); }
.reviews-more { margin-top: var(--s5); font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- як починаємо ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.steps li { position: relative; padding: var(--s6) var(--s5) 0 0; counter-increment: st; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps h3 { margin-top: var(--s4); font-size: 19px; }
.steps p { margin-top: var(--s2); color: var(--muted); font-size: 15px; }
.steps p q { quotes: "«" "»"; color: var(--text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 var(--s5) var(--s7); }
  .steps li::after { top: 0; bottom: 0; left: 18px; right: auto; width: 1px; height: auto; }
  .steps li::before { top: 2px; }
  .steps h3 { margin-top: 0; }
}

/* ---------- кому підходить ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.fit-col { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-md); }
.fit-col.yes { border-color: var(--accent); background: var(--surface); }
.fit-col h3 { font-size: var(--fs-h3); margin-bottom: var(--s4); }
.fit-col li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s2); padding: var(--s2) 0; color: var(--muted); }
.fit-col li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; border: 1px solid var(--faint); }
.fit-col.yes li::before { border-color: var(--accent); background: var(--accent); }
.fit-col li b { color: var(--text); font-weight: 600; }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } .fit-col { padding: var(--s5); } }

/* ---------- ціни ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.price { padding: var(--s6); border-right: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: var(--s4); }
.price:last-child { border-right: 0; }
.price.mid { background: var(--surface); }
.price .name { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price .cost { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .cost small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price.is-main { position: relative; box-shadow: inset 0 0 0 2px var(--accent); }
.price-tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; letter-spacing: .06em; vertical-align: 1px; }
.cost-old { margin-right: 4px; font-size: .55em; font-weight: 500; color: var(--faint); text-decoration-thickness: 2px; }
.price .budget { color: var(--accent); font-weight: 600; font-size: 15px; }
.price ul { display: grid; gap: var(--s2); font-size: 15px; color: var(--muted); }
.price li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s2); }
.price li::before { content: "—"; color: var(--faint); }
.price li.plus { color: var(--text); }
.price li.plus::before { content: "+"; color: var(--accent); font-weight: 700; }
.price .btn { margin-top: auto; }
.prices-note { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-small); color: var(--muted); }
.prices-note b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } .price { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: var(--s5); } .price:last-child { border-bottom: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; color: var(--accent); border-color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq .a { padding: 0 var(--s8) var(--s5) 0; color: var(--muted); display: grid; gap: var(--s3); }
.faq-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.faq-link:hover { text-decoration: underline; }
@media (max-width: 640px) { .faq .a { padding-right: 0; } .faq summary { font-size: 17px; } }

/* ---------- форма ---------- */
.lead { background: var(--bg); }
.lead-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "intro form" "after form"; grid-template-rows: auto 1fr; column-gap: var(--s8); align-items: start; }
.lead-intro { grid-area: intro; }
.lead-form { grid-area: form; }
/* «Повернутися назад»: з'являється над формою справа, лише коли до форми привела кнопка-CTA */
.lead-back { grid-area: back; justify-self: end; margin-bottom: var(--s5); }
.lead-back[hidden] { display: none; }
.lead.has-back .lead-grid { grid-template-areas: ". back" "intro form" "after form"; grid-template-rows: auto auto 1fr; }
.lead-grid > .after { grid-area: after; }
.lead h2 { font-size: var(--fs-h2); }
.lead-intro > p:not(.eyebrow) { margin-top: var(--s4); color: var(--muted); font-size: var(--fs-lead); }
.after { margin-top: var(--s6); border-top: 1px solid var(--line-strong); }
.after li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.after li span { font-family: var(--mono); color: var(--accent); font-size: 13px; padding-top: 2px; }
.after li b { color: var(--text); font-weight: 600; }
.form { display: grid; gap: var(--s4); padding: var(--s6); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field label small { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 16px; transition: border-color .15s;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field .err { display: none; font-size: 13px; color: var(--bad); }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--faint); }
.form-note a { color: var(--muted); }
.form-status { display: none; padding: var(--s4); border-radius: var(--r-sm); font-size: 15px; }
.form-status.error { display: block; border: 1px solid rgba(255,138,122,.5); color: #ffc2b8; }
.form-done { display: none; padding: var(--s6); border: 1px solid rgba(74,224,66,.45); border-radius: var(--r-md); background: var(--bg); }
.form-done h3 { font-size: var(--fs-h3); }
.form-done p { margin-top: var(--s3); color: var(--muted); }
.lead.sent .form { display: none; }
.lead.sent .form-done { display: block; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "after"; grid-template-rows: none; row-gap: var(--s6); } .lead-grid > .after { margin-top: 0; } .lead.has-back .lead-grid { grid-template-areas: "back" "intro" "form" "after"; grid-template-rows: none; } .lead-back { margin-bottom: 0; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form { padding: var(--s5) var(--s4); } }

/* ---------- підвал ---------- */
.site-footer { padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.footer-links a { text-decoration: none; padding: var(--s1) 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--s6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--faint); font-size: 13px; }

/* ---------- вхід у публічне демо порталу (client.labgramm.com/demo) ---------- */
.section-cta-btns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hub-demo { display: inline-flex; gap: 6px; margin-top: var(--s4); font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.hub-demo:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- вхід у публічний калькулятор воронки порталу (client.labgramm.com/calculator) ---------- */
.calc-hint { margin-top: var(--s5); font-size: 16px; color: var(--muted); }
.calc-hint a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }

/* ---------- мобільна плаваюча кнопка ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    transform: translateY(140%); transition: transform .25s ease;
  }
  .mobile-cta.show { display: flex; transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
}

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

/* на вузькому екрані підписи всередині графіка стають нечитабельними — лишаємо легенду */
@media (max-width: 640px) { .chart text { display: none; } }


/* =====================================================================
   Рух на скролі. Усе тут — підсилення: без JS, без підтримки чи з
   prefers-reduced-motion сторінка повністю видима й статична.
   ===================================================================== */

/* декоративні вузли: глибина для паралаксу */
.section { position: relative; overflow-x: clip; }
.decor { position: absolute; z-index: 0; pointer-events: none; color: var(--line-strong); will-change: transform; }
.decor .constellation { width: 100%; height: auto; overflow: visible; }
.decor-hero { width: 320px; right: -70px; top: 10%; opacity: .7; }
.hero > .wrap { position: relative; z-index: 1; }
.decor-insight { width: 340px; right: -40px; top: 40px; opacity: .8; }
.decor-lead { width: 280px; left: -60px; bottom: 40px; opacity: .7; }
.section > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .decor { display: none; } }

/* прогрес прокрутки в шапці */
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 100%; transform: scaleX(var(--sp, 0)); transform-origin: left;
  background: var(--accent);
}

/* кроки старту: та сама механіка */
.steps { position: relative; --p: 1; }
.steps::after {
  content: ""; position: absolute; left: 0; top: 22px; height: 1px; width: 100%;
  transform: scaleX(var(--p)); transform-origin: left; background: var(--accent);
}
@media (max-width: 900px) {
  .steps::after { top: 0; left: 18px; width: 1px; height: 100%; transform: scaleY(var(--p)); transform-origin: top; }
}


/* графік: лінія малюється, коли потрапляє в поле зору */
.motion .chart polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1); }
.motion .chart path { opacity: 0; transition: opacity 1s .8s; }
.motion .chart.drawn polyline { stroke-dashoffset: 0; }
.motion .chart.drawn path { opacity: 1; }

/* проявлення блоків: прив'язане до прокрутки, де браузер це вміє */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--d, 0) * 6%) entry calc(55% + var(--d, 0) * 6%);
    }
  }
  /* резерв для решти браузерів: IntersectionObserver додає .in */
  html.io [data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
  html.io [data-reveal]:not(.in) { opacity: 0; transform: translateY(36px); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }


/* =====================================================================
   Теми секцій: ритм світлих, темних і зелених блоків, щоб сторінка не
   зливалась в одне полотно. Компоненти беруть кольори з токенів, тож
   тема секції перефарбовує все всередині.
   ===================================================================== */
.theme-dark {
  --bg: #0c0d0c; --surface: #151716; --surface-2: #1c1f1d;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --text: #f2f3f1; --muted: #a3a8a4; --faint: #858b87;
  --accent: #4ae042; --accent-dim: rgba(74,224,66,.14);
  --bad: #ff8a7a; --bad-dim: rgba(255,138,122,.16); --warn: #f5c451;
  --cta: #4ae042; --cta-hover: #73e96d; --on-cta: #0c0d0c;
  background: var(--bg); color: var(--text);
}
.theme-light {
  --bg: #eef0eb; --surface: #ffffff; --surface-2: #e3e6df;
  --line: rgba(12,13,12,.1); --line-strong: rgba(12,13,12,.2);
  --text: #0c0d0c; --muted: #4a504c; --faint: #5f6561;
  --accent: #1f7a3d; --accent-dim: rgba(31,122,61,.12);
  background: var(--bg); color: var(--text);
}
.theme-deep { --bg: #141615; --surface: #1c1f1d; background: var(--bg); }
.theme-accent {
  --bg: #4ae042; --surface: #70e76a; --surface-2: #37ca2f;
  --line: rgba(12,13,12,.14); --line-strong: rgba(12,13,12,.28);
  --text: #0c0d0c; --muted: #0f3a1c; --faint: #1d4a2b;
  --accent: #0c0d0c; --accent-dim: rgba(12,13,12,.1);
  --cta: #0c0d0c; --cta-hover: #262a27; --on-cta: #4ae042;
  background: var(--bg); color: var(--text);
}
.section.theme-light, .section.theme-accent, .section.theme-deep { border-top-color: transparent; }
.theme-light + .section:not([class*="theme-"]), .theme-accent + .section:not([class*="theme-"]) { border-top-color: transparent; }
.theme-light .decor, .theme-accent .decor { color: var(--line-strong); }

/* ---------- біль: репліки клієнта ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); max-width: 1000px; }
.pain { margin: 0; display: grid; gap: var(--s3); justify-items: start; }
.pain blockquote {
  margin: 0; padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  box-shadow: 0 12px 30px -18px rgba(12,13,12,.35);
}
.pain figcaption { display: flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.enemy { margin-top: calc(var(--s8) + var(--s6)); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line-strong); }
.enemy p { font-size: var(--fs-lead); max-width: 520px; }
.enemy-flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); counter-reset: ef; }
.enemy-flow li { display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 16px; }
.enemy-flow li + li::before { content: "→"; margin-right: var(--s2); color: var(--accent); }
.enemy-flow li:not(:first-child) { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.enemy-flow li:not(:first-child)::before { color: var(--accent); }
@media (max-width: 720px) {
  .pains { grid-template-columns: 1fr; gap: var(--s4); }
  .enemy { margin-top: var(--s7); }
}

/* ---------- «Ми не продаємо платформу» ---------- */
.np-head { max-width: 900px; margin-bottom: var(--s7); }
.np-title { margin-top: var(--s4); font-size: clamp(40px, 6.4vw, 88px); line-height: .98; letter-spacing: -0.045em; }
.np-lead { margin-top: var(--s5); font-size: clamp(20px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 820px; }
.np-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.np-card { margin: 0; padding: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: var(--s5); align-content: start; }
.np-card figcaption { display: grid; gap: 4px; }
.np-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.np-card.np-after .np-k { color: var(--accent); }
.np-card figcaption b { font-size: 20px; letter-spacing: -0.01em; }
.np-stage { position: relative; height: 260px; }
.np-end { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--text); color: var(--bg); }
.np-end.you { left: 0; }
.np-end.them { right: 0; }
.np-chip { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); z-index: 1; padding: 6px 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.np-flow { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.np-flow .np-end { position: static; transform: none; flex: none; }
.np-flow .np-end.you { background: var(--text); color: var(--bg); }
.np-flow .np-end.them { background: var(--accent); color: var(--on-accent); max-width: 110px; text-align: center; line-height: 1.15; border-radius: 32px; }
.np-wire { flex: 1 1 24px; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 12px 2px; }
.np-hub { flex: none; width: min(46%, 220px); padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--surface-2); box-shadow: 0 0 0 6px var(--accent-dim); display: grid; gap: var(--s3); }
.np-hub b { font-size: 16px; }
.np-hub ul { display: grid; gap: 6px; }
.np-hub li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.np-hub li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.np-cons { display: flex; flex-wrap: wrap; gap: 6px; }
.np-cons li { padding: 5px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-strong); }
@media (prefers-reduced-motion: no-preference) {
  .np-wire { animation: wire 1s linear infinite; }
  .np-hub { animation: hub 3s ease-in-out infinite; }
}
@keyframes wire { to { background-position: 12px 0; } }
@keyframes hub { 50% { box-shadow: 0 0 0 10px var(--accent-dim); } }
@media (max-width: 900px) {
  .np-compare { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .np-stage { height: 230px; }
  .np-chip { font-size: 12px; padding: 4px 8px; }
  .np-end { min-width: 52px; height: 52px; font-size: 13px; }
  .np-flow { flex-direction: column; height: auto; gap: 0; }
  .np-wire { flex: none; width: 2px; height: 24px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; }
  .np-hub { width: 100%; }
  .np-flow .np-end.them { max-width: none; padding: 0 18px; }
}
@keyframes wire-v { to { background-position: 0 12px; } }
@media (max-width: 480px) and (prefers-reduced-motion: no-preference) { .np-wire { animation-name: wire-v; } }

/* ---------- смуга з цифрами ---------- */
.band { padding: var(--s8) 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.band-grid > div { display: grid; gap: var(--s2); align-content: start; padding-left: var(--s4); border-left: 2px solid var(--text); }
.band-grid b { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.band-grid > div:nth-child(3) b { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; padding-block: 6px; }
.band-grid span { font-size: 15px; color: var(--muted); max-width: 220px; }
@media (max-width: 900px) { .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); } }

/* ---------- система: коротші модулі ---------- */
.modules li { align-items: baseline; }
.modules li .node { margin-top: 0; transform: translateY(1px); }
.modules span:not(.node) { font-size: 15px; }

/* ---------- форма на зеленому тлі ---------- */
.lead .eyebrow::before { box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--accent); }
.lead .after li span { color: var(--text); font-weight: 600; }
.lead-form.theme-dark { background: transparent; }
.lead .form { box-shadow: 0 30px 60px -30px rgba(12,13,12,.6); }
/* репліки — картки-цитати з підписом «очікували → отримали», а не чат */
.pains-label { margin: 0 0 var(--s4); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pain blockquote { justify-self: stretch; border-radius: var(--r-sm); border-left: 3px solid var(--text); box-shadow: none; }
.pain blockquote::before { content: "«"; }
.pain blockquote::after { content: "»"; }
.pain figcaption { display: grid; gap: 6px; justify-items: start; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.pain-pair { display: grid; grid-template-columns: 76px auto; align-items: center; gap: var(--s2); }
.pain .cap-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
/* очікування — головне й виділене; отримане — бліде, без закреслень */
.pain-exp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; }
.pain-exp::before { content: "✓"; color: #4ae042; font-weight: 700; }
.pain-got { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }
.pain-got::before { content: "✕"; color: var(--faint); font-size: 12px; }
.band-grid b span { font-size: inherit; color: inherit; max-width: none; }
/* живі цифри з порталу: заголовок місяця й чотири плитки */
.band-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.band-live[hidden] { display: none; }
.band-live-t { font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.band-live-src { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(12,13,12,.08); font-size: 13px; font-weight: 600; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--text); animation: live-ping 1.6s ease-out infinite; }
@keyframes live-ping { from { transform: scale(1); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }
.band-grid.is-live { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band-grid.is-live b, .band-grid.is-live > div:nth-child(3) b { font-size: clamp(32px, 3.6vw, 54px); line-height: 1; padding-block: 0; white-space: nowrap; }
@media (max-width: 900px) { .band-grid.is-live { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); } }
.theme-accent .decor { display: none; }


/* ---------- розмиття низу екрана: фокус на верхній і центральній частині ----------
   Фіксований шар із трьох рівнів backdrop-filter, кожен з власною маскою: що нижче,
   то сильніше розмито. Контент, що підіймається при прокрутці, проходить крізь шар
   і стає чітким. Вимикається на старті сторінки, в її кінці й під час заповнення форми. */
.focus-blur {
  /* шар заходить за нижній край вікна: інакше розмиття «підхоплює» край і дає темну смугу */
  position: fixed; left: 0; right: 0; bottom: -80px; z-index: 30;
  height: calc(14vh + 80px); pointer-events: none;
  opacity: 1; transition: opacity .45s ease;
}
.focus-blur.off { opacity: 0; }
.focus-blur i { position: absolute; inset: 0; }
.focus-blur i:nth-child(1) {
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
}
.focus-blur i:nth-child(2) {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
          mask-image: linear-gradient(to bottom, transparent 30%, #000 70%);
}
.focus-blur i:nth-child(3) {
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 60%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 60%, #000 100%);
}
@media (max-width: 640px) { .focus-blur { display: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .focus-blur { display: none; } }


/* ---------- перший екран: умови діагностики ---------- */
.hero-note { margin-top: var(--s3); font-size: 14px; color: var(--muted); max-width: 560px; }
@media (max-width: 640px) { .hero-note { font-size: 13px; } }

/* шапка на телефоні: коли видно липку кнопку, у шапці її ховаємо */
@media (max-width: 640px) { body.has-sticky .site-header .btn { visibility: hidden; } }

/* ---------- відгуки в секції кейсів ---------- */
#cases .section-cta { margin-top: var(--s6); }
@media (max-width: 900px) {
}

/* ---------- кому підходимо + як стартуємо ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s7); align-items: start; }
.start-grid .fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.start-steps { padding: var(--s5); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.start-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s4); }
.steps.v { grid-template-columns: 1fr; }
.steps.v li { padding: 0 0 var(--s4) var(--s7); }
.steps.v li::after { top: 0; bottom: 0; left: 18px; right: auto; width: 1px; height: auto; }
.steps.v li::before { top: 2px; }
.steps.v h3 { margin-top: 0; font-size: 17px; }
.steps.v p { color: var(--muted); }
.steps.v::after { top: 0; left: 18px; width: 1px; height: 100%; transform: scaleY(var(--p)); transform-origin: top; }
@media (max-width: 1000px) { .start-grid { grid-template-columns: 1fr; gap: var(--s5); } }
@media (max-width: 800px) { .start-grid .fit { grid-template-columns: 1fr; } }


/* ---------- пакети на телефоні: стрічка ---------- */
@media (max-width: 900px) {
  .prices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; border-radius: 0; gap: var(--s3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .prices::-webkit-scrollbar { display: none; }
  .price { flex: 0 0 84%; scroll-snap-align: start; border: 1px solid var(--line-strong) !important; border-radius: var(--r-md); }
}

/* кейс Solaray: інсайт словами замість цифри */
.case-num .big small { margin-left: 6px; }


/* ---------- «Як зазвичай»: жива схема хаосу ---------- */
.np-stage .np-live { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.np-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.np-pain { flex: 1 1 260px; min-height: 3em; font-size: 15px; line-height: 1.45; color: var(--muted); }
.np-pain b { color: var(--text); }
.np-merge { background: var(--text); color: var(--bg); }
.np-merge:hover { background: var(--accent); color: var(--bg); }
.np-merge[aria-pressed="true"] { background: transparent; color: var(--text); border-color: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) {
  .np-merge:not([aria-pressed="true"]) { animation: nudge 2.4s ease-in-out 1.5s 3; }
}
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,122,61,0); } 50% { box-shadow: 0 0 0 6px rgba(31,122,61,.18); } }

/* ---------- блок «Як зазвичай» ---------- */
.np-compare { grid-template-columns: minmax(0, 1fr); }
.np-switch { transition: background-color .45s ease, border-color .45s ease, color .45s ease; gap: var(--s4); }
.np-switch .np-stage { height: 320px; }
.np-switch .np-k { font-size: 12px; }
.np-switch figcaption b { font-size: clamp(20px, 2vw, 26px); }
.np-switch .np-end { transition: background-color .4s, color .4s; }
.np-foot .np-cons { margin: 0; }
@media (max-width: 640px) {
  .np-switch .np-stage { height: 280px; }
}
/* ---------- «Як зазвичай»: лабіринт між вами й результатом ---------- */
.np-maze { outline: none; }
.np-maze .np-end { transition: background-color .6s, color .6s; }
.np-maze .np-end.them { width: 124px; min-width: 0; padding: 0 12px; text-align: center; line-height: 1.15; }
.np-maze.np-js .np-chip {
  left: var(--mx, var(--x)); top: var(--my, var(--y)); z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: left .7s cubic-bezier(.65,0,.35,1) var(--dl, 0s), top .7s cubic-bezier(.65,0,.35,1) var(--dl, 0s),
              transform .7s cubic-bezier(.65,0,.35,1) var(--dl, 0s), color .4s, border-color .4s, background-color .4s;
}
.np-maze .np-chip.ping { border-color: #c8473b; color: var(--text); }
.np-live .np-wall {
  stroke: var(--text); stroke-width: 2; stroke-linecap: round; opacity: .5;
  transform-box: fill-box; transform-origin: center;
  transition: transform .6s cubic-bezier(.65,0,.35,1) var(--wd, 0s), opacity .3s ease var(--wd, 0s), stroke .4s;
}
.np-live .np-route { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linejoin: round; opacity: .8; transition: opacity .3s; }
.np-live .pkt { fill: var(--text); transition: fill .2s, opacity .4s; }
.np-live .pkt.lost { fill: #c8473b; opacity: 0; }
.np-noanim *, .np-noanim .np-chip { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .np-maze *, .np-maze.np-js .np-chip { transition: none !important; } }
/* підрядник — один із глухих кутів лабіринту */
.np-maze .np-chip.is-them { background: var(--text); color: var(--bg); border-color: var(--text); }
/* результат недосяжний, поки маркетинг — лабіринт */
.np-maze .np-end.them { transition: background-color .6s, color .6s, border-color .6s; }
.np-maze .np-end.them { background: var(--surface); color: var(--faint); border: 1.5px dashed var(--line-strong); }
/* до 1100px схема вертикальна: зверху «Ви», знизу результат (той самий поріг у main.js) */
@media (max-width: 1100px) {
  .np-switch .np-stage { height: 520px; }
  .np-maze .np-end.you { left: 50%; right: auto; top: 0; transform: translateX(-50%); }
  .np-maze .np-end.them { left: 50%; right: auto; top: auto; bottom: 0; width: auto; padding: 0 20px; transform: translateX(-50%); }
}
@media (max-width: 640px) { .np-maze .np-chip { font-size: 11.5px; padding: 3px 7px; } }

/* ---------- перший екран: жива діагностика з перемикачем типу бізнесу ---------- */
/* у JS-режимі анімацією керує скрипт, а не стартові keyframes */
@keyframes scan { from { transform: translateY(28px); } to { transform: translateY(var(--scan-to, 180px)); } }
/* поки триває аналіз — плейсхолдер у тій самій клітинці, щоб висота не стрибала */
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- термін «Labgramm MMS × AI» у першому екрані: веде на пояснення ---------- */
.term {
  color: var(--text); font-weight: 600; cursor: help; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color .2s;
}
.term:hover, .term:focus-visible { color: var(--accent); }
.term-q {
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; vertical-align: 3px;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none;
}

/* ---------- що таке Labgramm MMS × AI: формула агенція + система × AI ---------- */
.mx { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--s3); }
.mx-term { display: grid; align-content: start; gap: var(--s2); padding: var(--s5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.mx-term.ai { background: #0c0d0c; border-color: #0c0d0c; color: #f2f3f1; }
.mx-term.ai p { color: #a3a8a4; }
.mx-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg); margin-bottom: var(--s2); }
.mx-term.ai .mx-ic { background: #4ae042; color: #0c0d0c; }
.mx-ic svg { width: 20px; height: 20px; }
.mx-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mx-term.ai .mx-k { color: #4ae042; }
.mx-term b { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.mx-term p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.mx-op { align-self: center; font-size: 40px; font-weight: 300; line-height: 1; color: var(--accent); }
.mx-today { margin-top: var(--s6); display: grid; gap: var(--s3); }
.mx-today-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mx-note {
  margin: 0 0 var(--s7); padding: var(--s5) var(--s6); border-radius: var(--r-md);
  background: #4ae042; color: #0c0d0c; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: baseline;
}
.mx-note b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap; }
.mx-note p { font-size: 17px; line-height: 1.5; color: #0f3a1c; max-width: 720px; }
@media (max-width: 900px) {
  .mx { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .mx-op { justify-self: center; font-size: 30px; }
  .mx-note { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s5); }
  .mx-note b { white-space: normal; }
}

/* ---------- картка AI під фото команди ---------- */
.team-ai {
  margin-top: var(--s5); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: start;
  padding: var(--s5) var(--s6); border-radius: 18px;
  background: linear-gradient(100deg, #060807 0%, #060807 55%, rgba(6,8,7,.55) 100%);
}
.team-ai-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #4ae042; color: #0c0d0c; }
.team-ai-ic svg { width: 22px; height: 22px; }
.team-ai-body { display: grid; gap: 6px; }
.team-ai-body > b { font-size: 21px; letter-spacing: -0.02em; }
.team-ai-body > p { color: var(--muted); }
.team-ai-does { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 8px; }
.team-ai-does li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text); }
.team-ai-does li.soon { border-style: dashed; color: var(--accent); border-color: rgba(74,224,66,.5); }
@media (max-width: 640px) {
  .team-ai { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s5); }
}
@media (max-width: 640px) {
    .team-ai-does li { font-size: 12.5px; padding: 5px 10px; }
}

/* ---------- формула: іконки розпадаються на ролі / функції, AI «чаклує» ---------- */
.mx-icons { position: relative; display: block; height: 44px; margin-bottom: var(--s2); }
.mx-icons .mx-ic { position: absolute; left: 0; top: 0; margin: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.mx-split { position: absolute; left: 0; top: 4px; display: flex; gap: 6px; }
.mx-bit {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: var(--text); color: var(--bg); cursor: help;
  opacity: 0; transform: translateX(calc(var(--k) * -42px)) scale(.4); pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1.15), opacity .3s, background-color .2s, color .2s;
}
.mx-bit svg { width: 17px; height: 17px; }
.mx-term.open:not(.ai) .mx-icons .mx-ic { transform: scale(.5); opacity: 0; }
.mx-term.open .mx-bit { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--k) * 45ms), calc(var(--k) * 45ms), 0s, 0s; }
.mx-bit:hover, .mx-bit:focus-visible, .mx-bit.tip { background: var(--accent); color: #fff; outline: none; }
.mx-bit::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 6px; background: #0c0d0c; color: #f2f3f1; white-space: nowrap;
  font: 600 12px/1.2 var(--font); letter-spacing: 0; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 3;
}
.mx-bit:first-child::after { left: 0; transform: translate(0, 4px); }
.mx-bit:last-child::after { left: auto; right: 0; transform: translate(0, 4px); }
.mx-bit:hover::after, .mx-bit:focus-visible::after, .mx-bit.tip::after { opacity: 1; transform: translate(-50%, 0); }
.mx-bit:first-child:hover::after, .mx-bit:first-child:focus-visible::after, .mx-bit:first-child.tip::after,
.mx-bit:last-child:hover::after, .mx-bit:last-child:focus-visible::after, .mx-bit:last-child.tip::after { transform: none; }
.mx-term { position: relative; transition: border-color .3s, box-shadow .3s, transform .3s; }
.mx-term.open:not(.ai) { border-color: var(--line-strong); box-shadow: 0 12px 32px -18px rgba(12,13,12,.35); }

/* AI: іскри, кільце, світіння */
.mx-term.ai { overflow: hidden; isolation: isolate; }
.mx-term.ai::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px 220px at 46px 46px, rgba(74,224,66,.22), transparent 70%);
}
.mx-term.ai.open::before { opacity: 1; }
.mx-term.ai .mx-ic { position: absolute; overflow: visible; }
.mx-term.ai .mx-ic::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #4ae042; opacity: 0; pointer-events: none;
}
.mx-sparks { position: absolute; inset: 0; pointer-events: none; }
.mx-sparks i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #4ae042; opacity: 0; }
.mx-sparks i:nth-child(2n) { width: 3px; height: 3px; margin: -1.5px; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .mx-term.ai.open .mx-ic { animation: ai-glow 1.6s ease-in-out infinite; }
  .mx-term.ai.open .mx-ic svg { animation: ai-spin 2.4s cubic-bezier(.6,0,.4,1) infinite; }
  .mx-term.ai.open .mx-ic::before { animation: ai-ring 1.6s ease-out infinite; }
  .mx-term.ai.open .mx-sparks i { animation: ai-spark 1.6s ease-out infinite; animation-delay: calc(var(--k) * 140ms); }
}
@media (prefers-reduced-motion: reduce) {
  .mx-bit, .mx-icons .mx-ic { transition: none; }
  .mx-term.ai.open .mx-ic { box-shadow: 0 0 0 6px rgba(74,224,66,.2), 0 0 28px rgba(74,224,66,.5); }
}
@keyframes ai-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,224,66,0), 0 0 12px rgba(74,224,66,.35); } 50% { box-shadow: 0 0 0 6px rgba(74,224,66,.16), 0 0 32px rgba(74,224,66,.6); } }
@keyframes ai-spin { 0% { transform: rotate(0) scale(1); } 35% { transform: rotate(160deg) scale(1.25); } 60% { transform: rotate(200deg) scale(.9); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes ai-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ai-spark {
  0% { transform: rotate(var(--a)) translateX(10px) scale(.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(46px) scale(1); opacity: 0; }
}

/* ---------- «Що вже є в системі»: розділи-таблетки з деталізацією на місці ---------- */
.mx-today { margin-top: var(--s7); display: block; }
/* каталог згорнутий: розгортається кліком по заголовку, без JS */
.mx-today-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s5); list-style: none; cursor: pointer; padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mx-today-head::-webkit-details-marker { display: none; }
.mx-today-hint { font-size: 14px; color: var(--muted); }
.mx-today-hint::before { content: "↓ "; color: var(--accent); }
.mx-today-head:hover .mx-today-hint { color: var(--accent); }
.mx-today[open] .mx-today-hint::before { content: "↑ "; }
.mx-today[open] > .sys { margin-top: var(--s4); }
.sys { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sys-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); padding: var(--s4) var(--s5); }
.sys-row + .sys-row { border-top: 1px solid var(--line); }
.sys-label { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-content: start; padding-top: 7px; }
.sys-label .mono { grid-row: span 2; font-size: 12px; color: var(--faint); padding-top: 3px; }
.sys-label b { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.sys-note { font-size: 13px; color: var(--muted); }
.sys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font: 500 14px/1.2 var(--font); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.sys-chip::after { content: "+"; font-size: 16px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.sys-chip:hover { border-color: var(--text); }
.sys-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sys-chip.on::after { transform: rotate(45deg); color: inherit; }
.sys-row.is-team .sys-label b::after { content: "команда"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.sys-panels:empty { display: none; }
.sys-panel { margin-top: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--bg); border-left: 3px solid var(--accent); }
.js .sys-panel:not(.on) { display: none; }
.js .sys-panel.on { animation: sys-in .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sys-in { from { opacity: 0; transform: translateY(-6px); } }
.sys-panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: var(--s2); }
.sys-panel-h b { font-size: 17px; }
.sys-lead { margin: 2px 0 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sys-lead b { color: var(--accent); }
.sys-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sys-panel ul { display: grid; gap: 6px; }
.sys-panel li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.sys-panel li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .sys-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
  .sys-label { padding-top: 0; grid-template-columns: auto auto 1fr; align-items: baseline; }
  .sys-label .mono { grid-row: auto; padding-top: 0; }
  .sys-chip { min-height: 36px; font-size: 13.5px; padding: 0 10px 0 12px; }
  .sys-panel { padding: var(--s3) var(--s4); }
  .sys-panel li { font-size: 14px; }
  .mx-term { padding: var(--s4) var(--s5) var(--s5); }
}

/* схема «хаос → система» тепер у блоці болю */
.np-compare.in-pain { margin: var(--s7) 0 var(--s6); }
@media (max-width: 900px) { .sys-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; } }

/* ---------- «Система зсередини»: слайди з екранами (поки заглушки) ---------- */
.tour { margin-top: var(--s7); padding: var(--s6); border-radius: 18px; overflow: hidden; }
.tour-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); }
.tour-title { margin-top: var(--s3); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; }
.tour-nav { display: flex; align-items: center; gap: var(--s2); }
.tour-count { margin-right: var(--s3); font-size: 13px; color: var(--muted); }
.tour-count b { color: var(--accent); font-weight: 500; }
.tour-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.tour-arrow:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tour-arrow:disabled { opacity: .35; cursor: default; }
.tour-tabs { margin: var(--s5) calc(var(--s6) * -1) 0; padding: 0 var(--s6) 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.tour-tab:hover { color: var(--text); border-color: var(--line-strong); }
.tour-tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tour-track {
  margin: var(--s5) calc(var(--s6) * -1) 0; padding: 0 var(--s6); display: flex; gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s6); scrollbar-width: none; overscroll-behavior-x: contain;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tour-slide { flex: 0 0 82%; margin: 0; scroll-snap-align: start; transition: opacity .35s; }
.tour-slide:not(.on) { opacity: .45; }
.tour-shot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); }
.tour-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tour-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tour-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.tour-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-ph { position: absolute; inset: 34px 0 0; display: grid; grid-template-columns: 18% 1fr 1fr 1fr; grid-template-rows: 14% 1fr 1fr; gap: 12px; padding: 14px; }
.tour-ph span { border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.07), rgba(255,255,255,.035)); background-size: 200% 100%; }
.tour-ph .ph-side { grid-row: 1 / -1; }
.tour-ph .ph-top { grid-column: 2 / -1; }
.tour-ph .ph-a { grid-column: 2 / 4; }
.tour-ph .ph-d { grid-column: 2 / -1; }
@media (prefers-reduced-motion: no-preference) { .tour-ph span { animation: shimmer 2.4s linear infinite; } }
.tour-ph-k {
  position: absolute; left: 50%; top: calc(50% + 17px); transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.tour-shot:not([data-placeholder]) .tour-ph, .tour-shot:not([data-placeholder]) .tour-ph-k { display: none; }
.tour-slide figcaption { margin-top: var(--s3); font-size: 15px; color: var(--muted); max-width: 760px; }
.tour-slide figcaption b { color: var(--text); font-weight: 600; margin-right: 4px; }
/* клік по слайду гортає: стрілки-підказки по краях активного скріншота */
html.js .tour-slide { cursor: pointer; }
html.js .tour-slide.on figcaption { cursor: auto; }
html.js .tour-slide:not(.on):hover { opacity: .7; }
html.js .tour-slide.on .tour-shot::before, html.js .tour-slide.on .tour-shot::after {
  content: "←"; position: absolute; z-index: 1; top: calc(50% + 17px); left: 14px; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-size: 18px; opacity: .8; pointer-events: none; transition: opacity .2s, background-color .2s, color .2s, border-color .2s;
}
html.js .tour-slide.on .tour-shot::after { content: "→"; left: auto; right: 14px; }
html.js .tour-slide.on:first-child .tour-shot::before, html.js .tour-slide.on:last-child .tour-shot::after { display: none; }
@media (hover: hover) {
  .tour-track[data-side="prev"] .tour-slide.on .tour-shot::before,
  .tour-track[data-side="next"] .tour-slide.on .tour-shot::after { opacity: 1; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
}
@media (max-width: 640px) {
  .tour { padding: var(--s5) var(--s4); margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .tour-tabs, .tour-track { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); scroll-padding-inline: var(--s4); }
  .tour-slide { flex-basis: 88%; }
  .tour-shot { aspect-ratio: 4 / 3; }
  .tour-ph { grid-template-columns: 1fr 1fr; grid-template-rows: 12% 1fr 1fr 1fr; }
  .tour-ph .ph-side { display: none; }
  .tour-ph .ph-top, .tour-ph .ph-a, .tour-ph .ph-d { grid-column: 1 / -1; }
  .tour-count { display: none; }
  .tour-arrow { width: 40px; height: 40px; }
  .tour-slide figcaption { font-size: 14px; }
}

/* ---------- «Що ви отримуєте»: чотири переваги бенто-сіткою ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s4); }
.why-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); min-height: 300px;
  padding: var(--s6); border-radius: 22px; overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
/* шахова сітка: широка картка то справа, то зліва */
.why { grid-template-areas: "a b" "c d"; }
.why-1 { grid-area: a; } .why-2 { grid-area: b; } .why-3 { grid-area: c; } .why-4 { grid-area: d; }
@media (min-width: 901px) {
  .why { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; }
  .why-1 { grid-area: auto; grid-column: 1 / span 5; }
  .why-2 { grid-area: auto; grid-column: 6 / span 7; }
  .why-3 { grid-area: auto; grid-column: 1 / span 7; }
  .why-4 { grid-area: auto; grid-column: 8 / span 5; }
}
.why-num { font-size: clamp(56px, 6vw, 88px); font-weight: 800; line-height: .9; letter-spacing: -0.05em; }
.why-card h3 { margin-top: var(--s4); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em; line-height: 1.12; max-width: 520px; }
.why-card p { font-size: 16px; line-height: 1.55; max-width: 560px; }
.why-link { margin-top: auto; padding-top: var(--s4); align-self: flex-start; font-weight: 600; font-size: 15px; text-decoration: none; }
.why-link span { display: inline-block; transition: transform .25s; }
.why-card:hover .why-link span, .why-link:focus-visible span { transform: translateX(4px); }
.why-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* при наведенні — легка підсвітка з тінню */
@media (hover: hover) {
  .why-card:hover { box-shadow: 0 0 0 1px rgba(74,224,66,.55), 0 24px 48px -26px rgba(0,0,0,.75), 0 0 40px -12px rgba(74,224,66,.35); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .why-card:hover { transform: translateY(-4px); }
}
/* 01 — світла */
.why-1 { background: #eef0eb; color: #0c0d0c; }
.why-1 .why-num { color: #1f7a3d; }
.why-1 p { color: #4a504c; }
.why-1 .why-link { color: #1f7a3d; }
/* 02 — акцентна */
.why-2 { background: #4ae042; color: #0c0d0c; }
.why-2 .why-num { color: rgba(12,13,12,.28); }
.why-2 p { color: #0f3a1c; }
.why-2 .why-link { color: #0c0d0c; }
/* 03 — графітова з сіткою-мотивом */
.why-3 { background: #1c1f1d; color: #f2f3f1; border: 1px solid rgba(255,255,255,.08); }
.why-3::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
}
.why-3 .why-num { color: rgba(242,243,241,.22); }
.why-3 p { color: #a3a8a4; }
.why-3 .why-link { color: #4ae042; }
/* 04 — темно-зелена */
.why-4 { background: linear-gradient(160deg, #163122 0%, #0f2117 100%); color: #f2f3f1; border: 1px solid rgba(74,224,66,.22); }
.why-4 .why-num { color: rgba(74,224,66,.35); }
.why-4 p { color: #a9b9ad; }
.why-4 .why-link { color: #4ae042; }
@media (max-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d"; gap: var(--s3); }
  .why-card { min-height: 0; padding: var(--s5); border-radius: 18px; }
  .why-card h3 { margin-top: var(--s2); }
  .why-card p { font-size: 15px; }
}

/* ---------- еволюція ролі: динозавр «класичний PPC» тікає від метеорита ---------- */
.extinct { margin: 0; }
.ex-scene {
  position: relative; height: clamp(240px, 30vw, 380px); border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #12261a 0%, transparent 55%), linear-gradient(180deg, #0a0b0a 0%, #151716 100%);
}
.ex-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex-stars circle { fill: #f2f3f1; opacity: .5; }
.ex-ground { stroke: #3a3f3b; stroke-width: 2; }
.ex-pebbles { fill: #3a3f3b; }
.dino-run { fill: #a3a8a4; shape-rendering: crispEdges; }
.ex-crater { fill: #050605; opacity: 0; }
.ex-flash { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ex-wave { fill: none; stroke: #4ae042; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.deb { fill: #4ae042; opacity: 0; }
.ex-meteor { transform: translate(70px, 20px); }
.ex-tag {
  position: absolute; padding: 5px 11px; border-radius: 999px; font: 600 12px/1.2 var(--font); white-space: nowrap;
}
.ex-dino-label rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.18); }
.ex-dino-label text { fill: #c9cdca; font: 600 12px var(--font); shape-rendering: auto; }
.extinct figcaption { margin-top: var(--s3); font-size: 15px; color: var(--muted); }

/* анімація йде лише, коли сцена на екрані (клас .play ставить скрипт) */
.ex-scene * { animation-play-state: paused; }
.extinct.play .ex-scene * { animation-play-state: running; }
@media (prefers-reduced-motion: no-preference) {
  .dino-leg.a { animation: leg-a .28s steps(1) infinite; }
  .dino-leg.b { animation: leg-b .28s steps(1) infinite; }
  .dino-bob { animation: bob .28s steps(1) infinite; }
  .dino-hop { animation: hop 3.6s ease-out infinite; }
  .ex-pebbles { animation: ground .8s linear infinite; }
  .ex-stars circle { animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--t); }
  .ex-meteor { animation: meteor 3.6s cubic-bezier(.35,0,.75,.7) infinite; }
  .ex-flash { animation: flash 3.6s ease-out infinite; }
  .ex-wave { animation: wave 3.6s ease-out infinite; }
  .ex-crater { animation: crater 3.6s linear infinite; }
  .deb { animation: debris 3.6s ease-out infinite; }
  .ex-shake { animation: shake 3.6s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-meteor { transform: translate(180px, 132px); }
  .dino-leg.b { display: none; }
}
@keyframes leg-a { 50% { opacity: 0; } }
@keyframes leg-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes ground { to { transform: translateX(-800px); } }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes meteor {
  0% { transform: translate(70px, 20px); opacity: 1; }
  60% { transform: translate(250px, 226px); opacity: 1; }
  60.5%, 100% { transform: translate(250px, 226px); opacity: 0; }
}
@keyframes flash { 0%, 59% { opacity: 0; transform: scale(.1); } 61% { opacity: 1; transform: scale(.5); } 78%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes wave { 0%, 60% { opacity: 0; transform: scale(.2); } 62% { opacity: .9; } 85%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes crater { 0%, 60% { opacity: 0; transform: none; } 62% { opacity: .9; transform: none; } 100% { opacity: .9; transform: translateX(-288px); } }
@keyframes debris {
  0%, 60% { opacity: 0; transform: translate(0, 0) rotate(0); }
  62% { opacity: 1; }
  85%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(180deg); }
}
@keyframes shake { 0%, 60%, 70%, 100% { transform: none; } 62% { transform: translate(-4px, 2px); } 64% { transform: translate(4px, -2px); } 66% { transform: translate(-2px, 1px); } }
@keyframes hop { 0%, 60% { transform: none; } 66% { transform: translateY(-34px); } 72%, 100% { transform: none; } }

/* порівняння ролей */
.evo { margin-top: var(--s7); border-top: 1px solid var(--line-strong); }
.evo-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.evo-head { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: var(--s3) 0; }
.evo-head .evo-old { color: var(--faint); }
.evo-head .evo-new { color: var(--accent); }
.evo-k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.evo-row:not(.evo-head) .evo-old { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(12,13,12,.25); }
.evo-row:not(.evo-head) .evo-new { font-weight: 600; font-size: 17px; }
.evo-formula { margin-top: var(--s7); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s4); }
.ef-term { padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.015em; }
.ef-term.ai { background: #0c0d0c; color: #4ae042; border-color: #0c0d0c; }
.ef-term.res { background: #4ae042; color: #0c0d0c; border-color: #4ae042; }
.ef-op { font-size: 30px; font-weight: 300; color: var(--accent); }
@media (max-width: 760px) {
  .evo-head { display: none; }
  .evo { border-top: 0; display: grid; gap: var(--s2); }
  .evo-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .evo-row:not(.evo-head) .evo-old::before { content: "Було: "; text-decoration: none; display: inline-block; margin-right: 4px; }
  .evo-row:not(.evo-head) .evo-new::before { content: "Стало: "; color: var(--accent); font-weight: 600; }
  .evo-row:not(.evo-head) .evo-new { font-size: 16px; }
  .ef-term { padding: 10px 16px; }
}

/* ---------- «вимирає»: слово розсипається на пил і збирається знову ---------- */
.decay { white-space: nowrap; color: var(--faint); }
.decay-l { display: inline-block; }
.decay-l i { position: relative; display: inline-block; font-style: normal; }
.decay-l i::before, .decay-l i::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: .12em; height: .12em; background: currentColor; opacity: 0; pointer-events: none;
}
.decay-l i::after { left: 30%; top: 65%; width: .08em; height: .08em; }
@media (prefers-reduced-motion: no-preference) {
  .decay.play .decay-l i { animation: decay 5s cubic-bezier(.4,0,.2,1) infinite; animation-delay: calc(var(--i) * 110ms + .3s); }
  .decay.play .decay-l i::before { animation: dust 5s ease-out infinite; animation-delay: calc(var(--i) * 110ms + .3s); }
  .decay.play .decay-l i::after { animation: dust2 5s ease-out infinite; animation-delay: calc(var(--i) * 110ms + .3s); }
}
@media (prefers-reduced-motion: reduce) {
  /* без руху: слово ніби вже наполовину розсипалось */
  .decay-l i { opacity: calc(1 - var(--i) * .11); }
}
@keyframes decay {
  0%, 14% { transform: none; opacity: 1; filter: none; }
  40% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; filter: blur(5px); }
  52% { transform: translate(0, .2em); opacity: 0; filter: blur(5px); }
  66% { transform: none; opacity: .14; filter: blur(1px); }
  76% { opacity: .14; filter: blur(1px); }
  88%, 100% { transform: none; opacity: 1; filter: none; }
}
@keyframes dust {
  0%, 14% { transform: none; opacity: 0; }
  18% { opacity: .9; }
  45%, 100% { transform: translate(calc(var(--dx) * 1.8), calc(var(--dy) * 1.6)); opacity: 0; }
}
@keyframes dust2 {
  0%, 16% { transform: none; opacity: 0; }
  20% { opacity: .7; }
  48%, 100% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * 2.2 - 10px)); opacity: 0; }
}
#mms-ai .section-cta { margin-top: var(--s6); }

/* ---------- метод: 7 кроків від цілі до масштабування ---------- */
.path { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.path-steps { position: relative; display: grid; gap: 2px; }
.path-steps::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 1px; background: var(--line-strong); }
.path-step {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--s3);
  min-height: 52px; padding: 6px var(--s3) 6px 0; border: 0; border-radius: var(--r-md); background: transparent;
  color: var(--muted); text-align: left; cursor: pointer; transition: background-color .2s, color .2s;
}
.path-step .n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong); font: 500 13px var(--mono); color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.path-step .t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.path-step:hover { color: var(--text); }
.path-step:hover .n { border-color: var(--text); }
.path-step.done .n { border-color: var(--accent); color: var(--accent); }
.path-step[aria-selected="true"] { color: var(--text); background: var(--surface); }
.path-step[aria-selected="true"] .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-dim); }
/* смужка часу до наступного кроку, коли кроки гортаються самі */
.path-step::after {
  content: ""; position: absolute; left: 56px; right: var(--s3); bottom: 6px; height: 2px; border-radius: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.path.auto .path-step[aria-selected="true"]::after { opacity: .7; animation: path-tick var(--tick, 5s) linear forwards; }
.path.paused .path-step[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes path-tick { to { transform: scaleX(1); } }
.path-panels { min-width: 0; }
.path-panel {
  position: relative; padding: var(--s6); border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; gap: var(--s3); min-height: 100%;
}
.path-panel[hidden] { display: none; }
.path-panel:not([hidden]) { animation: path-in .4s cubic-bezier(.2,.7,.2,1); }
@keyframes path-in { from { opacity: 0; transform: translateY(8px); } }
.pp-n { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.path-panel h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.03em; }
.pp-d { font-size: 18px; color: var(--muted); max-width: 640px; }
.pp-sys { margin-top: var(--s3); }
.pp-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pp-sys .modules { margin-top: var(--s2); }
.pp-res { margin-top: var(--s3); display: grid; gap: 4px; padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--accent-dim); border-left: 3px solid var(--accent); font-size: 17px; font-weight: 600; }
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .path-steps { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .path-steps::-webkit-scrollbar { display: none; }
  .path-steps::before { display: none; }
  .path-step { flex: none; grid-template-columns: 32px auto; gap: 8px; min-height: 44px; padding: 5px 14px 5px 6px; border: 1px solid var(--line); border-radius: 999px; scroll-snap-align: start; }
  .path-step .n { width: 32px; height: 32px; font-size: 12px; }
  .path-step .t { font-size: 14px; white-space: nowrap; }
  .path-step::after { left: 44px; right: 14px; bottom: 4px; }
  .path-panel { padding: var(--s5); }
  .pp-d { font-size: 16px; }
  .pp-res { font-size: 16px; }
}

/* ---------- кейси: великий заголовок, щоб одразу було ясно, про що блок ---------- */
.section-head .big-title { font-size: clamp(56px, 8vw, 112px); line-height: .92; letter-spacing: -0.05em; display: flex; align-items: flex-start; gap: var(--s3); }
.big-count { margin-top: .18em; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; letter-spacing: 0; line-height: 1.2; }


/* ---------- «А люди тут є?»: фото команди ---------- */
.section-head .people-q { font-size: clamp(44px, 6.4vw, 88px); line-height: .95; letter-spacing: -0.045em; }
.section-head p.people-a { display: flex; align-items: center; gap: var(--s3); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); max-width: none; }
.people-check { flex: none; position: relative; width: 1.1em; height: 1.1em; border-radius: 6px; border: 2px solid var(--accent); }
.people-check::after {
  content: ""; position: absolute; left: 28%; top: 10%; width: 32%; height: 58%;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transform-origin: 60% 70%;
}
/* галочка «ставиться», коли заголовок з'являється на екрані; без JS — одразу стоїть */
html:not(.js) .people-check::after, .people-head.checked .people-check::after { transform: rotate(45deg) scale(1); }
.people-head.checked .people-check::after { transition: transform .35s cubic-bezier(.2,.8,.2,1.3) .3s; }
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5) var(--s4); align-items: start; }
.person { display: grid; gap: 4px; }
.person-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s3); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .5s cubic-bezier(.2,.7,.2,1); }
.person:hover .person-photo img { filter: none; transform: scale(1.03); }
.person-photo svg { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); fill: var(--surface-2); }
.person.is-placeholder .person-photo { background: linear-gradient(160deg, var(--surface) 0%, #101211 100%); border-style: dashed; border-color: var(--line-strong); }
.person-name { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.person-role { font-size: 14px; color: var(--accent); font-weight: 600; }
.person.is-placeholder .person-name { color: var(--faint); }
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; color: var(--muted); padding: 4px 0;
}
@media (max-width: 1100px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  /* на телефоні — стрічка, яку гортають пальцем, замість п'яти екранів карток */
  .people { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .people::-webkit-scrollbar { display: none; }
  .person { flex: 0 0 62%; scroll-snap-align: start; }
  .person-name { font-size: 16px; }
  .person-role { font-size: 13px; }
}
/* під фото команди картка AI стоїть на темному фоні — потрібна рамка, щоб не зливалась */
.people-ai { margin-top: var(--s7); border: 1px solid var(--line-strong); background: linear-gradient(100deg, #151716 0%, #111312 60%, rgba(74,224,66,.06) 100%); }

/* ---------- смуга доказів: нагорода й партнерські бейджі ---------- */
.band-proof { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.band-proof > div { border-radius: 16px; background: #fff; color: #0c0d0c; }
.bp-award { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s4) var(--s5); }
.bp-award img { height: 112px; width: auto; }
.bp-award b { display: block; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.02em; line-height: 1.2; }
.bp-award p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #4a504c; }
.bp-badge { display: grid; place-items: center; padding: var(--s4); }
.bp-badge img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .band-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-award { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .band-grid > div { padding-left: var(--s2); }
  .band-grid b, .band-grid > div:nth-child(3) b { font-size: 30px; padding-block: 0; }
  .band-grid span { font-size: 12.5px; line-height: 1.35; }
  .bp-award { grid-template-columns: 76px minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
  .bp-award img { height: 80px; }
  .bp-badge img { max-height: 64px; }
}

/* ---------- відгуки клієнтів біля тез, які вони підтверджують ---------- */
.proof { margin: var(--s7) 0 0; padding: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.proof-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proof-qi { width: 26px; height: 20px; fill: var(--accent); flex: none; }
.proof-t { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--accent); letter-spacing: .04em; }
.proof blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.proof figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s3); }
.proof-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-dim, rgba(74,224,66,.14)); color: var(--accent); font-weight: 700; font-size: 15px; }
.proof-ava img { width: 100%; height: 100%; object-fit: cover; }
.proof-who { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.proof-who b { color: var(--text); font-size: 15px; font-weight: 600; }
.proof-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); grid-template-areas: "k k" "q who"; gap: var(--s4) var(--s7); align-items: end; padding: var(--s6); }
.proof-wide .proof-k { grid-area: k; }
.proof-wide blockquote { grid-area: q; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.proof-wide figcaption { grid-area: who; margin: 0; padding-left: var(--s5); border-left: 1px solid var(--line-strong); }
.proof-pair { margin-top: var(--s7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.proof-pair .proof { margin: 0; }
.theme-light .proof, .theme-accent .proof { background: var(--bg); }
@media (max-width: 760px) {
  .proof { padding: var(--s5) var(--s4); margin-top: var(--s6); }
  .proof-wide { display: flex; align-items: stretch; padding: var(--s5) var(--s4); }
  .proof-wide figcaption { padding: 0; border: 0; }
  .proof blockquote, .proof-wide blockquote { font-size: 16px; }
  .proof-pair { grid-template-columns: 1fr; margin-top: var(--s6); }
}

/* ---------- світлі версії блоків, які раніше жили лише на темному тлі ---------- */
.theme-light .people-ai { background: linear-gradient(100deg, var(--surface) 0%, var(--surface) 55%, rgba(31,122,61,.08) 100%); }
.theme-light .person-photo { background: var(--surface-2); }
.theme-light .why-1 { background: var(--surface); border: 1px solid var(--line); }

/* ---------- «Усі ваші дані — в одному дашборді»: джерела → Labgramm MMS ---------- */
.hub { margin-top: var(--s8); }
.hub-head { max-width: 760px; margin-bottom: var(--s6); }
.hub-title { margin-top: var(--s3); font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.05; }
.hub-lead { margin-top: var(--s4); font-size: var(--fs-lead); color: var(--muted); }
.hub-map { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.15fr); align-items: center; }
.hub-src { display: grid; grid-auto-rows: 1fr; gap: 10px; }
.hub-src li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.hub-src b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.hub-src small { display: block; font-size: 13px; color: var(--muted); }
.hub-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); }
.hub-ic svg { width: 19px; height: 19px; }
.hub-wire-col { position: relative; align-self: stretch; }
.hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-wires path { fill: none; vector-effect: non-scaling-stroke; }
.hub-base path { stroke: var(--line-strong); stroke-width: 1.5; }
.hub-flow path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 14; stroke-linecap: round; }
.hub-down { display: none; }
.hub-card { padding: var(--s5); border-radius: 18px; border: 1px solid rgba(74,224,66,.45); background: linear-gradient(160deg, rgba(74,224,66,.1), rgba(74,224,66,.02) 60%), var(--surface); box-shadow: 0 0 0 6px rgba(74,224,66,.06); }
.hub-card-k { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hub-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ae042; box-shadow: 0 0 0 4px rgba(74,224,66,.18); }
/* CTA «7 днів у системі» одразу після блоку з дашбордом */
.h-plat { font-size: .72em; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
.trial { margin-top: var(--s7); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding: var(--s6); border-radius: 20px; }
.trial-txt { flex: 1 1 420px; display: grid; gap: 8px; }
.trial-k { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(12,13,12,.1); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.trial-title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.trial-lead { max-width: 640px; color: var(--muted); font-size: 16px; }
.trial-lead b { color: var(--text); font-weight: 700; }
.trial .btn { flex: none; }
@media (max-width: 640px) { .trial { padding: var(--s5); } .trial .btn { width: 100%; justify-content: center; } }
.hub-shot { margin-top: var(--s4); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0d1117; }
.hub-shot img { display: block; width: 100%; height: auto; }
.hub-out { margin-top: var(--s4); display: grid; gap: 8px; }
.hub-out li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.hub-out li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #4ae042; color: #0c0d0c; }
@media (prefers-reduced-motion: no-preference) {
  .hub-flow path { animation: hub-flow 1.6s linear infinite; }
  .hub-dot { animation: hub-pulse 2s ease-in-out infinite; }
}
@keyframes hub-flow { to { stroke-dashoffset: -17; } }
@keyframes hub-pulse { 50% { box-shadow: 0 0 0 8px rgba(74,224,66,0); } }
@media (max-width: 900px) {
  .hub-map { grid-template-columns: 1fr; }
  .hub-wire-col { display: none; }
  .hub-src { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .hub-down { display: block; justify-self: center; width: 2px; height: 44px; margin: 10px 0; background: repeating-linear-gradient(180deg, #4ae042 0 4px, transparent 4px 10px); }
}
@media (max-width: 520px) {
  .hub-src { grid-template-columns: 1fr; }
  .hub-src li { padding: 10px 12px; }
  .hub-card { padding: var(--s4); }
}

/* ---------- перший екран: пульс реклами під наглядом ---------- */
/* лінія — один місяць реклами; на ній чотири події, і кожна загоряється в стрічці під монітором.
   без руху (або без JS) видно кінцевий кадр: уся лінія, усі позначки, усі рядки стрічки */
.pulse { display: grid; gap: var(--s4); padding: var(--s5); border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); }
.pulse-k { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.pulse-screen { border-radius: 14px; background: var(--bg); overflow: hidden; }
.pulse-svg { display: block; width: 100%; height: auto; }
.pulse-grid path { stroke: var(--line); stroke-width: 1; }
.pulse-base, .pulse-line, .pulse-seg, .pulse-head { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: var(--line-strong); stroke-width: 1.5; }
.pulse-line { stroke: var(--accent); stroke-width: 2.5; }
.pulse-seg { stroke-width: 3.5; }
.pulse-seg.is-bad { stroke: var(--bad); }
.pulse-seg.is-warn { stroke: var(--warn); }
.pulse-head { stroke: var(--accent); stroke-width: 12; stroke-dasharray: 0.01 2000; opacity: 0; }
.pulse-ev circle { transform-box: fill-box; transform-origin: center; }
.pulse-mk { stroke: var(--bg); stroke-width: 3; }
.pulse-ring { fill: none; stroke-width: 2; opacity: 0; vector-effect: non-scaling-stroke; }
.pulse-ev.is-bad .pulse-mk { fill: var(--bad); } .pulse-ev.is-bad .pulse-ring { stroke: var(--bad); }
.pulse-ev.is-good .pulse-mk { fill: var(--accent); } .pulse-ev.is-good .pulse-ring { stroke: var(--accent); }
.pulse-ev.is-warn .pulse-mk { fill: var(--warn); } .pulse-ev.is-warn .pulse-ring { stroke: var(--warn); }
/* стрічка подій: кольорова крапка, назва, коротке пояснення */
.pulse-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.pulse-feed li { display: flex; align-items: baseline; gap: 8px; }
.pulse-feed li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.pulse-feed b { color: var(--text); font-weight: 600; margin-right: 2px; }
.pulse-feed .is-bad::before { background: var(--bad); }
.pulse-feed .is-good::before { background: var(--accent); }
.pulse-feed .is-warn::before { background: var(--warn); }
/* цикл 10 с: лінія малюється 7 с; кожна подія червоніє/зеленіє, коли до неї доходить «голова»,
   і в цей момент загоряється її рядок; наприкінці все гасне і починається знову */
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: hub-pulse 2s ease-in-out infinite; }
  html.js .pulse-run { animation: pulse-run 10s linear infinite; }
  html.js .pulse-line { stroke-dasharray: 1000; animation: pulse-draw 10s linear infinite; }
  html.js .pulse-head { animation: pulse-head 10s linear infinite; }
  html.js .pulse-seg.e1 { stroke-dasharray: 1; animation: pulse-seg-e1 10s linear infinite; }
  html.js .pulse-seg.e2 { stroke-dasharray: 1; animation: pulse-seg-e2 10s linear infinite; }
  html.js .pulse-seg.e4 { stroke-dasharray: 1; animation: pulse-seg-e4 10s linear infinite; }
  html.js .pulse-ev.e1 .pulse-mk { animation: pulse-mk-e1 10s ease-out infinite; }
  html.js .pulse-ev.e1 .pulse-ring { animation: pulse-ring-e1 10s ease-out infinite; }
  html.js .pulse-feed .e1 { animation: pulse-row-e1 10s ease-out infinite; }
  html.js .pulse-ev.e2 .pulse-mk { animation: pulse-mk-e2 10s ease-out infinite; }
  html.js .pulse-ev.e2 .pulse-ring { animation: pulse-ring-e2 10s ease-out infinite; }
  html.js .pulse-feed .e2 { animation: pulse-row-e2 10s ease-out infinite; }
  html.js .pulse-ev.e3 .pulse-mk { animation: pulse-mk-e3 10s ease-out infinite; }
  html.js .pulse-ev.e3 .pulse-ring { animation: pulse-ring-e3 10s ease-out infinite; }
  html.js .pulse-feed .e3 { animation: pulse-row-e3 10s ease-out infinite; }
  html.js .pulse-ev.e4 .pulse-mk { animation: pulse-mk-e4 10s ease-out infinite; }
  html.js .pulse-ev.e4 .pulse-ring { animation: pulse-ring-e4 10s ease-out infinite; }
  html.js .pulse-feed .e4 { animation: pulse-row-e4 10s ease-out infinite; }
}
@keyframes pulse-run { 0%, 90% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes pulse-draw { 0% { stroke-dashoffset: 1000; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse-head { 0% { stroke-dashoffset: 0; opacity: 1; } 70% { stroke-dashoffset: -1000; opacity: 1; } 72%, 100% { stroke-dashoffset: -1000; opacity: 0; } }
@keyframes pulse-seg-e1 { 0%, 7.6% { stroke-dashoffset: 1; } 16.5%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse-seg-e2 { 0%, 23.5% { stroke-dashoffset: 1; } 46.0%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse-seg-e4 { 0%, 63.4% { stroke-dashoffset: 1; } 70.0%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse-mk-e1 { 0%, 10.5% { opacity: 0; transform: scale(0); } 13.0%, 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring-e1 { 0%, 10.5% { opacity: 0; transform: scale(1); } 13.0% { opacity: .9; transform: scale(1.4); } 22.5%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes pulse-row-e1 { 0%, 10.5% { opacity: .32; transform: translateX(-4px); } 13.0%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: .32; transform: none; } }
@keyframes pulse-mk-e2 { 0%, 27% { opacity: 0; transform: scale(0); } 29.5%, 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring-e2 { 0%, 27% { opacity: 0; transform: scale(1); } 29.5% { opacity: .9; transform: scale(1.4); } 39%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes pulse-row-e2 { 0%, 27% { opacity: .32; transform: translateX(-4px); } 29.5%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: .32; transform: none; } }
@keyframes pulse-mk-e3 { 0%, 57% { opacity: 0; transform: scale(0); } 59.5%, 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring-e3 { 0%, 57% { opacity: 0; transform: scale(1); } 59.5% { opacity: .9; transform: scale(1.4); } 69%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes pulse-row-e3 { 0%, 57% { opacity: .32; transform: translateX(-4px); } 59.5%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: .32; transform: none; } }
@keyframes pulse-mk-e4 { 0%, 67% { opacity: 0; transform: scale(0); } 69.5%, 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring-e4 { 0%, 67% { opacity: 0; transform: scale(1); } 69.5% { opacity: .9; transform: scale(1.4); } 79%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes pulse-row-e4 { 0%, 67% { opacity: .32; transform: translateX(-4px); } 69.5%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: .32; transform: none; } }
@media (max-width: 640px) {
  .pulse { padding: var(--s4); gap: var(--s3); }
  .pulse-feed { grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
}
