/* Макет нової сторінки кейсу maxicolabs.com (З-Б15, 25.09.2026).
   Світ успадковано з живого сайту, значення зняті з maxicolabs.com:
   синя сцена #1209C5 + фон maxico-hero-blue-v2, лайм #B8F700 / текст на лаймі #08043F,
   Geist для всього тексту, заголовки з щільним трекінгом, скляна шапка-пігулка,
   темні секції #07102F, світлі #FFFFFF / #F7F8FA, підвал #F2F4F7.
   Кейс приносить лише --accent (світіння за пристроями) і свої екрани.
   Одна сильна річ на сторінці: живий продукт на сцені, що перетинає край синього блоку. */

:root {
  --stage: #1209c5;
  --lime: #b8f700;
  --on-lime: #08043f;
  --navy: #07102f;
  --ink: #15171b;
  --text: #5b616c;
  --mute: #656b76;
  --paper: #ffffff;
  --mist: #f7f8fa;
  --foot: #f2f4f7;
  --line: rgba(21, 23, 27, 0.09);
  --link: #0a0393;
  --accent: #6d28d9;
  --accent-soft: rgba(109, 40, 217, 0.42);
  --shell: 1180px;
  --r-card: 22px;
  --r-frame: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-device: 0 44px 90px -28px rgba(8, 4, 63, 0.55), 0 12px 30px -12px rgba(8, 4, 63, 0.3);
  --shadow-soft: 0 18px 40px -22px rgba(18, 36, 90, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lime); color: var(--on-lime); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 10px; }
.on-dark :focus-visible, .stage :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { margin: 0; font-weight: 480; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.shell { width: min(var(--shell), 100% - 40px); margin-inline: auto; }
.icon { width: 18px; height: 18px; stroke-width: 2; flex: none; }

/* ── Шапка (копія сайту) ─────────────────────────────────────────── */
.hdr { position: fixed; z-index: 40; top: 16px; left: 0; right: 0; padding: 0 18px; pointer-events: none; }
.hdr__pill {
  pointer-events: auto;
  width: min(1180px, 100%); height: 60px; margin: 0 auto; padding: 5px 5px 5px 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(245, 251, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 18px 50px rgba(18, 73, 150, 0.12), inset 0 0 0 1px rgba(17, 80, 178, 0.05);
}
.hdr__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 15px; color: var(--on-lime); letter-spacing: -0.02em; margin-right: auto; }
.hdr__logo img { width: 27px; height: auto; }
.hdr__nav { display: flex; gap: 2px; }
.hdr__nav a { height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #3a3f55; text-decoration: none; transition: background 0.2s; }
.hdr__nav a:hover { background: rgba(21, 92, 216, 0.06); }
.hdr__nav a[aria-current] { color: var(--link); background: rgba(21, 92, 216, 0.1); }
.hdr__cta { margin-left: 8px; }
.hdr__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(21, 92, 216, 0.1); color: var(--link); align-items: center; justify-content: center; }

/* ── Кнопки ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 24px -12px rgba(120, 170, 0, 0.9); }
.btn--lime:hover { background: #c6ff1f; }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { height: 44px; padding: 0 16px; font-size: 12px; }

/* ── Сцена: синій блок сайту + живий продукт, що виходить за його край ── */
/* Синій блок закінчується на 45% висоти пристрою: продукт перетинає його край.
   Висота пристрою рахується з ширини: --dev-w × --dev-ratio + панель браузера. */
.stage {
  --dev-w: calc(min(1180px, 100vw - 40px) * 0.88); --dev-ratio: 0.625; --dev-bar: 46px;
  position: relative; color: #fff; padding: 132px 0 0; isolation: isolate; overflow-x: clip;
}
.stage--photo { --dev-w: min(1180px, 100vw - 40px); --dev-ratio: 0.75; --dev-bar: 0px; }
.stage::before {
  content: ""; position: absolute; z-index: -2;
  inset: 8px 8px calc((var(--dev-w) * var(--dev-ratio) + var(--dev-bar)) * 0.45);
  border-radius: 34px;
  background: var(--stage) url("img/hero-blue.webp") center / cover no-repeat;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.66); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: rgba(255, 255, 255, 0.78); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.stage__grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.stage h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.04em; max-width: 21ch; }
