/* Delegai — стилі сайту. Бренд спільний із каруселями: темний фон, лаймовий акцент, Inter + IBM Plex Mono. */

@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-mono-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0c0d11;
  --bg-2: #101217;
  --surface: #15171d;
  --surface-2: #1a1d24;
  --line: #2a2e37;
  --line-soft: #20232b;
  --line-input: #656b78; /* 3:1 до картки форми — WCAG 1.4.11 */
  --text: #f4f2ec;
  --muted: #a9adb7;
  --dim: #8a8f99;
  --accent: #c6f24e;
  --accent-hi: #d6fa72;
  --accent-ink: #0c0d11;
  --accent-a12: rgba(198, 242, 78, .12);
  --accent-a40: rgba(198, 242, 78, .4);
  --bad: #ff8a77;
  --violet: #6f7bff;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Consolas", monospace;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-nav: 50;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.hl { color: var(--accent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- фон ---------- */
.bg { position: absolute; inset: 0 0 auto 0; height: 1400px; pointer-events: none; z-index: -1; overflow: hidden; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 45% at 85% 8%, rgba(198, 242, 78, .16), transparent 70%),
    radial-gradient(35% 40% at 5% 40%, rgba(111, 123, 255, .14), transparent 70%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 80%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 80%);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 22px; font-size: 1.0625rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 10px 30px -10px rgba(198, 242, 78, .6); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--accent-a40); color: var(--accent); }
.btn-ink { background: var(--accent-ink); color: var(--accent); }
.btn-ink:hover { background: #1a1d24; }
.btn-ink-ghost { border-color: rgba(12, 13, 17, .35); color: var(--accent-ink); }
.btn-ink-ghost:hover { border-color: var(--accent-ink); background: rgba(12, 13, 17, .06); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- навігація ---------- */
.nav { position: sticky; top: 12px; z-index: var(--z-nav); padding: 0 var(--gutter); margin-top: 12px; }
.nav-in {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 8px 8px 8px 18px;
  background: rgba(16, 18, 23, .72); border: 1px solid var(--line-soft); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.scrolled .nav-in { border-color: var(--line); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand svg { width: 32px; height: 32px; }
.brand b { color: var(--accent); font-weight: 760; }
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 550;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }

.lang { display: flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.lang a {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 10px;
  font-family: var(--mono); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--dim);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--accent); }

/* ---------- загальні секції ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.75rem); line-height: 1.0; font-weight: 820; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.032em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 720; letter-spacing: -0.015em; }
.sec-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); text-wrap: pretty; max-width: 62ch; }

.card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: clamp(22px, 3vw, 30px);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 24px; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--dim); font-size: .9375rem; }
.note svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.demo { position: relative; }
.demo::before {
  content: ""; position: absolute; inset: 8% 0 -4% 6%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(198, 242, 78, .2), transparent 70%); filter: blur(30px);
}
.window {
  background: linear-gradient(180deg, #171a21, #111318); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line-soft); background: #181b22; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #393e49; flex: none; }
.win-file { margin-left: 8px; font-family: var(--mono); font-size: .8125rem; color: var(--dim); }
.seg { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #0e1014; }
.seg button {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--muted);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.win-body { padding: 22px 22px 30px; min-height: 330px; }
.pane { animation: fade .28s var(--ease); }
.pane-before .mono {
  font-size: 1rem; line-height: 1.7; color: #d2cfc8;
  padding: 16px 18px; border-left: 3px solid var(--bad); background: rgba(255, 138, 119, .06); border-radius: 0 12px 12px 0;
}
.verdict { margin-top: 16px; font-family: var(--mono); font-size: .875rem; color: var(--bad); }
.blk { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.blk:last-child { border-bottom: 0; }
.blk-tag { font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.blk .mono { font-size: .9688rem; line-height: 1.6; color: var(--text); }
.demo-badge {
  position: absolute; left: 14px; bottom: -22px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 720; font-size: .9375rem;
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(198, 242, 78, .45);
  animation: float 6s ease-in-out infinite;
}
.demo-badge svg { width: 20px; height: 20px; flex: none; }

/* ---------- помилки (bento) ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.mistake { display: flex; flex-direction: column; gap: 14px; }
.mistake:hover { border-color: var(--line); }
.m-num { font-family: var(--mono); font-weight: 600; font-size: .875rem; color: var(--bad); letter-spacing: .08em; }
.m-quote {
  font-family: var(--mono); font-size: .9375rem; line-height: 1.6; color: #cfccc5;
  padding: 12px 16px; border-left: 3px solid var(--bad); background: rgba(255, 138, 119, .05); border-radius: 0 10px 10px 0;
}
.m-fix { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-top: auto; }
.m-fix svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.bento .m-cta { grid-column: 1 / -1; }
.m-cta {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: linear-gradient(150deg, rgba(198, 242, 78, .16), rgba(198, 242, 78, .03) 60%), var(--surface);
  border-color: var(--accent-a40);
}
.m-cta p { color: var(--muted); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.m-chips li { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--text); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(12, 13, 17, .5); }
.m-chips li span { color: var(--accent); margin-right: 6px; }
.m-cta-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 680; }
.m-cta-link svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.m-cta:hover { border-color: var(--accent); box-shadow: 0 20px 50px -30px rgba(198, 242, 78, .5); }
.m-cta:hover .m-cta-link svg { transform: translateX(4px); }

/* ---------- гайд ---------- */
.guide-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
.toc { display: grid; gap: 4px; counter-reset: toc; }
.toc li {
  display: flex; gap: 16px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
}
.toc-n { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--accent); flex: none; width: 2ch; }
.toc li > span:last-child { color: var(--text); }

.guide-side { position: relative; padding-top: 0; }
.cover {
  display: flex; flex-direction: column; gap: 10px;
  width: min(72%, 300px); aspect-ratio: 4 / 5; margin: 0 auto -56px; padding: 24px; border-radius: 20px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(198, 242, 78, .35), transparent 70%),
    linear-gradient(160deg, #1d2129, #111318);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  transform: rotate(-4deg);
}
.cover-tag { align-self: flex-start; font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-a40); border-radius: 999px; padding: 4px 10px; }
.cover strong { margin-top: 8px; font-size: 1.6rem; line-height: 1.08; font-weight: 820; letter-spacing: -0.03em; }
.cover-sub { color: var(--muted); font-size: .875rem; }
.cover-brand { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 760; letter-spacing: -0.03em; }
.cover-brand svg { width: 22px; height: 22px; }
.cover-brand b { color: var(--accent); font-weight: 760; }

