/*
 * Лендінг kosandis.com (редизайн 2026-11). Основа — мальовані сцени, наскрізний мотив — плетіння знака.
 * Кольори лише через змінні --lp-* з tokens.css (hex тут не пишемо). Сайт лише світлий.
 */
:root {
  --lp-max: 1160px;
  --lp-font: "Onest", system-ui, sans-serif;
  --lp-disp: "Geologica", "Onest", sans-serif;
  --lp-mono: "JetBrains Mono", ui-monospace, monospace;
  --lp-ease: cubic-bezier(.22, .8, .24, 1);
  --lp-shadow-card: 0 1px 2px rgba(14,26,43,.05), 0 12px 32px -12px rgba(20,49,92,.18);
  --rail-w: 10px;
  --rail-x: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lp-lime);
  color: var(--lp-ink);
  font: 400 1.0625rem/1.6 var(--lp-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: var(--lp-disp); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--lp-mono); letter-spacing: .02em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--lp-max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--lp-white); padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--lp-kos); outline-offset: 3px; border-radius: 6px; }
h2 { font-size: clamp(1.75rem, 6.2vw, 2.625rem); }
.sec-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.sec-head p { margin-top: 14px; color: var(--lp-slate); font-size: 1.0625rem; }

/* ---------- кольори ілюстрацій (SVG): заливки, обведення, зупинки градієнтів ---------- */
.f-ink { fill: var(--lp-ink); } .f-slate { fill: var(--lp-slate); } .f-aegean { fill: var(--lp-aegean); } .f-kos { fill: var(--lp-kos); }
.f-sea { fill: var(--lp-seaglass); } .f-white { fill: var(--lp-white); } .f-paper { fill: var(--lp-paper); }
.f-print { fill: var(--lp-ill-print); } .f-print2 { fill: var(--lp-ill-print-2); }
.f-cabinet { fill: var(--lp-ill-cabinet); } .f-cabinet-in { fill: var(--lp-ill-cabinet-in); }
.f-fridge-body { fill: var(--lp-ill-fridge-body); } .f-fridge-shelf { fill: var(--lp-ill-fridge-shelf); }
.f-shadow-warm { fill: var(--lp-ill-shadow-warm); } .f-tint-sky { fill: var(--lp-tint-sky); }
.f-ok-bg { fill: var(--lp-ok-bg); } .f-ok-fg { fill: var(--lp-ok-fg); } .f-ok-ic { fill: var(--lp-ok-ic); }
.f-warn-bg { fill: var(--lp-warn-bg); } .f-warn-fg { fill: var(--lp-warn-fg); }
.f-quarantine-bg { fill: var(--lp-quarantine-bg); } .f-quarantine-fg { fill: var(--lp-quarantine-fg); } .f-quarantine-ic { fill: var(--lp-quarantine-ic); }
.f-recalled-bg { fill: var(--lp-recalled-bg); } .f-recalled-fg { fill: var(--lp-recalled-fg); }
.f-finished-bg { fill: var(--lp-finished-bg); } .f-finished-fg { fill: var(--lp-finished-fg); }
.f-transit-fg { fill: var(--lp-transit-fg); }
.s-box { stroke: var(--lp-ill-box-stroke); } .s-box-edge { stroke: var(--lp-ill-box-edge); } .s-flap { stroke: var(--lp-ill-flap); }
.s-line { stroke: var(--lp-line); } .s-line2 { stroke: var(--lp-line-strong); } .s-glass { stroke: var(--lp-ill-glass-stroke); }
.s-sea { stroke: var(--lp-seaglass); } .s-aegean { stroke: var(--lp-aegean); } .s-white { stroke: var(--lp-white); }
.s-paper { stroke: var(--lp-ill-paper-line); stroke-width: 2; stroke-linecap: round; }
.s-ok { stroke: var(--lp-ok-ic); } .s-warn { stroke: var(--lp-warn-ic); } .s-quarantine { stroke: var(--lp-quarantine-ic); }
.s-recalled { stroke: var(--lp-recalled-ic); } .s-finished { stroke: var(--lp-finished-ic); }
.s-rib-sky { stroke: var(--lp-rib-sky); } .s-rib-sand { stroke: var(--lp-rib-sand); } .s-rib-glass { stroke: var(--lp-rib-glass); }
.t-mono { font-family: var(--lp-mono); } .t-text { font-family: var(--lp-font); } .t-disp { font-family: var(--lp-disp); }
.gs-white { stop-color: var(--lp-white); } .gs-sea { stop-color: var(--lp-seaglass); }
.gs-front-1 { stop-color: var(--lp-ill-front-top); } .gs-front-2 { stop-color: var(--lp-ill-front-bot); } .gs-top-2 { stop-color: var(--lp-ill-top); }
.gs-side-1 { stop-color: var(--lp-ill-side-top); } .gs-side-2 { stop-color: var(--lp-ill-side-bot); }
.gs-screen-1 { stop-color: var(--lp-ill-screen-top); } .gs-screen-2 { stop-color: var(--lp-ill-screen-bot); }
.gs-glass-mid { stop-color: var(--lp-tint-glass); } .gs-liquid-1 { stop-color: var(--lp-ill-liquid-top); }
.gs-fridge-1 { stop-color: var(--lp-ill-fridge-top); } .gs-fridge-2 { stop-color: var(--lp-ill-fridge-bot); }
.gs-stage-mid { stop-color: var(--lp-ill-stage-mid); } .gs-stage-end { stop-color: var(--lp-ill-stage-end); }
.gs-stage-b-mid { stop-color: var(--lp-ill-stage-b-mid); } .gs-stage-b-end { stop-color: var(--lp-ill-stage-b-end); }
.h-shadow { fill: var(--lp-ill-shadow-warm); opacity: .28; }
.h-shadow--cool { fill: var(--lp-slate); opacity: .22; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; text-decoration: none; border: 0;
  background: var(--lp-aegean); color: var(--lp-white); font-weight: 600; font-size: 1rem; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(20,49,92,.55);
  transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 28px -10px rgba(20,49,92,.55); background: var(--lp-aegean-deep); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: rgba(255,255,255,.65); color: var(--lp-aegean); box-shadow: 0 0 0 1px var(--lp-line) inset; }
