/* pankratov.pro: the shared stylesheet. Light by default; dark from the header switch. */

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: optional;
}

:root {
  color-scheme: light;
  --page: #f6f6f6;
  --surface: #ffffff;
  --panel: #e4e4e4;
  --panel-2: #ececec;
  --ink: #303030;
  --ink-2: #5c5c5c;
  --muted: #6b6b6b;
  --ghost: #d6d6d6;
  --line: #d9d9d9;
  --accent: #cbe86a;
  --accent-ink: #1e2310;
  --btn: #303030;
  --btn-ink: #f6f6f6;
  --btn-hover: #4a4a4a;
  --accent-hover: #bad957;
  --scroll-thumb: #c8c8c8;
  --cursor: #ffffff;
  --band: #1b1b1b;
  --band-card: #262626;
  --band-ink: #f2f2f2;
  --band-ink-2: #a9a9a9;
  --band-line: #3a3a3a;
  --scrim: rgb(18 18 18 / 0.55);
  --scrim-ink: #ffffff;
  --scrim-line: rgb(255 255 255 / 0.35);
  --shadow: rgb(0 0 0 / 0.1);
  --device: #0e0e0f;
  --device-edge: #3b3b3e;
  --metal: #e2e3e6;
  --metal-2: #b7b9be;
  --error: #b3261e;
  --error-bg: rgb(179 38 30 / 0.04);
  --error-ring: rgb(179 38 30 / 0.16);
  --ring: rgb(203 232 106 / 0.6);
  --radius: 28px;
  --radius-s: 20px;
  --radius-xs: 14px;
  --pill: 999px;
  --shadow-s: 0 4px 12px var(--shadow);
  --shadow-m: 0 18px 40px var(--shadow);
  --shadow-l: 0 30px 80px var(--shadow);
  --focus: 0 0 0 4px var(--ring);
  --focus-error: 0 0 0 4px var(--error-ring);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.6, 0.6, 1);
  --fast: 0.2s;
  --fs-xs: 13px;
  --fs-s: 14px;
  --fs-m: 15px;
  --fs-l: 16px;
  --gutter: 16px;
  --swatch-ink: #111111;
  --swatch-ink-on-dark: #ffffff;
  --swatch-edge: rgb(0 0 0 / 0.08);
  --swatch-paper: #ffffff;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark: a draft, to be finished after the light theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121212;
  --surface: #1c1c1c;
  --panel: #222222;
  --panel-2: #1a1a1a;
  --ink: #ececec;
  --ink-2: #a8a8a8;
  --muted: #8a8a8a;
  --ghost: #333333;
  --line: #333333;
  --btn: #ececec;
  --btn-ink: #161616;
  --btn-hover: #ffffff;
  --accent-hover: #d9f28a;
  --scroll-thumb: #3c3c3c;
  --band: #050505;
  --band-card: #1d1d1d;
  --band-line: #2e2e2e;
  --shadow: rgb(0 0 0 / 0.4);
  --error: #ff8a80;
  --error-bg: rgb(255 138 128 / 0.06);
  --error-ring: rgb(255 138 128 / 0.22);
  --ring: rgb(203 232 106 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding: 16px 0 88px; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--font); overflow-x: hidden; padding-bottom: 88px; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.grey { color: var(--muted); }
b { font-weight: 600; color: var(--ink); }

