/* jerelai.com · головна · 30.11.2026
   Графіт у 5 шарах + шампань-золото лише тонкими лініями (≤5 % площі). Кнопки нейтральні.
   Один шрифт Inter (кирилиця), один набір іконок (Lucide). Рух: лише transform / opacity / stroke-dashoffset, усе вимикається «менше руху». */

@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; font-display: swap; }

:root, [data-theme="dark"] {
  --bg0: #121212; --bg1: #161616; --s1: #1b1b1b; --s2: #222222; --s3: #2a2a2a;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.2);
  --tx: #ecebe8; --tx2: #a6a49f; --tx3: #77756f;
  --gold: #cbb383; --gold2: #e4d4ae; --gold-ink: #2a2112; --gold-soft: rgba(203,179,131,.09); --gold-line: rgba(203,179,131,.42);
  --flow: 203,179,131; --flow-a: .16;
  --btn: #ecebe8; --btn-fg: #141414; --btn-h: #ffffff;
  --pop: 0 24px 60px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.4);
  --ok: #9db394; --dim: #77756f;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg0: #f6f5f1; --bg1: #f0eee8; --s1: #ffffff; --s2: #faf9f6; --s3: #efece5;
  --line: rgba(40,32,18,.09); --line2: rgba(40,32,18,.15); --line3: rgba(40,32,18,.26);
  --tx: #1e1c18; --tx2: #5d584e; --tx3: #8b8579;
  --gold: #8a6d36; --gold2: #a8874a; --gold-ink: #ffffff; --gold-soft: rgba(138,109,54,.08); --gold-line: rgba(138,109,54,.5);
  --flow: 138,109,54; --flow-a: .2;
  --btn: #1e1c18; --btn-fg: #ffffff; --btn-h: #000000;
  --pop: 0 24px 60px rgba(60,45,20,.14), 0 2px 8px rgba(60,45,20,.08);
  --ok: #4f7449; --dim: #8b8579;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg0); color: var(--tx); font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); position: relative; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--btn); color: var(--btn-fg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main, .foot { position: relative; z-index: 1; }