.btn--ghost:hover { background: var(--lp-white); box-shadow: 0 0 0 1px var(--lp-line-strong) inset, 0 10px 24px -12px rgba(20,49,92,.3); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 14px; }

/* ---------- статуси: колір + іконка + слово ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: 999px; font: 600 .8125rem/1 var(--lp-font); white-space: nowrap; border: 0; }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip--ok { background: var(--lp-ok-bg); color: var(--lp-ok-fg); fill: var(--lp-ok-ic); }
.chip--warn { background: var(--lp-warn-bg); color: var(--lp-warn-fg); fill: var(--lp-warn-ic); }
.chip--expired { background: var(--lp-expired-bg); color: var(--lp-expired-fg); fill: var(--lp-expired-ic); }
.chip--quarantine { background: var(--lp-quarantine-bg); color: var(--lp-quarantine-fg); fill: var(--lp-quarantine-ic); }
.chip--recalled { background: var(--lp-recalled-bg); color: var(--lp-recalled-fg); fill: var(--lp-recalled-ic); }
.chip--transit { background: var(--lp-transit-bg); color: var(--lp-transit-fg); fill: var(--lp-transit-ic); }
.chip--finished { background: var(--lp-finished-bg); color: var(--lp-finished-fg); fill: var(--lp-finished-ic); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(244,241,234,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(226,222,212,.7); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--lp-ink); font-family: var(--lp-disp); font-weight: 600; font-size: 1.25rem; letter-spacing: -.03em; }
.logo svg { flex: none; }
.top__nav { display: flex; align-items: center; gap: 20px; font-size: .9375rem; }
.top__nav a:not(.btn) { text-decoration: none; color: var(--lp-slate); min-height: 44px; display: inline-flex; align-items: center; }
.top__nav a:not(.btn):hover { color: var(--lp-ink); }
.top__login { color: var(--lp-aegean); font-weight: 600; }
.top__lang { font-family: var(--lp-mono); font-size: .8125rem; letter-spacing: .06em; }
@media (max-width: 759px) { .top__nav a:not(.btn):not(.top__login):not(.top__lang) { display: none; } .top__nav { gap: 14px; } }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } .top__in { height: 64px; } }

/* ---------- перший екран ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(220,232,240,.9), transparent 70%),
    radial-gradient(50% 45% at 0% 95%, rgba(241,227,205,.75), transparent 70%),
    radial-gradient(40% 35% at 55% 100%, rgba(228,243,245,.7), transparent 70%),
    var(--lp-lime);
}
.hero__in { display: grid; grid-template-areas: "text" "more" "art"; gap: 0; padding: 18px 20px 28px; }
.hero__text { grid-area: text; }
.hero__more { grid-area: more; }
.hero__art { grid-area: art; position: relative; margin-inline: -6px; }
.hero__kicker { color: var(--lp-kos); font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
h1 { font-size: clamp(1.875rem, 8vw, 3.5rem); line-height: 1.08; color: var(--lp-ink); }
.hero__lead { margin-top: 10px; color: var(--lp-slate); font-size: 1rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hero__cta .btn { flex: 1 1 100%; }
.hero__how { flex: 1 1 100%; background: none; box-shadow: none; color: var(--lp-kos); min-height: 40px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(47,127,168,.4); }
.hero__how:hover { background: none; box-shadow: none; transform: none; color: var(--lp-aegean); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; color: var(--lp-ink); font-size: .8125rem; }
.hero__facts li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--lp-line); }
.scene { display: block; width: 100%; height: auto; }
.scene--phone { aspect-ratio: 390 / 440; }
.scene--desk { display: none; aspect-ratio: 640 / 560; }
.art-note { margin-top: 0; text-align: center; color: var(--lp-slate); font-size: .8125rem; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 47%) minmax(0, 53%); grid-template-areas: "text art" "more art"; align-content: center; column-gap: 24px; row-gap: 0; padding: 40px 32px 56px; min-height: calc(100vh - 64px); }
  .hero__text { align-self: end; }
  .hero__more { align-self: start; }
  .hero__art { margin: 0; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__how { flex: 0 0 auto; background: rgba(255,255,255,.65); color: var(--lp-aegean); box-shadow: 0 0 0 1px var(--lp-line) inset; min-height: 48px; text-decoration: none; }
  .hero__how:hover { background: var(--lp-white); box-shadow: 0 0 0 1px var(--lp-line-strong) inset, 0 10px 24px -12px rgba(20,49,92,.3); transform: translateY(-1px); }
  .hero__cta { margin-top: 26px; }
  .hero__facts { margin: 18px 0 0; }
  .hero__lead { font-size: 1.1875rem; margin-top: 20px; }
  .hero__kicker { font-size: 1rem; }
  .hero__facts { gap: 0; color: var(--lp-slate); font-size: .9375rem; }
  .hero__facts li { padding: 0; border: 0; background: none; min-height: 0; }
  .hero__facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lp-line-strong); margin: 0 12px; }
  .scene--desk { display: block; width: 108%; margin-left: -4%; }
  .scene--phone { display: none; }
  .art-note { text-align: right; padding-right: 24px; }
}
@media (min-width: 900px) and (max-width: 1199px) { h1 { font-size: 2.75rem; } }
@media (min-width: 560px) and (max-width: 899px) { .hero__art { max-width: 500px; margin-inline: auto; } .hero__in { padding-inline: 32px; } }
/* сцена намальована в кінцевому стані; анімації — лише «звідки». Упаковка видима з першого кадру. */
.h-stage, .h-phone, .h-card, .h-label, .h-ring, .h-beam, .h-mini, .h-scanline, .h-row, .h-chip { transform-box: fill-box; transform-origin: center; }
.w-h path, .w-v path { fill: none; stroke-width: 18; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ribDraw 1.1s var(--lp-ease) both; }
.scene--phone .w-h path, .scene--phone .w-v path, .scene--phone .w-x path { stroke-width: 14; }
.w-sh path { fill: none; stroke: var(--lp-ink); stroke-width: 22; opacity: 0; filter: url(#f-blur3); animation: shIn .5s ease both 1.25s; }
.scene--phone .w-sh path { stroke-width: 17; }
@keyframes shIn { to { opacity: .16; } }
.scene--phone .w-cap { display: none; }
.w-h path:nth-child(2) { animation-delay: .1s; } .w-h path:nth-child(3) { animation-delay: .2s; }
.w-v path:nth-child(1) { animation-delay: .35s; } .w-v path:nth-child(2) { animation-delay: .45s; } .w-v path:nth-child(3) { animation-delay: .55s; }
.w-x path { fill: none; stroke-width: 18; opacity: 0; animation: fadeIn .5s ease both 1.25s; }
.w-cap text { font: 500 9.5px var(--lp-font); fill: var(--lp-slate); opacity: 0; animation: fadeIn .7s ease both 1.2s; }
.h-label { animation: labelStick .9s var(--lp-ease) both .9s; transform-origin: 60% 40%; }
.h-ring { opacity: 0; animation: ring 1.1s ease-out both 2.3s; }
.h-phone { animation: phoneIn 1.1s var(--lp-ease) both 1.2s; }
.h-beam { opacity: 0; animation: beam 1.3s ease-in-out both 1.9s, beamIdle 4s ease-in-out infinite 3.2s; }
.h-scanline { opacity: 0; animation: scan 1.1s ease-in-out 2s 1 both; }
.scene--phone .h-scanline { animation-name: scanS; }
.h-mini { opacity: 0; animation: pop .5s var(--lp-ease) both 2.85s; }
.h-card { animation: cardIn .9s var(--lp-ease) both 3s; }
.h-card .h-chip { animation: pop .5s var(--lp-ease) both 3.6s; }
.h-card .h-row { animation: rowIn .55s var(--lp-ease) both; }
.h-card .h-row:nth-of-type(1) { animation-delay: 3.4s; } .h-card .h-row:nth-of-type(2) { animation-delay: 3.48s; } .h-card .h-row:nth-of-type(3) { animation-delay: 3.56s; }
.h-card .h-row:nth-of-type(4) { animation-delay: 3.7s; } .h-card .h-row:nth-of-type(5) { animation-delay: 3.8s; } .h-card .h-row:nth-of-type(6) { animation-delay: 3.9s; }
/* спокійне дихання після вступу */
.h-stage { animation: floatA 7s ease-in-out infinite 4.4s; }
.h-phone { animation-name: phoneIn, floatB; animation-duration: 1.1s, 8s; animation-timing-function: var(--lp-ease), ease-in-out; animation-delay: 1.2s, 4.4s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }
.h-card { animation-name: cardIn, floatC; animation-duration: .9s, 9s; animation-timing-function: var(--lp-ease), ease-in-out; animation-delay: 3s, 4.4s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ribDraw { to { stroke-dashoffset: 0; } }
@keyframes labelStick { 0% { opacity: 0; transform: translate(60px, -90px) rotate(8deg) scale(1.15); } 70% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: 0; transform: scale(1.12); } 30% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
@keyframes phoneIn { from { opacity: 0; transform: translate(40px, 30px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes beam { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .85; } }
@keyframes beamIdle { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(160px); } }
@keyframes scanS { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(100px); } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- поява при прокручуванні ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--lp-ease), transform .9s var(--lp-ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- біль: три ситуації різної ваги ---------- */
.pain { padding: 48px 0 24px; }
.pain h2 { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.pain__grid { display: grid; gap: 20px; }
.pain__big, .pain__mid { background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: 24px; overflow: hidden; box-shadow: var(--lp-shadow-card); }
.pain__art svg { display: block; width: 100%; height: auto; }
.pain__art { aspect-ratio: 300 / 200; }
.pain__art--sm { aspect-ratio: 220 / 170; }
.pain__text { padding: 20px 22px 24px; }
.pain__text h3 { font-size: 1.25rem; }
.pain__text p { margin-top: 8px; color: var(--lp-slate); font-size: 1rem; }
.pain__mid .pain__art { aspect-ratio: 220 / 150; overflow: hidden; }
.pain__mid .pain__art svg { margin-top: -4%; }
.pain__mid .pain__text { padding: 16px 22px 22px; }
.pain__mid h3 { font-size: 1.125rem; }
.pain__small { display: flex; gap: 16px; align-items: center; padding: 8px 6px 0; }
.pain__vial { width: 34px; height: 78px; flex: none; }
.pain__small h3 { font-size: 1.125rem; font-family: var(--lp-font); font-weight: 600; letter-spacing: -.01em; }
.pain__small p { margin-top: 4px; color: var(--lp-slate); font-size: .9375rem; }
.p-sheet, .p-tag { transform-box: fill-box; transform-origin: center; }
.js .pain .p-sheet, .js .pain .p-tag { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--lp-ease), transform .7s var(--lp-ease); }
.js .pain .in .p-sheet, .js .pain .in .p-tag { opacity: 1; transform: none; }
.js .pain .in .p-sheet:nth-of-type(2) { transition-delay: .12s; } .js .pain .in .p-sheet:nth-of-type(3) { transition-delay: .24s; }
.js .pain .in .p-tag { transition-delay: .4s; } .js .pain .in .p-tag + .p-tag { transition-delay: .55s; }
@media (min-width: 760px) {
  .pain { padding: 80px 0 40px; }
  .pain__grid { grid-template-columns: 1.4fr 1fr; grid-template-areas: "big mid" "big small"; gap: 24px; align-items: stretch; }
  .pain__big { grid-area: big; display: grid; grid-template-rows: auto 1fr; }
  .pain__mid { grid-area: mid; align-self: start; }
  .pain__mid .pain__art { aspect-ratio: 220 / 170; }
  .pain__mid .pain__art svg { margin-top: 0; }
  .pain__small { grid-area: small; padding: 8px 12px; align-self: center; }
  .pain__text { padding: 24px 28px 28px; }
  .pain__text h3 { font-size: 1.5rem; }
  .pain__mid h3 { font-size: 1.25rem; }
}

/* ---------- як це працює: кроки на одній нитці ---------- */
.story { padding: 40px 0 24px; position: relative; }
.weave { position: relative; }
.rail {
  position: absolute; top: 0; bottom: 60px; left: var(--rail-x); width: var(--rail-w); border-radius: 999px;
  background: linear-gradient(180deg, var(--lp-rib-glass) 0%, var(--lp-rib-sky) 30%, var(--lp-rib-sand) 65%, var(--lp-rib-glass) 100%);
  -webkit-mask: linear-gradient(transparent, var(--lp-ink) 40px, var(--lp-ink) calc(100% - 80px), transparent);
  mask: linear-gradient(transparent, var(--lp-ink) 40px, var(--lp-ink) calc(100% - 80px), transparent);
  overflow: hidden;
}
.rail i { position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; border-radius: 2px; background: linear-gradient(var(--lp-kos), var(--lp-aegean)); transform-origin: top; transform: scaleY(var(--p, 0)); opacity: .75; }
.steps { position: relative; counter-reset: s; }
.step { counter-increment: s; }
.step__n i::before { content: counter(s); font-style: normal; }
.step { position: relative; z-index: 1; display: grid; gap: 14px; padding: 0 0 44px calc(var(--rail-x) + var(--rail-w) + 22px); }
.step__n {
  position: absolute; left: calc(var(--rail-x) + var(--rail-w) / 2 - 17px); top: 2px; z-index: 2;
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lp-white); color: var(--lp-aegean);
  font-family: var(--lp-disp); font-weight: 600; font-size: .9375rem;
  box-shadow: 0 0 0 3px var(--lp-lime), 0 0 0 5px var(--lp-ill-paper-line), 0 6px 16px -6px rgba(20,49,92,.35);
  transition: box-shadow .5s var(--lp-ease), background .5s, color .5s;
}
.step__n::after { content: ""; position: absolute; left: 100%; top: 50%; margin: -4px 0 0 7px; width: 22px; height: 8px; border-radius: 999px; background: var(--lp-rib-sand); opacity: .8; }
.step.in .step__n { background: var(--lp-aegean); color: var(--lp-white); box-shadow: 0 0 0 3px var(--lp-lime), 0 0 0 5px var(--lp-kos), 0 6px 16px -6px rgba(20,49,92,.35); }
.step__art { border-radius: 6.67% / 9.33%; box-shadow: 0 24px 40px -20px rgba(20,49,92,.22), 0 1px 0 rgba(255,255,255,.8) inset; aspect-ratio: 420 / 300; }
.step__art svg { display: block; width: 100%; height: auto; }
.step__text h3 { font-size: 1.5rem; }
.step__text p { margin-top: 8px; color: var(--lp-slate); font-size: 1rem; max-width: 42ch; }
.steps__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 12px calc(var(--rail-x) + var(--rail-w) + 22px); color: var(--lp-slate); font-size: .9375rem; }
.steps__pills > span:first-child { width: 100%; }
@media (max-width: 899px) { .step--desk { display: none; } }
@media (min-width: 900px) {
  .story { padding: 96px 0 64px; }
  .rail { left: 50%; margin-left: calc(var(--rail-w) / -2); top: 24px; bottom: 120px; }
  .step { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 0 0 72px; }
  .step:nth-child(even) .step__art { order: 2; }
  .step__text { padding: 0 20px; }
  .step:nth-child(odd) .step__text { padding-left: 56px; }
  .step:nth-child(even) .step__text { padding-right: 56px; text-align: right; }
  .step:nth-child(even) .step__text p { margin-left: auto; }
  .step__n { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; font-size: 1rem; }
  .step__n::before { content: ""; position: absolute; right: 100%; top: 50%; margin: -4px 7px 0 0; width: 22px; height: 8px; border-radius: 999px; background: var(--lp-rib-sky); opacity: .8; }
  .step__text h3 { font-size: 1.875rem; }
  .step__text p { font-size: 1.0625rem; }
  .step__art { max-width: 520px; }
  .step:nth-child(odd) .step__art { justify-self: end; }
  .steps__pills { display: none; }
}
/* внутрішня анімація сцен: з'являється, коли крок у кадрі */
.s-pop, .s-dolly, .s-journal, .s-cap, .s-drop { transform-box: fill-box; transform-origin: center; }
.js .step .s-pop { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--lp-ease), transform .7s var(--lp-ease); }
.js .step.in .s-pop { opacity: 1; transform: none; }
.js .step.in .s-pop:nth-of-type(1) { transition-delay: .25s; } .js .step.in .s-pop:nth-of-type(2) { transition-delay: .4s; } .js .step.in .s-pop:nth-of-type(3) { transition-delay: .55s; } .js .step.in .s-pop:nth-of-type(4) { transition-delay: .7s; } .js .step.in .s-pop:nth-of-type(5) { transition-delay: .85s; } .js .step.in .s-pop:nth-of-type(6) { transition-delay: 1s; }
.js .step .s-dolly { transform: translateX(-60px); opacity: 0; transition: transform 1.1s var(--lp-ease), opacity .6s; }
.js .step.in .s-dolly { transform: none; opacity: 1; }
.js .step .s-journal { transform: translateX(24px); opacity: 0; transition: transform .9s var(--lp-ease) .2s, opacity .6s .2s; }
.js .step.in .s-journal { transform: none; opacity: 1; }
.js .step .s-cap { transform: translate(104px, -136px) rotate(-6deg); transition: transform 1s var(--lp-ease) .35s; }
.js .step.in .s-cap { transform: none; }
.step.in .s-drop { animation: drop 2.6s ease-in infinite 1.4s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-8px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; transform: translateY(84px); } 72%, 100% { opacity: 0; transform: translateY(90px); } }