/* Variants: utm_content picks one set of spans in #hero; the default shows without a key */
[data-variant] { display: none; }
html:not([data-v]) [data-variant="default"],
html[data-v="dorabotka"] [data-variant="dorabotka"],
html[data-v="soprovozhdenie"] [data-variant="soprovozhdenie"],
html[data-v="pod-klyuch"] [data-variant="pod-klyuch"],
html[data-v="proizvodstvo"] [data-variant="proizvodstvo"],
html[data-v="lending"] [data-variant="lending"],
html[data-v="uskorenie"] [data-variant="uskorenie"],
html[data-v="srochno"] [data-variant="srochno"] { display: inline; }
/* A block for one ad group below the first screen (leads.md, "Variants"): shown only under its key */
[data-only] { display: none; }
html[data-v="uskorenie"] [data-only="uskorenie"],
html[data-v="srochno"] [data-only="srochno"] { display: block; }
/* NOTE: the switch in <head> marks a visit from an ad before the first paint, so the promo lines never shift the page */
html:not([data-ad]) [data-promo-ad] { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: 0; }
.chip--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip--ink { background: var(--accent-ink); color: var(--accent); border-color: transparent; }
.chip--band { background: var(--band-card); color: var(--band-ink-2); border-color: var(--band-line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 6px 6px 16px; border-radius: var(--pill); background: var(--btn); color: var(--btn-ink); border: 0; font-size: var(--fs-m); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
@media (min-width: 360px) { .btn { gap: 14px; padding-left: 22px; } }
.btn__icon { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--btn-ink); color: var(--btn); }
[aria-busy="true"] button[type="submit"] .btn__icon svg { opacity: 0; }
[aria-busy="true"] button[type="submit"] .btn__icon::after { content: ""; position: absolute; inset: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.btn__icon svg { width: 18px; height: 18px; }
.btn--light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--light .btn__icon { background: var(--panel); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent .btn__icon { background: var(--accent-ink); color: var(--accent); }
.btn--plain { padding: 6px 22px; justify-content: center; }

.round { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-decoration: none; cursor: pointer; padding: 0; }
.round svg { width: 18px; height: 18px; }
.round--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.round--dark { width: 52px; height: 52px; background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.tick { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.tick svg { width: 12px; height: 12px; }

/* NOTE: hover only where a pointer hovers, as a tap leaves it stuck on phones; the services list scrolls below 960 px. */
@media (hover: hover) {
  .btn:hover { background: var(--btn-hover); }
  .btn--light:hover { background: var(--panel-2); border-color: var(--muted); }
  .btn--accent:hover, .round--accent:is(a, button):hover, .dock .round:is(a, button):hover, .contact--accent:hover { background: var(--accent-hover); }
  :is(a, button).round:hover { background: var(--panel-2); border-color: var(--muted); }
  .round--dark:is(a, button):hover { background: var(--btn-hover); border-color: transparent; }
  .chat__head .chat__x:hover { background: transparent; border-color: currentColor; }
  .chat__hint-x:hover { color: var(--ink); }
  .case:hover, .plan:hover, .wip:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
  .aud__card:hover .round, .contact:hover .tick { transform: rotate(-45deg); }
  .contact:hover, .who:hover { background: var(--panel-2); }
  .contact--accent:hover { color: var(--accent-ink); }
  .case__link:hover svg { transform: translate(2px, -2px); }
  a.case__img:hover img, a.team__shot:hover img, a.wip__img:hover img { transform: scale(1.03); }
  .num > summary:hover .pm { background: var(--accent); }
  .gate label:hover, .pick:hover, .opt:hover, .seg label > span:hover { border-color: var(--muted); }
}
@media (hover: hover) and (min-width: 960px) {
  .aud__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
}
.btn:active, :is(a, button).round:active, .chat__opt:active, .chat__fab:active, .seg label > span:active, .dock .btn:active, .aud__card:active { transform: scale(0.97); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .round, .case, .plan, .wip, .btn__icon, .aud__card, .contact, .who, .tick, .pm, .pm::after, .gate label, .nav a, .menu__panel a, .foot__cols a, .case__link svg { transition: transform var(--fast) ease, background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease, box-shadow var(--fast) ease; }
  .case__img img, .team__shot img, .wip__img img { transition: transform 0.45s ease; }
  .theme-switch *, .theme-switch *::before, .theme-switch *::after { transition: none !important; }
  .num { interpolate-size: allow-keywords; }
  .num__n { transition: color 0.35s ease; }
  .num::details-content { height: 0; overflow: clip; transition: height 0.35s ease, content-visibility 0.35s allow-discrete; }
  .num[open]::details-content { height: auto; }
  .case__link:hover span, .head__aside a:hover, .form__note a:hover, .form__msg a:hover, .consent a:hover, .foot__legal a:hover, .legal a:hover, .crumbs a:hover { animation: line-redraw 0.8s linear; }
  .foot__cols a span { transition: background-size 0.3s ease; }
  .cursor { transition: opacity 0.15s ease; }
  .cursor__ring, .cursor__dot { transition: scale 0.15s ease; }
  @media (hover: hover) {
    .btn:hover .btn__icon, a.round:not(.round--dark):hover { transform: rotate(-45deg); }
  }
  .field__input, .consent__box { transition: border-color var(--fast) ease, box-shadow var(--fast) ease, background-color var(--fast) ease; }
  .field__err { transition: grid-template-rows 0.25s ease, opacity var(--fast) ease; }
  .field__ok, .consent__box::after { transition: opacity var(--fast) ease, scale 0.25s var(--ease-spring); }
  .field.is-nudge .field__box, .field.is-nudge .consent__box { animation: nudge 0.4s ease; }
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.mark-bg { fill: var(--btn); }
.mark-fg { fill: var(--btn-ink); }
.nav, .reach { display: none; }
.reach { position: relative; }
.reach > summary { list-style: none; min-height: 44px; padding: 2px 2px 2px 16px; }
.reach > summary::-webkit-details-marker { display: none; }
.reach > summary .btn__icon { width: 38px; height: 38px; }
.reach > summary:hover .btn__icon { transform: none; }
.reach[open] .btn__icon { rotate: 180deg; }
.reach .menu__panel { width: auto; min-width: 200px; padding: 6px; }
.reach .menu__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: var(--fs-m); white-space: nowrap; }
.reach .menu__panel svg { flex: none; width: 16px; height: 16px; }
.top__actions { display: flex; align-items: center; gap: 8px; }
/* The switch keeps its place: no shift when the script shows it */
.theme[hidden] { display: grid !important; visibility: hidden; }
.theme svg { width: 20px; height: 20px; }
.theme .i-sun, :root[data-theme="dark"] .theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 18px; height: 18px; }
.menu__panel { position: absolute; right: 0; top: 52px; z-index: 20; width: min(86vw, 320px); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-m); }
.menu__panel a { display: block; padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.menu__panel a:hover { background: var(--panel-2); }

/* The top bar and the first screen: one panel */
.masthead { background: var(--panel); }
.hero { background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); padding-bottom: 16px; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; padding-top: 18px; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(27px, 1.5vw + 19px, 44px); line-height: 1.04; letter-spacing: -0.035em; text-transform: uppercase; hyphens: manual; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.hero__text { flex: 1 1 260px; max-width: 390px; font-size: var(--fs-m); line-height: 1.5; color: var(--ink-2); }
.hero__text b { display: block; font-size: var(--fs-l); margin-bottom: 4px; }
.hero__cta { display: flex; gap: 8px; }
.hero__act { display: grid; gap: 10px; justify-items: start; }
.hero__note { font-size: var(--fs-xs); color: var(--ink-2); }

.devices { position: relative; padding: 0 9% 6% 0; }
.devices::before { content: ""; position: absolute; left: 22%; right: -40%; top: 16%; bottom: 20%; border-radius: var(--pill); background: var(--panel-2); }
.mac { position: relative; }
.mac__screen { position: relative; padding: 2.2% 2.2% 1.6%; border-radius: 16px 16px 4px 4px; background: var(--device); box-shadow: 0 0 0 1.5px var(--device-edge), 0 30px 60px var(--shadow); }
.mac__screen::before { content: ""; position: absolute; z-index: 1; top: 2.2%; left: 50%; width: 11%; height: 3.4%; transform: translateX(-50%); border-radius: 0 0 7px 7px; background: var(--device); }
.mac__screen img, .mac__screen video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px; }
.mac__base { position: relative; height: 13px; margin: 0 -7.5%; border-radius: 2px 2px 14px 14px; background: linear-gradient(var(--metal), var(--metal-2)); box-shadow: var(--shadow-m); }
.mac__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 7px 7px; background: var(--metal-2); }
.iphone { position: relative; padding: 5px; border-radius: 24px; background: var(--device); box-shadow: 0 0 0 1.5px var(--metal-2), 0 0 0 2.5px var(--device-edge), 0 24px 50px var(--shadow); }
.iphone::before { content: ""; position: absolute; z-index: 1; top: 10px; left: 50%; width: 30%; height: 2.8%; transform: translateX(-50%); border-radius: var(--pill); background: var(--device); }
.iphone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 19px; }
.devices .iphone { position: absolute; right: 0; bottom: 0; width: 24%; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.who { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--radius-s); background: var(--surface); text-decoration: none; }
.who__t { font-size: var(--fs-s); color: var(--ink-2); line-height: 1.35; }
.who__face { position: relative; flex: none; width: 48px; height: 48px; }
.who__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--accent); }
.who__tg { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--surface); }
.who__tg svg { width: 12px; height: 12px; }
.me { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.me img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--accent); }
.me p { font-size: var(--fs-s); color: var(--band-ink-2); }
.me b { display: block; font-size: var(--fs-m); color: var(--band-ink); }
.who__t b { display: block; font-size: var(--fs-m); }
.stat { flex: 1 1 40%; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 84px; padding: 12px 12px 12px 14px; border-radius: var(--radius-s); background: var(--surface); }
.stat b { font-size: 17px; letter-spacing: -0.03em; line-height: 1.1; padding-right: 26px; }
.stat__t { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
.stat .tick { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; }
.stat--accent { background: var(--accent); }
.stat--accent .stat__t, .stat--accent b { color: var(--accent-ink); }
.stat--accent .tick, .tile--accent .tick { background: var(--surface); color: var(--ink); }

.section { padding-block: 64px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 40px 16px; }
.head { display: grid; gap: 14px; margin-bottom: 28px; }
.head h2, .title { font-size: clamp(28px, 1.8vw + 18px, 46px); }
.head__aside { color: var(--ink-2); font-size: var(--fs-m); max-width: 400px; }
.head--center { justify-items: center; text-align: center; }
.head > .chip { justify-self: start; }
.head--center > .chip { justify-self: center; }
.head--center .head__aside { max-width: 520px; }

.aud { display: grid; gap: 28px; }
.aud__list { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 360px) { .aud__list { grid-auto-columns: 78%; } }
.aud__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 8px 8px 16px; text-decoration: none; }
.aud__media { position: relative; display: grid; align-items: center; padding: 26px 18px 18px; min-height: 250px; overflow: hidden; border-radius: var(--radius-s); background: var(--panel); }
.aud__media::before { content: ""; position: absolute; left: -20%; right: 18%; top: 22%; height: 46%; border-radius: var(--pill); background: var(--panel-2); }
.aud__media .devices::before { display: none; }
.aud__media .iphone { width: 26%; border-radius: var(--radius-xs); padding: 3px; }
.aud__media .iphone img { border-radius: 13px; }
.aud__media .iphone::before { top: 6px; }
.aud__card > .chips { padding: 0 8px; }
.aud__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 10px; }
.aud__foot h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.aud__foot p { font-size: var(--fs-s); color: var(--ink-2); margin-top: 4px; }