/* живий фон: тонкі золоті потоки на всю сторінку (полотно під усім) */
.bgflow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.is-scrolled { background: color-mix(in srgb, var(--bg0) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand .mark { width: 26px; height: 21px; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--tx2); font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--tx); background: var(--s2); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--tx2); padding: 7px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.lang:hover { color: var(--tx); border-color: var(--line3); }
.ib { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--tx2); cursor: pointer; }
.ib:hover { color: var(--tx); border-color: var(--line3); }
.ib .i-moon, [data-theme="light"] .ib .i-sun { display: none; }
[data-theme="light"] .ib .i-moon { display: block; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 Inter, system-ui, sans-serif; text-decoration: none; transition: transform .18s, background-color .18s, border-color .18s; }
.btn-pri { background: var(--btn); color: var(--btn-fg); }
.btn-pri:hover { background: var(--btn-h); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line2); color: var(--tx); }
.btn-ghost:hover { border-color: var(--gold-line); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- текст ---------- */
.chip { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx2); padding: 6px 14px 6px 10px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--s1) 70%, transparent); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.h1 { font-weight: 600; font-size: clamp(36px, 4.7vw, 62px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.h1 .l2 { color: var(--tx2); }
.h2 { font-weight: 600; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--tx2); max-width: 36em; text-wrap: pretty; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-lead { color: var(--tx2); font-size: 16px; max-width: 44em; }
section { position: relative; }

/* ---------- перший екран: спільне ---------- */
.hero { padding: clamp(36px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.hero-copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.hero-copy.is-center { justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-copy.is-center .lead { margin: 0 auto; }
.hero-copy .ctas { margin-top: 6px; }
.sample { position: absolute; z-index: 3; font-size: 11px; color: var(--tx3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: var(--bg1); }

/* 1 «Джерело» */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; min-height: calc(100svh - 64px - 160px); }
.scene { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: end; border-radius: 24px; border: 1px solid var(--line); background:
  radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--s2) 90%, transparent), transparent 70%), var(--s1); overflow: hidden; container-type: inline-size; isolation: isolate; }
.scene::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); opacity: .7; }
.scene .sample { right: 14px; bottom: 14px; }
.sc-water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sc-flows { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.fl { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.sc-comment { position: absolute; z-index: 2; left: 50%; top: 5%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: max(11px, 2.5cqw); color: var(--tx2); white-space: nowrap; padding: .55em .7em .55em .55em; border-radius: 999px; border: 1px solid var(--line2); background: var(--s2); }
.sc-comment b { color: var(--tx); font-weight: 500; }
.av { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--tx3); }
.av .ic { width: 1.1em; height: 1.1em; }
.kw { font-weight: 600; color: var(--gold2); letter-spacing: .02em; padding: .1em .55em; border-radius: 6px; border: 1px solid var(--gold-line); }
[data-theme="light"] .kw { color: var(--gold); }
.sc-card { position: absolute; z-index: 2; font-size: max(11px, 2.45cqw); line-height: 1.45; padding: .9em 1em; border-radius: 14px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--s2) 94%, transparent); box-shadow: var(--pop); display: grid; gap: .5em; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.sc-card p { color: var(--tx); }
.sc-card.on { opacity: 1; transform: none; }
.sc-k { display: inline-flex; align-items: center; gap: .45em; color: var(--tx3); font-size: .9em; }
.sc-k .ic { width: 1.15em; height: 1.15em; color: var(--gold); }
.sc-btn { justify-self: start; font-size: .92em; font-weight: 500; padding: .4em .8em; border-radius: 8px; border: 1px solid var(--line2); color: var(--tx); }
.c1 { left: 4%; top: 21%; width: 43%; }
.c2 { right: 4%; top: 21%; width: 43%; }
.c3 { right: 6%; top: 58%; padding: .55em .8em; border-radius: 999px; }

/* 2 «Продукт» */
.hero-2 { padding-bottom: clamp(40px, 6vh, 80px); }
.hero-2 .hero-copy { padding-top: clamp(8px, 3vh, 36px); }
.stage2 { perspective: 1800px; margin-top: clamp(36px, 6vh, 64px); }
.app { --rx: 18deg; --sc: .94; position: relative; border-radius: 18px; border: 1px solid var(--line2); background: var(--s1); box-shadow: var(--pop); transform: rotateX(var(--rx)) scale(var(--sc)); transform-origin: 50% 0; overflow: hidden; will-change: transform; }
.app-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg1); font-size: 12px; color: var(--tx3); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); }
.app-bar .sample { position: static; margin-left: auto; }
.app-cols { display: grid; grid-template-columns: 1fr .9fr 1.15fr; min-height: 400px; }
.col { position: relative; padding: 16px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; font-size: 13px; }
.col:last-child { border-right: 0; }
.col-h { display: flex; align-items: center; gap: 8px; color: var(--tx2); font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.col-h .ic { width: 15px; height: 15px; color: var(--gold); }
.post { position: relative; aspect-ratio: 16/10; border-radius: 10px; background: linear-gradient(160deg, var(--s3), var(--s2)); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.post svg { position: absolute; left: 20%; top: 12%; width: 60%; height: 76%; fill: none; stroke: var(--gold-line); stroke-width: .8; }
.post .post-play { z-index: 1; background: color-mix(in srgb, var(--bg0) 50%, transparent); }
.post-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line3); position: relative; }
.post-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 10px solid var(--tx3); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cm { display: flex; align-items: center; gap: 8px; color: var(--tx2); padding: 8px; border-radius: 10px; }
.cm-t { flex: 1; height: 8px; border-radius: 4px; background: var(--s3); }
.cm-new { border: 1px solid var(--line2); background: var(--s2); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.cm-new .kw { margin-left: auto; font-size: 12px; }
.col-flow { justify-items: center; }
.mini-flow { position: absolute; left: 0; right: 0; top: 50px; margin: auto; width: 220px; height: 300px; }
.mf-l { fill: none; stroke: var(--line3); stroke-width: 1.2; }
.mf-p { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: .08 1; stroke-dashoffset: .08; opacity: 0; }
.node { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 88%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); font-size: 12px; color: var(--tx2); transition: border-color .25s, color .25s; }
.node .ic { width: 15px; height: 15px; }
.node.on { border-color: var(--gold-line); color: var(--tx); }
.node.on .ic { color: var(--gold); }
.n1 { top: 78px; } .n2 { top: 162px; } .n3 { top: 242px; } .n4 { top: 312px; }
.col-dm { background: var(--bg1); }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.msg.in { justify-self: end; background: var(--s3); border-bottom-right-radius: 4px; font-weight: 600; letter-spacing: .02em; }
.msg.out { justify-self: start; background: var(--s2); border: 1px solid var(--line2); border-bottom-left-radius: 4px; display: grid; gap: 8px; }
.msg-sep { justify-self: center; font-size: 11px; color: var(--tx3); opacity: 0; transition: opacity .3s; }
.app.s1 .cm-new, .app.s2 .msg.in, .app.s3 .m1, .app.s4 .msg-sep, .app.s4 .m2 { opacity: 1; transform: none; }
.app.s2 .mf-p { opacity: 1; }

