/* Pellucide — тёплая «пластилиновая» система: кремовый фон, мягкие объёмные карточки, один акцент на главу. */
:root {
  --c-bg: #f7f1ea; --c-paper: #fffaf3; --c-ink: #26242b; --c-ink-2: #5d5963; --c-line: #e6dccf; --c-shadow: 90, 60, 30;
  --accent: #e2735a; --r: 28px;
  --f-head: 'Unbounded', 'Onest', system-ui, sans-serif; --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 17px/1.55 var(--f-text); transition: background-color .5s, color .5s; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 48px); }

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: 0 4px 4px 0; transition: background-color .5s; }

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 3.4vw, 56px); pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 15px/1 var(--f-head); letter-spacing: .06em; }
.logo__mark { display: inline-block; width: 24px; height: 24px; border-radius: 8px; background: var(--accent); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), inset 0 -4px 5px rgba(0, 0, 0, .18), 0 5px 10px -4px var(--accent); transition: background-color .5s, box-shadow .5s, transform .4s cubic-bezier(.3, 1.6, .5, 1); vertical-align: -5px; }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.1); }
.pills { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 250, 243, .94); box-shadow: 0 0 0 1px var(--c-line); }
.pill { padding: 8px 15px; border-radius: 999px; font-size: 14px; color: var(--c-ink-2); text-decoration: none; transition: background-color .35s, color .35s; }
.pill:hover { color: var(--c-ink); }
.pill--sec, body.past-story .pill--ch { display: none; }
body.past-story .pill--sec { display: block; }
.pill.is-on { background: var(--accent); color: #fff; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .3), inset 0 -3px 4px rgba(0, 0, 0, .14); }
.top__right { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 13px 22px; font: 600 15px/1 var(--f-text); text-decoration: none; white-space: nowrap; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, background-color .5s; will-change: transform; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ink { background: var(--c-ink); color: var(--c-bg); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .18), 0 10px 20px -10px rgba(0, 0, 0, .5); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .35), inset 0 -4px 6px rgba(0, 0, 0, .14), 0 12px 22px -12px var(--accent); }
.btn--wide { width: 100%; padding-block: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.xbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255, 250, 243, .94); box-shadow: 0 0 0 1px var(--c-line); font-size: 14px; color: var(--c-ink-2); }
.xbtn:hover { color: var(--c-ink); }
.xbtn__eye { width: 18px; height: 12px; border: 2px solid currentColor; border-radius: 12px / 8px; position: relative; }
.xbtn__eye::after { content: ''; position: absolute; inset: 2px 5px; border-radius: 50%; background: currentColor; }
.xbtn[aria-pressed='true'] { background: #7fd4ff; color: #0e1a2b; box-shadow: 0 0 0 1px #7fd4ff, 0 0 24px rgba(127, 212, 255, .5); }
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; cursor: pointer; padding: 9px 13px; border-radius: 999px; background: rgba(255, 250, 243, .94); box-shadow: 0 0 0 1px var(--c-line); color: var(--c-ink-2); font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; border-radius: 18px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), 0 20px 40px -16px rgba(var(--c-shadow), .35); }
.lang a { display: block; padding: 9px 12px; border-radius: 12px; text-decoration: none; }
.lang a:hover, .lang a[aria-current] { background: var(--c-bg); }