/* ---------- пульт і журнал ---------- */
.pult {
  padding: 56px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(50% 60% at 100% 30%, rgba(220,232,240,.9), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(241,230,210,.8), transparent 70%);
}
.pult__demo { display: grid; gap: 28px; justify-items: center; }
.pult__phone { display: grid; gap: 14px; justify-items: center; width: 100%; }
.pult__hint { color: var(--lp-kos); font-weight: 600; font-size: .9375rem; text-align: center; max-width: 34ch; }
.phone {
  width: min(300px, 100%); border-radius: 38px; background: var(--lp-ink); padding: 9px;
  box-shadow: 0 30px 60px -24px rgba(14,26,43,.5), 0 2px 0 rgba(255,255,255,.15) inset;
}
.phone__screen { background: linear-gradient(var(--lp-ill-screen-top), var(--lp-ill-screen-bot)); border-radius: 30px; min-height: 580px; padding: 16px 16px 20px; position: relative; overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--lp-slate); margin-top: 8px; }
.phone__bar b { font-family: var(--lp-disp); font-weight: 600; color: var(--lp-ink); font-size: .9375rem; letter-spacing: -.02em; }
.phone__bar span { margin-left: auto; }
.phone__view { transition: opacity .35s var(--lp-ease), transform .35s var(--lp-ease); }
.phone__view--done { position: absolute; inset: 60px 16px 20px; display: grid; place-content: center; text-align: center; gap: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; }
.phone.done .phone__view--unit { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.phone.done .phone__view--done { opacity: 1; transform: none; }
.phone__code { margin-top: 22px; font-size: .875rem; color: var(--lp-slate); }
.phone__name { font-family: var(--lp-disp); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; margin-top: 4px; }
.phone__view--unit .chip { margin-top: 12px; height: 30px; font-size: .875rem; }
.phone__facts { margin: 16px 0 0; background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: 14px; padding: 6px 14px; }
.phone__facts div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .8125rem; }
.phone__facts dt { flex: none; }
.phone__facts div + div { border-top: 1px solid var(--lp-line); }
.phone__facts dt { color: var(--lp-slate); }
.phone__facts dd { margin: 0; font-weight: 600; text-align: right; }
.phone__actions { display: grid; gap: 8px; margin-top: 16px; }
.phone__actions button {
  min-height: 50px; border-radius: 12px; border: 1px solid var(--lp-line); background: var(--lp-white); color: var(--lp-ink);
  font: 600 .9375rem var(--lp-font); cursor: pointer; transition: transform .15s var(--lp-ease), background .15s, opacity .3s;
}
.phone__actions button:hover { background: var(--lp-paper); }
.phone__actions button:active { transform: scale(.98); }
.phone__actions button.primary { background: var(--lp-aegean); color: var(--lp-white); border-color: var(--lp-aegean); }
.phone__actions button.primary:hover { background: var(--lp-aegean-deep); }
.phone__actions button:disabled { opacity: .4; cursor: default; transform: none; }
.phone__reset { margin-top: 12px; width: 100%; min-height: 44px; border: 0; background: none; color: var(--lp-kos); font-weight: 600; font-size: .875rem; cursor: pointer; }
.phone__done { font-family: var(--lp-disp); font-weight: 600; font-size: 1.75rem; }
.phone__done-sub { color: var(--lp-slate); font-size: .9375rem; line-height: 1.5; }
.mark-anim { margin: 0 auto; }
.phone.done .mark-anim { animation: markIn .5s var(--lp-ease) both; }
@keyframes markIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