.pain { display: grid; gap: 12px; }
.pain__list, .faq { display: grid; gap: 8px; align-content: start; align-items: start; }
.num { background: var(--panel-2); border-radius: var(--radius-s); overflow: hidden; }
.pain .num { background: var(--surface); }
.pain .pm { background: var(--panel); }
.num > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 28px; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; }
.num > summary::-webkit-details-marker { display: none; }
.num > summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-s); }
.num__n { font-size: 40px; line-height: 1; letter-spacing: -0.04em; color: var(--ghost); }
.num[open] .num__n { color: var(--ink); }
.num__q { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.num__a { padding: 0 18px 20px; color: var(--ink-2); font-size: var(--fs-m); }
.pm { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 1px; background: var(--ink); }
.pm::after { transform: rotate(90deg); }
details[open] > summary .pm::after { transform: none; }
.faq .num > summary { grid-template-columns: 40px 1fr 28px; min-height: 64px; }
.faq .num__n { font-size: 30px; }

.offer { display: flex; flex-direction: column; gap: 18px; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); }
.offer h3 { font-size: clamp(26px, 1.2vw + 18px, 36px); }
.offer > div > p { color: var(--ink-2); font-size: var(--fs-m); margin-top: 12px; }
.offer h3 + p, .offer .chip + h3 { margin-top: 12px; }
.timeline { counter-reset: s; }
.timeline li { counter-increment: s; position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding-bottom: 18px; }
.timeline li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); font-size: var(--fs-m); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { background: var(--accent); color: var(--accent-ink); }
.timeline b { font-size: var(--fs-l); padding-top: 6px; }
.timeline span { font-size: var(--fs-m); color: var(--ink-2); }
.offer .btn { align-self: start; margin-top: auto; }
.only { margin-top: 40px; }
.only__grid, .only__col { display: grid; gap: 12px; align-content: start; }
.only .express { margin-top: 0; }
.proof { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); font-size: var(--fs-m); }
.proof .stats { margin-top: 0; }
.proof__note { font-size: var(--fs-xs); color: var(--ink-2); }
.form__title { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.promo { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: -8px auto 24px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px dashed var(--line); font-size: var(--fs-m); }
.promo .chip { flex: none; }
.promo--tight { max-width: calc(100vw - 2 * var(--gutter)); margin: 0; padding: 8px 12px 8px 8px; border-color: var(--muted); font-size: var(--fs-s); line-height: 1.35; }

.band { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 48px 16px; border: 1px solid var(--band-line); }
.band .grey, .band .head__aside { color: var(--band-ink-2); }
.about { display: grid; gap: 12px; }
.about__photo { position: relative; min-height: 420px; border-radius: var(--radius); background: var(--accent); overflow: hidden; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about__name { position: absolute; left: 12px; bottom: 12px; padding: 10px 16px; border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow-s); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.35; }
.about__name b { display: block; font-size: var(--fs-m); color: var(--ink); }
.about__body { display: grid; align-content: center; justify-items: start; gap: 18px; padding: 32px 18px; border-radius: var(--radius); background: var(--surface); }
.about__body h2 { font-size: clamp(28px, 1.8vw + 18px, 46px); }
.about__lead { font-size: var(--fs-l); color: var(--ink-2); max-width: 560px; }
.about__facts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.about__facts .stat { background: var(--panel-2); }
.about__facts .stat--accent { background: var(--accent); }
.about__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.about__tel { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); color: var(--ink-2); text-decoration: none; }
@media (min-width: 1280px) { .about__facts .stat { flex-basis: 28%; } }
@media (min-width: 960px) {
  .about { grid-template-columns: 5fr 7fr; }
  .about__photo { min-height: 600px; }
  .about__body { padding: 48px 44px; }
}
.team { display: grid; gap: 10px; }
.team__card { background: var(--band-card); border-radius: var(--radius-s); padding: 18px; border: 1px solid var(--band-line); }
.team__shot { display: block; margin: -6px -6px 16px; border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 16 / 10; background: var(--band); }
.team__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team__card h3 { font-size: 22px; letter-spacing: -0.02em; }
.team__role { margin-top: 4px; color: var(--accent); font-size: var(--fs-s); }
.team__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.team__stats .stat { flex: 1 1 100%; color: var(--ink); }
@media (min-width: 640px) { .team__stats .stat { flex: 0 0 210px; } }
.team__card p:last-child { margin-top: 10px; color: var(--band-ink-2); font-size: var(--fs-m); }

