/* HAIG — лендинг «Аудит для e-com». Mobile-first: базові стилі для телефона, @media — для більших екранів. */

:root {
  --ink: #0E1716;
  --ink-2: #33403E;
  --muted: #5B6866;
  --green: #257965;
  --green-2: #1A5648;
  --green-deep: #0E5C51;
  --green-hi: #02775F;
  --mint: #D8EEE6;
  --mint-2: #9FD3C1;
  --paper: #EEF2F1;
  --white: #FFFFFF;
  --line: rgba(14, 23, 22, .10);
  --radius: 22px;
  --radius-s: 14px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--green);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--mint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 7.6vw, 44px); font-weight: 700; }
.sub { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 24px;
  border: 0; border-radius: 16px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px -8px rgba(37, 121, 101, .7); }
.btn--primary:hover { background: var(--green-2); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45); }
.btn--light:hover { background: var(--mint); }
.btn--inline { width: auto; min-width: 260px; }
.btn__icon { width: 20px; height: 20px; transition: transform .2s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- 1. Hero (світлий, під фон анімації #EAEAEC) ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--ink); background: #E8E8EB;
  padding: max(14px, env(safe-area-inset-top)) 0 28px;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 12px; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__logo { width: 128px; height: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--white); box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(14, 23, 22, .4);
  white-space: nowrap;
}
.badge__icons { display: flex; }
.badge__icons img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 2px var(--white); }
.badge__icons img + img { margin-left: -6px; }
.badge__text { font-size: 10.5px; line-height: 1.2; font-weight: 500; color: var(--muted); }
.badge__text b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.hero h1 { margin-top: 10px; font-size: clamp(28px, 7.9vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--green); }
.h-b { display: none; }
html[data-hero="b"] .h-a { display: none; }
html[data-hero="b"] .h-b { display: inline; }
.hero__copy, .hero__top { position: relative; z-index: 1; }
.hero__lead { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 4px; padding: 6px 12px; border-radius: 999px;
  background: var(--white); box-shadow: 0 1px 0 var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25;
}
.hero__eyebrow .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.hero__fit {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 7px 12px; border-radius: 999px; background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: 0 1px 0 var(--line);
}
.hero__fit .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.hero__media { margin: -4px 0 -92px; position: relative; z-index: 0; container-type: inline-size; }