/* 3 «Потоки» */
.hero-3 { min-height: calc(100svh - 64px); padding: 0; display: grid; grid-template-rows: auto 1fr; }
.hero3-in { padding-top: clamp(24px, 6vh, 64px); padding-bottom: 12px; }
.hero-3 .hero-copy { max-width: 760px; }
.st-box { position: relative; min-height: 270px; pointer-events: none; }
.streams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-b { fill: none; stroke: rgba(var(--flow), .42); stroke-width: 1.2; }
.st-p { fill: none; stroke: var(--gold2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; animation: pk 5.5s linear infinite; }
[data-theme="light"] .st-p { stroke: var(--gold); }
.st-p.p1 { animation-duration: 6.4s; animation-delay: -2s; } .st-p.p2 { animation-duration: 5s; animation-delay: -3.4s; } .st-p.p3 { animation-duration: 7s; animation-delay: -1s; }
@keyframes pk { to { stroke-dashoffset: 0; } }
.st-labels li { position: absolute; left: clamp(16px, 3vw, 40px); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx2); padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg0); transform: translateY(-50%); }
.st-labels .ic { width: 15px; height: 15px; color: var(--gold); }
.st-labels .s1 { top: 19%; } .st-labels .s2 { top: 40.5%; } .st-labels .s3 { top: 62%; } .st-labels .s4 { top: 83%; }
.st-drop { position: absolute; left: 82.6%; top: 28.6%; width: clamp(120px, 15vw, 210px); transform: translate(-50%, -79.5%); display: grid; justify-items: center; }
.st-drop img { width: 100%; height: auto; }
.st-drop span { position: absolute; top: 100%; margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--tx); white-space: nowrap; }
.st-drop span .ic { width: 15px; height: 15px; color: var(--gold); }
.fm-l, [data-theme="light"] .fm-d { display: none; }
[data-theme="light"] .fm-l { display: block; }