.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 8px 8px 18px; border: 1px solid var(--line); }
.plan__media { position: relative; display: grid; place-items: center; min-height: 170px; border-radius: var(--radius-s); background: var(--panel); overflow: hidden; }
.plan__media::before { content: ""; position: absolute; left: 14%; right: -24%; top: 20%; bottom: 20%; border-radius: var(--pill); background: var(--panel-2); }
.plan__big { position: relative; font-size: clamp(34px, 1.4vw + 26px, 46px); letter-spacing: -0.05em; line-height: 1; text-align: center; }
.plan__big small { display: block; font-size: var(--fs-s); letter-spacing: 0; color: var(--ink-2); margin-top: 6px; }
.plan__media .chips { position: absolute; left: 12px; bottom: 12px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 0 10px; }
.plan__head h3 { font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase; font-weight: 500; }
.plan__note { position: relative; font-size: var(--fs-m); color: var(--ink-2); padding: 0 10px; }
.plan__note > .tip { display: inline-block; vertical-align: middle; }
.plan__note > .tip > summary { width: 18px; height: 18px; }
.plan__note > .tip > summary::after { inset: -13px; }
.plan__note > .tip > summary svg { width: 14px; height: 14px; }
.plan__note > .tip > p { left: 10px; right: 10px; max-width: none; }
.plan .ticks { padding: 0 10px; }
.plan .btn { margin: auto 8px 0; white-space: normal; text-wrap: balance; line-height: 1.25; }
.plan--main .plan__media { background: var(--accent); }
.plan--main .plan__media::before { background: var(--surface); opacity: 0.4; }
.plan--main .plan__big, .plan--main .plan__big small { color: var(--accent-ink); }
.ticks { display: grid; gap: 8px; font-size: var(--fs-m); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.express { display: grid; gap: 16px; align-items: center; margin-top: 12px; padding: 22px 20px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.express h3 { font-size: clamp(22px, 1vw + 16px, 30px); letter-spacing: -0.03em; margin-top: 10px; }
.express p { font-size: var(--fs-m); margin-top: 8px; max-width: 640px; }
.proto { display: grid; gap: 14px; justify-items: start; align-items: center; margin-top: 12px; padding: 18px 16px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--ink-2); font-size: var(--fs-m); }
.proto b { color: var(--ink); }
.case.more { gap: 20px; padding: 26px; background: var(--band); color: var(--band-ink-2); border-color: var(--band-line); }
.more__list { padding-top: 18px; border-top: 1px solid var(--band-line); }
.more__list span:not(.tick) { color: var(--band-ink); }
.more__big { font-size: clamp(56px, 4vw + 30px, 96px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); }
.more__big span { display: block; margin-top: 12px; font-size: 20px; letter-spacing: -0.01em; color: var(--band-ink); }
.more .btn { align-self: start; margin-top: auto; }

.checklist { display: grid; gap: 8px; counter-reset: item; }
.checklist li { counter-increment: item; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 16px 18px; border-radius: var(--radius-s); background: var(--surface); font-size: var(--fs-m); }
.checklist li::before { content: counter(item, decimal-leading-zero); font-size: 26px; line-height: 1; letter-spacing: -0.04em; color: var(--muted); }
.checklist b { display: block; font-size: var(--fs-l); font-weight: 600; color: var(--ink); }
.checklist li > span { color: var(--ink-2); }

.cases { display: grid; gap: 12px; }
.case { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 8px; border: 1px solid var(--line); }
.case__img { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case__body { display: grid; gap: 10px; padding: 16px 10px 6px; }
.case__body h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.12; }
.case__body p { font-size: var(--fs-m); color: var(--ink-2); }
.case__stack { font-size: var(--fs-s); color: var(--ink-2); }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: auto; padding: 8px 10px 2px; }
.case__link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-s); font-weight: 500; }
.case__link svg { width: 16px; height: 16px; }
.wip { display: grid; gap: 14px; margin-top: 40px; padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wip__img { display: block; overflow: hidden; aspect-ratio: 2.4 / 1; border-radius: var(--radius-s); background: var(--panel); }
.wip__img img { width: 100%; height: 100%; object-fit: cover; }
.wip__body { display: grid; gap: 10px; align-content: center; justify-items: start; padding: 8px 10px 6px; }
.wip__body h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.12; }
.wip__body p { font-size: var(--fs-m); color: var(--ink-2); }
.case__note { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); color: var(--muted); }
.case--wide .case__img { aspect-ratio: 16 / 9; }
.cases:not(.is-open) > [data-more] { display: none; }
.cases__more { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
.cases__more svg { rotate: 135deg; }

.formats { display: grid; gap: 12px; margin-top: 12px; }
.format { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.format h3 { font-size: clamp(24px, 1vw + 18px, 32px); margin-top: 12px; }
.format__price { font-size: 28px; letter-spacing: -0.03em; margin-top: 10px; }
.format__price small { display: inline-block; font-size: var(--fs-m); line-height: 1.35; letter-spacing: 0; color: var(--ink-2); }
.format > div > p:last-child { font-size: var(--fs-m); color: var(--ink-2); margin-top: 10px; }
.format__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.format__shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.format .btn { align-self: start; margin-top: auto; }
.format--dark { background: var(--band); color: var(--band-ink); border-color: var(--band-line); }
.format--dark .format__price small, .format--dark > div > p:last-child, .format--dark .ticks span:not(.tick) { color: var(--band-ink-2); }
.bento { display: grid; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 200px; padding: 22px; border-radius: var(--radius); background: var(--panel-2); }
.tile h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { font-size: var(--fs-m); color: var(--ink-2); max-width: 380px; }
.tile .tile__big { font-size: clamp(38px, 2vw + 22px, 58px); line-height: 1; letter-spacing: -0.05em; color: var(--ink); max-width: none; }
.tile__big > span { display: block; font-size: var(--fs-s); letter-spacing: 0; margin-top: 10px; color: var(--ink-2); line-height: 1.4; }
.tile__pill { align-self: start; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: var(--pill); background: var(--btn); color: var(--btn-ink); font-size: var(--fs-xs); }
.tile--accent { background: var(--accent); }
.tile--accent h3, .tile--accent .tile__big, .tile--accent .tile__big span { color: var(--accent-ink); }

.steps { display: grid; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step__n { font-size: 26px; line-height: 1; letter-spacing: -0.04em; color: var(--muted); }
.step h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.step p { grid-column: 2; font-size: var(--fs-m); color: var(--ink-2); }

.brief { display: grid; gap: 28px; }
.brief__intro > p { color: var(--band-ink-2); margin-top: 14px; max-width: 460px; }
.brief__intro, .form { container-type: inline-size; }
.contacts { display: grid; gap: 10px; margin-top: 24px; }
@container (min-width: 440px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 600px) { .gate { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gate label { align-items: flex-start; } .gate i { margin-top: 2px; } }
.contact { position: relative; display: block; padding: 14px 52px 14px 16px; border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); text-decoration: none; }
.contact b { display: block; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.contact > span:not(.tick) { font-size: var(--fs-xs); color: var(--ink-2); }
.contact .tick { position: absolute; right: 14px; top: 50%; margin-top: -11px; }
.brief__calc { display: grid; gap: 14px; justify-items: start; margin-top: 20px; padding: 14px 12px; border-radius: var(--radius-xs); border: 1px dashed var(--band-line); color: var(--band-ink-2); font-size: var(--fs-m); }
@media (min-width: 360px) { .brief__calc { padding: 18px; } }
.brief__calc b { color: var(--band-ink); }
.contact--accent { grid-column: 1 / -1; background: var(--accent); }
.contact--accent > span:not(.tick), .contact--accent b { color: var(--accent-ink); }
.contact--accent .tick { background: var(--surface); color: var(--ink); }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 20px 16px; display: grid; gap: 16px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form legend { font-size: var(--fs-s); font-weight: 500; margin-bottom: 6px; padding: 0; }
.gate { display: grid; gap: 8px; }
.gate label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--page); cursor: pointer; font-size: var(--fs-m); }
.gate input { position: absolute; opacity: 0; pointer-events: none; }
.gate i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); }
.gate label:has(input:checked) { border-color: var(--ink); background: var(--panel-2); }
.gate label:has(input:checked) i { border: 5px solid var(--ink); }
.gate label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.est { display: none; padding: 12px 14px; border-radius: var(--radius-xs); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-s); }
.form:has(input[value="support"]:checked) [data-est="support"],
.form:has(input[value="site"]:checked) [data-est="site"],
.form:has(input[value="app"]:checked) [data-est="app"] { display: block; }
html[data-v="lending"] .form:has(input[value="site"]:checked) [data-est="site"] { display: none; }
html[data-v="lending"] .form:has(input[value="site"]:checked) [data-est="lending"] { display: block; }
/* NOTE: the free check is the default, so a browser without :has() never offers the prototype; a new site or an app
   shows it, and lending's new site the scheme until a prototype link is followed (.claude/rules/leads.md, "The brief"). */