.form-card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #1a1d24, #14161c); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(22px, 3.5vw, 32px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .95);
}
.form-card h3 { font-size: 1.375rem; margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #0e1014; margin-bottom: 20px; }
.tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 650; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(198, 242, 78, .55); }
.tab-panel { animation: fade .25s var(--ease); }
.panel-text { color: var(--muted); margin-bottom: 18px; }

/* ---------- форми ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > label { font-size: .9375rem; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  background: #0e1014; border: 1.5px solid var(--line-input); color: var(--text); font-size: 1rem; line-height: 1.4;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #80858f; }
.field input:hover, .field textarea:hover { border-color: #7d838f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198, 242, 78, .18); }
.field [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(255, 138, 119, .14) !important; }
.err { min-height: 0; font-size: .875rem; color: var(--bad); }
.err:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9063rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 2px; }
.check a, .form-note a { color: var(--text); text-decoration-color: var(--accent-a40); text-underline-offset: 3px; }
.check a:hover, .form-note a:hover { color: var(--accent); }
.form-note { font-size: .875rem; color: var(--dim); }
.status { font-size: .9375rem; line-height: 1.5; }
.status:empty { display: none; }
.status.ok { color: var(--accent); }
.status.fail { color: var(--bad); }
.status a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- формула ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 600;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 1rem; }
.step:last-child { border-color: var(--accent-a40); background: linear-gradient(150deg, var(--accent-a12), var(--surface) 70%); }

.template { margin-top: 24px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #111318; }
.template .win-bar { padding-right: 8px; }
.copy { margin-left: auto; min-height: 44px; }
.copy.ok { color: var(--accent); border-color: var(--accent-a40); }
.tpl {
  padding: 22px 24px 26px; font-family: var(--mono); font-size: .9375rem; line-height: 1.75; color: #dcd9d2;
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}

/* ---------- послуга ---------- */
.service-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.tl-n {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--accent-a40); color: var(--accent); font-family: var(--mono); font-weight: 600; background: var(--bg);
}
.timeline h3 { margin: 7px 0 4px; }
.timeline p { color: var(--muted); }
.price {
  margin-top: 32px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface);
  display: grid; gap: 4px;
}
.price-label { font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.price strong { font-family: var(--mono); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.price p { color: var(--muted); font-size: .9375rem; }

/* ---------- принципи ---------- */
.principles { display: grid; gap: 16px; grid-template-columns: 1fr; }
.principle h3 { margin: 18px 0 8px; }
.principle p { color: var(--muted); }
.p-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-a12); color: var(--accent); border: 1px solid var(--accent-a40); }
.p-icon svg { width: 24px; height: 24px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px;
  cursor: pointer; list-style: none; font-weight: 650; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--dim); transition: transform .25s var(--ease), color .2s var(--ease); }