/* ---------- смуга фактів ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg1) 70%, transparent); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pf { padding: clamp(22px, 3vw, 34px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pf:first-child { border-left: 0; padding-left: 0; }
.pf-n { font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-n small { font-size: .42em; font-weight: 500; color: var(--tx2); margin-left: .15em; letter-spacing: 0; }
.pf p { font-size: 14px; color: var(--tx2); line-height: 1.45; max-width: 22em; }
.pf::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 10px; transform-origin: left; }

/* ---------- як це працює: прикріплена сцена ---------- */
.how { height: 320vh; }
.how-pin { position: sticky; top: 64px; height: calc(100svh - 64px); display: grid; align-items: center; overflow: hidden; }
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.how-copy { display: grid; gap: 28px; }
.how-steps { display: grid; gap: 6px; counter-reset: s; }
.how-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.how-steps li > div { display: grid; gap: 4px; }
.how-steps h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--tx3); transition: color .3s; }
.how-steps p { font-size: 14px; color: var(--tx3); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s; }
.hs-n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font-size: 13px; color: var(--tx3); font-variant-numeric: tabular-nums; transition: border-color .3s, color .3s; }
.how-steps li.on { border-color: var(--line2); background: var(--s1); }
.how-steps li.on h3 { color: var(--tx); }
.how-steps li.on p { max-height: 8em; opacity: 1; color: var(--tx2); }
.how-steps li.on .hs-n { border-color: var(--gold-line); color: var(--gold); }
.how-steps li.done .hs-n { color: var(--tx2); }
.how-board { --p: 0; position: relative; height: 560px; border-radius: 22px; border: 1px solid var(--line); background: var(--s1); overflow: hidden; }
.hb-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent); opacity: .55; }
.hb-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.e { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hn { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s; display: grid; gap: 2px; min-width: 190px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s2); }
.hn.on { opacity: 1; transform: translate(-50%, -50%); }
.hn-k { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--tx3); }
.hn-k .ic { width: 14px; height: 14px; color: var(--gold); }
.hn-v { font-size: 14px; color: var(--tx); font-weight: 500; }
.hn.t { border-color: var(--gold-line); }
.hn.c { min-width: 0; width: 12px; height: 12px; padding: 0; border-radius: 3px; transform: translate(-50%, -50%) rotate(45deg); background: var(--s3); border-color: var(--gold-line); }
.hn.c.on { transform: translate(-50%, -50%) rotate(45deg); }
.hn.y, .hn.n { min-width: 150px; }
.hn-ch { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .35s; }
.hn-ch span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); color: var(--tx2); }
.hn-ch span .ic { width: 16px; height: 16px; }
.hn-ch em { font-style: normal; font-size: 11px; color: var(--tx3); margin-left: 4px; }
.hn-ch.on { opacity: 1; }
.hb-yn { position: absolute; top: 352px; font-size: 11px; color: var(--tx3); opacity: 0; transition: opacity .3s; }
.hb-yn.yes { right: 53%; } .hb-yn.no { left: 54%; }
.hb-yn.on { opacity: 1; }
.hb-ok { position: absolute; left: 50%; bottom: 78px; transform: translate(-50%, 6px); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 12px; color: var(--ok); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg1); opacity: 0; transition: opacity .3s, transform .3s; }
.hb-ok .ic { width: 14px; height: 14px; }
.hb-ok.on { opacity: 1; transform: translate(-50%, 0); }
.hb-stats { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--bg1); opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.hb-stats span { display: grid; gap: 2px; padding: 12px 16px; font-size: 11px; color: var(--tx3); border-left: 1px solid var(--line); }
.hb-stats span:first-child { border-left: 0; }
.hb-stats b { font-size: 20px; color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hb-stats.on { opacity: 1; transform: none; }

/* ---------- можливості ---------- */
.feat, .honest, .pricing, .faq, .final { padding: clamp(56px, 7.5vw, 100px) 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ft { --mx: 50%; --my: 0%; position: relative; grid-column: span 2; display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--s1); overflow: hidden; isolation: isolate; }
.ft::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), var(--gold-line), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.ft:hover::before { opacity: 1; }
.ft-h { display: flex; align-items: center; gap: 10px; }
.ft-h .ic { color: var(--gold); }
.ft h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.ft > p { color: var(--tx2); font-size: 14.5px; line-height: 1.55; }
.ft-inbox { grid-column: span 4; grid-template-columns: 1fr 1.1fr; column-gap: 28px; }
.ft-inbox .ft-h, .ft-inbox > p { grid-column: 1; }
.ft-inbox .mini-inbox { grid-column: 2; grid-row: 1 / span 3; }
.ft-bc { grid-column: span 6; grid-template-columns: 1fr 1.4fr; column-gap: 28px; }
.ft-bc .ft-h, .ft-bc > p { grid-column: 1; }
.ft-bc .mini-bc { grid-column: 2; grid-row: 1 / span 3; }
.mini-inbox, .mini-bc, .mini-ch { display: grid; gap: 8px; align-content: center; }
.mini-inbox li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); font-size: 13px; }
.mi-ch { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--s3); color: var(--tx2); }
.mi-ch .ic { width: 15px; height: 15px; }
.mi-t { display: grid; color: var(--tx2); line-height: 1.35; }
.mi-t b { font-weight: 500; color: var(--tx); font-size: 12px; }
.mi-s { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--tx3); }
.mi-s.s-human { border-color: var(--gold-line); color: var(--gold2); }
[data-theme="light"] .mi-s.s-human { color: var(--gold); }
.tpl-stack { position: relative; height: 168px; margin-top: 6px; }
.tpl-stack span { position: absolute; left: calc(var(--i) * 7%); top: calc(var(--i) * 28px); width: 62%; padding: 9px 12px; font-size: 12px; color: var(--tx2); border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ft-tpl:hover .tpl-stack span { transform: translateX(calc(var(--i) * 6px)); }
.tpl-stack b { position: absolute; right: 0; bottom: -6px; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--gold-line); }
.mini-scheme { width: 100%; height: auto; margin-top: 8px; }
.mini-scheme path { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .2s; }
.mini-scheme circle { fill: var(--s1); stroke: var(--line3); stroke-width: 1.3; }
.ft-fun.in .mini-scheme path { stroke-dashoffset: 0; }
.mini-ch li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-ch li:last-child { border-bottom: 0; }
.mini-ch em { font-style: normal; font-size: 12px; color: var(--ok); }
.mini-ch li.soon span, .mini-ch li.soon em { color: var(--tx3); }
.tg-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s2); font-size: 13px; margin-top: 4px; }
.tg-from { display: inline-flex; gap: 8px; align-items: center; color: var(--tx3); font-size: 12px; }
.tg-from .ic { width: 14px; height: 14px; color: var(--gold); }
.tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-btns i { font-style: normal; text-align: center; padding: 8px; border-radius: 9px; border: 1px solid var(--line2); color: var(--tx2); font-size: 12.5px; }
.tg-btns i.ok { background: var(--btn); color: var(--btn-fg); border-color: transparent; }
.mini-bc li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); font-size: 13px; transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 90ms + .3s); }
.mini-bc em { font-style: normal; font-size: 12px; }
.mini-bc li.is-sent em { color: var(--ok); }
.mini-bc li.is-skip em { color: var(--tx3); }
.ft-bc.in .mini-bc li.is-skip { opacity: .55; transform: translateX(10px); }