.stage__lead { font-size: 18px; line-height: 1.55; color: rgba(236, 240, 255, 0.84); max-width: 46ch; }
.stage__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.showcase { position: relative; margin-top: 64px; }
.showcase::before {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 8%; bottom: 20%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(40px);
}
@media (prefers-reduced-motion: no-preference) {
  .showcase .browser, .showcase .photo { animation: rise 0.95s var(--ease) 0.1s both; }
  .showcase .phone { animation: rise 0.95s var(--ease) 0.28s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(46px) scale(0.975); } }

/* Рамка браузера з живим екраном */
.browser { position: relative; border-radius: var(--r-frame); background: #fff; overflow: hidden; box-shadow: var(--shadow-device); }
.browser__bar { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; background: #eef0f6; border-bottom: 1px solid var(--line); color: #4b5163; font-size: 12.5px; }
.browser__url { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: #5a6072; }
.browser__url .icon { width: 13px; height: 13px; }
.browser__open { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--link); }
.browser__open:hover { background: rgba(21, 92, 216, 0.08); }
.browser__open .icon { width: 15px; height: 15px; }

/* Живий екран масштабується з 1440×900 під ширину рамки (JS ставить --s) */
.fit { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--w) / var(--h); }
.fit iframe {
  position: absolute; top: 0; left: 0; border: 0;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform: scale(var(--s, 0.5)); transform-origin: 0 0;
  background: transparent; transition: opacity 0.35s ease;
}
.fit iframe.is-loading { opacity: 0; }

.phone { position: absolute; width: 27%; max-width: 312px; right: -3%; bottom: -8%; filter: drop-shadow(0 30px 40px rgba(8, 4, 63, 0.35)); }
.showcase--duo .browser { width: 88%; }
.showcase--duo .phone { width: 25%; right: 0; bottom: -9%; }

/* Головний кадр для кейсів без демо */
.photo { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-device); background: #20232b; }
.photo img { width: 100%; }

/* ── Паспорт кейсу ─────────────────────────────────────────────── */
.passport { margin-top: 110px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.passport > div { padding: 26px 26px 28px; }
.passport > div + div { border-left: 1px solid var(--line); }
.passport > div:first-child { padding-left: 0; }
.passport dt { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.passport dd { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* ── Заголовки секцій ─────────────────────────────────────────── */
.section { padding: 120px 0; }
.section--mist { background: var(--mist); }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.04em; max-width: 20ch; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 56ch; }

/* ── Було → Стало ──────────────────────────────────────────────── */
.shift { margin-top: 56px; }
.shift__head, .shift__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; column-gap: 20px; }
.shift__head { font-size: 13px; color: var(--mute); padding-bottom: 14px; }
.shift__head span:last-child { grid-column: 3; }
.shift__row { padding: 26px 0; border-top: 1px solid var(--line); }
.shift__was { font-size: 19px; line-height: 1.45; color: var(--text); }
.shift__now { font-size: 19px; line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.shift__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--link); justify-self: center; }
.shift__arrow .icon { width: 17px; height: 17px; }

/* ── Як це працює: пристрій стоїть, кроки прокручуються ────────── */
.flow { background: var(--navy); color: #fff; padding: 120px 0 80px; overflow-x: clip; }
.flow .h2 { color: #fff; max-width: 24ch; }
.flow .lede { color: rgba(221, 227, 245, 0.72); }
.flow__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; margin-top: 64px; }
.flow__stick { position: sticky; top: 104px; height: calc(100vh - 150px); max-height: 720px; display: grid; place-items: center; }
.flow__devices { position: relative; width: 100%; }
.flow__devices .browser, .flow__devices .phone { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), filter 0.45s; }
.flow__devices .phone { right: -6%; bottom: -14%; width: 36%; }
.flow__devices[data-on="browser"] .phone { opacity: 0; transform: translateX(28px) scale(0.96); pointer-events: none; }
.flow__devices[data-on="phone"] .browser { opacity: 0.28; transform: scale(0.965); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; color: rgba(221, 227, 245, 0.42); transition: color 0.4s; }
.step.is-active { color: #fff; }
.step__no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 650; border: 1px solid rgba(255, 255, 255, 0.22); margin-bottom: 18px; transition: background 0.4s, color 0.4s, border-color 0.4s; font-variant-numeric: tabular-nums; }
.step.is-active .step__no { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.step h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.035em; }
.step p { margin-top: 12px; font-size: 17px; line-height: 1.6; max-width: 40ch; }
.step.is-active p { color: rgba(221, 227, 245, 0.8); }

/* ── Екрани (для кейсів без демо) ─────────────────────────────── */
.shots { margin-top: 64px; display: grid; gap: 88px; }
.shot img { border-radius: var(--r-frame); border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #fff; }
.shot figcaption, .shot__text { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 44ch; }
.shot__text strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 10px; }
.shot--split { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 56px; align-items: center; }
.shot--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.shot--pair figure { margin: 0; display: grid; gap: 18px; }
.shot--pair figcaption { font-size: 16px; }
.shot--page { display: grid; grid-template-columns: 427px minmax(0, 1fr); gap: 64px; align-items: start; }
.scroller { height: 640px; overflow-y: auto; border-radius: var(--r-frame); border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #fff; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7ccd8 transparent; }
.scroller img { width: 401px; border: 0; border-radius: 0; box-shadow: none; }
.palette { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { display: grid; gap: 8px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.swatch i { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); }

/* ── Повний опис (згорнутий, для пошуку) ───────────────────────── */
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 30px 0; cursor: pointer; font-size: 22px; letter-spacing: -0.03em; font-weight: 500; }
.more summary::-webkit-details-marker { display: none; }
.more summary .icon { margin-left: auto; width: 22px; height: 22px; transition: transform 0.35s var(--ease); color: var(--link); }
.more[open] summary .icon { transform: rotate(45deg); }
.more__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0 0 44px; }
.more__body h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.more__body p { font-size: 15.5px; line-height: 1.7; color: var(--text); }

/* ── Наступний кейс + дія ─────────────────────────────────────── */
.next { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: 28px; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
.next__img { overflow: hidden; aspect-ratio: 16 / 11; background: #e9ebf0; }
.next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.next:hover .next__img img { transform: scale(1.035); }
.next__body { padding: 48px; display: flex; flex-direction: column; }
.next__label { font-size: 14px; color: rgba(221, 227, 245, 0.66); }
.next__title { margin-top: 14px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 480; }
.next__meta { margin-top: 14px; font-size: 15px; color: rgba(221, 227, 245, 0.66); }
.next__go { margin-top: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); transition: transform 0.4s var(--ease); }
.next:hover .next__go { transform: translateX(6px); }
.next__go .icon { width: 24px; height: 24px; }
.ask { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 40px; border-radius: 28px; background: var(--mist); }
.ask p { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 480; max-width: 30ch; }

/* ── Форма збоку ───────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(7, 16, 47, 0.46); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer { position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); background: #fff; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 18px; transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(7, 16, 47, 0.45); }
body.has-drawer .scrim { opacity: 1; pointer-events: auto; }
body.has-drawer .drawer { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
.drawer__top { display: flex; align-items: start; gap: 16px; }
.drawer h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.035em; }
.drawer__close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); flex: none; }
.drawer p.hint { font-size: 15px; color: var(--text); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: #394050; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 1px solid #d9dde6; background: #f7f8fa; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #767d8a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--link); outline-offset: 1px; background: #fff; }
.check { display: flex; gap: 12px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--link); flex: none; }
.drawer .btn { width: 100%; }
.note { font-size: 14px; color: #3d6200; background: #f1fbd6; border-radius: 12px; padding: 12px 14px; display: none; }
.note.is-on { display: block; }

/* ── Підвал (спрощена копія сайту) ─────────────────────────────── */
.foot { margin-top: 0; background: var(--foot); color: #6b707a; padding: 56px 0 22px; font-size: 13px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--on-lime); font-size: 15px; }
.foot__brand img { width: 27px; }
.foot p { margin-top: 14px; max-width: 30ch; line-height: 1.55; }
.foot h4 { margin: 0 0 12px; font-size: 12px; color: #394050; font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #485871; text-decoration: none; }
.foot a:hover { color: var(--link); }
.foot__bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Планшет ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
  .stage__grid { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .flow__grid { grid-template-columns: 1fr; gap: 0; }
  .flow__stick { top: 88px; height: auto; max-height: none; padding: 16px 0 28px; background: linear-gradient(var(--navy) 88%, transparent); z-index: 2; }
  .flow__devices { width: min(560px, 100%); }
  .step { min-height: 54vh; }
  .shot--split, .shot--page { grid-template-columns: 1fr; gap: 28px; }
  .more__body { grid-template-columns: 1fr; gap: 26px; }
  .next { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Телефон ───────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .hdr { top: 10px; padding: 0 10px; }
  .hdr__cta { display: none; }
  .stage { padding-top: 104px; --dev-w: calc(100vw - 32px); --dev-bar: 38px; }
  .stage--photo { --dev-bar: 0px; }
  .stage::before { left: 6px; right: 6px; top: 6px; border-radius: 26px; }
  .showcase--duo .browser { width: 100%; }
  .showcase--duo .phone { width: 40%; right: 0; bottom: -16%; }
  .stage h1 { font-size: 32px; letter-spacing: -0.035em; }
  .stage__lead { font-size: 16px; }
  .stage__actions { flex-direction: column; }
  .stage__actions .btn { width: 100%; }
  .showcase { margin-top: 40px; }
  .browser__bar { height: 38px; font-size: 11.5px; }
  .browser__url { display: none; }
  .phone { width: 42%; right: -2%; bottom: -12%; }
  .passport { grid-template-columns: 1fr; margin-top: 110px; border-bottom: 0; }
  .passport > div, .passport > div:first-child { padding: 18px 0; }
  .passport > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 84px 0; }
  .shift__head { display: none; }
  .shift__row { grid-template-columns: 1fr; row-gap: 10px; padding: 22px 0; }
  .shift__arrow { justify-self: start; width: 32px; height: 32px; transform: rotate(90deg); }
  .shift__was, .shift__now { font-size: 17px; }
  .flow { padding: 84px 0 40px; }
  .flow__stick { top: 76px; }
  .flow__devices .phone { width: 40%; right: 0; }
  .flow__devices[data-on="phone"] .browser { opacity: 0.18; }
  .step { min-height: 46vh; }
  .step h3 { font-size: 22px; }
  .shot--pair { grid-template-columns: 1fr; gap: 44px; }
  .scroller { height: 520px; }
  .scroller img { width: 100%; }
  .shot--page { grid-template-columns: 1fr; }
  .next__body { padding: 30px; }
  .ask { padding: 26px; }
  .ask .btn { width: 100%; }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 92dvh; transform: translateY(calc(100% + 24px)); }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ── v2 після фідбеку 25.09 ──────────────────────────────────────── */
/* Було → Стало: мітки-пігулки видно одразу, у кожному рядку свій маркер */
.tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.tag .icon { width: 17px; height: 17px; }
.tag--was { background: #e9ebf0; color: #4b5160; }
.tag--now { background: var(--lime); color: var(--on-lime); }
.shift__head { padding-bottom: 18px; }
.shift__head .tag:last-child { grid-column: 3; justify-self: start; }
.shift__was, .shift__now { display: flex; gap: 12px; align-items: flex-start; }
.shift__was::before, .shift__now::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #e3e6ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.shift__now::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308043f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.shift__was { text-decoration: line-through; text-decoration-color: rgba(91, 97, 108, 0.35); text-decoration-thickness: 1px; }
.shift__row { background: transparent; transition: background 0.3s; }

/* Як це працює: один телефон, екрани змінюються всередині, над ним підпис «де це» */
.handset { position: relative; width: 344px; height: 716px; margin: 0 auto; transform-origin: top center; }
.handset__screen { position: absolute; inset: -42px -23px; }
.handset__screen iframe { position: absolute; inset: 0; width: 390px; height: 800px; border: 0; background: transparent; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.handset__screen iframe.is-out { opacity: 0; transform: translateY(-18px) scale(0.97); }
.handset__screen iframe.is-in { opacity: 0; transform: translateY(26px) scale(0.98); }
.where { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 48px; }
.where span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 600; transition: opacity 0.3s; }
.where .icon { width: 16px; height: 16px; color: var(--lime); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); transition: width 0.4s var(--ease), background 0.4s; }
.dots i.on { width: 28px; background: var(--lime); }
.flow__stick { height: auto; min-height: calc(100vh - 150px); }

/* Що всередині */
.inside { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.inside > div { padding: 32px 32px 8px 0; }
.inside > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.inside h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.03em; }
.inside h3 .icon { width: 22px; height: 22px; color: var(--link); }
.inside p { margin-top: 10px; color: var(--text); font-size: 15.5px; }
.inside ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.inside li { display: flex; gap: 10px; }
.inside li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--link); }
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts div { padding: 22px 24px; border-radius: 20px; background: var(--mist); }
.facts b { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--text); }
.price { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--line); }
.price p { font-size: 17px; color: var(--text); max-width: 60ch; }
.price strong { color: var(--ink); font-weight: 600; }

