/* mementomori.digital — дизайн-система.
   Принципи: темний «інженерний мінімалізм», одна акцентна барва, тонкі лінії замість тіней,
   типографіка робить ієрархію, іконки — лише там, де несуть сенс. */

:root {
  --bg: #01110B;
  --bg-2: #021710;
  --surface: #04180F;
  --surface-2: #062218;
  --surface-3: #082C1F;
  --line: rgba(110, 231, 183, .10);
  --line-2: rgba(110, 231, 183, .18);
  --line-3: rgba(110, 231, 183, .32);
  --text: #ECFDF5;
  --text-2: #A9C5B9;
  --text-3: #73948A;
  --accent: #10B981;
  --accent-2: #34D399;
  --mint: #A7F3D0;
  --danger: #F87171;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: 20px;
  --nav-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- База ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
::selection { background: var(--accent); color: var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* фонове світіння — статичне, без анімації і без навантаження */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 50% -160px, rgba(16, 185, 129, .16), transparent 70%),
    radial-gradient(800px 600px at 100% 40%, rgba(16, 185, 129, .05), transparent 70%),
    var(--bg); }
.backdrop::after { content: ""; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

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

/* ---------- Іконки (inline SVG спрайт) ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 22px; height: 22px; }

/* ---------- Типографіка ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); color: var(--text); font-weight: 600; letter-spacing: -.03em; }
.h1 { font-size: clamp(40px, 7.2vw, 84px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.body { font-size: 15.5px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.small { font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.gradient-text { background: linear-gradient(180deg, #FFFFFF 0%, #D1FAE5 55%, #6EE7B7 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow .num { color: var(--text-3); }
.eyebrow .bar { width: 24px; height: 1px; background: var(--line-3); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #01120B; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(16, 185, 129, .5), 0 8px 30px -8px rgba(16, 185, 129, .55); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255, 255, 255, .02); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(110, 231, 183, .05); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .i { width: 18px; height: 18px; }
.link { color: var(--text-2); transition: color .2s; }
.link:hover { color: var(--text); }
.link-accent { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(52, 211, 153, .35); text-underline-offset: 3px; }
.link-accent:hover { text-decoration-color: currentColor; }

/* ---------- Навігація ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  background: rgba(1, 17, 11, .72); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(30deg); }
.brand-word { font: 700 19px/1 'Syne', var(--font-display); letter-spacing: -.02em; }
.brand-word b { color: var(--accent); font-weight: 700; }
.nav-links { display: none; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav-login:hover { color: var(--text); background: rgba(110, 231, 183, .05); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } }
@media (max-width: 420px) { .brand-word { font-size: 17px; } .nav-login span { display: none; } .nav-login { padding: 0 10px; } }

/* перемикач мови: нативний select поверх компактної «пігулки» */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 11px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text-2); font: 500 13px/1 var(--font-mono); letter-spacing: .04em; transition: border-color .2s, color .2s; }
.lang:hover, .lang:focus-within { border-color: var(--line-3); color: var(--text); }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; appearance: none; background: var(--surface); }
.lang select option { color: #01110B; }
.lang .i { width: 15px; height: 15px; }
.lang .chev { width: 13px; height: 13px; opacity: .7; }

/* ---------- Секції ---------- */
.section { position: relative; padding: 88px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: 48px; max-width: 760px; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: calc(var(--nav-h) + 72px) 0 72px; text-align: center; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .hero { padding: calc(var(--nav-h) + 112px) 0 104px; } }
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.hero .lead { max-width: 640px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin-top: 8px; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; justify-content: center; max-width: none; width: auto; } }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(16, 185, 129, .05); font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent-2); opacity: 0; animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; font: 400 13px/1.4 var(--font-mono); color: var(--text-3); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 15px; height: 15px; color: var(--accent); }
.trust ul, ul.trust { list-style: none; padding: 0; margin-left: 0; margin-right: 0; }
.hero-signal { position: absolute; left: 50%; top: 50%; width: min(980px, 150vw); aspect-ratio: 1; transform: translate(-50%, -52%); z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease; -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%); }
.hero-signal.ready { opacity: .9; }
@media (max-width: 640px) { .hero-signal.ready { opacity: .38; } }
.reveal { animation: rise .9s var(--ease) both; }
.reveal-2 { animation-delay: .08s; } .reveal-3 { animation-delay: .16s; } .reveal-4 { animation-delay: .24s; } .reveal-5 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Картки ---------- */
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 28px;
  background: linear-gradient(180deg, rgba(8, 44, 31, .55), rgba(4, 24, 15, .55)); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 32%); }