[data-brief="proto"], [data-brief="scheme"], #brief [data-btn="proto"], #brief [data-btn="scheme"] { display: none; }
.brief:has([name="gate"]:is([value="site"], [value="app"]):checked) [data-brief="check"],
#brief:has([name="gate"]:is([value="site"], [value="app"]):checked) [data-btn="check"],
html[data-v="lending"] .brief:has(#brief:not([data-proto-asked]) [name="gate"][value="site"]:checked) [data-brief="proto"],
html[data-v="lending"] #brief:not([data-proto-asked]):has([name="gate"][value="site"]:checked) [data-btn="proto"] { display: none; }
.brief:has([name="gate"]:is([value="site"], [value="app"]):checked) [data-brief="proto"],
#brief:has([name="gate"]:is([value="site"], [value="app"]):checked) [data-btn="proto"],
html[data-v="lending"] .brief:has(#brief:not([data-proto-asked]) [name="gate"][value="site"]:checked) [data-brief="scheme"],
html[data-v="lending"] #brief:not([data-proto-asked]):has([name="gate"][value="site"]:checked) [data-btn="scheme"] { display: revert; }
html[data-v="lending"] [data-proto-line] { display: none; }
/* NOTE: the HTML opens the brief on a new site; until landing.js marks the form data-picked, a free-check ad's brief is
   drawn as its free check, task mark included, so it never shows the prototype and never jumps once the script runs. */
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) .brief:has(#brief:not([data-picked])) [data-brief="proto"],
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) :is(.btn [data-btn="proto"], [data-est="site"]) { display: none; }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) .brief:has(#brief:not([data-picked])) [data-brief="check"],
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) .btn [data-btn="check"] { display: revert; }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) [data-est="support"] { display: block; }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) .gate label:has([value="site"]) { border-color: var(--line); background: var(--page); }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) .gate label:has([value="site"]) i { border: 1.5px solid var(--muted); }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) .gate label:has([value="support"]) { border-color: var(--ink); background: var(--panel-2); }
html:is([data-v="dorabotka"], [data-v="soprovozhdenie"], [data-v="uskorenie"], [data-v="srochno"]) #brief:not([data-picked]) .gate label:has([value="support"]) i { border: 5px solid var(--ink); }
/* Fields: a label over a tall input; a message opens under the field instead of the browser's bubble */
.field { display: grid; }
.field__label { margin-bottom: 8px; font-size: var(--fs-s); font-weight: 500; }
.field__label--req::after { content: " *" / ""; color: var(--error); }
.field__box { position: relative; }
.field__input { display: block; width: 100%; min-height: 56px; padding: 15px 16px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--page); color: var(--ink); font: inherit; font-size: var(--fs-l); line-height: 1.4; }
textarea.field__input { min-height: 120px; max-height: 280px; resize: vertical; field-sizing: content; }
.field__input::placeholder { color: var(--muted); }
.field__input:hover { border-color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: var(--focus); }
.calc__code { display: flex; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--page); }
.calc__code:focus-within { border-color: var(--ink); background: var(--surface); box-shadow: var(--focus); }
.calc__promo.is-invalid .calc__code { border-color: var(--error); background: var(--error-bg); }
.calc__promo.is-invalid .calc__code:focus-within { box-shadow: var(--focus-error); }
.calc__code .field__box { flex: 1; min-width: 0; }
.calc__code .field__input { min-height: 54px; border: 0; background: none; box-shadow: none !important; }
.calc__apply { min-height: 54px; padding: 0 18px; border: 0; border-left: 1px solid var(--line); border-radius: 0 13px 13px 0; background: none; }
.calc__promo.is-valid .calc__apply { display: none; }
.field__ok { position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); opacity: 0; scale: 0.5; pointer-events: none; }
.field.is-valid .field__ok { opacity: 1; scale: 1; }
.field.is-valid .field__input { padding-right: 50px; }
.field.is-invalid .field__input { border-color: var(--error); background: var(--error-bg); }
.field.is-invalid .field__input:focus { box-shadow: var(--focus-error); }
.field__err { display: grid; grid-template-rows: 0fr; margin: 0; color: var(--error); font-size: 13.5px; line-height: 1.35; opacity: 0; }
.field__err > span { min-height: 0; overflow: hidden; }
.field__err > span::before { content: ""; display: block; height: 7px; }
.field.is-invalid .field__err { grid-template-rows: 1fr; opacity: 1; }
.field--bare .field__input { min-height: 48px; padding: 11px 14px; border-radius: 12px; }
.field--bare .field__ok { right: 12px; }
.field--check .field__err { padding-left: 34px; }
.consent { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box { position: relative; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); background: var(--page); pointer-events: none; }
.consent__box::after { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 5px; border: solid var(--btn-ink); border-width: 0 0 2px 2px; rotate: -45deg; scale: 0; }
.consent:hover .consent__box { border-color: var(--ink); }
.consent input:checked + .consent__box { background: var(--btn); border-color: var(--btn); }
.consent input:checked + .consent__box::after { scale: 1; }
.consent input:focus-visible + .consent__box { box-shadow: var(--focus); }
.field.is-invalid .consent__box { border-color: var(--error); box-shadow: var(--focus-error); }
.nw { white-space: nowrap; }
/* A <picture> only picks the file; its empty <source> takes no box, or a grid would give it a cell */
picture { display: contents; }
source { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { position: relative; width: 100%; justify-content: center; padding-inline: 56px; }
.form .btn .btn__icon { position: absolute; top: calc(50% - 20px); right: 6px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }
.form__msg { padding: 14px 16px; border-radius: var(--radius-xs); font-size: 14.5px; background: var(--panel-2); }
.form__msg--ok { background: var(--accent); color: var(--accent-ink); }
.form__msg--err { color: var(--error); border: 1px solid var(--error); background: transparent; }
.form__msg a { font-weight: 600; }
.form[aria-busy="true"] .btn { opacity: 0.6; pointer-events: none; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); }
.case-hero { padding-block: 16px 32px; }
.case-hero h1 { font-size: clamp(30px, 2vw + 18px, 50px); margin: 14px 0 16px; }
.case-hero > p { color: var(--ink-2); max-width: 720px; font-size: 17px; }
.case-hero .stats { margin-top: 28px; }
.shot { margin: 0 auto; max-width: 1080px; padding: 0 7.5%; }
.shot figcaption { margin-top: 24px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.cols { display: grid; gap: 12px; }
.cols > div { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.cols h2, .case-speed h3 { font-size: 26px; margin-bottom: 14px; }
.case-speed .cols { margin-top: 12px; }
.case-speed .proof__note { max-width: 760px; margin-top: 16px; }
.cols p { color: var(--ink-2); }

.foot { margin-top: 64px; background: var(--panel); border-radius: var(--radius) var(--radius) 0 0; padding: 44px 0 24px; overflow: hidden; }
.foot__grid { display: grid; gap: 32px; }
.foot__claim h2 { font-size: clamp(26px, 1.4vw + 16px, 40px); }
.foot__claim .btn { margin-top: 22px; }
.foot__cols > div:last-child { grid-column: 1 / -1; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--fs-s); }
.foot__cols h3 { font-size: var(--fs-l); letter-spacing: -0.01em; margin-bottom: 12px; }
.foot__cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot__cols a:hover { color: var(--ink); }
.foot__social { display: flex; gap: 6px; margin-bottom: 12px; }
.foot__social .round { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.foot__social .round:hover { background: var(--btn-hover); color: var(--btn-ink); text-decoration: none; }
.foot__legal { display: grid; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.foot__legal a { color: var(--ink-2); }
.foot__word { margin-top: 20px; font-size: clamp(56px, 16vw, 240px); line-height: 0.8; letter-spacing: -0.07em; color: var(--ghost); white-space: nowrap; }
/* The brand word is decoration: drawn from its attribute, so it is not read as low-contrast text */
.foot__word::before { content: attr(data-word); }

.dock { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: flex; gap: 8px; padding: 6px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.dock .btn { flex: 1; min-width: 0; min-height: 48px; padding-inline: 14px; font-size: var(--fs-s); line-height: 1.15; white-space: normal; text-align: center; text-wrap: balance; }
.dock .round { width: 44px; height: 44px; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@media (min-width: 360px) { .dock .btn { padding-inline: 18px; font-size: var(--fs-m); } .dock .round { width: 48px; height: 48px; } }
/* Below 960 px the chat opens from the dock: one bar at the bottom instead of a bubble stacked over it */
.dock__chat { position: relative; padding: 0; overflow: visible; }
.dock .dock__chat { background: none; }
.dock__chat .chat__av { width: 100%; height: 100%; }
.dock__chat .chat__on { right: -1px; top: -1px; }
.dock__tel { display: none; }
html[data-v="srochno"] .dock__tel { display: grid; }
/* NOTE: shown where a click on the phone copies the number instead of dialing (leads.md, "Goals"), above the chat and the badge */
.copied { position: fixed; left: 50%; bottom: 24px; z-index: 50; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: var(--radius-s); background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-m); font-size: var(--fs-l); line-height: 1.4; text-align: center; translate: -50% 0; }
.copied b { color: inherit; }
/* NOTE: the promo badge sits above the dock on a phone and across from the chat from 960 px, and gives way to the open chat */
.bar { position: fixed; left: 10px; right: 10px; bottom: 80px; z-index: 35; display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; max-width: 380px; padding: 10px 4px 10px 14px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m); font-size: var(--fs-s); line-height: 1.35; }
.bar__t { align-self: center; }
.bar b { padding: 0 5px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.bar__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-right: 10px; }
.bar .btn { flex: none; min-height: 44px; padding-inline: 16px; font-size: var(--fs-s); }
.bar__calc { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 3px; text-wrap: balance; }
.bar__x { grid-area: 1 / 2; margin-top: -6px; background: transparent; border-color: transparent; }
.bar__x svg { width: 16px; height: 16px; }
.chat:has(#chat-win:not([hidden])) ~ .bar { display: none; }
.bar.is-away { visibility: hidden; }
html[data-sent] :is(.dock, .bar) { display: none; }


.legal { max-width: 800px; padding-block: 24px 64px; }
.legal h1 { font-size: clamp(30px, 2vw + 16px, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal li + li { margin-top: 8px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal__meta { color: var(--muted); font-size: var(--fs-s); }
body[data-page="legal"], body[data-page="case"] { padding-bottom: 0; }
body[data-page="legal"] .foot { margin-top: 0; }

.ticker { overflow: hidden; margin-top: 18px; mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 4px 30px 4px 0; list-style: none; }
.ticker__list li { display: flex; align-items: center; gap: 30px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.ticker__list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.calc { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--ink); }
.calc[open] { display: flex; }
.calc::backdrop { background: var(--scrim); }
.calc__box { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.calc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.calc__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.calc__steps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 24px; }
.calc__steps:focus, .calc__step:focus { outline: none; }
.calc__step { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__step legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.calc__group { display: grid; gap: 12px; clear: both; }
.calc__q { margin-top: 14px; font-size: var(--fs-l); font-weight: 600; }
.calc__inc + .calc__q, .calc__inc + .calc__qrow { margin-top: 2px; }
.calc__qrow { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.calc__qrow .calc__q { margin-top: 0; }
.fold > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.tip > summary { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; line-height: 1; cursor: help; list-style: none; }
.tip > summary::-webkit-details-marker { display: none; }
.tip > summary svg { width: 18px; height: 18px; }
.tip > summary::after { content: ""; position: absolute; inset: -10px; }
.tip[open] > summary { border-color: var(--ink); color: var(--ink); }
.tip > p { position: absolute; z-index: 3; left: 0; top: calc(100% + 8px); max-width: 320px; padding: 10px 12px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-m); color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.45; }
@media (hover: hover) { .tip > summary:hover { border-color: var(--ink); color: var(--ink); } }
.opt-tip { position: relative; display: grid; }
.opt-tip > .opt { padding-right: 48px; }
.opt-tip > .tip > summary { position: absolute; top: 50%; right: 12px; margin-top: -12px; }
.opt-tip > .tip > p { right: 0; max-width: none; }
.calc__inc { padding: 12px 14px; border-radius: var(--radius-xs); background: var(--panel-2); font-size: var(--fs-s); color: var(--ink-2); }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; clear: both; }
.pick { position: relative; display: grid; align-content: start; gap: 3px; padding: 6px 6px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--page); cursor: pointer; }
.pick img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 6px; border-radius: var(--radius-xs); background: var(--panel); }
.picks > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.picks > :last-child:nth-child(odd) img { aspect-ratio: 16 / 7; }
.pick::before { content: ""; position: absolute; z-index: 1; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-s); scale: 0; }
.pick::after { content: ""; position: absolute; z-index: 2; top: 23px; right: 22px; width: 11px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; rotate: -45deg; scale: 0; }
.pick:has(input:checked)::before, .pick:has(input:checked)::after { scale: 1; }
.pick b { padding: 0 6px; font-size: var(--fs-m); line-height: 1.25; }
.pick small { padding: 0 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.pick input, .opt input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked), .opt:has(input:checked) { border-color: var(--ink); background: var(--panel-2); }
.pick:has(input:focus-visible), .opt:has(input:focus-visible), .seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--page); font-size: var(--fs-m); line-height: 1.3; cursor: pointer; }
.opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); }
.opt:has(input:checked)::before { background: var(--ink); border-color: var(--ink); }
.opt::after { content: ""; position: absolute; left: 19px; top: 50%; width: 10px; height: 5px; margin-top: -4px; border: solid var(--page); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); }
.opt:has(input:checked)::after { transform: rotate(-45deg) scale(1); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg label > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--page); font-size: var(--fs-m); cursor: pointer; }
.seg input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.calc__label { font-size: var(--fs-s); color: var(--ink-2); }
.calc__sum { font-size: clamp(30px, 3vw + 20px, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__sum s { margin-left: 6px; font-size: 0.5em; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }
.calc__days { font-size: var(--fs-l); font-weight: 500; }
.calc__lines { display: grid; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.calc__lines li span + span { flex: none; color: var(--ink-2); }
.calc__on { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); font-weight: 600; }
.form__promo { font-size: var(--fs-s); font-weight: 600; text-align: center; }
.form__promo .tick { margin-right: 8px; vertical-align: middle; }
.calc__note { font-size: var(--fs-xs); color: var(--ink-2); }
.calc__alt { font-size: var(--fs-s); color: var(--ink-2); }
.calc__alt a { color: var(--ink); font-weight: 500; }
@media (pointer: coarse) { .calc__alt a, .num__a > a[data-proto] { display: inline-block; padding-block: 12px; margin-block: -12px; } }
.calc__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.calc__prog { flex: 1 0 100%; display: grid; gap: 8px; min-width: 0; }
.calc__nav .btn { margin-left: auto; }
/* NOTE: «Получить прототип и смету» runs past a 320 px screen on one line, so these buttons wrap; the calculator's
   stays beside its 44 px back button, which keeps the nav one height on every step. */
.proto .btn, .express .btn, #brief .btn, .calc__nav [data-calc-send] { white-space: normal; text-wrap: balance; line-height: 1.25; }
#brief .btn { text-align: center; }
.calc__nav [data-calc-send] { max-width: calc(100% - 54px); }
.calc__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; min-width: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.calc__meta span { white-space: nowrap; }
.calc__meta b { color: var(--ink); font-size: var(--fs-m); font-weight: 600; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__bar { height: 6px; border-radius: var(--pill); background: var(--panel); overflow: hidden; }
.calc__bar i { display: block; width: calc(var(--p, 0.34) * 100%); height: 100%; border-radius: inherit; background: var(--ink); }
.calc__box.is-sent .calc__result .field { display: none; }
.calc__back svg { transform: rotate(-135deg); }
.calc__nav .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.chat { position: fixed; right: 12px; bottom: 80px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat__fab { display: none; position: relative; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: var(--shadow-m); }
.chat__av { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); }
.chat__av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--accent); }
.chat__fab .chat__av img, .dock__chat .chat__av img { border: 3px solid var(--surface); }
.chat__on { position: absolute; right: 1px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--page); }
.chat__hint { position: relative; max-width: 230px; padding: 12px 40px 12px 14px; border-radius: 18px 18px 6px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-m); font-size: var(--fs-s); line-height: 1.4; cursor: pointer; }
.chat__hint-x { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.chat__hint-x svg, .chat__x svg { width: 16px; height: 16px; }
.chat__win { display: flex; flex-direction: column; width: min(340px, calc(100vw - 24px)); height: min(470px, calc(100dvh - 170px)); overflow: hidden; border-radius: var(--radius-s); background: var(--page); border: 1px solid var(--line); box-shadow: var(--shadow-l); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.chat__head .chat__av { flex: none; width: 36px; height: 36px; }
.chat__who { flex: 1; display: grid; line-height: 1.3; }
.chat__who b { font-size: var(--fs-m); color: inherit; }
.chat__who small { font-size: var(--fs-xs); opacity: 0.8; }
.chat__x { background: transparent; color: inherit; border-color: transparent; }
.chat__note { padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: var(--fs-xs); color: var(--ink-2); }
.chat__body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px; }
.chat__m { max-width: 88%; padding: 8px 12px; border-radius: var(--radius-xs); font-size: var(--fs-s); line-height: 1.4; }
.chat__m--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__m--me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat__opts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.chat__opt { position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border-radius: var(--pill); border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); line-height: 1.2; text-decoration: none; cursor: pointer; }
.chat__opt:hover { background: var(--ink); color: var(--page); }
@media (pointer: coarse) { .chat__opt::after { content: ""; position: absolute; inset: -7px 0; } }
.chat__dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chat__form { display: grid; gap: 8px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.chat__form .btn { justify-self: start; }

/* Case pages and the portfolio: numbered sections, the site on a desktop and a phone, its design system */
.sec-n { display: block; margin-bottom: 8px; font-size: var(--fs-s); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.screens { display: grid; gap: 12px; }
.screens figure { display: grid; gap: 12px; align-content: start; margin: 0; }
.screens img { width: 100%; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-m); }
.screens__phone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screens figcaption { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-2); }
.screens + .screens { margin-top: 40px; }
.ds__block { margin-top: 12px; padding: 20px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ds__h { margin: 0 0 14px; font-size: 20px; }
.ds code { font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.ds ul, .ds ol { margin: 0; padding: 0; list-style: none; }
.ds-main, .ds-ramp__s, .ds-radii, .ds-shadows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-main { gap: 8px; }
.ds-c, .ds-s { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; color: var(--swatch-ink); }
.ds-c { justify-content: flex-end; gap: 2px; min-height: 150px; padding: 14px; border-radius: var(--radius-xs); font-size: var(--fs-xs); }
.ds-c b { margin-bottom: auto; font-size: var(--fs-l); color: inherit; }
.ds-c--wide { grid-column: 1 / -1; min-height: 110px; }
.ds-on-dark { color: var(--swatch-ink-on-dark); }
.ds-fill { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.ds-c::after, .ds-ramp__s::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--swatch-edge); pointer-events: none; }
.ds-ramps { display: grid; gap: 16px; margin-top: 20px; }
.ds-ramp__h { margin: 0 0 8px; font-size: var(--fs-m); font-weight: 600; }
.ds-ramp__h code { margin-left: 6px; color: var(--ink-2); }
.ds-ramp__s { position: relative; border-radius: var(--radius-xs); overflow: hidden; }
.ds-s { flex-direction: row; justify-content: space-between; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; font-size: 11px; }
.ds-s code { font-size: 11px; }
.ds-fonts { display: grid; gap: 12px; }
.ds-font { display: grid; gap: 12px 24px; padding: 20px 16px; border-radius: var(--radius-s); background: var(--page); }
.ds-font p { margin: 0; }
.ds-font__aa { font-size: 104px; line-height: 1; }
.ds-font__role, .ds-font__note, .ds-row__k, .ds-radii li, .ds-shadows li { font-size: var(--fs-xs); color: var(--ink-2); }
.ds-font__name { margin: 2px 0 4px; overflow: hidden; font-size: min(34px, 7.5vw); line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.ds-font__w { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 16px; margin-top: 12px; font-size: min(18px, 4.4vw); white-space: nowrap; }
.ds-font__w span { color: var(--muted); }
.ds-font__abc { display: grid; column-gap: 16px; font-size: min(17px, 4.2vw); line-height: 1.5; }
.ds-font__abc span { overflow: hidden; white-space: nowrap; }
.ds-scale { margin-top: 18px; }
.ds-row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.ds-row__k { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-variant-numeric: tabular-nums; }
.ds-row__t { margin: 0; overflow: hidden; font-size: min(var(--fs, 16px), 8vw); white-space: nowrap; text-overflow: ellipsis; }
/* two lines at most and always two lines tall, so a late font moves nothing below it */
.ds-row__t--text { display: -webkit-box; height: 2lh; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ds-radii, .ds-shadows { gap: 18px 12px; }
.ds-radii li, .ds-shadows li { display: grid; align-content: start; gap: 2px; overflow-wrap: anywhere; }
.ds-radii code, .ds-shadows code { color: var(--ink); }
.ds-box { display: block; height: 72px; margin-bottom: 8px; border: 1.5px solid var(--ink); background: var(--panel); }
.ds-box--sh { height: 84px; margin: 6px 6px 18px; border: 0; border-radius: 16px; background: var(--swatch-paper); }
.ds-shadows { margin-top: 28px; }
.lands { display: grid; gap: 12px; }
.land { display: grid; gap: 8px; margin: 0; }
.land img { width: 100%; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); }
.land figcaption { font-size: var(--fs-s); color: var(--ink-2); }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .who { flex: 0 1 auto; margin-right: auto; }
  .stats > .stat { flex: 0 0 200px; }
  .stat .tick { top: auto; bottom: 10px; }
  .stat b { padding-right: 0; font-size: 20px; }
  .stat__t { padding-right: 24px; }
  .case-hero .stats > .stat, .case-speed .stats > .stat { flex: 1 1 0; }
  .aud__list { grid-auto-columns: 46%; }
  .team, .cases, .bento, .cols, .checklist, .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case--wide { grid-column: 1 / -1; }
  .ds__block { padding: 28px; }
  .ds-main, .ds-ramp__s { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ds-font__abc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-radii { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ds-shadows { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; }
  .foot__cols > div:last-child { grid-column: auto; }
  .form { padding: 28px; }
  .express { grid-template-columns: 1fr auto; padding: 22px 26px; }
  .proto { grid-template-columns: 1fr auto; padding: 18px 26px; }
  .num > summary { grid-template-columns: 72px 1fr 28px; }
  .num__n { font-size: 56px; }
  .num__a { padding-left: 100px; }
  .faq .num > summary { grid-template-columns: 52px 1fr 28px; }
  .faq .num__n { font-size: 40px; }
  .faq .num__a { padding-left: 80px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  html { scroll-padding-bottom: 0; }
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hero { border-radius: 0 0 36px 36px; padding-bottom: 28px; }
  .top { padding: 20px 0; }
  .nav { display: flex; gap: 2px; padding: 5px; border-radius: var(--pill); background: var(--surface); }
  .nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--pill); font-size: var(--fs-s); text-decoration: none; }
  .nav a:hover { background: var(--accent); color: var(--accent-ink); }
  .reach { display: block; }
  .menu { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 40px; padding-top: 28px; }
  .devices { margin-right: -2%; }
  .stats { margin-top: 32px; }
  .section { padding-block: 104px; }
  .panel { padding: 64px 44px; }
  .band { padding: 80px 44px; }
  .head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 44px; }
  .head > .chip { grid-column: 1 / -1; }
  .head__aside { text-align: right; }
  .head--center { grid-template-columns: 1fr; }
  .head--center .head__aside { text-align: center; }
  .aud { align-items: start; }
  .aud .head__aside { max-width: 440px; }
  .aud__list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .aud__media { height: 340px; }
  .pain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .pain .num > summary { grid-template-columns: 96px 1fr 28px; min-height: 92px; }
  .pain .num__n { font-size: 76px; }
  .pain .num__a { padding-left: 124px; }
  .offer { padding: 34px; }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding-top: 24px; }
  .plan--main { translate: 0 -24px; }
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .format { padding: 30px 28px 28px; }
  .case--wide { grid-column: span 2; }
  .wip { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: center; margin-top: 64px; }
  .screens { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .screens__phone { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
  .ds__block { padding: 32px; }
  .ds-c { min-height: 200px; }
  .ds-ramp__s { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .ds-s { flex-direction: column; align-items: flex-start; min-height: 92px; padding: 10px; }
  .ds-fonts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .ds-font { padding: 28px; }
  .ds-row { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 24px; }
  .ds-row__t { font-size: min(var(--fs, 16px), 6.5vw); }
  .ds-row__t--text { display: block; height: auto; white-space: nowrap; }
  .ds-font__abc { grid-template-columns: none; }
  .cases > .case--wide { order: -2; }
  .cases > .more { order: -1; }
  .cases:not(.is-open) > [data-more="narrow"] { display: flex; }
  .cases__more { order: 1; }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento > :nth-child(1), .bento > :nth-child(2), .bento > :nth-child(3), .bento > :nth-child(5) { grid-column: span 4; }
  .bento > :nth-child(4), .bento > :nth-child(6) { grid-column: span 4; }
  .tile { min-height: 240px; padding: 26px; }
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 0; gap: 12px; }
  .step { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 20px; align-content: start; background: var(--surface); grid-column: span 2; }
  .step:nth-child(n + 4) { grid-column: span 3; }
  .step p { grid-column: 1; }
  .brief { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
  .form { padding: 32px; }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { padding-top: 64px; }
}

@media (min-width: 1280px) {
  .ds-font { grid-template-columns: 210px minmax(0, 1fr); }
  .ds-font__name { font-size: 28px; }
  .ds-font__abc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-font__aa { font-size: 136px; }
  .ds-font__abc { grid-column: 1 / -1; }
  .aud { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); }
  .aud .head { grid-template-columns: 1fr; }
  .aud .head__aside { text-align: left; max-width: none; }
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento > :nth-child(4) { grid-column: span 3; }
  .bento > :nth-child(6) { grid-column: span 5; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step, .step:nth-child(n + 4) { grid-column: auto; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .only { margin-top: 64px; }
  .only__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
}

html[data-v="dorabotka"] .plan--support, html[data-v="soprovozhdenie"] .plan--support,
html[data-v="uskorenie"] .plan--support, html[data-v="srochno"] .plan--support,
html[data-v="pod-klyuch"] .plan--site, html[data-v="proizvodstvo"] .plan--site { order: -1; }
html:is([data-v="srochno"], [data-v="uskorenie"]) .devices { display: none; }
@media (min-width: 960px) { html[data-v] .plan { order: 0; } html[data-v] .devices { display: block; } }

/* Links drawn underline, redrawn on hover as on langmeetup.com: away to the right, back from the left. */
.case__link span, .foot__cols a span, .head__aside a, .form__note a, .form__msg a, .consent a, .foot__legal a, .legal a, .crumbs a { --line: 100%; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / var(--line) 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.foot__cols a span { --line: 0%; }
.foot__cols a:hover span { --line: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: var(--pill); background: var(--scroll-thumb) padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted) padding-box; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; } }

.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0; mix-blend-mode: difference; }
html[data-cursor="on"] .cursor { opacity: 1; }
html[data-cursor="on"], html[data-cursor="on"] * { cursor: none !important; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cursor); }
.cursor__ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1.5px solid var(--cursor); }
.cursor[data-hover] .cursor__ring { scale: 1.4; }
.cursor[data-hover] .cursor__dot { scale: 0.5; }
.cursor[data-press] .cursor__ring { scale: 0.8; }
@media print { .cursor { display: none; } }