.journal { width: 100%; max-width: 560px; background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: var(--lp-shadow-card); }
.journal__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; padding: 0 2px 12px; border-bottom: 1px solid var(--lp-line); }
.journal__head b { font-family: var(--lp-disp); font-weight: 600; }
.journal__head .mono { color: var(--lp-slate); font-size: .8125rem; }
.journal__table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.journal__table th:last-child { text-align: right; }
.journal__table th { text-align: left; font-weight: 500; color: var(--lp-slate); font-size: .75rem; padding: 10px 6px 6px; }
.journal__table td { padding: 9px 6px; border-top: 1px solid var(--lp-line); vertical-align: middle; }
.journal__table tbody tr:first-child td { border-top: 0; }
.j-t { width: 56px; white-space: nowrap; }
.j-t time { display: block; font-family: var(--lp-mono); font-size: .8125rem; color: var(--lp-ink); }
.j-t span { display: block; font-family: var(--lp-mono); font-size: .75rem; color: var(--lp-slate); }
.j-w b { display: block; font-weight: 600; }
.j-w span { display: block; color: var(--lp-slate); font-size: .8125rem; }
.j-s { text-align: right; width: 1%; }
.journal__table tr.new { animation: rowDrop .6s var(--lp-ease) both; }
.journal__table tr.new .j-w b { color: var(--lp-aegean); }
@keyframes rowDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.journal__note { margin-top: 12px; padding: 0 2px; color: var(--lp-slate); font-size: .8125rem; line-height: 1.5; }

