/* crmagency.com.ua — простий сайт-візитка без JavaScript і зовнішніх шрифтів (CSP: лише свої файли). */
:root {
    --ink: #13212e; --muted: #556170; --line: #dfe5ea; --bg: #ffffff; --alt: #f3f6f8;
    --accent: #0f6e78; --accent-ink: #ffffff; --accent-soft: #e3f1f2; --error: #b3261e;
    --radius: 12px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root { --ink: #e8eef2; --muted: #a5b1bb; --line: #2b3742; --bg: #121a21; --alt: #18222b; --accent: #4fb8c1; --accent-ink: #0c1a1d; --accent-soft: #1d3236; --error: #ff8a80; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a, .langs a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover, .langs a:hover { color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs a { padding: 4px 8px; border-radius: 8px; font-weight: 600; }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .nav { gap: 12px; } .nav a:not(.nav__product) { display: none; } .top__in { gap: 12px; } }

.hero { background: linear-gradient(160deg, var(--accent-soft), var(--bg) 70%); padding: clamp(56px, 10vw, 120px) 0; }
.hero__in > * { max-width: 820px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent); }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 28px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }

.block { padding: clamp(48px, 8vw, 96px) 0; }
.block--alt { background: var(--alt); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card__num { display: inline-block; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 52px 0 0; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; }

.contact { display: grid; gap: 32px; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form, .sent { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); display: grid; gap: 14px; }
.sent { background: var(--accent-soft); border-color: transparent; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error, .form__error { color: var(--error); font-size: 14px; }
.form__error { margin: 0; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__legal { flex-basis: 100%; font-size: 13px; line-height: 1.5; }

/* LeadShip: сторінка продукту й документація */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.hint { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero--small { padding: clamp(40px, 7vw, 80px) 0; }
.kicker a { color: inherit; text-decoration: none; }

.product { display: grid; gap: 40px; grid-template-columns: 1fr 1.15fr; align-items: center; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(19, 33, 46, .12); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.shot--link { display: block; }
.shots { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); margin-top: 24px; }

.roles { display: grid; gap: 10px; margin: 20px 0; }
.roles div { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.roles dt { font-weight: 700; }
.roles dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .roles div { grid-template-columns: 1fr; gap: 2px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.card--soon { border-style: dashed; }

.docs { display: grid; gap: 48px; grid-template-columns: 240px 1fr; align-items: start; padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--alt); }
@media (max-width: 900px) { .toc { position: static; } }
.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc { min-width: 0; }
.doc section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.doc section:last-child { border-bottom: 0; }
.doc h3 { margin-top: 24px; }
.doc .shot { margin-top: 20px; }
.note { padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); font-size: 15px; }
.table { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--alt); font-size: 14px; color: var(--muted); }
.table tbody th { font-weight: 600; width: 34%; overflow-wrap: anywhere; }
code, kbd, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); }
.code { display: block; margin: 0 0 1em; padding: 16px 18px; border-radius: var(--radius); background: #13212e; color: #e8eef2; overflow-x: auto; line-height: 1.5; white-space: pre; }
.steps--flow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