/* ---------- Сцена «Аудит наживо» (усе в одиницях ширини, масштабується саме) ---------- */
.scene {
  --red: #E5484D; --red-bg: #FDECEC; --ok: #1F9D6E; --ok-bg: #E3F5EC;
  position: relative; width: 82%; margin: 0 auto; aspect-ratio: 1; font-size: 3cqw; overflow: hidden;
  background: url("assets/hero-bg-clean.webp") center / cover no-repeat;
}
.scene::before { /* м'яко ховаємо верх фону (там край телефона з оригінального кадру) */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 16%; z-index: 0;
  background: linear-gradient(180deg, #E8E8EB 55%, rgba(232, 232, 235, 0));
}
.ph {
  position: absolute; left: 27%; top: 9%; z-index: 1; width: 46%; aspect-ratio: 9 / 19.5;
  border-radius: 2.7em; border: .55em solid #121515; background: #121515;
  box-shadow: 0 2.4em 3.2em -1.6em rgba(14, 23, 22, .55), inset 0 0 0 .12em #3a3f3e;
  transform: perspective(60em) rotateY(-14deg) rotateX(5deg) rotateZ(-3deg);
  animation: ph-float 6s ease-in-out infinite;
}
@keyframes ph-float { 50% { transform: perspective(60em) rotateY(-10deg) rotateX(3deg) rotateZ(-2deg) translateY(-.5em); } }
.ph__screen { position: absolute; inset: 0; border-radius: 2.15em; overflow: hidden; background: #F4F6F5; padding: .6em .75em; }
.ph__status { display: flex; justify-content: space-between; align-items: center; font-size: .62em; font-weight: 700; color: var(--ink); padding: 0 .4em; }
.ph__status i { width: 5.5em; height: 1.4em; border-radius: 1em; background: #121515; position: absolute; left: 50%; top: .45em; transform: translateX(-50%); }

.am__head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.4em; }
.am__head b { font-size: .78em; letter-spacing: -0.01em; }
.am__head span { font-size: .55em; color: var(--muted); background: #fff; padding: .2em .6em; border-radius: 1em; }
.am__kpi { display: grid; grid-template-columns: 1fr 1fr; gap: .35em; margin-top: .55em; }
.am__kpi div { background: #fff; border-radius: .6em; padding: .35em .5em; }
.am__kpi small { display: block; font-size: .5em; color: var(--muted); }
.am__kpi b { font-size: .95em; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.am__rows { margin-top: .5em; display: grid; gap: .3em; }
.row {
  display: grid; grid-template-columns: .55em 1fr auto; align-items: center; gap: .4em;
  padding: .45em .5em; border-radius: .55em; background: #fff;
  font-size: .58em; transition: background-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.row i { width: .55em; height: .55em; border-radius: 50%; background: #B8C2C0; transition: background-color .3s; }
.row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.row b { font-variant-numeric: tabular-nums; }
.row.is-bad { background: var(--red-bg); box-shadow: inset 0 0 0 .12em rgba(229, 72, 77, .45); }
.row.is-bad i { background: var(--red); }
.row.is-bad b { color: var(--red); }
.row.is-ok { background: var(--ok-bg); }
.row.is-ok i { background: var(--ok); }
.row.is-ok b { color: var(--ok); }

.am__chart { margin-top: .6em; background: #fff; border-radius: .6em; padding: .4em .5em .45em; }
.am__chart small { display: block; font-size: .5em; color: var(--muted); }
.am__chart div { height: 3.6em; margin-top: .3em; display: flex; align-items: flex-end; gap: .22em; }
.am__chart i { flex: 1; height: var(--h); border-radius: .2em .2em .08em .08em; background: #C9D1CF; transform-origin: bottom; transition: transform .6s var(--ease-out), background-color .4s; }
.am__chart i.g { transform: scaleY(.35); }
.scene.is-growing .am__chart i.g { transform: none; background: var(--ok); }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 3.2em; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(37, 121, 101, .16) 70%, rgba(37, 121, 101, .55) 96%, transparent);
}
.scene.is-scanning .scan { animation: scan 1.7s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(32em); } }

.note {
  position: absolute; left: .6em; right: .6em; top: 1.7em; z-index: 2;
  display: grid; grid-template-columns: 1.9em 1fr auto; align-items: center; gap: .45em;
  padding: .5em .6em; border-radius: .9em; background: rgba(255, 255, 255, .96);
  box-shadow: 0 .8em 1.6em -.8em rgba(0, 0, 0, .45); font-size: .62em;
  opacity: 0; transform: translateY(-140%) scale(.96);
  transition: transform .7s var(--ease-out), opacity .4s;
}
.note.is-on { opacity: 1; transform: none; }
.note__ic { width: 1.9em; height: 1.9em; border-radius: .55em; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }
.note b { display: block; font-size: 1em; }
.note small { font-size: .8em; color: var(--muted); }
.note em { font-style: normal; font-weight: 700; color: var(--green-2); font-variant-numeric: tabular-nums; }

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .45em; max-width: 34%;
  padding: .55em .75em .55em .55em; border-radius: .9em; background: #fff;
  font-size: .78em; font-weight: 600; line-height: 1.2; color: var(--ink);
  box-shadow: 0 1em 2em -1em rgba(14, 23, 22, .5);
  opacity: 0; transform: translateY(.8em) scale(.92);
  transition: opacity .35s, transform .6s var(--ease-out), background-color .4s;
}
.chip--1 { left: 2%; top: 21%; }
.chip--2 { right: 1%; top: 58%; }
.chip--3 { left: 2%; top: 44%; }
.chip.is-on { opacity: 1; transform: none; }
.chip__ic { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: var(--red); position: relative; transition: background-color .35s; }
.chip__ic::before { content: "!"; color: #fff; font-weight: 800; font-size: 1em; }
.chip.is-ok .chip__ic { background: var(--ok); }
.chip.is-ok .chip__ic::before { content: ""; width: .75em; height: .4em; border: solid #fff; border-width: 0 0 .17em .17em; transform: translateY(-.1em) rotate(-45deg); }
.chip.is-flip { animation: chip-flip .5s var(--ease-out); }
@keyframes chip-flip { 40% { transform: scale(.94) rotateX(50deg); } }

.roas {
  position: absolute; right: 3%; top: 9%; z-index: 3; width: 27%;
  padding: .6em .75em .5em; border-radius: 1em; background: #fff;
  box-shadow: 0 1em 2em -1em rgba(14, 23, 22, .5);
}
.roas small { display: block; font-size: .62em; color: var(--muted); }
.roas b { display: block; font-size: 1.6em; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .4s; }
.scene.is-growing .roas b { color: var(--ok); }
.roas svg { display: block; width: 100%; height: 2em; margin-top: .2em; overflow: visible; }
.roas__line { stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.4s var(--ease-out); }
.scene.is-growing .roas__line { stroke-dashoffset: 0; }

.scene.is-reset > * { transition: opacity .5s; }
.scene.is-fade .chip, .scene.is-fade .note { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ph { animation: none; }
}

/* ---------- Варіант B: «Гроші капають у гаманець» ---------- */
.scene--b { display: none; }
html[data-hero="b"] .scene--a { display: none; }
html[data-hero="b"] .scene--b { display: block; }
.wallet {
  position: absolute; left: 22%; top: 15%; width: 56%; height: auto; z-index: 2; overflow: visible;
  filter: drop-shadow(0 2em 2em rgba(14, 23, 22, .35));
  transform-origin: 50% 90%; transition: transform .6s var(--ease-out);
}
.scene--b.is-full .wallet { animation: wallet-pulse 1.4s var(--ease-out); }
@keyframes wallet-pulse { 30% { transform: scale(1.05) translateY(-1%); } }
.patch { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(1.6) rotate(-12deg); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.hole.is-fixed .patch { opacity: 1; transform: rotate(-6deg); }

.coins { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.coin {
  position: absolute; width: 2em; height: 2em; margin-left: -1em; border-radius: 50%;
  display: grid; place-items: center; font-size: 1em; font-weight: 800; color: #8A6512;
  background: radial-gradient(circle at 35% 30%, #FFE7A3, #F2C14E 55%, #D99E22);
  box-shadow: inset 0 -.15em 0 rgba(0, 0, 0, .15), 0 .3em .6em -.2em rgba(0, 0, 0, .35);
}
.coin--out { animation: coin-out 1.3s cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes coin-out { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(11em) rotate(220deg); opacity: 0; } }
.bill {
  position: absolute; width: 4.2em; height: 2em; margin-left: -2.1em; border-radius: .3em;
  background: linear-gradient(135deg, #CFEBC9 0%, #8FC98F 45%, #6BAF73 100%);
  border: .12em solid #4E8E58; box-shadow: 0 .4em .8em -.3em rgba(14, 40, 20, .45);
  display: grid; place-items: center;
}
.bill::before { /* внутрішня рамка купюри */
  content: ""; position: absolute; inset: .18em; border-radius: .2em; border: .08em solid rgba(46, 96, 54, .55);
}
.bill span {
  position: relative; width: 1.3em; height: 1.3em; border-radius: 50%; display: grid; place-items: center;
  background: #E4F4DF; border: .08em solid #4E8E58; color: #2E6036; font-weight: 800; font-size: .95em; line-height: 1;
}
.bill--in { animation: bill-in 1.5s cubic-bezier(.45, 0, .8, .55) forwards; }
@keyframes bill-in {
  0% { transform: translateY(-14em) rotate(-24deg) rotateX(30deg); opacity: 0; }
  15% { opacity: 1; }
  35% { transform: translateY(-9em) rotate(14deg) rotateX(-10deg); }
  60% { transform: translateY(-4.5em) rotate(-10deg) rotateX(20deg); }
  85% { opacity: 1; }
  100% { transform: translateY(0) rotate(6deg) scale(.7); opacity: 0; }
}
.coin--in { animation: coin-in 1.25s cubic-bezier(.55, 0, .85, .5) forwards; }
@keyframes coin-in { from { transform: translateY(-13em) rotate(-40deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(0) rotate(160deg) scale(.75); opacity: 0; } }
.scene--b.is-pulse .wallet { animation: wallet-pulse .9s var(--ease-out); }

.wchip--1 { left: 1%; top: 28%; }
.wchip--2 { right: 1%; top: 42%; }
.wchip--3 { left: 1%; top: 56%; }
.chip__t b { color: var(--ok); white-space: nowrap; }
.scene--b .chip { z-index: 4; }

.loss {
  position: absolute; right: 3%; top: 15%; z-index: 4; min-width: 30%;
  padding: .6em .8em; border-radius: 1em; background: #fff;
  box-shadow: 0 1em 2em -1em rgba(14, 23, 22, .5);
}
.loss small { display: block; font-size: .62em; color: var(--muted); }
.loss b { display: block; font-size: 1.45em; font-weight: 800; letter-spacing: -0.03em; color: var(--ok); font-variant-numeric: tabular-nums; transition: color .4s; }
.loss.is-good b { color: var(--ok); }

.proof { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof li { padding: 10px 10px 9px; border-radius: var(--radius-s); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.proof b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--green-2); font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.25; color: var(--muted); }

/* Форма */
.lead {
  scroll-margin-top: 12px; position: relative; z-index: 2;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 18px 16px 16px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55);
}
.lead__title { font-size: clamp(19px, 5.3vw, 22px); font-weight: 700; letter-spacing: -0.025em; white-space: nowrap; }
.lead__done .lead__title { white-space: normal; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 17px; /* ≥16px, щоб iOS не збільшував сторінку */
  color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #7D8A88; }
.field input:focus { outline: none; border-color: var(--green); background: var(--white); }
.field__err { display: none; margin-top: 6px; font-size: 13px; font-style: normal; color: #B3261E; }
.field.is-invalid input { border-color: #B3261E; background: #FFF6F5; }
.field.is-invalid .field__err { display: block; }
.lead .btn { margin-top: 18px; }
.social { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.social__faces { display: flex; flex: none; }
.social__faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); background: var(--white); }
.social__faces img + img { margin-left: -10px; }
.social__text { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.social__text b { color: var(--ink); }
.lead__note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.lead__legal { margin-top: 6px; font-size: 11.5px; color: #7D8A88; text-align: center; }
.lead__done { text-align: center; padding: 18px 4px 10px; }
.lead__done svg { width: 56px; height: 56px; margin: 0 auto 14px; }
.lead__done p { margin-top: 8px; color: var(--muted); }

/* Один авторський момент руху: поява першого екрана */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter .9s var(--ease-out) both; }
  .lead[data-enter] { animation-delay: .12s; }
  /* Без прозорості: якщо анімація не запуститься (деякі вбудовані браузери), контент усе одно видно */
  @keyframes enter { from { transform: translateY(18px) scale(.985); } }
}

/* ---------- Каруселі (свайп) ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 22px var(--gutter) 6px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Візуал першого екрана: сповіщення про замовлення ---------- */
.orders {
  position: relative; height: 176px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 12px 12px 0;
}
.orders::after { /* м'яке затухання знизу, щоб сповіщення «йшли» вниз */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(11, 77, 67, .95));
  pointer-events: none;
}
.orders__stack { display: grid; gap: 8px; }
.toast {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px 9px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45);
  transform-origin: top center;
}
.toast__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green); }
.toast__icon svg { width: 18px; height: 18px; color: #fff; }
.toast b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.toast small { display: block; font-size: 12px; color: var(--muted); }
.toast__sum { font-size: 15px; font-weight: 700; color: var(--green-2); font-variant-numeric: tabular-nums; }
.toast.is-new { animation: toast-in .7s var(--ease-out); }
@keyframes toast-in { from { transform: translateY(-110%) scale(.96); opacity: 0; } }
.orders__roas {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.orders__roas span { color: rgba(255, 255, 255, .7); }
.orders__roas b { font-size: 18px; letter-spacing: -0.02em; color: var(--mint-2); }
@media (prefers-reduced-motion: reduce) { .toast.is-new { animation: none; } }

/* ---------- Каруселі (свайп) ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 22px var(--gutter) 6px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.rail-count { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rail-arrows { margin-left: auto; display: flex; gap: 8px; }
.rail-arrows button {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  transition: transform .15s var(--ease-out), background-color .2s, opacity .2s;
}
.rail-arrows button:hover { background: var(--mint); }
.rail-arrows button:active { transform: scale(.92); }
.rail-arrows button:disabled { opacity: .35; cursor: default; }
.rail-arrows svg { width: 20px; height: 20px; }

/* ---------- 2. Кейси (повні картки зі скрінами кабінетів) ---------- */
.cases { background: var(--paper); padding-bottom: 40px; }
.case {
  width: min(74vw, 300px); padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 16px 32px -18px rgba(14, 23, 22, .4);
  transition: transform .2s var(--ease-out);
}
.case:active { transform: scale(.98); }
.case img { width: 100%; height: auto; }

/* ---------- 2. Кейси (преміальні картки) ---------- */
.cases--lux {
  color: #fff; padding-bottom: 44px;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(63, 191, 151, .18), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(7, 154, 122, .14), transparent 60%),
    #0E1716;
}
.cases--lux .sub { color: rgba(255, 255, 255, .62); }
.kase {
  width: min(84vw, 350px); padding: 16px; border-radius: var(--radius); display: grid; gap: 12px; align-content: start;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .8);
}
.kase header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kase__ch { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
.kase__ch--google { background: #1E8E3E; }
.kase__ch--meta { background: #0866FF; }
.kase__per { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.kase__top { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: center; }
.kase__prod { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: #EAEAEC; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 26px -14px rgba(0, 0, 0, .7); transform: rotate(3deg); }
.kase__prod img { width: 100%; height: 100%; object-fit: contain; padding: 11px; }
.kase__prod--ill img { padding: 8px; }
.kase__niche { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.kase__big { margin: 2px 0 0; font-size: clamp(30px, 8.6vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: none; color: #fff; }
.kase__big small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: #9FE3CB; }
.kase__kpi { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kase__kpi > div { padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.kase__kpi dt { font-size: 11px; line-height: 1.2; color: rgba(255, 255, 255, .55); }
.kase__kpi dd { margin: 3px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kase__kpi > div:first-child { background: rgba(63, 191, 151, .16); border-color: rgba(63, 191, 151, .35); }
.kase__kpi > div:first-child dd { color: #9FE3CB; }
.kase__shot { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.kase__shot img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: left bottom; }
.kase__open { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px; background: rgba(14, 23, 22, .88); color: #fff; font-size: 12px; font-weight: 600; }
.kase__open svg { width: 14px; height: 14px; }
.kase__shot:active { transform: scale(.98); }
.rail-nav--dark { color: rgba(255, 255, 255, .6); }
.rail-nav--dark .rail-count { color: #fff; }
.rail-nav--dark .rail-arrows button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.rail-nav--dark .rail-arrows button:hover { background: rgba(255, 255, 255, .16); }

/* ---------- 3. Відгуки (скріни) ---------- */
.reviews { background: var(--white); padding-bottom: 44px; }
.review {
  margin: 0; width: min(82vw, 340px); padding: 14px; border-radius: var(--radius);
  background: var(--paper); display: grid; gap: 12px; align-content: start;
}
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; }
.review figcaption span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.review figcaption b { display: block; font-size: 15px; color: var(--ink); }
.review__shot { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #dfe5e3; }
.review__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }

/* ---------- 4. Завдяки чому результат (слайдер) ---------- */
.how { background: var(--paper); padding-bottom: 44px; }
.how__ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.how__ch button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink-2); box-shadow: 0 1px 0 var(--line); transition: background-color .2s, color .2s, transform .15s var(--ease-out); }
.how__ch button::after { content: " +"; color: var(--green); font-weight: 700; }
.how__ch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.how__ch button[aria-pressed="true"]::after { content: " –"; color: #fff; }
.how__ch button:active { transform: scale(.95); }
.how__hint { font-size: 12px; color: var(--muted); }
.how__tip { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--radius-s); background: var(--white); border-left: 0; box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(14, 23, 22, .4);
  font-size: 14.5px; line-height: 1.45; color: var(--ink-2); animation: panel .35s var(--ease-out); }
.how__tip b { color: var(--ink); }
.how__tip[hidden] { display: none; }
.slide { width: min(84vw, 360px); padding: 12px 12px 18px; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 14px 30px -20px rgba(14, 23, 22, .3); }
.slide h3 { margin: 16px 6px 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.slide p { margin: 6px 6px 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.slide__vis {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #EEF4F2, #E2ECE8); container-type: inline-size; font-size: 3.6cqw; padding: 5%;
}
.vis__tag { position: absolute; right: 4%; bottom: 4%; font-size: .62em; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .8); padding: .2em .6em; border-radius: 1em; }

/* ---- Преміальні темні візуали слайдів ---- */
.lux {
  color: #fff; padding: 6%;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(63, 191, 151, .28), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(7, 154, 122, .22), transparent 60%),
    linear-gradient(160deg, #13302A 0%, #0E1716 70%);
}
.lux .vis__tag { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }

/* 1. Аналітика по товарах */
.lux-prod { display: flex; flex-direction: column; justify-content: center; gap: .55em; }
.lp__card {
  display: grid; grid-template-columns: 2.9em 1fr auto; align-items: center; gap: .7em;
  padding: .45em .7em .45em .45em; border-radius: .9em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lp__ic { width: 2.9em; height: 2.9em; border-radius: .7em; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(63, 191, 151, .22), rgba(7, 154, 122, .08)); border: 1px solid rgba(63, 191, 151, .3); }
.lp__ic svg, .ls__photo svg, .la__node svg { width: 55%; height: 55%; fill: none; stroke: #9FE3CB; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp__card--top .lp__ic { background: linear-gradient(145deg, #2A8670, #0E5C51); border-color: transparent; box-shadow: 0 .4em 1em -.4em rgba(7, 154, 122, .8); }
.lp__card--top .lp__ic svg { stroke: #fff; }
.lp__info b { display: block; font-size: .86em; font-weight: 600; letter-spacing: -0.01em; }
.lp__bar { margin-top: .35em; height: .32em; border-radius: 1em; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lp__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #079A7A, #3FBF97); }
.lp__roas { text-align: right; }
.lp__roas small { display: block; font-size: .5em; line-height: 1.15; letter-spacing: .02em; color: rgba(255, 255, 255, .55); }
.lp__roas b { font-size: 1.1em; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp__card--top {
  background: #fff; color: var(--ink); border-color: transparent; transform: scale(1.04); transform-origin: center;
  box-shadow: 0 0 0 .12em rgba(63, 191, 151, .55), 0 1.2em 2.4em -1em rgba(63, 191, 151, .6);
}
.lp__card--top .lp__roas small { color: var(--muted); }
.lp__card--top .lp__roas b { color: var(--green-2); }
.lp__card--top .lp__bar { background: #E3EEEA; }
.lp__badge { display: inline-block; font-size: .55em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--green); padding: .2em .6em; border-radius: 1em; margin-bottom: .25em; }

/* 2. Покращуємо сайт */
.lux-site { position: relative; }
.ls__phone {
  position: absolute; left: 9%; top: 6%; width: 33%; aspect-ratio: 9 / 18; border-radius: 1.6em;
  border: .35em solid #050B0A; background: #050B0A; box-shadow: 0 1.5em 2.5em -1em rgba(0, 0, 0, .7), inset 0 0 0 .08em #2a3331;
  transform: rotate(-6deg);
}
.ls__screen { position: absolute; inset: 0; border-radius: 1.25em; overflow: hidden; background: #fff; padding: .5em; color: var(--ink); display: flex; flex-direction: column; gap: .3em; }
.ls__photo { border-radius: .7em; overflow: hidden; background: #F1F3F2; aspect-ratio: 1; }
.ls__photo { display: grid; place-items: center; background: linear-gradient(145deg, #E6F4EE, #CDE7DD); }
.ls__photo svg { width: 58%; height: 58%; stroke: var(--green-2); stroke-width: 1.4; }
.ls__name { font-size: .58em; line-height: 1.2; }
.ls__price { font-size: .7em; font-weight: 800; color: var(--green-2); }
.ls__btn { margin-top: auto; text-align: center; font-size: .55em; font-weight: 700; padding: .5em; border-radius: .6em; background: var(--green); color: #fff; }
.ls__heat { position: absolute; border-radius: 50%; filter: blur(.5em); mix-blend-mode: multiply; pointer-events: none; }
.ls__heat--1 { left: 5%; top: 8%; width: 90%; height: 45%; background: radial-gradient(closest-side, rgba(229, 72, 77, .7), rgba(245, 180, 60, .4), transparent); }
.ls__heat--2 { left: 15%; bottom: 2%; width: 70%; height: 18%; background: radial-gradient(closest-side, rgba(80, 140, 230, .45), transparent); }
.ls__note {
  position: absolute; right: 5%; width: 50%; display: flex; gap: .6em; align-items: flex-start;
  padding: .7em .8em; border-radius: .9em; font-size: .8em; line-height: 1.3;
  box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .6);
}
.ls__note small { display: block; font-size: .72em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; margin-bottom: .15em; }
.ls__note--bad { top: 16%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ls__note--ok { top: 50%; background: #fff; color: var(--ink); }
.ls__dot { flex: none; width: .7em; height: .7em; margin-top: .35em; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 .25em rgba(229, 72, 77, .25); }
.ls__note--ok .ls__dot { background: var(--ok, #1F9D6E); box-shadow: 0 0 0 .25em rgba(31, 157, 110, .2); }

/* 3. AI + спеціаліст: ланцюжок AI → людина → результат */
.lux-ai { display: flex; align-items: center; padding-bottom: 10%; }
.la__flow { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .55em; position: relative; }
.la__flow::before { content: ""; position: absolute; left: 1.35em; top: 1.4em; bottom: 1.4em; width: .14em; border-radius: 1em; background: linear-gradient(180deg, #7C6CF0, #3FBF97); opacity: .7; }
.la__flow li { position: relative; display: grid; grid-template-columns: 2.7em 1fr; gap: .7em; align-items: center;
  padding: .5em .8em .5em 0; }
.la__flow p { margin: 0; padding: .55em .8em; border-radius: .9em; font-size: .84em; line-height: 1.3; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.la__flow small { display: block; font-size: .68em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: .15em; }
.la__node { position: relative; z-index: 1; width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; object-fit: cover; }
.la__node--ai { background: conic-gradient(from 200deg, #3FBF97, #079A7A, #7C6CF0, #3FBF97); box-shadow: 0 0 1.2em rgba(124, 108, 240, .55); }
.la__node--ai svg { stroke: #fff; fill: rgba(255, 255, 255, .25); }
.la__node--me { background: var(--green); box-shadow: 0 0 0 .14em #0E1716, 0 0 0 .28em rgba(63, 191, 151, .7); }
.la__node--ok { background: #fff; box-shadow: 0 0 1.2em rgba(63, 191, 151, .6); }
.la__node--ok svg { stroke: var(--green); stroke-width: 2.4; }
.la__flow .is-result p { background: #fff; color: var(--ink); border-color: transparent; font-weight: 600; }
.la__flow .is-result small { color: var(--green); }

/* 2б. Теплова карта до / після */
.lux-heat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3%; padding: 4% 7% 5%; isolation: isolate; }
.lux-heat .vis__tag { top: 4%; bottom: auto; }
.hm__col { position: relative; display: grid; gap: .35em; justify-items: center; }
.hm__label { font-size: .66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hm__col--after .hm__label { color: #9FE3CB; }
.hm__page { position: relative; width: 88%; aspect-ratio: 3 / 4.3; border-radius: 1.15em; background: #fff; overflow: hidden;
  border: .3em solid #050B0A; box-shadow: 0 1.2em 2.2em -1em rgba(0, 0, 0, .8), inset 0 0 0 .06em #2a3331; padding-top: 1.1em !important; }
.hm__page::before { content: ""; position: absolute; left: 50%; top: .3em; width: 32%; height: .45em; transform: translateX(-50%); border-radius: 1em; background: #050B0A; }
.hm__col--before .hm__page { transform: scale(.93) rotate(-3deg); filter: saturate(.75) brightness(.92); }
.hm__col--after .hm__page { transform: scale(1.03) rotate(2deg);
  box-shadow: 0 0 0 .1em rgba(63, 191, 151, .55), 0 0 2.4em rgba(63, 191, 151, .45), 0 1.4em 2.4em -1em rgba(0, 0, 0, .8); }
.hm__col--after::before { content: ""; position: absolute; inset: -10% -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 191, 151, .35), transparent); }
.hm__kpi { position: relative; z-index: 3; margin-top: -1.3em; }
.hm__page { display: flex; flex-direction: column; gap: .3em; padding: .55em; color: var(--ink); }
.hm__prod { display: grid; place-items: center; height: 38%; border-radius: .5em; background: linear-gradient(145deg, #F4E7DA, #E7D2BE); }
.hm__prod svg { width: 42%; height: 70%; fill: rgba(255, 255, 255, .55); stroke: #9C6B45; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.hm__name { font-size: .58em; line-height: 1.1; }
.hm__price { font-size: .62em; font-weight: 800; color: var(--green-2); }
.hm__price em { font-style: normal; font-size: .75em; font-weight: 400; color: #E0A526; letter-spacing: -.05em; }
.hm__buy { order: 0; text-align: center; font-size: .52em; font-weight: 700; color: #fff; background: var(--green); border-radius: .45em; padding: .45em; position: relative; z-index: 1; }
.hm__buy.low { order: 3; margin-top: auto; }
.hm__desc { font-size: .44em; color: var(--muted); }
/* «Гарячі» точки кліків: чіткі кола без розмиття */
.hm__spot { position: absolute; z-index: 2; width: 1.5em; height: 1.5em; margin: -.75em 0 0 -.75em; border-radius: 50%;
  background: radial-gradient(circle, #E5484D 0 22%, rgba(229, 72, 77, .55) 23% 45%, rgba(245, 180, 60, .4) 46% 70%, transparent 71%); }
.is-before .s1 { left: 50%; top: 20%; } .is-before .s2 { left: 30%; top: 28%; width: 1.1em; height: 1.1em; } .is-before .s3 { left: 70%; top: 58%; width: .9em; height: .9em; opacity: .7; }
.is-after .s1 { left: 56%; top: 68%; width: 2em; height: 2em; margin: -1em 0 0 -1em; } .is-after .s2 { left: 30%; top: 71%; } .is-after .s3 { left: 60%; top: 22%; width: .9em; height: .9em; opacity: .7; }
.is-after .hm__buy { box-shadow: 0 0 0 .15em rgba(63, 191, 151, .6); }
.hm__kpi { display: grid; text-align: center; padding: .3em .7em; border-radius: .7em; font-size: .9em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hm__kpi small { font-size: .5em; font-weight: 600; letter-spacing: .04em; opacity: .75; }
.hm__kpi--bad { background: #2A1517; color: #FF8C8F; box-shadow: 0 0 0 .08em rgba(229, 72, 77, .45); }
.hm__kpi--ok { background: #fff; color: var(--green-2); box-shadow: 0 0 1.4em rgba(63, 191, 151, .45); }
.hm__arrow { display: grid; justify-items: center; gap: .2em; }
.hm__arrow svg { width: 1.6em; height: 1.6em; fill: none; stroke: #9FE3CB; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm__arrow b { font-size: .72em; color: #9FE3CB; }

/* 3б. AI-сфера */
.lux-orb { position: relative; }
.orb__glow { position: absolute; left: 50%; top: 44%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 210deg, #3FBF97, #079A7A, #7C6CF0, #3FBF97); filter: blur(2.2em); opacity: .55; }
.orb__ring { position: absolute; left: 50%; top: 44%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed rgba(159, 227, 203, .45); }
.orb__core { position: absolute; left: 50%; top: 44%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #CFF5E6, #3FBF97 45%, #0E5C51 100%);
  box-shadow: 0 0 2em rgba(63, 191, 151, .7), inset 0 0 0 .12em rgba(255, 255, 255, .35); }
.orb__core svg { width: 50%; height: 50%; fill: rgba(255, 255, 255, .9); stroke: #fff; stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) { .orb__ring { animation: orb-spin 18s linear infinite; } }
@keyframes orb-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orb__chip { position: absolute; font-size: .72em; font-weight: 600; white-space: nowrap; padding: .4em .75em; border-radius: 1em;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.orb__chip.c1 { left: 5%; top: 12%; } .orb__chip.c2 { right: 5%; top: 18%; }
.orb__chip.c3 { left: 3%; top: 58%; } .orb__chip.c4 { right: 4%; top: 52%; }
.orb__me { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; align-items: center; gap: .55em; white-space: nowrap;
  padding: .35em .9em .35em .35em; border-radius: 2em; background: #fff; color: var(--ink); font-size: .8em; font-weight: 700; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .6); }
.orb__me img { width: 2.2em; height: 2.2em; border-radius: 50%; object-fit: cover; background: var(--green); }
.orb__me small { display: block; font-size: .72em; font-weight: 600; color: var(--muted); }

/* 1. Товари */
.vp__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5em; }
.vp__head b { font-size: .95em; } .vp__head span { font-size: .7em; color: var(--muted); }
.vp__row { display: grid; grid-template-columns: 1.6em 1fr auto auto; align-items: center; gap: .5em; padding: .38em .5em; margin-top: .3em; border-radius: .55em; background: #fff; font-size: .82em; }
.vp__row i { width: 1.6em; height: 1.6em; border-radius: .35em; background: var(--c); }
.vp__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp__row b { font-variant-numeric: tabular-nums; }
.vp__row em { font-style: normal; font-size: .72em; font-weight: 700; color: #fff; background: var(--green); padding: .15em .55em; border-radius: 1em; }
.vp__row.is-top { box-shadow: inset 0 0 0 .1em rgba(37, 121, 101, .45); }
.vp__row.is-top b { color: var(--green-2); }
.vp__row.is-low b { color: #C2372E; }

/* 2. Сайт і Clarity */
.vis-site { display: grid; grid-template-columns: 44% 1fr; gap: 5%; align-items: center; }
.vs__page { position: relative; height: 100%; border-radius: .8em; background: #fff; padding: .6em; overflow: hidden; box-shadow: 0 .6em 1.4em -.8em rgba(0, 0, 0, .3); }
.vs__img { height: 42%; border-radius: .4em; background: linear-gradient(135deg, #D9E3E0, #C3D2CD); }
.vs__line { height: .45em; border-radius: .3em; background: #E3E8E7; margin-top: .45em; }
.vs__line.w70 { width: 70%; } .vs__line.w40 { width: 40%; } .vs__line.w90 { width: 90%; } .vs__line.w60 { width: 60%; }
.vs__btn { margin-top: .6em; padding: .35em; border-radius: .4em; background: var(--green); color: #fff; font-size: .6em; font-weight: 700; text-align: center; }
.heat { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(.4em); }
.heat.h1 { left: 15%; top: 12%; width: 70%; height: 30%; background: radial-gradient(closest-side, rgba(229, 72, 77, .75), rgba(245, 180, 60, .45), transparent); }
.heat.h2 { left: 25%; top: 46%; width: 45%; height: 14%; background: radial-gradient(closest-side, rgba(245, 180, 60, .6), transparent); }
.heat.h3 { left: 10%; top: 70%; width: 60%; height: 18%; background: radial-gradient(closest-side, rgba(100, 160, 220, .45), transparent); }
.vs__notes { display: grid; gap: .5em; }
.vs__notes div { font-size: .78em; line-height: 1.3; padding: .55em .7em; border-radius: .7em; background: #fff; box-shadow: 0 .4em 1em -.6em rgba(0, 0, 0, .3); }
.vs__notes b { color: #C2372E; }
.vs__notes .ok { background: var(--green); color: #fff; font-weight: 600; }

/* Справжні скріни у стилі «віяла» */
.vis-shots { position: relative; }
.shot { position: absolute; border-radius: .7em; border: .22em solid #fff; background: #fff; box-shadow: 0 1em 2em -1em rgba(14, 23, 22, .45); }
.shot--main { left: 4%; top: 14%; width: 84%; transform: rotate(-4deg); }
.shot--zoom { right: 5%; bottom: 6%; width: 38%; transform: rotate(5deg); z-index: 2; }
.shot--single { left: 5%; top: 16%; width: 90%; transform: rotate(-3deg); }
.shot--team { left: 7%; top: 8%; width: 86%; aspect-ratio: 4 / 3; object-fit: cover; transform: rotate(-3deg); }
.shot__chip { position: absolute; right: 5%; top: 6%; z-index: 3; display: inline-flex; align-items: center; gap: .35em; font-size: .72em; font-weight: 700;
  padding: .45em .85em; border-radius: 1em; background: #fff; color: var(--ink); box-shadow: 0 .6em 1.2em -.6em rgba(14, 23, 22, .5); transform: rotate(4deg); }
.shot__spark { color: #6B5BD6; }
.vis-cro { position: relative; }
.cro { position: absolute; margin: 0; padding: .35em; border-radius: .7em; background: #fff; box-shadow: 0 1em 2em -1em rgba(14, 23, 22, .45); }
.cro img { display: block; width: 100%; height: auto; border-radius: .45em; }
.cro--before { left: 4%; top: 12%; width: 50%; transform: rotate(-5deg); }
.cro--after { right: 4%; top: 6%; width: 44%; transform: rotate(4deg); z-index: 2; box-shadow: 0 0 0 .15em rgba(63, 191, 151, .7), 0 1.2em 2.2em -1em rgba(14, 23, 22, .5); }
.cro figcaption { margin-top: .3em; font-size: .62em; font-weight: 700; color: #C2372E; text-align: center; }
.cro__lbl { position: absolute; top: -.7em; left: .6em; font-size: .6em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25em .6em; border-radius: 1em; color: #fff; }
.cro__lbl--bad { background: #E5484D; }
.cro__lbl--ok { background: var(--green); }
.shot__tag { position: absolute; left: 6%; bottom: 8%; z-index: 3; font-size: .7em; font-weight: 700; padding: .4em .8em; border-radius: 1em; background: var(--green); color: #fff; box-shadow: 0 .5em 1em -.5em rgba(14, 23, 22, .5); }
/* 3. Креативи (віяло) */
.vis-cr { display: grid; place-items: center; }
.vis-cr img { position: absolute; top: 9%; width: 32%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: .7em; box-shadow: 0 .8em 1.6em -.8em rgba(0, 0, 0, .45); border: .2em solid #fff; }
.vis-cr img:nth-child(1) { left: 13%; transform: rotate(-9deg); }
.vis-cr img:nth-child(2) { left: 34%; top: 5%; z-index: 2; }
.vis-cr img:nth-child(3) { left: 55%; transform: rotate(9deg); }

/* 4. AI + спеціаліст */
.vis-ai { display: flex; flex-direction: column; justify-content: center; gap: .7em; }
.ai__msg { max-width: 86%; padding: .6em .8em; border-radius: 1em; font-size: .82em; line-height: 1.35; box-shadow: 0 .4em 1em -.6em rgba(0, 0, 0, .3); }
.ai__msg p { margin: .2em 0 0; color: inherit; font-size: 1em; }
.ai__who { font-size: .72em; font-weight: 700; letter-spacing: .02em; }
.ai__msg--bot { background: #fff; border-bottom-left-radius: .3em; }
.ai__msg--bot .ai__who { color: #6B5BD6; }
.ai__msg--human { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: .3em; }
.ai__msg--human .ai__who { color: var(--mint-2); }

/* ---------- 4. Instagram-сторінки (стрічка, що їде сама) ---------- */
.brands { background: var(--ink); color: #fff; padding-bottom: 48px; }
.brands__viewport { margin: 24px 0 28px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.brands__track img { width: 250px; height: auto; border-radius: 18px; }
.brands__viewport:hover .brands__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .brands__track { animation: none; } .brands__viewport { overflow-x: auto; } }

/* ---------- 5. Послуги ---------- */
.services { background: var(--paper); }
.tabs { display: flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 16px; background: rgba(14, 23, 22, .07); }
.tabs button {
  flex: 1; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 600;
  transition: background-color .25s var(--ease-out), color .2s;
}
.tabs button[aria-selected="true"] { background: var(--green); color: var(--white); }
.panel { margin-top: 20px; display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel .45s var(--ease-out); }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.phone {
  aspect-ratio: 9 / 19; border-radius: 26px; overflow: hidden;
  border: 5px solid var(--ink); background: var(--ink);
  box-shadow: 0 18px 30px -16px rgba(14, 23, 22, .55);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.panel h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.kpi { margin: 24px 0 0; padding: 14px 16px; border-radius: var(--radius-s); background: var(--mint); color: var(--ink-2); }
.kpi b { color: var(--ink); }

/* ---------- 5б. Реальні кабінети ---------- */
.cabs { background: var(--white); padding-bottom: 44px; }
.cab { width: min(86vw, 380px); padding: 14px; border-radius: var(--radius); background: var(--paper); display: grid; gap: 12px; align-content: start; }
.cab header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.cab__plat { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
.cab__plat--meta { background: #0866FF; }
.cab__plat--google { background: #1E8E3E; }
.cab__shot { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -16px rgba(14, 23, 22, .45); }
.cab__shot img { width: 100%; height: auto; }
.cab dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cab dl > div { padding: 8px 10px; border-radius: 12px; background: var(--white); }
.cab dt { font-size: 11.5px; color: var(--muted); }
.cab dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--green-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 6. Фінальний CTA ---------- */
.final {
  position: relative; overflow: hidden; color: var(--white); padding-bottom: 0;
  background:
    radial-gradient(90% 60% at 100% 100%, rgba(159, 211, 193, .22), transparent 60%),
    linear-gradient(165deg, var(--green-hi), var(--green-deep) 60%, #0A3F38);
}
.final__grid { display: grid; gap: 0; }
.final h2 { font-size: clamp(30px, 8.4vw, 46px); }
.gets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gets li { padding: 12px 10px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.gets svg { width: 24px; height: 24px; color: var(--mint-2); }
.gets b { display: block; margin-top: 8px; font-size: 15px; letter-spacing: -0.01em; }
.gets span span, .gets li > span { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.gets li > span b { color: var(--white); }
.steps__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.steps__list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-weight: 700; }
.steps__list h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 1px; }
.steps__list p { margin-top: 2px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.price { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price > div { padding: 12px 14px; border-radius: var(--radius-s); background: rgba(14, 23, 22, .22); }
.price dt { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.price dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.btn--big { margin-top: 20px; min-height: 62px; font-size: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .btn--big { animation: nudge 3.2s var(--ease-out) 1.5s infinite; }
  @keyframes nudge { 0%, 82%, 100% { transform: none; } 88% { transform: translateY(-3px); } 94% { transform: translateY(0); } }
}
.final__note { margin-top: 12px; font-size: 13.5px; text-align: center; color: rgba(255, 255, 255, .8); }
.final__person { position: relative; margin: 18px 0 0; }
.final__photo { width: 82%; max-width: 360px; margin: 0 -8px 0 auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.final__person figcaption {
  position: absolute; left: 0; bottom: 28px; padding: 10px 14px; border-radius: 14px;
  background: var(--white); color: var(--muted); font-size: 13px; line-height: 1.3;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}
.final__person figcaption b { display: block; color: var(--ink); font-size: 15px; }

.foot { background: var(--white); padding: 34px 0 calc(100px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot__logo { width: 136px; height: auto; }
.foot__about { margin-top: 12px; max-width: 30em; }
.foot__contacts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.foot__contacts a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.foot__contacts svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot__legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }


/* ---------- Липка кнопка (телефон) ---------- */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  border-radius: 16px; background: var(--green); color: var(--white);
  font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(14, 23, 22, .55);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.sticky.is-on { transform: none; }
.sticky:active { transform: scale(.98); }

/* ---------- Перегляд кейсу на весь екран ---------- */
.zoom { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; }
.zoom::backdrop { background: rgba(8, 20, 18, .88); }
.zoom[open] { display: grid; place-items: center; overflow: auto; }
.zoom img { width: min(100%, 520px); margin: 64px auto 24px; border-radius: 16px; }
.zoom__close {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); cursor: pointer;
}
.zoom__close svg { width: 20px; height: 20px; }

/* ---------- Більші екрани (другорядно) ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  section { padding: 88px 0; }
  .hero { padding: 24px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; column-gap: 56px; row-gap: 24px; }
  .hero__top { grid-column: 1 / -1; }
  .hero__copy, .hero__media, .proof { grid-column: 1; }
  .hero__media { margin: -20px 0 -20px; max-width: 540px; }
  .lead { grid-column: 2; grid-row: 2 / span 3; align-self: start; padding: 28px; }
  .hero__lead { font-size: 18px; }
  .rail { padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); }
  .case { width: 280px; }
  .brands__track img { width: 320px; }
  .slide { width: 340px; }
  .final__grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .final__copy { padding-bottom: 88px; }
  .final .btn { width: auto; padding: 0 32px; }
  .final__note { text-align: left; }
  .sticky { display: none; }
  .foot { padding-bottom: 22px; }
}

/* ---------- 6. Квіз ---------- */
.quiz { padding-bottom: 0; }
.quiz h2 { font-size: clamp(28px, 8vw, 44px); }
.quiz__lead { margin-top: 10px; color: rgba(255, 255, 255, .85); }
.qz { margin-top: 22px; padding: 18px; border-radius: var(--radius); background: rgba(14, 23, 22, .28); border: 1px solid rgba(255, 255, 255, .14); }
.qz__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.qz__bar i { display: block; height: 100%; width: 25%; border-radius: inherit; background: #9FE3CB; transition: width .45s var(--ease-out); }
.qz__step { margin-top: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.qz__q { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.qz__q[hidden] { display: none; }
.qz__q:not([hidden]) { animation: panel .4s var(--ease-out); }
.qz__q legend { padding: 0; margin-bottom: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.qz__text { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--radius-s); border: 1.5px solid transparent; font: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.qz__text:focus { outline: none; border-color: #9FE3CB; }
.qz__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qz__chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; cursor: pointer; }
.qz__chips button[aria-pressed="true"] { background: #fff; color: var(--green-2); border-color: #fff; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-s);
  background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; transition: box-shadow .2s, transform .15s var(--ease-out); }
.opt:active { transform: scale(.98); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B8C2C0; transition: border-color .2s, background-color .2s; }
.opt:has(input:checked) { box-shadow: 0 0 0 2px #9FE3CB; }
.opt:has(input:checked)::after { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.opt:focus-within { outline: 2px solid #9FE3CB; outline-offset: 2px; }
.field--dark > span { color: rgba(255, 255, 255, .8); }
.field--dark input { background: #fff; }
.field--dark .field__err { color: #FFD1CF; }
.qz__nav { display: flex; gap: 8px; margin-top: 16px; }
.qz__back { flex: none; width: 56px; height: 56px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.qz__back svg { width: 22px; height: 22px; }
.qz__back[hidden], .qz [hidden] { display: none !important; }
.qz__next { flex: 1; }
.qz__next[disabled] { opacity: .5; }
.qz__note { margin-top: 12px; font-size: 12.5px; text-align: center; color: rgba(255, 255, 255, .7); }
.qz__done { text-align: center; padding: 10px 0 6px; }
.qz__done svg { width: 56px; height: 56px; margin: 0 auto 12px; }
.qz__done h3 { font-size: 22px; }
.qz__done p { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.quiz__person { margin-top: 12px; }