.statuses { margin-top: 40px; text-align: center; }
.statuses h3 { font-size: 1.375rem; }
.statuses__hint { margin: 14px auto 0; max-width: 520px; min-height: 52px; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--lp-line); color: var(--lp-ink); font-size: .9375rem; transition: opacity .2s; display: grid; place-items: center; }
.statuses__hint.swap { opacity: 0; }
.statuses__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.statuses__row .chip { height: 44px; padding: 0 16px 0 12px; font-size: .875rem; cursor: pointer; transition: transform .2s var(--lp-ease), box-shadow .2s; }
.statuses__row .chip svg { width: 18px; height: 18px; }
.statuses__row .chip.is-active { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--lp-white), 0 0 0 4px var(--lp-kos); }
@media (min-width: 900px) {
  .pult { padding: 96px 0 104px; }
  .pult__demo { grid-template-columns: minmax(0, 340px) minmax(0, 560px); align-items: start; gap: 48px; justify-content: center; }
  .pult__phone { justify-items: center; }
  .phone { width: 300px; }
  .journal { margin-top: 44px; }
  .statuses { margin-top: 64px; }
}

/* ---------- довіра ---------- */
.trust { padding: 56px 0 24px; }
.trust h2 { text-align: center; margin-bottom: 24px; }
.trust__cols { display: grid; gap: 0; border-top: 1px solid var(--lp-line); }
.trust__cols li { padding: 20px 0; border-bottom: 1px solid var(--lp-line); display: grid; gap: 6px; }
.trust__cols b { font-family: var(--lp-disp); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.trust__cols span { color: var(--lp-slate); font-size: 1rem; }
.trust__honest { margin: 24px auto 0; max-width: 60ch; text-align: center; color: var(--lp-slate); font-size: 1rem; }
@media (min-width: 760px) {
  .trust { padding: 88px 0 40px; }
  .trust__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
  .trust__cols li { border-bottom: 0; border-top: 2px solid var(--lp-line-strong); padding: 20px 0 0; }
  .trust__honest { margin-top: 48px; }
}

/* ---------- пілот ---------- */
.pilot { padding: 48px 0 24px; }
.pilot__grid { display: grid; gap: 16px; }
.pilot__card { background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: 20px; padding: 22px 22px 24px; box-shadow: var(--lp-shadow-card); }
.pilot__card h3 { font-size: 1.25rem; }
.pilot__card ul { margin-top: 12px; display: grid; gap: 10px; }
.pilot__card li { position: relative; padding-left: 22px; color: var(--lp-ink); font-size: 1rem; }
.pilot__card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-rib-sky); box-shadow: 0 0 0 3px rgba(179,203,227,.35); }
.pilot__terms { display: grid; gap: 14px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, var(--lp-tint-cream), var(--lp-tint-blue)); border: 1px solid rgba(255,255,255,.8); }
.pilot__terms div { display: grid; gap: 2px; }
.pilot__terms b { font-family: var(--lp-disp); font-weight: 600; font-size: 1.0625rem; }
.pilot__terms span { color: var(--lp-slate); font-size: .9375rem; }
@media (min-width: 760px) {
  .pilot { padding: 80px 0 40px; }
  .pilot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pilot__terms { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; padding: 28px 32px; }
  .pilot__card { padding: 28px 30px 30px; }
}