/* Кінець кейсу: підсумок і чіткий перехід до наступного */
.finale { background: var(--navy); color: #fff; padding: 110px 0; }
.finale .h2 { color: #fff; max-width: 22ch; }
.finale__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.finale__grid div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 22px; }
.finale__grid b { display: block; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.finale__grid span { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: rgba(221, 227, 245, 0.7); }
.finale__cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.finale__cta p { margin-right: auto; font-size: 22px; letter-spacing: -0.03em; max-width: 32ch; }
.others { padding: 96px 0 110px; }
.others__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.others__head a { font-size: 15px; font-weight: 600; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* Список секцій лендингу */
.sections { margin-top: 48px; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; list-style: none; padding: 0; }
.sections li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }
.sections li::before { content: counter(s); font-weight: 650; color: var(--link); font-variant-numeric: tabular-nums; }
.sections b { display: block; font-weight: 600; color: var(--ink); }
.sections span { color: var(--text); font-size: 15px; }

/* Відкриття кадру на весь екран */
.zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 64px 24px 24px; background: rgba(7, 16, 47, 0.9); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 100%; width: auto; border-radius: 14px; background: #fff; }
.lb button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; }
.zoom-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mute); margin-top: 10px; }
.zoom-hint .icon { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .inside { grid-template-columns: 1fr; }
  .inside > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finale__grid { grid-template-columns: 1fr; }
  .sections { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shift__head { display: none; }
  .shift__row .shift__was::after { content: none; }
  .shift__row { position: relative; }
  .handset { transform: scale(0.62); height: calc(716px * 0.62); }
  .where { margin-bottom: 14px; }
  .dots { margin-top: 12px; }
  .facts b { font-size: 28px; }
  .finale, .others { padding: 72px 0; }
  .finale__cta .btn { width: 100%; }
}
.more--dark { margin-top: 48px; border-color: rgba(255, 255, 255, 0.16); }
.more--dark summary .icon { color: var(--lime); }
.more--dark .more__body p { color: rgba(221, 227, 245, 0.72); }
.others .next { margin-top: 0; }
.handset { transform: scale(0.84); height: calc(716px * 0.84); }
@media (max-width: 720px) { .handset { transform: scale(0.62); height: calc(716px * 0.62); } }
.shift__head .tag { justify-self: start; }
.lb img { width: min(92vw, 960px); height: auto; max-height: calc(100vh - 100px); object-fit: contain; }
@media (max-width: 720px) {
  .handset { transform: scale(0.44); height: calc(716px * 0.44); }
  .where { margin-bottom: 26px; }
  .where span { height: 32px; font-size: 13px; padding: 0 12px; }
  .flow__stick { min-height: 0; padding: 8px 0 18px; }
  .dots { margin-top: 10px; }
  .step { min-height: 42vh; justify-content: flex-end; }
}
@media (max-width: 1080px) {
  .flow__stick { background: var(--navy); }
  .flow__stick::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--navy), transparent); pointer-events: none; }
}

.step { cursor: pointer; border-radius: 18px; margin-left: -20px; padding-left: 20px; padding-right: 20px; transition: color 0.4s, background 0.3s; }
.step:hover { background: rgba(255, 255, 255, 0.04); }
.step:hover h3 { color: #fff; }
/* Плюси і що врахувати */
.pc { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc > div { padding: 30px; border-radius: 22px; }
.pc__plus { background: #f3fbe0; }
.pc__minus { background: var(--mist); }
.pc h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.02em; }
.pc h3 .icon { width: 20px; height: 20px; }
.pc__plus h3 .icon { color: #4a7a00; }
.pc__minus h3 .icon { color: #8a5a00; }
.pc ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; color: #2f343d; }
.pc li { display: flex; gap: 10px; }
.pc li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: currentColor; opacity: 0.5; }
@media (max-width: 720px) { .pc { grid-template-columns: 1fr; } .pc > div { padding: 24px; } .step { margin-left: 0; padding-left: 0; padding-right: 0; } }