/* ---------- история ---------- */
.story { position: relative; height: 560vh; }
.story__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; }
.story.is-live .story__canvas { opacity: 1; }
.story__fallback { position: absolute; inset: 0; background: radial-gradient(60vw 40vh at 70% 78%, #e9d8c3 0, transparent 70%), radial-gradient(18vw 18vw at 78% 30%, rgba(240, 166, 58, .5) 0, transparent 70%); transition: opacity 1s; }
.story.is-live .story__fallback { opacity: 0; }
.story__veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-bg) 0, color-mix(in srgb, var(--c-bg) 86%, transparent) 22%, transparent 52%); pointer-events: none; transition: background .5s; }
.story__panels { position: absolute; left: clamp(16px, 3.4vw, 56px); bottom: clamp(70px, 11vh, 150px); width: min(600px, 100% - 32px); }
.panel { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(26px); transition: opacity .45s, transform .6s cubic-bezier(.2, .9, .3, 1); pointer-events: none; }
.panel.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.panel__count { font: 500 13px/1 var(--f-mono); letter-spacing: .18em; color: var(--c-ink-2); margin-bottom: 22px; }
.panel__count span { opacity: .4; margin-inline: 4px; }
.eyebrow { font: 700 12.5px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; transition: color .5s; }
/* размер заголовка зависит и от ширины, и от ВЫСОТЫ окна: панель не должна подпирать шапку на низких экранах и длинных языках */
.panel__title { font: 700 clamp(30px, min(4.3vw, 6.6vh), 60px)/1.06 var(--f-head); letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.panel__text { font-size: clamp(16.5px, 1.25vw, 19px); color: var(--c-ink-2); max-width: 30em; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; background: rgba(255, 250, 243, .8); box-shadow: 0 0 0 1px var(--c-line); color: var(--c-ink-2); }
.dots { position: absolute; right: clamp(14px, 2.2vw, 40px); top: 50%; transform: translateY(-50%); display: grid; gap: 18px; justify-items: end; }
.dots::before { content: ''; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--c-line); }
.dots li { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dots li::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); opacity: .45; transform: scale(.6); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.dots li.is-on::after { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.dots span { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; }
.dots li.is-on span, .dots li:hover span { opacity: 1; transform: none; }
.story__bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px 18px; white-space: nowrap; }
.story__hint { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--c-ink-2); transition: opacity .4s; }
.story__skip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--c-ink); background: rgba(255, 250, 243, .94); box-shadow: 0 0 0 1px var(--c-line); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; }
.story__skip:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent); }
.story__skip span { color: var(--accent); transition: transform .3s; } .story__skip:hover span { transform: translateY(2px); }
.panel__who { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 14px 8px 10px; border-radius: 18px; background: rgba(255, 250, 243, .85); box-shadow: 0 0 0 1px var(--c-line); font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--c-ink); }
.panel__who .logo__mark { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.panel__actions { margin-top: 22px; }
.story__mouse { width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px; position: relative; opacity: .7; }
.story__mouse::after { content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(9px); opacity: 0; } }
body.scrolled .story__hint { opacity: 0; }