@media (min-width: 640px) {
  .calc { width: min(820px, 100% - 48px); height: min(740px, 100dvh - 48px); max-height: none; margin: auto; border-radius: var(--radius); box-shadow: var(--shadow-l); }
  .calc__top, .calc__steps, .calc__nav { padding-left: 28px; padding-right: 28px; }
  .calc__prog { flex: 1; }
  .picks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pick { grid-column: span 2; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .chat { right: 24px; bottom: 24px; }
  .bar { display: grid; left: 24px; bottom: 24px; }
  .chat__fab { display: block; }
  .ticker__list li { font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  #hero .hero__grid > div > *, #hero .devices .mac, #hero .stats > * { animation: rise 0.7s var(--ease-out) both; }
  #hero .hero__grid > div > :nth-child(2), #hero .stats > :nth-child(2) { animation-delay: 0.06s; }
  #hero .hero__grid > div > :nth-child(3), #hero .stats > :nth-child(3), #hero .devices .mac { animation-delay: 0.12s; }
  #hero .stats > :nth-child(4) { animation-delay: 0.18s; }
  #hero .devices .iphone { animation: slide-in 0.8s 0.2s var(--ease-out) both, float 7s 1.4s ease-in-out infinite; }
  .ticker__track { animation: marquee 50s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  .chat__on::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--accent); animation: ping 2.4s ease-out infinite; }
  .chat__dots i { animation: blink 1.2s infinite both; }
  .chat__dots i:nth-child(2) { animation-delay: 0.2s; }
  .chat__dots i:nth-child(3) { animation-delay: 0.4s; }
  .chat__win, .chat__hint, .chat__m, .chat__opts, .calc[open], .bar { animation: pop 0.25s ease-out both; }
  .calc__step { animation: step-in 0.3s ease-out both; }
  .calc__box[data-dir="back"] .calc__step { animation-name: step-back; }
  .calc__bar i { transition: width 0.5s var(--ease-out); }
  .pick::before, .pick::after, .opt::after { transition: scale 0.25s var(--ease-spring), transform 0.25s var(--ease-spring); }
  .opt::before { transition: background-color var(--fast) ease, border-color var(--fast) ease; }
  .calc__lines li { animation: line-in 0.35s ease both; animation-delay: calc(var(--i, 0) * 50ms); }
  .case.is-in { animation: case-in 0.28s ease-out both; animation-delay: calc(var(--i, 0) * 50ms); }
  .calc__on:not([hidden]), .calc__note:not([hidden]), .form__msg:not([hidden]) { animation: line-in 0.35s 0.15s ease both; }
  [aria-busy="true"] button[type="submit"] .btn__icon::after { animation: spin 0.8s linear infinite; }
  .pick, .opt, .seg label > span, .chat__opt, .chat__fab { transition: border-color var(--fast) ease, background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) ease; }
  .chat__fab:hover { transform: scale(1.06); }
  @supports (animation-timeline: view()) {
    .head, #prices .promo, .proof, .only .form, .aud__list, .pain .num, .offer, .plan, .express, .proto, .format, .checklist li, .case, .cases__more, .wip,
    .about > *, .team__stats .stat, .team__card, .bento .tile, .step, .faq .num, .brief, .cols > div, .screens figure, .ds__block, .case-speed .stats > .stat {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 180px;
    }
  }
}
@keyframes rise { from { transform: translateY(18px); } }
@keyframes slide-in { from { transform: translate(24px, 16px); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes reveal { from { opacity: 0; translate: 0 32px; } }
@keyframes case-in { from { opacity: 0; translate: 0 10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 70%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; }
40% { opacity: 1; } }
@keyframes nudge { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } }
@keyframes line-in { from { opacity: 0; translate: 0 8px; } }
@keyframes spin { to { rotate: 1turn; } }
@keyframes line-redraw {
  0% { background-position-x: 100%; background-size: var(--line) 1px; }
  50% { background-position-x: 100%; background-size: 0 1px; }
  50.01% { background-position-x: 0; background-size: 0 1px; }
  100% { background-position-x: 0; background-size: var(--line) 1px; }
}