.faq summary:hover svg { color: var(--accent); }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 68ch; }

/* ---------- фінальний заклик ---------- */
.final-sec { padding-bottom: clamp(72px, 10vw, 120px); }
.final {
  position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center;
  padding: clamp(32px, 6vw, 72px); border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 100% 0%, #e2ff8e, transparent 60%), var(--accent); color: var(--accent-ink);
}
.final h2 { max-width: 14ch; }
.final p { margin-top: 14px; font-size: 1.125rem; max-width: 40ch; color: rgba(12, 13, 17, .78); }
.final-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.final-copy { position: relative; z-index: 1; }
/* на лаймовому тлі лаймова рамка фокуса не видна */
.final :focus-visible { outline-color: var(--accent-ink); }
.final-mark { position: absolute; right: -70px; bottom: -120px; width: 280px; opacity: .08; transform: rotate(-12deg); pointer-events: none; }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 28px; }
.footer-in { display: grid; gap: 28px; align-items: start; }
.footer-brand p { margin-top: 10px; color: var(--dim); font-size: .9375rem; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 24px; color: var(--dim); font-size: .8125rem; }
/* на вузькому екрані «На головну» не влазить у шапку документа; логотип і так веде на головну */
@media (max-width: 480px) { .page-doc .nav-right .btn { display: none; } }
.page-doc .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.doc-links a:hover { color: var(--accent); }

/* ---------- сторінка політики ---------- */
.doc { max-width: 760px; padding-top: clamp(48px, 8vw, 88px); padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.doc-updated { margin-top: 12px; font-family: var(--mono); font-size: .8125rem; color: var(--dim); }
.doc-intro { margin-top: 24px; font-size: 1.1875rem; color: var(--muted); }
.doc section { margin-top: 36px; }
.doc h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.doc p { color: var(--muted); }
.doc a { color: var(--accent); }

/* ---------- поява при прокрутці ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (min-width: 560px) {
  .blk { grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline; }
  .demo-badge { left: -16px; }
}
@media (min-width: 720px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .toc { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:last-child { grid-column: 1 / -1; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1.3fr 1fr auto; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.18fr .82fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .m-cta { grid-column: span 2; }
  .guide-grid { grid-template-columns: 1.1fr .9fr; }
  .toc { grid-template-columns: 1fr; }
  .guide-side { padding-top: 150px; }
  .cover { position: absolute; top: 0; right: 4%; width: 250px; margin: 0; transform: rotate(6deg); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps .step:last-child { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr .9fr; }
  .form-sticky { position: sticky; top: 100px; }
  .final { grid-template-columns: 1.2fr auto; }
}
@media (min-width: 1100px) {
  .toc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 959px) and (min-width: 720px) {
  .hero-copy { max-width: 720px; }
}
@media (max-width: 479px) {
  .actions .btn { width: 100%; }
  .seg button { padding: 0 11px; }
  .win-file { display: none; }
  .final-actions .btn { width: 100%; }
}