/* ---------- чесно ---------- */
.hon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.hon-col { padding-top: 22px; border-top: 1px solid var(--gold-line); display: grid; gap: 18px; align-content: start; }
.hon-col.no { border-top-color: var(--line2); }
.hon-col h3 { font-size: 15px; font-weight: 600; color: var(--tx2); }
.hon-col ul { display: grid; gap: 16px; }
.hon-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--tx); }
.hon-col li .ic { margin-top: 3px; color: var(--tx3); }
.hon-col li .ic.ok { color: var(--gold); }
.hon-col.no li { color: var(--tx2); }

/* ---------- ціни ---------- */
.pricing { padding-block: clamp(48px, 7vw, 88px); }
.price-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 14px 5px 10px; border-radius: 999px; border: 1px dashed var(--gold-line); color: var(--gold2); font-size: 13px; }
[data-theme="light"] .price-badge { color: var(--gold); }
.price-badge .ic { width: 15px; height: 15px; color: var(--gold); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 24px 22px; border-radius: 18px; border: 1px solid var(--line2); background: var(--bg1); min-width: 0; }
.plan.feat { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), transparent 60%), var(--bg1); }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--tx2); letter-spacing: .02em; }
.plan-price { display: grid; gap: 2px; }
.plan-price b { font-size: clamp(34px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.02em; color: var(--tx); line-height: 1.1; }
.plan-price span { font-size: 13px; color: var(--tx3); }
.plan ul { display: grid; gap: 12px; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--tx2); }
.plan li .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
.plan .btn { width: 100%; }
.price-foot { margin-top: 22px; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--tx3); }

