/* dalerpro.com — styles. Phone-first: base = 390px, @media (min-width) adds tablet/desktop.
   Sections: fonts · tokens · base · type · buttons · header/menu · hero + reel · form controls ·
   services · works · process · bento · about · faq/ask (chat lead) · contact/form · footer · dock ·
   legal/404 · reveal · tablet · desktop · service pages · reduced motion */

/* ---------- fonts (self-hosted, subset; see README) ---------- */
@font-face { font-family: "Geologica"; src: url(/fonts/geologica-cyr.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; src: url(/fonts/geologica-lat.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica"; src: url(/fonts/geologica-rub.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+20BD; }

/* ---------- tokens ---------- */
:root {
  --ink: #0b0b0f; --ink-2: #131319; --ink-3: #1b1b23;
  --paper: #f4f2ed; --paper-2: #ebe8e1;
  /* --accent: lines, icons, large text on dark. --accent-fill: backgrounds, always with white text
     (black on orange read poorly; #d93a10 gives white text 4.6:1). --accent-text: small text on light. */
  --accent: #ff5b35; --accent-deep: #e0441b; --accent-fill: #d93a10; --accent-fill-hi: #c3320b; --accent-text: #c2410c;
  --ai-1: #8b6cff; --ai-2: #3fc5ff; --ai-3: #ff6bd6;
  --ok: #33d17a;
  --r-s: 12px; --r-m: 18px; --r-l: 24px; --r-xl: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: 20px; --wrap: 1200px; --sec: 76px;
  --fg: var(--ink); --fg-2: #5a5964; --line: rgba(11, 11, 15, .1);
}
.dark { --fg: #f4f2ed; --fg-2: #a6a5b1; --line: rgba(255, 255, 255, .1); background: var(--ink); color: var(--fg); color-scheme: dark; }
.light { --fg: var(--ink); --fg-2: #5a5964; --line: rgba(11, 11, 15, .1); background: var(--paper); color: var(--fg); color-scheme: light; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; interpolate-size: allow-keywords; }
body { margin: 0; font: 400 16px/1.55 var(--font); background: var(--ink); color: #f4f2ed; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
/* the height attribute would otherwise win over CSS aspect-ratio (that made the about photo 800px tall on phones) */
img, video { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent-fill); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--accent-fill); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sec { position: relative; padding-block: var(--sec); }
.sec { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.cv-off .sec { content-visibility: visible; }

/* ---------- type ---------- */
.h1 { font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.h2 { font-weight: 750; font-size: clamp(33px, 8.8vw, 66px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.h2--xl { font-size: clamp(42px, 12vw, 104px); line-height: .98; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.lead { max-width: 34em; margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.note { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.sec-head { max-width: 780px; margin-bottom: 40px; }
.nw { white-space: nowrap; }
.js .intro { opacity: 0; transform: translateY(22px); animation: intro .9s var(--ease-out) forwards; animation-delay: calc(.1s + var(--d, 0) * 90ms); }
.js .hero .h1.intro, .js .hero-lead.intro { opacity: 1; animation-name: introSlide; } /* LCP text: visible from the first frame */
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes introSlide { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border: 0; border-radius: 14px; font-size: 15.5px; font-weight: 600; line-height: 1.15;
  text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 19px; height: 19px; }
.btn--sm { --h: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; gap: 8px; }
.btn--sm .i { width: 17px; height: 17px; }
.btn--lg { --h: 56px; padding: 0 24px; border-radius: 16px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent-fill); color: #fff; box-shadow: 0 12px 30px -12px rgba(217, 58, 16, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--accent:hover { background: var(--accent-fill-hi); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #26262f; }
.btn--glass { background: rgba(255, 255, 255, .07); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); }
.btn[disabled], .btn.is-busy { pointer-events: none; opacity: .75; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px; border-bottom: 2px solid var(--accent); font-weight: 650; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translate(2px, -2px); }

/* ---------- header & menu ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #f4f2ed; transition: transform .4s var(--ease), background-color .3s, box-shadow .3s; }
.hdr.is-solid { background: rgba(11, 11, 15, .74); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr-in { display: flex; align-items: center; gap: 10px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 19px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-word b { font-weight: 700; color: var(--accent); }
.nav { display: none; }
.hdr-cta { margin-left: auto; }
.burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #f4f2ed; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; padding-top: 84px; background: #0b0b0f; color: #f4f2ed; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-in { display: flex; flex-direction: column; }
.menu-in a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 28px; font-weight: 700; letter-spacing: -.025em; text-decoration: none; opacity: 0; transform: translateY(14px); }
.menu-in a span { font-size: 13px; font-weight: 600; color: var(--accent); }
.menu.is-open .menu-in a { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--k, 0) * 40ms); }
.menu-foot { padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.menu-foot .btn .i { width: 22px; height: 22px; }

/* ---------- hero ---------- */
/* Flat on purpose: no glows, grids, badges or floating cards. The proof is the reel of real sites below. */
.hero { position: relative; overflow: clip; padding: 88px 0 30px; }
.hero-in { position: relative; display: grid; gap: 18px; }
.hero-in > *, .process-in > *, .about-in > *, .faq-in > *, .contact-in > * { min-width: 0; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.3; color: #a6a5b1; }
.who b { display: block; font-size: 15.5px; font-weight: 650; color: #f4f2ed; }
.who-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero .h1 { max-width: 12em; font-size: clamp(34px, 9.4vw, 64px); font-weight: 760; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { max-width: 31em; font-size: 17px; line-height: 1.55; color: #c7c6d1; text-wrap: pretty; }
.hero-cta { display: grid; gap: 12px; margin-top: 24px; }
.hero-cta .btn { width: 100%; }
.hero-note { font-size: 13.5px; color: #8f8e9a; text-align: center; }
/* reel: screenshots of my sites on an endless slow conveyor (js/app.js clones the set once, CSS moves it) */
.reel { margin-top: 34px; }
.reel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.reel-title { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.reel-title span { font-weight: 400; color: #8f8e9a; }
.reel-all { display: none; flex: none; align-items: center; gap: 4px; font-size: 14px; color: #c7c6d1; text-decoration: none; }
.reel-all .i { width: 16px; height: 16px; }
.reel-view { overflow-x: auto; padding: 4px 0 18px var(--pad); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
.reel-view::-webkit-scrollbar { display: none; }
.reel-track { display: flex; align-items: flex-start; width: max-content; }
.reel-track > li { flex: none; padding-right: 12px; } /* padding, not gap: the cloned half must be exactly 50% */
.reel-card { display: block; width: 136px; color: #b9b8c4; font-size: 12.5px; line-height: 1.3; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.reel-card.is-low { margin-top: 22px; }
.reel-card img { width: 100%; aspect-ratio: 400 / 866; border-radius: 16px; object-fit: cover; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 40px -24px #000; transition: transform .4s var(--ease); }
.reel-card span { display: block; margin-top: 10px; padding-right: 4px; }
.reel.is-moving .reel-view { overflow: hidden; }
.reel.is-moving .reel-track { animation: reel var(--reel-dur, 60s) linear infinite; }
.reel.is-paused .reel-track, .reel.is-off .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ---------- form controls (lead form chips, inputs) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11); font-size: 14.5px; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.chip span .i { width: 17px; height: 17px; color: #b9a8ff; transition: color .2s; }
.chip input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .55); }
.chip input:checked + span .i { color: var(--ai-1); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--ai-2); outline-offset: 2px; }
.input { width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); color: var(--fg); font-size: 16px; transition: box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: rgba(255, 255, 255, .4); }
.input:focus { outline: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px var(--ai-2), 0 0 0 4px rgba(63, 197, 255, .16); }
.input.is-bad { box-shadow: inset 0 0 0 1.5px #ff6b4a, 0 0 0 4px rgba(255, 107, 74, .14); }
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.light .input { background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 11, 15, .14); color: var(--ink); }
.light .input::placeholder { color: #8d8c97; }
.light .input:focus { box-shadow: inset 0 0 0 1.5px var(--ai-1), 0 0 0 4px rgba(139, 108, 255, .16); }
/* ---------- services ---------- */
.plans { display: grid; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(11, 11, 15, .04), 0 0 0 1px rgba(11, 11, 15, .07); }
.plan--hot { --fg-2: #a6a5b1; margin-top: 10px; background: var(--ink); color: #f4f2ed; box-shadow: 0 34px 60px -34px rgba(255, 91, 53, .55), 0 0 0 1px rgba(255, 91, 53, .35); }
.plan-badge { position: absolute; top: -13px; left: 22px; padding: 6px 12px; border-radius: 99px; background: var(--accent-fill); color: #fff; font-size: 12.5px; font-weight: 700; }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--paper); color: var(--ink); }
.plan--hot .plan-ico { background: rgba(255, 255, 255, .08); color: var(--accent); }
.plan-ico--ai { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); color: #fff; }
.plan-name { font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.plan-for { margin-top: 12px; font-size: 15px; color: var(--fg-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.plan-price span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.plan-time { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14.5px; color: var(--fg-2); }
.plan-time .i { width: 16px; height: 16px; }
.plan-list { display: grid; gap: 10px; margin: 20px 0 24px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 29px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .12em; width: 19px; height: 19px; border-radius: 50%; background: rgba(255, 91, 53, .13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0441b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan--hot .plan-list li::before { background-color: rgba(255, 91, 53, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7350' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan-list a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.plan--hot .plan-list a { color: var(--accent); } /* on the dark card: #ff5b35 = 6.5:1, the light-card colour would be 3.8:1 */
.plan > .btn { margin-top: auto; }
.extras { display: grid; gap: 14px; margin-top: 16px; }
.extra { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; padding: 20px; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .07); }
.extra > .btn { grid-column: 1 / -1; }
.extra--gift { background: linear-gradient(130deg, #ffe9df, #fff 70%); box-shadow: 0 0 0 1px rgba(255, 91, 53, .28); }
.extra-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; }
.extra--gift .extra-ico { background: var(--accent-fill); color: #fff; }
.extra-text b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.extra-text > span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--fg-2); }

/* ---------- works ---------- */
.case { position: relative; overflow: hidden; padding: 26px 22px; border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .07); }
.case + .case { margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { padding: 5px 10px; border-radius: 99px; background: var(--paper); color: #3d3c46; font-size: 12.5px; font-weight: 600; }
.case-title { margin-bottom: 12px; font-size: 25px; font-weight: 750; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.case-copy > p { font-size: 15.5px; color: var(--fg-2); }
.case-facts { display: grid; gap: 11px; margin: 20px 0 22px; font-size: 15px; }
.case-facts li { display: flex; align-items: flex-start; gap: 11px; }
.case-facts .i { width: 19px; height: 19px; margin-top: 2px; color: var(--accent-deep); }
.case-copy > .case-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 18px; color: var(--fg); }
.case-facts + .case-links { margin-top: 0; }
.link-arrow--soft { border-bottom-color: rgba(255, 91, 53, .4); }
.case-media { position: relative; height: 400px; margin: 30px -6px 0; }
.shot { position: absolute; top: 0; width: 47%; aspect-ratio: 540 / 1169; overflow: hidden; border-radius: 24px; background: #111; box-shadow: 0 0 0 5px #121216, 0 0 0 6px #2c2c33, 0 34px 50px -24px rgba(0, 0, 0, .55); transition: transform 1s var(--ease-out); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--a { left: 0; z-index: 1; transform: translateY(34px) rotate(-7deg); }
.shot--b { left: 26.5%; z-index: 3; transform: translateY(calc(var(--fan, 0) * -14px)); }
.shot--c { right: 0; z-index: 2; transform: translateY(34px) rotate(7deg); }
.js .case-media:not(.is-in) .shot--a { transform: translateY(80px) rotate(0); }
.js .case-media:not(.is-in) .shot--c { transform: translateY(80px) rotate(0); }
.chat { margin-top: 22px; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 1px rgba(11, 11, 15, .08); font-size: 14px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid rgba(11, 11, 15, .07); line-height: 1.25; }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { color: #6e6d78; font-size: 12.5px; }
.chat-ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); color: #fff; font-weight: 700; }
.chat-body { display: grid; gap: 8px; padding: 14px 12px 16px; background: linear-gradient(160deg, #d7e5c8, #e9efd9 50%, #cfe0d5); }
.bub { max-width: 86%; padding: 8px 12px; border-radius: 16px; line-height: 1.42; color: #17161c; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bub--in { justify-self: start; border-bottom-left-radius: 5px; background: #fff; }
.bub--out { justify-self: end; border-bottom-right-radius: 5px; background: #e2fdc7; }
.bub--voice { display: flex; align-items: center; gap: 10px; justify-self: start; background: #fff; }
.bub--voice .i { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #4ea4f6; color: #fff; }
.bub--voice small { font-size: 12px; color: #6e6d78; }
.wave { display: block; width: 116px; height: 22px; background: repeating-linear-gradient(90deg, #4ea4f6 0 3px, transparent 3px 6px); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 22' preserveAspectRatio='none'%3E%3Cpath d='M0 9h6v4H0zM6 6h6v10H6zM12 3h6v16h-6zM18 8h6v6h-6zM24 2h6v18h-6zM30 6h6v10h-6zM36 9h6v4h-6zM42 4h6v14h-6zM48 7h6v8h-6zM54 1h6v20h-6zM60 5h6v12h-6zM66 8h6v6h-6zM72 4h6v14h-6zM78 9h6v4h-6zM84 6h6v10h-6zM90 3h6v16h-6zM96 8h6v6h-6zM102 6h6v10h-6zM108 9h8v4h-8z'/%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 22' preserveAspectRatio='none'%3E%3Cpath d='M0 9h6v4H0zM6 6h6v10H6zM12 3h6v16h-6zM18 8h6v6h-6zM24 2h6v18h-6zM30 6h6v10h-6zM36 9h6v4h-6zM42 4h6v14h-6zM48 7h6v8h-6zM54 1h6v20h-6zM60 5h6v12h-6zM66 8h6v6h-6zM72 4h6v14h-6zM78 9h6v4h-6zM84 6h6v10h-6zM90 3h6v16h-6zM96 8h6v6h-6zM102 6h6v10h-6zM108 9h8v4h-8z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
/* demo sites for auto businesses: real first screens, each opens the live demo */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-top: 24px; }
.mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mini img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgba(11, 11, 15, .08); transition: transform .4s var(--ease); }
.mini b { grid-row: 2; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.mini .i { grid-row: 2; grid-column: 2; align-self: end; width: 17px; height: 17px; color: var(--accent-deep); }
.mini small { grid-column: 1 / -1; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--fg-2); }
.case--self { --fg-2: #a6a5b1; background: var(--ink); color: #f4f2ed; box-shadow: none; }
.case--self .tags span { background: rgba(255, 255, 255, .08); color: #dedde6; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.scores li { position: relative; display: grid; justify-items: center; text-align: center; }
.ring { width: 100%; max-width: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 9; }
.ring .ring-val { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .ring .ring-val { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease-out) .2s; }
.js .scores.is-in .ring-val { stroke-dashoffset: calc(100 - var(--v)); }
.scores b { position: absolute; top: 0; left: 0; right: 0; display: grid; place-items: center; max-width: 112px; aspect-ratio: 1; margin: 0 auto; font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--ok); }
.scores small { margin-top: 8px; font-size: 13px; color: var(--fg-2); }
.scores-note { margin-top: 14px; font-size: 12.5px; color: var(--fg-2); text-align: center; }

/* ---------- process ---------- */
.process-in { display: grid; gap: 38px; }
.process-head { margin-bottom: 0; }
.process-head .btn { margin-top: 28px; }
.steps { position: relative; display: grid; padding-left: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 10px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 34px; background: rgba(255, 255, 255, .1); }
.steps::after { height: calc((100% - 44px) * var(--p, 0)); background: linear-gradient(var(--accent), #ffb36b); box-shadow: 0 0 14px rgba(255, 91, 53, .7); }
.step { position: relative; padding-bottom: 32px; }
.step::before { content: ""; position: absolute; left: -40px; top: 0; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); transition: background-color .4s, box-shadow .4s; }
.step.is-on::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 91, 53, .18); }
.step-day { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: 6px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.step p { font-size: 15.5px; color: var(--fg-2); }

/* ---------- why (bento) ---------- */
.bento { display: grid; gap: 12px; }
.tile { position: relative; overflow: hidden; padding: 24px 22px; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .07); }
.tile h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tile p { font-size: 15px; color: var(--fg-2); }
.tile-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.tile--leads { --fg-2: #a6a5b1; padding-bottom: 0; background: var(--ink); color: #f4f2ed; box-shadow: none; }
.tile--leads h3 { margin-top: 0; font-size: 25px; line-height: 1.1; }
.feed { position: relative; height: 330px; margin: 22px -6px 0; overflow: hidden; container-type: size; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 78%, transparent); }
.note-tg { position: absolute; top: 0; left: 6px; right: 6px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); line-height: 1.3; opacity: 0; animation: feed 21s linear infinite; }
.note-tg:nth-child(2) { animation-delay: -3.5s; }
.note-tg:nth-child(3) { animation-delay: -7s; }
.note-tg:nth-child(4) { animation-delay: -10.5s; }
.note-tg:nth-child(5) { animation-delay: -14s; }
.note-tg:nth-child(6) { animation-delay: -17.5s; }
.note-tg > span { min-width: 0; }
.note-tg b, .note-tg small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-tg b { display: block; font-size: 14.5px; }
.note-tg small { display: block; font-size: 13px; color: #b9b8c4; }
.note-tg time { margin-left: auto; align-self: flex-start; font-size: 12px; color: #8a8995; }
.note-ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(160deg, #37bbfe, #1d93d2); color: #fff; }
.note-ico .i { width: 18px; height: 18px; transform: translateX(-1px); }
/* a steady stream of leads: each card drifts down the whole feed and fades out */
@keyframes feed {
  0% { transform: translateY(-70px) scale(.96); opacity: 0; }
  6% { opacity: 1; transform: translateY(calc(-70px + 6 * (100cqh + 70px) / 100)) scale(1); }
  82% { opacity: 1; }
  100% { transform: translateY(100cqh); opacity: 0; }
}
.tile--price { background: var(--accent-fill); color: #fff; box-shadow: none; }
.tile--price p { color: #fff; }
.tile--price .tile-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.tile--watch .pulse { width: 100%; height: 40px; margin-top: 16px; overflow: visible; }
.tile--watch .pulse path { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tile--watch .pulse circle { fill: var(--ok); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tile--phone .tile-ico { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); color: #fff; }
.tile--speed .tile-ico { background: #e6f9ee; color: #138a4c; }

/* ---------- about ---------- */
.about-in { display: grid; gap: 40px; }
.about-photo { position: relative; max-width: 560px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 40px 70px -40px rgba(11, 11, 15, .5); }
.hand { position: absolute; right: 10px; bottom: -14px; padding: 7px 14px; border-radius: 14px; background: #fff; color: var(--ink); transform: rotate(-6deg); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.hand-svg { display: block; width: auto; height: 26px; fill: currentColor; }
.about-text { margin-top: 22px; font-size: 17px; color: #2f2e37; }
.about-text p + p { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0; }
.facts li { padding: 14px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .07); }
.facts b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.facts span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: var(--fg-2); }
.about-copy .btn .i { width: 21px; height: 21px; }

/* ---------- faq + assistant ---------- */
.faq { background: var(--paper-2); }
.faq-in { display: grid; gap: 40px; }
.faq .sec-head { margin-bottom: 26px; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: background-color .3s, color .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { background: var(--ink); color: #fff; }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa-a { max-width: 44em; padding-bottom: 22px; font-size: 16px; color: #3a3943; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.ask { position: relative; padding: 18px; border-radius: var(--r-xl); background: #fff; box-shadow: 0 40px 70px -50px rgba(11, 11, 15, .5); scroll-margin-top: 90px; }
.ask::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: linear-gradient(135deg, var(--ai-1), var(--ai-2) 50%, var(--ai-3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.ask-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ask-head b { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.ask-head small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); }
.ask-head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ask-ava { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); color: #fff; }
.ask-ava .i { width: 24px; height: 24px; }
.ask-log { display: grid; align-content: start; gap: 10px; max-height: 380px; padding: 16px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 90%; padding: 11px 14px; border-radius: 17px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg--bot { justify-self: start; border-bottom-left-radius: 5px; background: var(--paper); color: #1d1c23; }
.msg--me { justify-self: end; border-bottom-right-radius: 5px; background: var(--ink); color: #fff; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5em; }
.msg ul { padding-left: 1.15em; list-style: disc; }
.msg li + li { margin-top: .2em; }
/* chat lead: quick replies and the confirm card (js/ask.js) */
.msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-act { padding: 8px 14px; border: 0; border-radius: 99px; background: var(--accent-fill); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s, transform .2s var(--ease); }
.msg-act:hover { background: var(--accent-fill-hi); }
.msg-act:active { transform: scale(.96); }
.msg-act--ghost { background: transparent; color: #4a4953; box-shadow: inset 0 0 0 1px rgba(11, 11, 15, .16); }
.msg-act--ghost:hover { background: rgba(11, 11, 15, .05); }
.msg--card { justify-self: stretch; max-width: 100%; padding: 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(11, 11, 15, .1), 0 18px 30px -24px rgba(11, 11, 15, .6); }
.msg--card.is-sent { justify-self: start; padding: 10px 14px; }
.lc-title { font-weight: 700; }
.lc-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 14px; font-size: 14.5px; }
.lc-list dt { color: var(--fg-2); }
.lc-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lc-check { font-size: 13px; }
.lc-check.is-bad span { color: #b3330c; }
.lc-err { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(217, 58, 16, .08); color: #b3330c; font-size: 13.5px; }
.lc-err[hidden] { display: none; }
.lc-err a { color: inherit; font-weight: 600; }
.lc-btns { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.lc-go { --h: 46px; flex: 1; }
.lc-edit { padding: 8px 4px; border: 0; background: none; color: var(--fg-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lc-done { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #0f7a42; }
.lc-done .i { width: 18px; height: 18px; stroke-width: 3; }
.msg-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.msg-cta .i { width: 15px; height: 15px; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #a09fab; animation: dot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ask-sugg[hidden] { display: none; }
.ask-sugg button { padding: 8px 12px; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color .2s; }
.ask-sugg button:hover { background: var(--paper-2); }
.ask-sugg .sugg-lead { background: var(--accent-fill); color: #fff; font-weight: 600; }
.ask-sugg .sugg-lead:hover { background: var(--accent-fill-hi); }
.ask-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ask-send { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.ask-send:active { transform: scale(.94); }
.ask-send[disabled] { opacity: .5; }
.ask .note { margin-top: 12px; }

/* ---------- contact ---------- */
.contact { overflow: clip; }
.contact-in { position: relative; display: grid; gap: 40px; }
.cbtns { display: grid; gap: 10px; margin-top: 32px; }
.cbtn { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--fg); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .25s var(--ease), background-color .25s; }
.cbtn:hover { background: rgba(255, 255, 255, .1); }
.cbtn:active { transform: scale(.98); }
.cbtn--tg { background: var(--accent-fill); color: #fff; box-shadow: 0 24px 50px -24px rgba(217, 58, 16, .9); }
.cbtn--tg:hover { background: var(--accent-fill-hi); }
.cbtn-ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, .08); }
.cbtn--tg .cbtn-ico { background: rgba(255, 255, 255, .16); }
.cbtn--tg .cbtn-text small { opacity: 1; }
.cbtn-ico .i { width: 23px; height: 23px; }
.cbtn-text { flex: 1; min-width: 0; line-height: 1.3; }
.cbtn-text b { display: block; font-size: 17px; font-weight: 700; }
.cbtn-text small { display: block; font-size: 13.5px; opacity: .72; }
.cbtn-arrow { opacity: .55; }
.lform { display: grid; gap: 18px; padding: 24px 20px; border-radius: var(--r-xl); background: rgba(19, 19, 25, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.lform[hidden], .lead-done[hidden], .qr[hidden] { display: none; }
.lead-title { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.lead-title span { font-weight: 500; color: var(--fg-2); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: 14px; font-weight: 600; }
.field > legend { margin-bottom: 8px; }
.field label span { font-weight: 400; color: var(--fg-2); }
.chips--sm { gap: 6px; }
.chips--sm .chip span { padding: 9px 12px; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--fg); }
.check.is-bad span { color: #ff8f73; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-err { padding: 12px 14px; border-radius: 12px; background: rgba(255, 107, 74, .12); color: #ffb09c; font-size: 14px; }
.lead-err[hidden] { display: none; }
.lead-err a { color: #fff; font-weight: 600; }
.lead-done { padding: 32px 22px; border-radius: var(--r-xl); background: rgba(19, 19, 25, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); text-align: center; }
.lead-done h3 { margin: 16px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.lead-done p { color: var(--fg-2); }
.lead-done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #05210f; animation: pop .6s var(--ease-out); }
.lead-done-ico .i { width: 32px; height: 32px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.next { padding: 24px 20px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.next[hidden] { display: none; }
.next-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.next-steps { display: grid; gap: 14px; margin-top: 18px; counter-reset: step; }
.next-steps li { position: relative; padding-left: 44px; font-size: 15.5px; line-height: 1.45; color: var(--fg-2); counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 91, 53, .16); color: var(--accent); font-size: 14px; font-weight: 700; }
.next-steps b { color: var(--fg); font-weight: 600; }
.qr { display: none; }

/* ---------- footer ---------- */
.foot { padding: 52px 0 calc(110px + env(safe-area-inset-bottom)); background: #07070a; font-size: 14.5px; }
.foot-in { display: grid; gap: 30px; }
.foot-brand p { max-width: 30em; margin-top: 14px; color: var(--fg-2); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-col b { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.foot-col a { display: block; padding: 5px 0; color: #dcdbe4; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--fg-2); }
.foot-legal a { color: var(--fg-2); }

/* ---------- dock (phone only) + bottom sheets ---------- */
/* Lead form and AI chat open as sheets (<dialog>), not as jumps down the page. "Оставить заявку" appears only
   when leads reach Telegram (html.has-leads, set by js/lead.js); otherwise Telegram is the main button. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 11, 15, .86); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); transform: translateY(115%); transition: transform .45s var(--ease); }
.dock.is-on { transform: none; }
.dock-lead, .dock-tab { border: 0; color: #fff; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), background-color .2s; }
.dock-lead:active, .dock-tab:active { transform: scale(.95); }
.dock-lead { display: none; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 7px; height: 54px; padding: 0 10px; border-radius: 15px; background: var(--accent-fill); font-size: 15px; font-weight: 650; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(217, 58, 16, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.has-leads .dock-lead { display: flex; }
.dock-lead .i { width: 19px; height: 19px; }
.dock-tab { display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .09); }
.dock-tab .i { width: 24px; height: 24px; }
.dock-tg span { display: none; }
html:not(.has-leads) .dock-tg { flex: 1; min-width: 0; padding: 0 12px; background: var(--accent-fill); font-size: 15px; font-weight: 650; white-space: nowrap; }
html:not(.has-leads) .dock-tg span { display: inline; }
html.is-locked { overflow: hidden; }
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: min(92dvh, 820px); margin: 0 auto; padding: 0; border: 0; border-radius: 24px 24px 0 0; overflow: auto; overscroll-behavior: contain; box-shadow: 0 -24px 60px rgba(0, 0, 0, .35); }
.sheet[open] { animation: sheetUp .42s var(--ease-out); }
@keyframes sheetUp { from { transform: translateY(36%); opacity: 0; } }
.sheet::backdrop { background: rgba(7, 7, 10, .62); }
.sheet.dark { background: var(--ink-2); }
@media (min-width: 760px) { /* desktop: the hero button opens the lead form as a centered popup */
  .sheet { inset: 0; height: fit-content; margin: auto; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
  .sheet[open] { animation-name: sheetIn; animation-duration: .32s; }
}
@keyframes sheetIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.sheet-in { padding: 20px var(--pad) calc(22px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-title { font-size: 24px; font-weight: 750; letter-spacing: -.025em; }
.sheet-sub { margin: 8px 0 20px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.sheet-x { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .09); color: inherit; cursor: pointer; }
.sheet-x .i { width: 20px; height: 20px; }
.lform.lform--sheet { padding: 0; background: none; box-shadow: none; } /* beats the desktop .lform card padding */
.field legend span { font-weight: 400; color: var(--fg-2); }
.sheet .lead-done { padding: 26px 0 6px; background: none; box-shadow: none; }
/* the FAQ chat itself is moved into this sheet while it is open (js/app.js initSheets) */
.sheet--ask { background: #fff; }
.sheet--ask .sheet-x { position: absolute; top: 14px; right: 12px; z-index: 2; background: var(--paper); }
.sheet--ask .ask { position: static; padding: 16px var(--pad) calc(12px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; }
.sheet--ask .ask::before { display: none; }
.sheet--ask .ask-head { padding-right: 48px; }
.sheet--ask .ask-log { max-height: none; height: min(56dvh, 480px); }
@media (max-width: 389px) { .dock-lead .i { display: none; } }
@media (max-width: 359px) { .dock-tab { width: 48px; } .dock-lead { font-size: 14px; } html:not(.has-leads) .dock-tg .i { display: none; } }

/* ---------- legal pages & 404 ---------- */
.doc { min-height: 100vh; padding: 0 0 80px; background: var(--paper); color: var(--ink); }
.doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.doc-bar .logo { color: var(--ink); }
.doc-bar a.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.doc-body { max-width: 760px; padding-top: 28px; }
.doc-body h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 750; line-height: 1.05; letter-spacing: -.035em; }
.doc-body .doc-date { margin-top: 10px; color: var(--fg-2); font-size: 14px; }
.doc-body h2 { margin: 34px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.65; color: #2f2e37; }
.doc-body p + p { margin-top: 10px; }
.doc-body ul { display: grid; gap: 6px; margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.doc-body a { color: var(--accent-text); }
.doc-bar .logo-word b { color: var(--accent-deep); }
.lost { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 40px var(--pad); overflow: hidden; text-align: center; }
.lost-code { font-size: clamp(120px, 40vw, 280px); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--accent); }
.lost h1 { margin-top: 10px; font-size: clamp(26px, 6vw, 40px); letter-spacing: -.03em; }
.lost p { max-width: 26em; margin: 12px auto 0; color: var(--fg-2); }
.lost-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 759px) {
  .tile:not(.tile--leads) { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .tile:not(.tile--leads) .tile-ico { grid-row: span 2; width: 44px; height: 44px; }
  .tile:not(.tile--leads) h3 { margin: 1px 0 4px; font-size: 18px; }
  .tile:not(.tile--leads) p { font-size: 14.5px; }
  .tile--watch .pulse { grid-column: 1 / -1; margin-top: 10px; }
}

/* ---------- tablet ---------- */
@media (min-width: 560px) {
  .extra { grid-template-columns: auto 1fr auto; }
  .extra > .btn { grid-column: auto; }
}
@media (min-width: 760px) {
  :root { --pad: 32px; --sec: 116px; }
  .hero { padding: 112px 0 40px; }
  .hero-lead { font-size: 18px; }
  .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .hero-cta .btn { width: auto; }
  .hero-note { text-align: left; }
  .reel { margin-top: 48px; }
  .reel-all { display: inline-flex; }
  .reel-card { width: 164px; font-size: 13px; }
  .reel-card.is-low { margin-top: 26px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--hot { margin-top: 0; }
  .extras { grid-template-columns: 1fr 1fr; }
  .extra { grid-template-columns: auto 1fr; }
  .extra > .btn { grid-column: 1 / -1; justify-self: start; }
  .minis { grid-template-columns: repeat(4, 1fr); gap: 26px 16px; }
  .case { padding: 34px 32px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--leads { grid-row: span 2; display: flex; flex-direction: column; }
  .tile--leads .feed { flex: 1; min-height: 330px; height: auto; }
  .tile--own { grid-column: 1 / -1; }
  .facts li { padding: 16px; }
  .dock { display: none; }
  .foot { padding-bottom: 44px; }
  .lform { padding: 30px 28px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1060px) {
  :root { --pad: 40px; --sec: 140px; }
  .nav { display: flex; gap: 4px; margin-left: 40px; }
  .nav a { padding: 8px 14px; border-radius: 10px; color: #c9c8d2; font-size: 14.5px; text-decoration: none; transition: color .2s, background-color .2s; }
  .nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
  .burger, .menu { display: none !important; }
  .hero { padding: 116px 0 48px; }
  .hero .h1 { max-width: none; font-size: clamp(56px, 4.9vw, 72px); }
  .hero-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 64px; margin-top: 8px; }
  .hero-lead { max-width: 33em; font-size: 18.5px; }
  .hero-cta { flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 0; }
  .reel-view { padding-left: max(var(--pad), calc((100% - var(--wrap)) / 2)); }
  .reel-card { width: 176px; }
  .plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .plan--hot { transform: translateY(-14px); }
  .extras { grid-template-columns: 1.15fr 1fr; }
  .extra { grid-template-columns: auto 1fr auto; padding: 24px; }
  .extra > .btn { grid-column: auto; }
  .case--doctor { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 48px; }
  .case--doctor .case-media { height: 460px; margin: 0; }
  .case-title { font-size: 30px; }
  .case--auto { padding: 48px; }
  .case--auto .case-copy { max-width: 640px; }
  .case--bot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; }
  .case--bot .chat { width: 100%; max-width: 440px; margin-top: 0; justify-self: end; }
  .case--self { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 44px 48px; }
  .case--self .scores { margin-top: 0; }
  .case--self .scores-wrap { align-self: center; }
  .process-in { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .process-head { position: sticky; top: 120px; }
  .steps { padding-top: 6px; }
  .step { padding-bottom: 44px; }
  .bento { grid-template-columns: 1.15fr 1fr 1fr; }
  .tile--leads { grid-row: span 3; }
  .tile--own { grid-column: span 2; }
  .tile { padding: 30px 28px; }
  .about-in { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
  .about-photo { max-width: 440px; }
  .about-photo img { aspect-ratio: 4 / 5; }
  .hand { right: -4px; bottom: 28px; padding: 8px 16px; }
  .hand-svg { height: 30px; }
  .about-text { font-size: 18px; }
  .faq-in { grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
  .ask { position: sticky; top: 100px; padding: 22px; }
  .contact-in { grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
  .h2--xl { font-size: clamp(64px, 5.8vw, 86px); }
  .next { padding: 30px 28px; }
  .qr { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .qr img { width: 112px; height: 112px; padding: 8px; border-radius: 14px; background: #fff; }
  .qr b { font-size: 17px; }
  .qr p { margin-top: 4px; font-size: 14.5px; color: var(--fg-2); }
  .foot-in { grid-template-columns: 1.3fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
}
@media (min-width: 1060px) and (hover: hover) {
  .reel-card:hover img { transform: translateY(-6px); }
  .mini:hover img { transform: translateY(-4px); }
  .plan { transition: transform .4s var(--ease), box-shadow .4s; }
  .plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 11, 15, .3), 0 0 0 1px rgba(11, 11, 15, .08); }
  .plan--hot:hover { transform: translateY(-20px); }
  .tile { transition: transform .4s var(--ease); }
  .tile:hover { transform: translateY(-4px); }
}

/* ---------- service pages (public/<slug>/ — built by tools/pages.py from tools/pages/<slug>.html) ---------- */
/* Same components as the home page; only the hero, the facts row, a 2-card price grid, the steps list on light,
   a comparison table and a Telegram request mock are new. */
.hero--page { padding-bottom: 46px; }
.hero--page .h1 { max-width: 13em; }
.hero--page .hero-lead { margin-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; font-size: 13.5px; color: #a6a5b1; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6f6e7a; }
.crumbs a { color: #dcdbe4; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.pfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 600px; margin-top: 26px; }
.pfacts li { padding: 13px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pfacts b { display: block; font-size: 16.5px; font-weight: 750; letter-spacing: -.02em; color: #f4f2ed; white-space: nowrap; }
.pfacts li > span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: #a6a5b1; }
.hero--page .hero-cta { max-width: 600px; }
.hero--page .who { margin: 28px 0 0; }
.light.tint { background: var(--paper-2); }
.split { display: grid; gap: 30px; }
.split > * { min-width: 0; }
.split .sec-head { margin-bottom: 0; }
.light .next-steps li::before { background: rgba(255, 91, 53, .14); color: var(--accent-text); }
.light .next-steps { margin-top: 0; }
.price-note { max-width: 46em; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.steps-title { margin: 6px 0 18px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.extras.extras--stack { grid-template-columns: 1fr; align-content: start; margin-top: 0; }
.extras--stack .extra { grid-template-columns: auto 1fr; }
.extras--stack .extra > .btn { grid-column: 1 / -1; justify-self: start; }
.qa-list--wide { max-width: 860px; }
.cmp-wrap { overflow-x: auto; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .07); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.cmp th, .cmp td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font-weight: 700; color: var(--ink); }
.cmp thead th:first-child { width: 30%; }
.cmp tbody th { font-weight: 600; }
.cmp td:last-child { color: var(--ink); font-weight: 600; }
.cmp tr:last-child > * { border-bottom: 0; }
/* phones: three columns don't fit, so every row becomes a small card; td[data-label] names the column */
@media (max-width: 559px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: none; }
  .cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp tbody th { margin-bottom: 6px; font-size: 15.5px; }
  .cmp td { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 10px; padding: 3px 0; }
  .cmp td::before { content: attr(data-label); color: var(--fg-2); font-weight: 500; }
}
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; justify-self: start; width: min(86%, 300px); margin-top: -4px; }
.kb span { padding: 8px 6px; border-radius: 10px; background: rgba(255, 255, 255, .65); color: #1b5f9e; font-size: 13px; font-weight: 600; text-align: center; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bub small.bub-note { display: block; margin-top: 4px; font-size: 12px; color: #6e6d78; }
@media (min-width: 760px) {
  .hero--page { padding-bottom: 60px; }
  .cmp { font-size: 15.5px; }
  .cmp th, .cmp td { padding: 16px 22px; }
  .cmp thead th { font-size: 15.5px; }
}
@media (min-width: 1060px) {
  .hero--page { padding: 136px 0 72px; }
  .hero--page .h1 { max-width: 15em; font-size: clamp(52px, 4.6vw, 68px); }
  .hero--page .hero-lead { max-width: 36em; }
  .hero--page .hero-cta { flex-direction: row; align-items: center; gap: 12px 22px; margin-top: 30px; }
  .plans--2 { grid-template-columns: 1fr 1fr; max-width: 920px; }
  .bento--even { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .intro { opacity: 1; transform: none; }
  .note-tg { animation: none; position: relative; top: auto; left: auto; right: auto; margin-bottom: 8px; opacity: 1; }
  .note-tg:nth-child(n+4) { display: none; }
  .feed { height: auto; container-type: normal; -webkit-mask-image: none; mask-image: none; } /* size containment would collapse it to 0 */
}