.card:hover { border-color: var(--line-2); }
@media (min-width: 768px) { .card { padding: 36px; } }
.card .h3 { margin: 22px 0 10px; }
.chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(16, 185, 129, .07); color: var(--accent-2); }
.chip .i { width: 20px; height: 20px; }
.chip-warn { color: #FCA5A5; background: rgba(248, 113, 113, .07); border-color: rgba(248, 113, 113, .22); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font: 500 13px/1 var(--font-mono); letter-spacing: .1em; color: var(--text-3); }

/* ---------- Шкала часу ---------- */
.timeline { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: rgba(4, 24, 15, .45); }
@media (min-width: 768px) { .timeline { padding: 36px; margin-top: 20px; } }
.timeline-title { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 22px 1fr; align-content: start; gap: 16px; padding-bottom: 28px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 10.5px; top: 18px; bottom: -2px; width: 1px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl .dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); display: grid; place-items: center; }
.tl .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.tl li.on .dot { border-color: var(--accent); }
.tl li.on .dot::after { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.tl-label { font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--mint); margin: 2px 0 6px; }
.tl-text { font-size: 15px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .tl li { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
  .tl li::before { left: 22px; right: -28px; top: 10.5px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Форма ---------- */
.create { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1024px) { .create { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .create-aside { position: sticky; top: calc(var(--nav-h) + 32px); } }
.create-aside { display: grid; gap: 24px; }
.next { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: next; }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--text-2); counter-increment: next; }
.next li::before { content: counter(next, decimal-leading-zero); font: 500 12px/24px var(--font-mono); color: var(--accent-2); letter-spacing: .06em; }
.price { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(16, 185, 129, .05); }
.price-label { font-size: 12px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.price-name { font-weight: 600; color: var(--text); }
.price-sub { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.price-value { font: 600 26px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); white-space: nowrap; }

.form-card { border-radius: var(--radius-lg); border: 1px solid var(--line-2); padding: 24px; background: linear-gradient(180deg, rgba(8, 44, 31, .6), rgba(3, 20, 13, .7)); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form { display: grid; gap: 28px; }
.fieldset { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset-title { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); padding: 0; }
.fieldset-sub { font-size: 14px; line-height: 1.55; color: var(--text-3); margin-top: -10px; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(1, 17, 11, .6); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
textarea.input { height: auto; min-height: 132px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: #4F6E63; }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); background: rgba(1, 17, 11, .85); }
.recipient-card { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(1, 17, 11, .35); }
.recipient-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.recipient-number { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--text-3); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.icon-btn:hover { color: var(--danger); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); }
.icon-btn .i { width: 16px; height: 16px; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; border: 1px dashed var(--line-3); background: none;
  color: var(--accent-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.add-btn:hover { border-color: var(--accent); background: rgba(16, 185, 129, .05); }
.add-btn .i { width: 16px; height: 16px; }
.form-foot { display: grid; gap: 14px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.consent { font-size: 13px; line-height: 1.55; color: var(--text-3); text-align: center; }
.consent a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.consent a:hover { color: var(--text); }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.footer-about { display: grid; gap: 16px; max-width: 340px; color: var(--text-3); line-height: 1.6; }
.footer h3 { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ---------- Вікі: довгі тексти ---------- */
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list-check li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.list-check .i { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-2); }
.list-check.neg .i { color: #FCA5A5; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none;
  font: 600 18px/1.4 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--accent-2); }
.faq .answer { padding: 0 0 26px; max-width: 760px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }

/* друге речення заголовка hero — тихіше */
.h1 .dim { display: block; background: linear-gradient(180deg, #86EFC1 0%, #10B981 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* сітки форми не повинні розпиратися природною шириною полів вводу */
.form, .fieldset, .field, .row-2, .recipient-card, .create-aside, .form-foot { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.input { min-width: 0; }

/* ---------- Сторінки-документи (вікі, правові) ---------- */
.hero-doc { text-align: left; padding-bottom: 64px; }
@media (min-width: 768px) { .hero-doc { padding-bottom: 88px; } }
.doc-head { display: grid; gap: 24px; max-width: 860px; justify-items: start; }
.hero-doc .h1 { font-size: clamp(38px, 6vw, 72px); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toc a { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; transition: border-color .2s, color .2s, background-color .2s; }
.toc a:hover { border-color: var(--line-3); color: var(--text); background: rgba(110, 231, 183, .04); }
.toc .num { font: 500 11.5px/1 var(--font-mono); color: var(--accent-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } .split > .section-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.card-quote .body { margin-top: 22px; font-size: 17px; line-height: 1.75; color: var(--text); }
.cta { display: grid; gap: 28px; align-items: center; padding: 40px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: radial-gradient(600px 300px at 0% 0%, rgba(16, 185, 129, .14), transparent 70%), linear-gradient(180deg, rgba(8, 44, 31, .6), rgba(3, 20, 13, .7)); }
.cta .lead { margin-top: 14px; max-width: 560px; }
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; padding: 56px; gap: 40px; } }
.section .card .list-check { margin-top: 20px; }

/* ---------- Правові тексти ---------- */
.legal { max-width: 760px; }
.legal > p:first-child { font-size: 18px; color: var(--text); }
.legal h2 { font: 600 22px/1.3 var(--font-display); letter-spacing: -.02em; color: var(--text); margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent); }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(52, 211, 153, .35); text-underline-offset: 3px; }
.legal-note { margin-bottom: 32px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(16, 185, 129, .05); font-size: 14px; color: var(--text-2); }
.doc-meta { font: 400 13px/1.4 var(--font-mono); color: var(--text-3); }
/* футер на вузьких екранах — у дві колонки */
@media (min-width: 380px) and (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* кнопки на всю ширину: текст переноситься, а не вилазить за край (mobile first) */
.btn-block { height: auto; min-height: 52px; padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.3; }
.btn-block > span { min-width: 0; }
@media (max-width: 420px) { .btn:not(.btn-sm) { white-space: normal; height: auto; min-height: 50px; padding: 13px 18px; line-height: 1.3; text-align: center; } }

/* м'яке світіння, що йде за курсором (лише десктоп із мишею; вимикається при «менше руху») */
.cursor-glow { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, .11), rgba(16, 185, 129, .04) 38%, transparent 65%); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.cursor-glow.on { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }
.nav, main, .hero-inner, .footer { position: relative; z-index: 1; }
.nav { position: fixed; z-index: 40; }

/* довірена особа у формі */
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--accent-2);
  font: 500 11px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373948A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
select.input option { color: #01110B; }

/* ---------- Службові сторінки (довірена особа, відписка) ---------- */
.svc { min-height: calc(100svh - 140px); display: grid; align-items: center; padding: calc(var(--nav-h) + 40px) 0 56px; }
.svc .container { max-width: 640px; }
.svc-card { display: grid; gap: 18px; justify-items: start; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(8, 44, 31, .6), rgba(3, 20, 13, .7)); }
@media (min-width: 640px) { .svc-card { padding: 44px; } }
.svc-title { text-wrap: balance; }
.svc-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.svc-foot { padding: 24px 0 32px; }
.svc-card .svc-note { width: 100%; margin-top: -10px; }

/* ---------- Засновник ---------- */
.section.founder-section { padding-top: 8px; padding-bottom: 72px; border-top: 0; }
@media (min-width: 768px) { .section.founder-section { padding-bottom: 104px; } }
.founder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(6,34,24,.55), rgba(4,24,15,.35)); }
@media (min-width: 720px) { .founder { grid-template-columns: auto minmax(0, 1fr); gap: 40px; padding: 40px 44px; } }
.founder-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line-3); background: radial-gradient(circle at 30% 25%, rgba(52,211,153,.28), rgba(4,24,15,.9) 70%); box-shadow: 0 0 0 8px rgba(16,185,129,.05); }
@media (min-width: 720px) { .founder-photo { width: 168px; height: 168px; } }
.founder-photo picture { display: block; width: 100%; height: 100%; }
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder-photo span { font: 600 34px/1 var(--font-display); letter-spacing: -.02em; color: var(--mint); }
.founder-body { display: grid; gap: 10px; justify-items: start; }
.founder-name { margin-top: 4px; }
.founder-role { margin: 0; font: 500 13px/1.4 var(--font-mono); color: var(--accent-2); letter-spacing: .02em; }
.founder .body { max-width: 680px; }

/* ---------- Блок-заява з «Подихом» ---------- */
.statement { position: relative; overflow: clip; display: grid; align-items: center; min-height: clamp(560px, 88vh, 820px); margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.statement-canvas.ready { opacity: 1; }
.statement-inner { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; padding-top: 64px; padding-bottom: 120px; }
.statement-inner .h1 { max-width: 13ch; }
.statement-inner .lead { max-width: 520px; }
.statement .hero-actions { justify-content: flex-start; margin-top: 4px; }
@media (max-width: 759px) { .statement { align-items: end; } .statement-inner { padding-top: 58vh; padding-bottom: 56px; } }

/* ---------- A/B: перший екран ---------- */
html[data-hero="b"] .hero-a, html:not([data-hero="b"]) .hero-b { display: none !important; }
.statement.hero-b { margin-top: 0; border-top: 0; min-height: clamp(600px, 100svh, 900px); }
.statement.hero-b .statement-inner { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 96px; }
.statement.hero-b .trust { justify-content: flex-start; margin-top: 16px; }
@media (max-width: 759px) { .statement.hero-b .statement-inner { padding-top: calc(var(--nav-h) + 26svh); padding-bottom: 48px; } }
.statement.hero-b .hero-actions { flex-wrap: wrap; }