/* ---------- питання ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { display: grid; gap: 16px; justify-items: start; position: sticky; top: 96px; }
.more { font-size: 14px; color: var(--tx2); text-decoration: none; border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.more:hover { color: var(--tx); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-size: 16px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--tx3); transition: transform .25s, color .25s; }
.faq-list details[open] summary .ic { transform: rotate(45deg); color: var(--gold); }
.faq-list summary:hover .ic { color: var(--tx); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--tx2); font-size: 15px; }

/* ---------- фінал ---------- */
.final-in { display: grid; justify-items: center; text-align: center; gap: 20px; }
.final-mark { position: relative; width: 200px; height: 200px; margin-bottom: 8px; }
.final-mark img { width: 100%; height: 100%; position: relative; z-index: 1; }
.ripples { position: absolute; left: 50%; top: 77%; width: 420px; transform: translate(-50%, -50%); overflow: visible; }
.ripples ellipse { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; transform-origin: 200px 60px; }
.final.in .ripples ellipse { animation: rip 4.2s cubic-bezier(.2,.6,.3,1) infinite; }
.final.in .ripples ellipse:nth-child(2) { animation-delay: 1.4s; }
.final.in .ripples ellipse:nth-child(3) { animation-delay: 2.8s; }
@keyframes rip { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.final .sec-lead { max-width: 34em; }

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; background: var(--bg0); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.foot nav a { font-size: 13px; color: var(--tx2); text-decoration: none; }
.foot nav a:hover { color: var(--tx); }
.foot nav .lang { padding: 2px 8px; }
.foot p { grid-column: 1 / -1; font-size: 13px; color: var(--tx3); }

/* ---------- поява: різні способи, не одна «знизу вгору» на всьому ---------- */
.js [data-r="fade"] { opacity: 0; transition: opacity .7s ease var(--d, 0s); }
.js [data-r="rise"] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js [data-r="mask"] { clip-path: inset(0 0 100% 0); transform: translateY(.25em); transition: clip-path .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-r="stagger"] > * { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js [data-r="stagger"] > *:nth-child(2) { transition-delay: .08s; } .js [data-r="stagger"] > *:nth-child(3) { transition-delay: .16s; } .js [data-r="stagger"] > *:nth-child(4) { transition-delay: .24s; }
.js [data-r="words"] .w { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--wi) * 45ms); }
.js .in[data-r="fade"], .js .in[data-r="rise"], .js .in[data-r="stagger"] > *, .js .in[data-r="words"] .w { opacity: 1; transform: none; }
.js .in[data-r="mask"] { clip-path: inset(0 0 -10% 0); transform: none; }
.js .pf::before { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1) .2s; }
.js .in .pf::before { transform: scaleX(1); }