/* ---------- секции ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.h2 { font: 700 clamp(28px, 3.4vw, 46px)/1.1 var(--f-head); letter-spacing: -.02em; max-width: 18em; margin-bottom: 18px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); color: var(--c-ink-2); max-width: 38em; margin-bottom: clamp(34px, 4vw, 56px); }
.clay { background: var(--c-paper); border-radius: var(--r); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -8px 14px rgba(var(--c-shadow), .07), 0 0 0 1px rgba(var(--c-shadow), .06), 0 28px 50px -28px rgba(var(--c-shadow), .35); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .8s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 28px 26px 30px; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .35s; }
.card:hover { box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -8px 14px rgba(var(--c-shadow), .07), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 36px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.card__icon { width: 72px; height: 72px; margin-bottom: 22px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 16%, var(--c-bg)); display: grid; place-items: center; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 -5px 8px rgba(var(--c-shadow), .1); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transform: translateZ(30px); }
.card:hover .card__icon { transform: translateZ(30px) rotate(-6deg) scale(1.06); }
.card__icon svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 2px rgba(var(--c-shadow), .25)); }
.card h3 { font: 600 19px/1.2 var(--f-head); letter-spacing: -.01em; margin-bottom: 12px; }
.card p { color: var(--c-ink-2); font-size: 16px; margin-bottom: 18px; }
.card li { position: relative; padding-left: 22px; font-size: 15px; margin-top: 10px; }
.card li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 4px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 2px rgba(0, 0, 0, .15); }

.demo { padding: 14px; }
.demo__tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 14px; border-radius: 999px; background: var(--c-bg); width: fit-content; max-width: 100%; overflow-x: auto; }
.demo__tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--c-ink-2); white-space: nowrap; transition: background-color .3s, color .3s; }
.demo__tabs button[aria-selected='true'] { background: var(--c-ink); color: var(--c-bg); }
.demo__grid { display: grid; grid-template-columns: 1fr 64px 1.15fr; gap: 8px; align-items: stretch; }
.demo__in, .demo__out { padding: 22px; border-radius: 20px; background: var(--c-bg); min-width: 0; }
.demo__in { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.demo__label { font: 700 11.5px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-2); margin-bottom: 12px; }
.demo__out .demo__label:not(:first-child) { margin-top: 20px; }
.bubble { padding: 18px 20px; border-radius: 6px 22px 22px 22px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); font-size: 16px; width: 100%; }
.spark { width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.demo__flow { display: grid; align-content: center; justify-items: center; gap: 10px; }
.demo__flow i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: .25; }
.demo.is-run .demo__flow i { animation: flow .9s infinite; } .demo.is-run .demo__flow i:nth-child(2) { animation-delay: .15s; } .demo.is-run .demo__flow i:nth-child(3) { animation-delay: .3s; }
@keyframes flow { 0%, 100% { opacity: .25; transform: scale(1); } 40% { opacity: 1; transform: scale(1.5); } }
.fields { display: grid; gap: 6px; }
.fields > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--c-paper); font-size: 15px; transition: opacity .35s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.fields dt { color: var(--c-ink-2); }
.fields dd { font-weight: 600; min-height: 1.5em; }
.reply { padding: 16px 18px; border-radius: 22px 22px 6px 22px; background: color-mix(in srgb, var(--accent) 12%, var(--c-paper)); font-size: 15.5px; min-height: 5.5em; }
.reply.is-typing::after { content: '▍'; animation: caret .7s steps(2) infinite; color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }
.task { margin-top: 16px; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--c-ink); color: var(--c-bg); font-size: 14.5px; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.task span { opacity: .6; }
.demo .is-hidden { opacity: 0; transform: translateY(8px) scale(.97); }
.note { margin-top: 18px; font-size: 14px; color: var(--c-ink-2); max-width: 52em; }

.builder__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pains { border: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.builder__grid > *, .demo__grid > *, .contact__grid > * { min-width: 0; }
.pains legend { font-weight: 600; margin-bottom: 14px; padding: 0; }
.pain { position: relative; display: block; cursor: pointer; }
.pain input { position: absolute; opacity: 0; inset: 0; }
.pain span { display: flex; align-items: center; min-height: 64px; padding: 14px 16px 14px 46px; border-radius: 18px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); font-size: 15.5px; line-height: 1.3; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, background-color .25s; position: relative; }
.pain span::before { content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--c-line); transition: background-color .2s, box-shadow .2s, transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.pain:hover span { transform: translateY(-2px); }
.pain input:checked + span { background: color-mix(in srgb, var(--accent) 12%, var(--c-paper)); box-shadow: 0 0 0 2px var(--accent); }
.pain input:checked + span::before { background: var(--accent); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .4); transform: rotate(-8deg) scale(1.1); }
.pain input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.sketch { padding: 28px; position: sticky; top: 96px; min-height: 300px; }
.sketch__title { font: 600 18px/1 var(--f-head); margin-bottom: 18px; }
.sketch__empty { color: var(--c-ink-2); }
.sketch__list { display: grid; gap: 10px; }
.sketch__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 16px; border-radius: 16px; background: var(--c-bg); animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.sketch__list b { font-weight: 600; }
.sketch__list small { grid-column: 1; color: var(--c-ink-2); font-size: 14.5px; }
.sketch__list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font: 500 13px/1 var(--f-mono); padding: 7px 10px; border-radius: 999px; background: var(--c-paper); white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.sketch__foot { margin-top: 20px; display: grid; gap: 12px; }
.sketch__foot > * { min-width: 0; }
.sketch__foot .btn { white-space: normal; text-align: center; line-height: 1.25; }
.sketch__total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.sketch__total b { font: 600 20px/1 var(--f-head); color: var(--accent); }
.sketch__small { font-size: 13.5px; color: var(--c-ink-2); }

.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--c-line); }
.proofc { padding: 32px 0 36px; border-bottom: 1px solid var(--c-line); min-width: 0; }
.proofc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 24px 40px; align-items: start; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots a { display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), 0 18px 30px -22px rgba(var(--c-shadow), .5); transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .35s; }
.shots a:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 0 0 1px var(--accent), 0 26px 36px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 24 / 11; object-fit: cover; object-position: top; border-bottom: 1px solid var(--c-line); }
.shots span { display: flex; justify-content: space-between; gap: 6px; align-items: center; min-height: 44px; padding: 0 12px; font: 500 12.5px/1.2 var(--f-mono); overflow-wrap: anywhere; }
.shots i { font-style: normal; color: var(--accent); }
.proofc__private { margin-top: 14px; font-size: 14px; }
.proofc__private a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink-2); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.proofc__private a:hover { color: var(--c-ink); }
.tag { display: inline-block; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); margin-bottom: 16px; }
.proofc h3 { font: 600 21px/1.2 var(--f-head); margin-bottom: 10px; }
.proofc p { color: var(--c-ink-2); max-width: 32em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; margin-top: clamp(30px, 4vw, 50px); }
.step { position: relative; padding-top: 74px; }
.step__n { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 19px; display: grid; place-items: center; font: 700 20px/1 var(--f-head); color: #fff; background: var(--accent); box-shadow: inset 0 3px 2px rgba(255, 255, 255, .4), inset 0 -6px 8px rgba(0, 0, 0, .16), 0 14px 22px -12px var(--accent); transform: rotate(-5deg); }
.step:nth-child(even) .step__n { transform: rotate(4deg); }
.step::before { content: ''; position: absolute; left: 66px; right: -8px; top: 27px; border-top: 2px dashed var(--c-line); }
.step:last-child::before { display: none; }
.step h3 { font: 600 18px/1.25 var(--f-head); margin-bottom: 10px; }
.step p { color: var(--c-ink-2); font-size: 16px; }

.qa { border-bottom: 1px solid var(--c-line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18.5px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s; border-radius: 2px; }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa p { padding: 0 44px 24px 0; color: var(--c-ink-2); }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__or { font-size: 14px; color: var(--c-ink-2); margin-bottom: 8px; }
.contact__links { display: grid; gap: 6px; font: 600 clamp(19px, 1.8vw, 24px)/1.3 var(--f-head); }
.contact__links a { text-decoration: none; width: fit-content; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.contact__links a:hover { background-size: 100% 2px; }
.form { padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.form input, .form textarea { font: 400 16.5px/1.4 var(--f-text); color: var(--c-ink); padding: 14px 16px; border-radius: 16px; border: 0; background: var(--c-bg); box-shadow: inset 0 2px 4px rgba(var(--c-shadow), .12), 0 0 0 1px var(--c-line); resize: vertical; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 2px 4px rgba(var(--c-shadow), .12), 0 0 0 2px var(--accent); }
.form [aria-invalid='true'] { box-shadow: 0 0 0 2px #c23b22; }
.hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.form__msg { font-size: 15px; min-height: 1.4em; }
.form__msg.ok { color: #1f7a53; font-weight: 600; } .form__msg.err { color: #b5361f; font-weight: 600; }
.form__consent { font-size: 13px; color: var(--c-ink-2); }

.foot { padding: 44px 0 60px; border-top: 1px solid var(--c-line); font-size: 14.5px; color: var(--c-ink-2); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 14px 40px; align-items: center; }
.foot__links { display: flex; gap: 20px; }
.foot__made { grid-column: 1 / -1; font: 400 12.5px/1.4 var(--f-mono); opacity: .75; }
.foot .logo__mark { width: 18px; height: 18px; border-radius: 6px; margin-right: 6px; vertical-align: -3px; }

/* ---------- палитра команд ---------- */
.palette { border: 0; padding: 10px; width: min(520px, 100% - 32px); border-radius: 24px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); margin-top: 16vh; }
.palette::backdrop { background: rgba(38, 36, 43, .35); backdrop-filter: blur(4px); }
.palette input { width: 100%; border: 0; outline: 0; background: var(--c-bg); border-radius: 16px; padding: 15px 18px; font: 400 17px/1 var(--f-text); color: inherit; margin-bottom: 8px; }
.palette li { padding: 12px 16px; border-radius: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.palette li.is-sel, .palette li:hover { background: var(--c-bg); }
.palette li.is-sel::after { content: '↵'; opacity: .5; }

/* ---------- режим «насквозь» ---------- */
.xbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; gap: 14px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 999px; background: #7fd4ff; color: #0e1a2b; font: 500 13px/1 var(--f-mono); box-shadow: 0 0 40px rgba(127, 212, 255, .45); }
.xbar[hidden] { display: none; }
.xbar button { border: 0; border-radius: 999px; padding: 8px 14px; background: #0e1a2b; color: #7fd4ff; font: inherit; }
body.xray { --c-bg: #0c1626; --c-paper: #12213a; --c-ink: #dcebff; --c-ink-2: #8fa9cc; --c-line: #24406a; --c-shadow: 0, 0, 0; background-image: linear-gradient(rgba(127, 212, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 212, 255, .06) 1px, transparent 1px); background-size: 32px 32px; }
body.xray .pills, body.xray .xbtn:not([aria-pressed='true']), body.xray .lang summary, body.xray .chips li { background: rgba(18, 33, 58, .8); }
body.xray .btn--ink { background: #7fd4ff; color: #0c1626; }
body.xray [data-x] { outline: 1px dashed rgba(127, 212, 255, .55); outline-offset: -10px; }
body.xray [data-x]::before { content: '<' attr(id) '> ' attr(data-x); position: absolute; right: 22px; top: 84px; z-index: 5; font: 500 12px/1 var(--f-mono); color: #7fd4ff; background: #0c1626; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(127, 212, 255, .5); }
body.xray .story[data-x]::before { position: fixed; top: 84px; right: auto; left: clamp(16px, 3.4vw, 56px); }
body.xray .story:not(.is-inview)[data-x]::before { display: none; }
body.xray .clay, body.xray .pain span, body.xray .bubble { box-shadow: 0 0 0 1px rgba(127, 212, 255, .35); }

/* низкие окна (ноутбук 1366×768, масштаб 125–150%): панель ужимается, чтобы не залезать под шапку */
@media (max-height: 860px) and (min-width: 821px) {
  .panel__who { margin-bottom: 14px; } .panel__count { margin-bottom: 14px; } .eyebrow { margin-bottom: 12px; }
  .panel__title { margin-bottom: 14px; } .panel__text { margin-bottom: 16px; font-size: 16.5px; } .panel__actions { margin-top: 16px; }
  .panel:has(.panel__actions) .chips { display: none; }
}
@media (max-height: 700px) and (min-width: 821px) {
  .panel:has(.panel__who) .panel__count { display: none; }
  .story__panels { bottom: 62px; }
}
/* совсем низкие окна (панель в приложении, зум 200%, телефон боком): оставляем суть — заголовок, строку «кто мы» и кнопку */
@media (max-height: 560px) {
  .panel__count, .panel .chips, .panel__text { display: none; }
  .panel__title { font-size: clamp(24px, 7vh, 40px); margin-bottom: 10px; } .panel__who { margin-bottom: 10px; font-size: 12.5px; } .eyebrow { margin-bottom: 8px; }
  .panel__actions { margin-top: 10px; } .story__panels { bottom: 58px; } .story__hint { display: none; }
}
@media (max-height: 400px) { .panel__who, .panel .eyebrow { display: none; } }

/* ---------- кликабельное не ниже 44 px ---------- */
.btn, .xbtn, .lang summary, .demo__tabs button, .story__skip, .logo { min-height: 44px; }
.lang summary { display: inline-flex; align-items: center; }
.lang a { display: flex; align-items: center; min-height: 44px; }
.foot__links a, .contact__links a { display: inline-flex; align-items: center; min-height: 44px; }
.btn--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- бургер и мобильное меню ---------- */
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 250, 243, .94); box-shadow: 0 0 0 1px var(--c-line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--c-ink); }
.sheet { border: 0; padding: 18px 20px 26px; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--c-bg); color: var(--c-ink); overflow-y: auto; }
.sheet[open] { display: flex; flex-direction: column; gap: 6px; animation: sheet .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheet { from { opacity: 0; transform: translateY(-14px); } }
.sheet::backdrop { background: var(--c-bg); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); position: relative; }
.sheet__close::before, .sheet__close::after { content: ''; position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; border-radius: 2px; background: var(--c-ink); transform: rotate(45deg); }
.sheet__close::after { transform: rotate(-45deg); }
.sheet__nav { display: grid; }
.sheet__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font: 600 22px/1.2 var(--f-head); letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--c-line); }
.sheet__nav a::after { content: '→'; color: var(--accent); font-family: var(--f-text); }
.sheet__label { margin-top: 18px; font: 700 11.5px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-2); }
.sheet__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.sheet__langs a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); }
.sheet__langs a[aria-current] { box-shadow: 0 0 0 2px var(--accent); }
.sheet__xray { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 14px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); font-size: 14.5px; text-align: left; line-height: 1.3; }
.sheet__xray .xbtn__eye { flex: none; }
.sheet__contacts { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; justify-items: center; font-weight: 600; }
.sheet__contacts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* ---------- «спасибо» после формы ---------- */
.thanks { padding: 32px 28px; outline: none; grid-column: 2; }
.thanks[hidden], .form[hidden] { display: none; }
.thanks.is-in { animation: pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.thanks__mark { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 22px; background: #2f9e6e; box-shadow: inset 0 3px 2px rgba(255, 255, 255, .4), inset 0 -6px 8px rgba(0, 0, 0, .16), 0 16px 24px -12px #2f9e6e; position: relative; transform: rotate(-6deg); }
.thanks__mark::after { content: ''; position: absolute; left: 21px; top: 15px; width: 17px; height: 28px; border: solid #fff; border-width: 0 5px 5px 0; border-radius: 3px; transform: rotate(42deg); }
.thanks__title { font: 700 26px/1.15 var(--f-head); letter-spacing: -.01em; margin-bottom: 10px; }
.thanks__text { color: var(--c-ink-2); margin-bottom: 22px; overflow-wrap: anywhere; } .thanks__text b { color: var(--c-ink); font-weight: 600; }
.thanks__label { font: 700 11.5px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-2); margin-bottom: 12px; }
.thanks__steps { counter-reset: t; display: grid; gap: 8px; margin-bottom: 24px; }
.thanks__steps li { counter-increment: t; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--c-bg); font-size: 15.5px; }
.thanks__steps li::before { content: counter(t); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--f-head); color: #fff; background: var(--accent); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.e404__main { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 110px 20px 60px; }
.e404__main .h2, .e404__main .lead { margin-inline: auto; } .e404__main .lead { margin-bottom: 30px; }
.e404__art { position: relative; width: 220px; height: 190px; margin-bottom: 26px; }
.e404__q { position: absolute; right: 18px; top: -6px; font: 700 64px/1 var(--f-head); color: var(--accent); transform: rotate(14deg); animation: bob 2.6s ease-in-out infinite; }
.env { position: absolute; left: 40px; top: 46px; width: 140px; height: 96px; border-radius: 18px; background: #fbf6ee; box-shadow: inset 0 3px 2px #fff, inset 0 -10px 14px rgba(var(--c-shadow), .12), 0 0 0 1px rgba(var(--c-shadow), .08); transform: rotate(-7deg); animation: bob 2.6s ease-in-out infinite reverse; }
.env__flap { position: absolute; left: 8px; right: 8px; top: 6px; height: 50px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 6px; }
.env__eye { position: absolute; top: 58px; left: 40px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 5px 0 0 3px #3b3a44; } .env__eye + .env__eye { left: 84px; }
.env__foot { position: absolute; bottom: -12px; left: 28px; width: 30px; height: 16px; border-radius: 50%; background: #c65a43; } .env__foot + .env__foot { left: 84px; }
.e404__shadow { position: absolute; left: 46px; right: 46px; bottom: 8px; height: 16px; border-radius: 50%; background: rgba(var(--c-shadow), .16); filter: blur(4px); }
@keyframes bob { 50% { translate: 0 -8px; } }
.e404__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.e404__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; font-size: 14.5px; color: var(--c-ink-2); }
.e404__langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-underline-offset: 4px; }

@media (pointer: coarse), (max-width: 820px) {
  .dots { gap: 0; } .dots li { min-height: 44px; min-width: 44px; justify-content: flex-end; } .dots::before { top: 22px; bottom: 22px; }
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .proofs { grid-template-columns: 1fr; } .proofc--wide { grid-template-columns: 1fr; } .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } .step::before { display: none; }
  .pills { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .top { padding: 12px 16px; } .top__cta { padding: 11px 16px; font-size: 14px; }
  .top .xbtn, .top .lang { display: none; } /* на телефоне язык и «насквозь» живут в меню */
  /* на первом экране CTA уже есть в панели — в шапке он появляется после начала прокрутки */
  .top__cta { transition: opacity .3s, transform .25s cubic-bezier(.3, 1.6, .5, 1); } body:not(.scrolled) .top__cta { opacity: 0; pointer-events: none; }
  .thanks { grid-column: auto; }
  .story { height: 480vh; }
  .story__veil { background: linear-gradient(0deg, var(--c-bg) 0, color-mix(in srgb, var(--c-bg) 90%, transparent) 34%, transparent 58%); }
  .story__panels { left: 16px; bottom: 64px; }
  .panel__count { margin-bottom: 14px; } .panel__title { font-size: clamp(28px, 8.2vw, 40px); margin-bottom: 12px; } .panel__text { margin-bottom: 14px; font-size: 16px; }
  .dots { top: 34%; } .dots span { display: none; }
  .story__bar { bottom: 8px; left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .story__hint { font-size: 12.5px; white-space: normal; line-height: 1.25; } .story__mouse { flex: none; }
  .story__skip { margin-left: auto; }
  .panel__who { margin-bottom: 12px; font-size: 12.5px; padding: 7px 12px 7px 9px; }
  .panel:has(.panel__actions) .chips, .panel:has(.panel__who) .panel__count { display: none; }
  .panel__actions { margin-top: 14px; }
  .proofc, .proofc--wide { padding: 26px 0; }
  .demo__grid { grid-template-columns: 1fr; } .demo__flow { grid-auto-flow: column; justify-content: center; padding: 6px 0; }
  .builder__grid, .contact__grid { grid-template-columns: 1fr; } .sketch { position: static; }
  .foot__grid { grid-template-columns: 1fr; }
  .fields > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .sketch { padding: 20px; }
  .sketch__list li { grid-template-columns: minmax(0, 1fr); }
  .sketch__list em { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 4px; }
  .cards, .steps, .pains { grid-template-columns: 1fr; }
  .logo__word { display: none; }
  .story__hint { display: none; } .story__bar { justify-content: center; } .story__skip { margin: 0; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
}
@media (max-width: 359px) {
  .top { gap: 8px; } .top__right { gap: 8px; } .top__cta { padding-inline: 13px; }
  .story__hint { display: none; }
}
/* ---------- внутренние страницы: услуги, кейсы, «О нас» ---------- */
.top--solid { background: color-mix(in srgb, var(--c-bg) 94%, transparent); box-shadow: 0 1px 0 var(--c-line); padding-block: 14px; pointer-events: auto; }
.sub .pill { display: inline-flex; align-items: center; min-height: 40px; }
.doc { padding: 118px 0 40px; }
.doc .wrap { width: min(980px, 100% - 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13.5px; color: var(--c-ink-2); margin-bottom: 26px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; text-decoration-color: var(--c-line); } .crumbs a:hover { text-decoration-color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .45; }
.docHead { margin-bottom: 34px; }
.h1 { font: 700 clamp(32px, 4.4vw, 54px)/1.08 var(--f-head); letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.docHead .lead { margin-bottom: 0; max-width: 42em; }
.facts { padding: 26px 28px 12px; margin-bottom: 46px; }
.facts__title { font: 700 11.5px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.facts dl > div { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { color: var(--c-ink-2); font-size: 15px; } .facts dd { font-weight: 600; }
.docCols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.docSec { margin-bottom: 46px; min-width: 0; }
.docSec h2, .docCta h2 { font: 600 clamp(21px, 2.2vw, 27px)/1.2 var(--f-head); letter-spacing: -.01em; margin-bottom: 16px; text-wrap: balance; }
.docSec p { max-width: 46em; } .docSec p + p { margin-top: 12px; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 5px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 2px rgba(0, 0, 0, .15); }
.vsWrap { overflow-x: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--c-line); background: var(--c-paper); }
.vs { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--c-line); }
.vs thead th { border-top: 0; font: 700 11.5px/1.3 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-2); }
.vs thead th:nth-child(2) { color: var(--accent); }
.vs tbody th { font-weight: 600; width: 22%; } .vs td:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.doc .qa summary { font-size: 17.5px; padding-block: 18px; } .doc .qa p { padding-bottom: 20px; }
.linkRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.linkRow--big { margin-bottom: 46px; }
.linkCard { display: grid; gap: 8px; align-content: start; padding: 22px; text-decoration: none; transition: transform .3s cubic-bezier(.2, .9, .3, 1), box-shadow .3s; }
.linkCard:hover { transform: translateY(-4px); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 30px 50px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.linkCard b { font: 600 18px/1.25 var(--f-head); } .linkCard span:not(.tag) { color: var(--c-ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.linkCard .tag { justify-self: start; margin-bottom: 4px; } .linkCard i { font-style: normal; font-weight: 600; font-size: 14.5px; color: var(--accent); margin-top: 4px; }
.ext { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.docCta { display: grid; grid-template-columns: 1.4fr auto; gap: 24px 40px; align-items: center; padding: 34px; margin: 10px 0 30px; }
.docCta p { color: var(--c-ink-2); max-width: 40em; }
.docCta__act { display: grid; gap: 4px; justify-items: start; font-weight: 600; } .docCta__act a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; } .docCta__act .btn { margin-bottom: 6px; }
.foot__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 22px; } .foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.card__more, .proofc__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; } .card__more:hover, .proofc__more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .doc { padding-top: 96px; } .doc .wrap { width: calc(100% - 32px); }
  .docCols { grid-template-columns: 1fr; } .docCta { grid-template-columns: 1fr; padding: 26px 22px; }
  .facts { padding: 20px 20px 6px; } .facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .sub .top__cta { opacity: 1 !important; pointer-events: auto !important; }
}

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