/* ---------- FAQ ---------- */
.faq { padding: 48px 0 24px; }
.faq h2 { text-align: center; margin-bottom: 20px; }
.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--lp-line); }
.faq details { border-bottom: 1px solid var(--lp-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; min-height: 56px; font-weight: 600; font-size: 1.0625rem; color: var(--lp-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--lp-kos); border-bottom: 2px solid var(--lp-kos); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--lp-ease); margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 32px 18px 2px; color: var(--lp-slate); font-size: 1rem; max-width: 64ch; }
@media (min-width: 760px) { .faq { padding: 80px 0 40px; } .faq summary { font-size: 1.125rem; padding: 18px 2px; } }

/* ---------- фінальний CTA: стрічки сходяться у знак ---------- */
.invite { padding: 32px 0 72px; }
.invite__card {
  position: relative; overflow: hidden; text-align: center; padding: 20px 22px 40px; border-radius: 28px;
  background: radial-gradient(80% 90% at 50% 0%, var(--lp-white) 0%, var(--lp-tint-cream) 55%, var(--lp-tint-blue) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 0 0 1px rgba(226,222,212,.9), 0 30px 60px -30px rgba(20,49,92,.25);
}
.invite__weave { display: block; width: min(320px, 100%); height: auto; margin: 0 auto 12px; aspect-ratio: 320 / 120; }
.iw-h path, .iw-v path { fill: none; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--lp-ease); }
.iw-v path { transition-delay: .3s; }
.iw-tile { fill: var(--lp-white); filter: drop-shadow(0 10px 20px rgba(20,49,92,.18)); transform-box: fill-box; transform-origin: center; transform: scale(.7); opacity: 0; transition: transform .7s var(--lp-ease) .7s, opacity .5s ease .7s; }
.iw-mark rect { opacity: 0; transition: opacity .4s ease; }
.in .iw-h path, .in .iw-v path { stroke-dashoffset: 0; }
.in .iw-tile { transform: none; opacity: 1; }
.in .iw-mark rect { opacity: 1; }
.in .iw-mark .f-aegean rect:nth-child(1) { transition-delay: 1s; } .in .iw-mark .f-aegean rect:nth-child(2) { transition-delay: 1.06s; } .in .iw-mark .f-aegean rect:nth-child(3) { transition-delay: 1.12s; } .in .iw-mark .f-aegean rect:nth-child(4) { transition-delay: 1.18s; } .in .iw-mark .f-aegean rect:nth-child(5) { transition-delay: 1.24s; } .in .iw-mark .f-aegean rect:nth-child(6) { transition-delay: 1.3s; } .in .iw-mark .f-aegean rect:nth-child(7) { transition-delay: 1.36s; }
.in .iw-mark .f-kos rect:nth-child(1) { transition-delay: 1.3s; } .in .iw-mark .f-kos rect:nth-child(2) { transition-delay: 1.36s; } .in .iw-mark .f-kos rect:nth-child(3) { transition-delay: 1.42s; } .in .iw-mark .f-kos rect:nth-child(4) { transition-delay: 1.48s; } .in .iw-mark .f-kos rect:nth-child(5) { transition-delay: 1.54s; } .in .iw-mark .f-kos rect:nth-child(6) { transition-delay: 1.6s; } .in .iw-mark .f-kos rect:nth-child(7) { transition-delay: 1.66s; } .in .iw-mark .f-kos rect:nth-child(8) { transition-delay: 1.72s; }
.invite p { margin: 14px auto 0; color: var(--lp-slate); max-width: 46ch; }
.invite .btn { margin-top: 26px; max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 900px) { .invite { padding: 48px 0 96px; } .invite__card { padding: 28px 40px 52px; } }

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--lp-line); padding: 28px 0 40px; color: var(--lp-slate); font-size: .9375rem; }
.foot__in { display: grid; gap: 12px; justify-items: start; }
.foot__sign { color: var(--lp-ink); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__nav a { color: var(--lp-slate); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot__nav a:hover { color: var(--lp-ink); }
.foot__meta { font-size: .875rem; }
@media (min-width: 760px) {
  .foot__in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo sign nav" "meta meta meta"; align-items: center; }
  .foot .logo { grid-area: logo; } .foot__sign { grid-area: sign; text-align: center; } .foot__nav { grid-area: nav; } .foot__meta { grid-area: meta; }
}

/* ---------- нижня кнопка на телефоні ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(244,241,234,0), var(--lp-lime) 40%);
  transform: translateY(110%); transition: transform .45s var(--lp-ease);
  pointer-events: none;
}
.cta-bar.show { transform: none; pointer-events: auto; }
.cta-bar .btn { width: 100%; min-height: 52px; }
@media (min-width: 760px) { .cta-bar { display: none; } }
/* щоб нижня кнопка не затуляла текст, у довгих секціях є запас знизу лише на телефоні */
@media (max-width: 759px) { .cta-bar.show ~ main { padding-bottom: 0; } }

/* ---------- вимкнений рух: статична, вже зібрана сцена ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero svg *, .step svg *, .mark-anim, .journal__table tr, .step.in .s-drop { animation: none !important; transition: none !important; }
  .h-ring, .h-scanline { opacity: 0 !important; }
  .h-beam, .h-mini, .w-x path, .w-cap text { opacity: 1 !important; }
  .w-h path, .w-v path { stroke-dashoffset: 0 !important; }
  .w-sh path { opacity: .16 !important; }
  .js .rv, .js .step .s-pop, .js .step .s-dolly, .js .step .s-journal, .js .step .s-cap, .js .pain .p-sheet, .js .pain .p-tag { opacity: 1; transform: none; transition: none; }
  .rail i { transform: none; }
  .iw-h path, .iw-v path { stroke-dashoffset: 0; transition: none; }
  .iw-tile, .iw-mark rect { opacity: 1; transform: none; transition: none; }
  .btn, .phone__view, .cta-bar, .statuses__row .chip { transition: none; }
}

/* сцена героя: стрічки плетіння виходять за край кадру — обрізаємо, без бічної прокрутки на телефоні */
html { overflow-x: clip; }
@media (max-width: 760px) { .hero__art { overflow: hidden; } }