.how-board .sample { right: 14px; top: 14px; }
/* без JS: схема й картки видно цілком */
html:not(.js) .hn, html:not(.js) .hn-ch, html:not(.js) .hb-yn, html:not(.js) .hb-stats, html:not(.js) .sc-card, html:not(.js) .cm-new, html:not(.js) .msg, html:not(.js) .msg-sep { opacity: 1; transform: none; }
html:not(.js) .hn { transform: translate(-50%, -50%); }
html:not(.js) .e, html:not(.js) .fl, html:not(.js) .mini-scheme path { stroke-dashoffset: 0; }
.ft-bc .mini-bc { grid-template-columns: 1fr 1fr; }
@media (prefers-reduced-motion: reduce) {
  .mini-scheme path { stroke-dashoffset: 0; }
  .ft-bc .mini-bc li.is-skip { opacity: .55; }
  .ripples ellipse:nth-child(1) { opacity: .5; transform: scale(1.3); } .ripples ellipse:nth-child(2) { opacity: .3; transform: scale(2); } .ripples ellipse:nth-child(3) { opacity: .15; transform: scale(2.8); }
}

/* ---------- телефон ---------- */
@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .top.menu-open .nav { display: grid; position: fixed; top: 64px; left: 0; right: 0; padding: 12px 20px 20px; background: var(--bg0); border-bottom: 1px solid var(--line); gap: 2px; margin: 0; }
  .top.menu-open .nav a { font-size: 16px; padding: 12px; }
  .top.menu-open .menu-btn .i-open { display: none; }
  .top.menu-open .menu-btn .i-close { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .scene { justify-self: center; max-width: 460px; }
  .app-cols { grid-template-columns: 1fr 1fr; }
  .col-flow { display: none; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; overflow: visible; padding: clamp(64px, 10vw, 96px) 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-steps p { max-height: none; opacity: 1; color: var(--tx2); }
  .how-steps h3 { color: var(--tx); }
  .how-steps li { border-color: var(--line); background: var(--s1); }
  .how-steps li .hs-n { border-color: var(--gold-line); color: var(--gold); }
  .bento { grid-template-columns: 1fr 1fr; }
  .ft, .ft-inbox, .ft-bc { grid-column: span 2; }
  .ft-tpl, .ft-ch { grid-column: span 1; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-in { gap: 12px; }
  .lang { padding: 6px 8px; }
  .hero { padding-top: 28px; }
  .hero-copy { gap: 18px; }
  .ctas .btn { flex: 1 1 auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .pf { padding: 20px 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .pf:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pf:nth-child(-n+2) { border-top: 0; }
  .app { --rx: 10deg; }
  .app-cols { grid-template-columns: 1fr; min-height: 0; }
  .col-ig { border-right: 0; border-bottom: 1px solid var(--line); }
  .col-ig .post { display: none; }
  .how-board { height: 560px; margin-inline: -4px; }
  .hn { min-width: 150px; padding: 9px 11px; }
  .hn.y, .hn.n { min-width: 132px; }
  .hn-v { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .ft, .ft-inbox, .ft-bc, .ft-tpl, .ft-ch { grid-column: span 1; }
  .ft-inbox, .ft-bc { grid-template-columns: 1fr; }
  .ft-inbox .mini-inbox, .ft-bc .mini-bc { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .ft-bc .mini-bc { grid-template-columns: 1fr; }
  .ft-bc.in .mini-bc li.is-skip { transform: none; }
  .yn-c { display: none; }
  .hon-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .st-box { min-height: 250px; }
  .app-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .st-labels li { font-size: 12px; padding: 4px 10px 4px 7px; }
  .st-drop { width: 104px; left: 80%; }
  .st-drop span { font-size: 12px; margin-top: 12px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .final-mark { width: 150px; height: 150px; }
  .ripples { width: 320px; }
}

/* ---------- менше руху: усе видно одразу, без руху ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r], .js [data-r] > *, .js [data-r] .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .pf::before { transform: none; }
  .st-p { display: none; }
  .app { --rx: 0deg; --sc: 1; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; overflow: visible; padding: clamp(64px, 10vw, 112px) 0; }
  .how-steps p { max-height: none; opacity: 1; color: var(--tx2); }
  .how-steps h3 { color: var(--tx); }
}
