/* LawLabs — ООО «Лаборатория юридических исследований»
   Дизайн-система сайта lawlabs.ru. Один файл стилей, без сборки.
   Токены → база → раскладка → компоненты → страницы → адаптив. */

/* ─────────────── Токены ─────────────── */
:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fbf9f4;
  --ink: #16130f;
  --ink-2: #3d372e;
  --ink-3: #6c6456;
  --ink-4: #9d9483;
  --line: #ddd4c3;
  --line-2: #c9bda7;
  --accent: #d9391f;
  --accent-ink: #b52f19;
  --accent-soft: #f6ddd3;
  --on-accent: #fff;
  --dark: #15120e;
  --dark-2: #1f1b16;
  --on-dark: #f2ede4;
  --on-dark-2: #aaa194;
  --dark-line: #332d26;
  --g-practice: #2f58cd;
  --g-courts: #d9391f;
  --g-calc: #b97d06;
  --g-realty: #1e7a50;
  --g-docs: #7b45c6;
  --ok: #1e7a50;
  --shadow: 0 1px 0 rgba(22, 19, 15, .04), 0 18px 40px -24px rgba(22, 19, 15, .35);
  --shadow-lg: 0 40px 90px -40px rgba(22, 19, 15, .5);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 30px;
  --maxw: 1320px;
  --gut: clamp(16px, 4vw, 40px);
  --hdr: 72px;
  --f-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #100e0c; --paper-2: #181511; --card: #1c1915; --ink: #f1ece3; --ink-2: #d4ccbf;
    --ink-3: #a0978a; --ink-4: #6f675c; --line: #2d2923; --line-2: #3d372f; --accent: #ff5a3c;
    --accent-ink: #ff7c62; --accent-soft: #3a1d15; --dark: #0a0908; --dark-2: #16130f;
    --dark-line: #2a251f; --g-practice: #7196ff; --g-courts: #ff6a4d; --g-calc: #e6ae3a;
    --g-realty: #43b983; --g-docs: #b18af2; --ok: #43b983;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #100e0c; --paper-2: #181511; --card: #1c1915; --ink: #f1ece3; --ink-2: #d4ccbf;
  --ink-3: #a0978a; --ink-4: #6f675c; --line: #2d2923; --line-2: #3d372f; --accent: #ff5a3c;
  --accent-ink: #ff7c62; --accent-soft: #3a1d15; --dark: #0a0908; --dark-2: #16130f;
  --dark-line: #2a251f; --g-practice: #7196ff; --g-courts: #ff6a4d; --g-calc: #e6ae3a;
  --g-realty: #43b983; --g-docs: #b18af2; --ok: #43b983;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ─────────────── База ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { left: 12px; }

/* ─────────────── Типографика ─────────────── */
.mono { font-family: var(--f-mono); }
.label { font: 500 12px/1.35 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.display {
  font-weight: 800; font-size: clamp(36px, 11vw, 150px); line-height: .88; letter-spacing: -.055em;
}
.h1 { font-weight: 800; font-size: clamp(42px, 6.4vw, 98px); line-height: .94; letter-spacing: -.048em; }
.h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 68px); line-height: .98; letter-spacing: -.042em; }
.h3 { font-weight: 700; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; letter-spacing: -.02em; }
.display em, .h1 em, .h2 em, .h3 em, .serif-em {
  font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em;
  color: var(--accent); font-size: 1.08em; line-height: 0;
}
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ─────────────── Бегущая строка ─────────────── */
.ticker {
  background: var(--dark); color: var(--on-dark-2); font: 500 12.5px/1 var(--f-mono);
  overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--dark-line); position: relative; z-index: 60;
}
.ticker__track { display: inline-flex; padding: 11px 0; animation: ll-tick 70s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding-right: 30px; }
.ticker__item::before { content: "✦"; color: var(--accent); }
.ticker__item b { color: var(--on-dark); font-weight: 600; }
@keyframes ll-tick { to { transform: translateX(-50%); } }

/* ─────────────── Шапка ─────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 36px; height: 36px; color: var(--ink); }
.brand__mark .m-l { fill: none; stroke: var(--paper); stroke-width: 3.2; }
.brand__mark .m-dot { fill: var(--accent); }
.brand__word { font-weight: 800; font-size: 21px; letter-spacing: -.035em; line-height: 1; }
.brand__sub { display: block; font: 500 10.5px/1.25 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); margin-top: 3px; }
.nav__links { display: flex; gap: 2px; margin-left: 10px; }
.nav__links a {
  padding: 9px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--ink-2); transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-ico-dark { display: none; }
:root[data-theme="dark"] .theme-ico-dark { display: block; }
:root[data-theme="dark"] .theme-ico-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-dark { display: block; }
  :root:not([data-theme="light"]) .theme-ico-light { display: none; }
}
.menu-btn { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column;
  padding: 18px var(--gut) 32px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.mobile-menu nav { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-weight: 750; font-size: 30px; letter-spacing: -.035em; text-decoration: none;
}
.mobile-menu nav a span { font: 500 12px var(--f-mono); color: var(--ink-3); letter-spacing: .08em; }
.mobile-menu .btn { margin-top: 28px; }

/* ─────────────── Кнопки, метки, чипы ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--f-sans); text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg.arr { transform: translateX(3px); }
.btn:hover svg.arr-ne { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #16130f; }
.btn-light:hover { background: #16130f; color: #fff; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font: 600 13.5px/1.25 var(--f-sans);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: ll-pulse 2.4s ease-in-out infinite; }
@keyframes ll-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 13.5px; line-height: 1.2; color: var(--ink-2);
  white-space: nowrap; text-decoration: none;
}
a.chip:hover { border-color: var(--ink-3); color: var(--ink); }
button.chip { cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
button.chip:hover { border-color: var(--ink-3); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font: 500 11.5px var(--f-mono); opacity: .6; }
.chip i.dot { width: 9px; height: 9px; border-radius: 3px; background: var(--g, var(--accent)); }
.tag {
  display: inline-block; font: 500 11.5px/1 var(--f-mono); letter-spacing: .03em; padding: 6px 8px; border-radius: 6px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.status {
  align-self: flex-start; display: inline-block; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink);
}
.appicon { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex: none; background: var(--paper-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.appicon img { width: 100%; height: 100%; object-fit: cover; }
.appicon--fallback { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--g, var(--ink)); font-size: 16px; letter-spacing: -.03em; }

/* ─────────────── Секции ─────────────── */
.section { padding-block: clamp(72px, 9vw, 136px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--alt { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--dark {
  background: var(--dark); color: var(--on-dark);
  --ink: var(--on-dark); --ink-2: #d6cec1; --ink-3: var(--on-dark-2); --ink-4: #6f675c; --line: var(--dark-line);
  --line-2: #463f35; --card: var(--dark-2); --paper-2: #221e19; --paper: var(--dark); --accent-soft: #3a1d15; --accent-ink: #ff7c62;
}
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__label { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.sec-num { font: 600 13px var(--f-mono); color: var(--accent-ink); letter-spacing: .06em; }
.sec-head__label .label::before { content: "· "; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 17.5px; line-height: 1.55; }
.sec-head .actions { margin-top: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.more:hover { color: var(--accent-ink); }
.more svg { width: 16px; height: 16px; }

/* Внутренние страницы */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.page-hero .h1 { margin-top: 18px; max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }
.page-hero .actions { margin-top: 32px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 40px; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .02em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ─────────────── Главная: hero ─────────────── */
.hero { padding-top: clamp(36px, 5.5vw, 84px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 32px 72px; align-items: start; margin-top: clamp(28px, 3.5vw, 48px); }
.hero .display { margin-top: 26px; }
@media (min-width: 901px) {
  .hero .passport { margin-top: calc(10px - min(11vw, 150px) * .88 - clamp(28px, 3.5vw, 48px)); }
}
.hero .lead { margin-top: 0; }
.hero .actions { margin-top: 36px; }

.passport {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 16px; font-family: var(--f-mono); font-size: 13px; box-shadow: var(--shadow);
}
.passport__title { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
  font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.passport dl { margin: 4px 0 0; }
.passport .row { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.passport dt { color: var(--ink-3); }
.passport .leader { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 12px; }
.passport dd { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.passport__foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; color: var(--ink-3); font-size: 11.5px; }
.stamp { position: absolute; right: -26px; top: -30px; width: 108px; height: 108px; color: var(--accent); transform: rotate(-14deg); pointer-events: none; }
.stamp text { font: 600 9.2px var(--f-mono); letter-spacing: .14em; fill: currentColor; }
.stamp .stamp__year { font: 800 22px var(--f-sans); letter-spacing: -.04em; }
.stamp circle { fill: none; stroke: currentColor; }

.fig { margin: clamp(48px, 6vw, 88px) 0 0; }
.fig__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-bottom: 16px; }
.fig__cap p { margin: 0; font-size: 15px; color: var(--ink-2); }
.fig__cap .label { color: var(--accent-ink); }

/* Периодическая система */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legend span { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--g); }
:where(.el, .pcard, .readout, .prod-el, .appicon--fallback) { --g: var(--g-practice); }
[data-g="practice"] { --g: var(--g-practice); }
[data-g="courts"] { --g: var(--g-courts); }
[data-g="calc"] { --g: var(--g-calc); }
[data-g="realty"] { --g: var(--g-realty); }
[data-g="docs"] { --g: var(--g-docs); }
.ptable { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.el {
  position: relative; aspect-ratio: 1 / 1.06; min-width: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.el::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--g); }
.el__n { font: 500 11px var(--f-mono); color: var(--ink-3); }
.el__icon { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.el__icon img { width: 100%; height: 100%; object-fit: cover; }
.el__sym { margin-top: auto; font-weight: 750; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.045em; line-height: 1; color: var(--g); }
.el__name { font-size: 11.5px; line-height: 1.25; color: var(--ink-3); margin-top: 6px; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.el:hover, .el:focus-visible, .el.is-active {
  border-color: var(--g); background: color-mix(in srgb, var(--g) 8%, var(--card)); transform: translateY(-3px); box-shadow: var(--shadow);
}
.el--you { border-style: dashed; border-color: var(--line-2); background: transparent; --g: var(--accent); }
.el--you::before { display: none; }
.el--you .el__sym { color: var(--ink-3); }
.el--you:hover .el__sym { color: var(--accent); }
.readout {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
}
.readout__sym { width: 76px; height: 76px; border-radius: 14px; background: var(--g); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 30px; letter-spacing: -.05em; position: relative; }
.readout__sym small { position: absolute; top: 7px; left: 9px; font: 500 10px var(--f-mono); opacity: .8; letter-spacing: 0; }
.readout__meta { font: 500 11.5px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.readout__name { font-weight: 750; font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.readout__desc { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.readout__plat { font: 500 12px var(--f-mono); color: var(--ink-3); margin-top: 6px; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 18px 22px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(32px, 3.4vw, 50px)/1 var(--f-mono); letter-spacing: -.05em; }
.stat b sup { font-size: .45em; letter-spacing: 0; vertical-align: top; margin-left: 2px; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.35; }

/* Направления */
.index { border-top: 1.5px solid var(--ink); }
.index__row {
  display: grid; grid-template-columns: 76px minmax(0, 1.05fr) minmax(0, 1fr) 200px 36px; gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative;
}
.index__n { font: 500 14px var(--f-mono); color: var(--ink-3); }
.index__title { font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.045em; line-height: 1; transition: color .2s; }
.index__text { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.index__text .tags { margin-top: 10px; }
.index__thumb { height: 116px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2);
  transform: rotate(-2deg); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.index__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.index__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .2s; }
.index__arrow svg { width: 16px; height: 16px; }
.index__row:hover .index__title { color: var(--accent); }
.index__row:hover .index__thumb { transform: rotate(0) scale(1.04); }
.index__row:hover .index__arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Плитки программ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile {
  grid-column: span 4; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile--8 { grid-column: span 8; }
.tile--6 { grid-column: span 6; }
.tile__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile--8 { flex-direction: row; }
.tile--8 .tile__media { aspect-ratio: auto; flex: 1.35 1 0; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.tile--8 .tile__body { flex: 1 1 0; align-content: end; padding: 28px; }
.tile--8 .tile__name { font-size: 28px; letter-spacing: -.035em; }
.tile--8 .tile__text { -webkit-line-clamp: 6; font-size: 16px; }
.tile:hover .tile__media img { transform: scale(1.025); }
.tile__body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.tile__head { display: flex; gap: 12px; align-items: center; }
.tile__head .appicon { width: 40px; height: 40px; border-radius: 10px; }
.tile__name { font-weight: 750; font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.tile__cat { font: 500 11.5px var(--f-mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.tile__text { color: var(--ink-2); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Карточки программ */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--g); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--g); }
.pcard__head { display: flex; gap: 14px; align-items: center; }
.pcard__sym { margin-left: auto; font-weight: 800; font-size: 22px; letter-spacing: -.05em; color: var(--g); align-self: flex-start; }
.pcard h3 { font-size: 18.5px; letter-spacing: -.02em; line-height: 1.2; }
.pcard__cat { font: 500 11.5px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 3px; }
.pcard p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12px var(--f-mono); color: var(--ink-3); }
.price { font: 600 12px var(--f-mono); color: var(--accent-ink); white-space: nowrap; }

/* ─────────────── Данные и парсеры ─────────────── */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.pipeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: ll-flow 3.6s linear infinite; }
@keyframes ll-flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.pipe { padding: 28px 24px 30px; border-right: 1px solid var(--line); position: relative; }
.pipe:last-child { border-right: 0; }
.pipe__n { font: 600 12px var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.pipe h3 { margin: 12px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.pipe p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pipe:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 26px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font: 600 14px var(--f-mono); z-index: 2;
}
.srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.src { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); }
.src h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.src h3 span { font: 500 12px var(--f-mono); color: var(--ink-3); }
.src ul { list-style: none; margin: 14px 0 0; padding: 0; }
.src li { padding: 11px 0; border-top: 1px dashed var(--line); display: grid; gap: 3px; }
.src li b { font: 600 14px var(--f-mono); letter-spacing: -.01em; }
.src li span { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.srcline { display: flex; flex-wrap: wrap; gap: 6px; }
.srcline .chip { font-family: var(--f-mono); font-size: 12.5px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.numlist { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line); }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(n, decimal-leading-zero); font: 500 13px var(--f-mono); color: var(--accent-ink); padding-top: 3px; }
.numlist li > * { grid-column: 2; }
.numlist b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.numlist span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.numlist a { text-decoration: none; }
.numlist a:hover b { color: var(--accent-ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__foot { margin-top: auto; padding-top: 6px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 15.5px; line-height: 1.5; }
.principles li::before { content: "✓"; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px var(--f-mono); }

/* ─────────────── Сайты и концепты ─────────────── */
.bignum { display: flex; align-items: flex-end; gap: 18px; }
.bignum b { font: 600 clamp(84px, 13vw, 200px)/.8 var(--f-mono); letter-spacing: -.07em; }
.bignum span { font-size: 17px; color: var(--ink-2); max-width: 20ch; padding-bottom: 6px; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mosaic a { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a span {
  position: absolute; left: 8px; bottom: 8px; right: 8px; font: 500 11px/1.3 var(--f-mono); color: #fff; background: rgba(12, 10, 8, .78);
  padding: 5px 8px; border-radius: 6px; opacity: 0; transform: translateY(4px); transition: .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mosaic a:hover span, .mosaic a:focus-visible span { opacity: 1; transform: none; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fmt { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.fmt:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.fmt__letter { font: italic 600 52px/0.8 var(--f-serif); color: var(--accent); }
.fmt h3 { font-size: 20px; letter-spacing: -.02em; }
.fmt p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.fmt .more { align-self: flex-start; margin-top: 6px; font-size: 14.5px; }

.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.site { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.site:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.site__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.site__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.site__domain { font: 600 13px var(--f-mono); color: var(--accent-ink); display: flex; justify-content: space-between; gap: 10px; }
.site__domain svg { width: 15px; height: 15px; flex: none; }
.site__name { font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.site__desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 0; flex: 1; }
.site__stack { font: 500 11.5px var(--f-mono); color: var(--ink-3); margin-top: 6px; }
.upcoming { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.upcoming .card { border-style: dashed; background: transparent; }

/* Галерея концептов */
.toolbar {
  position: sticky; top: var(--hdr); z-index: 20; padding: 12px 0; margin-bottom: 26px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.toolbar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.search:focus-within { border-color: var(--ink-3); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; width: 100%; min-width: 0; }
.search input::placeholder { color: var(--ink-4); }
.select {
  height: 44px; border-radius: 999px; border: 1px solid var(--line); background-color: var(--card); padding: 0 38px 0 16px;
  font: inherit; font-size: 14.5px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23857c6d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font: 500 14px var(--f-sans); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cats::-webkit-scrollbar { display: none; }
.count-line { font: 500 12.5px var(--f-mono); color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); }

.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.kcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.kcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.kcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kcard:hover .kcard__media img { transform: scale(1.03); }
.kcard__cap { position: absolute; left: 8px; bottom: 8px; right: 8px; display: none; font: 500 11px/1.3 var(--f-mono); color: #fff; background: rgba(12, 10, 8, .8);
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard__body { padding: 15px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.kcard__meta { display: flex; justify-content: space-between; gap: 10px; font: 500 11.5px var(--f-mono); color: var(--ink-3); letter-spacing: .03em; }
.kcard__meta b { color: var(--accent-ink); font-weight: 600; }
.kcard__title { font-weight: 750; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.kcard__title a { text-decoration: none; color: inherit; }
.kcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kcard__what { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard__plat { font: 500 11.5px var(--f-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.swatches { display: flex; padding-left: 4px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.demo-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-sans); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: var(--card); transition: .2s; white-space: nowrap; }
.demo-link svg { width: 13px; height: 13px; }
.demo-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* вид «картинки» */
.kgrid[data-view="images"] { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kgrid[data-view="images"] .kcard { border-radius: 10px; }
.kgrid[data-view="images"] .kcard__media { border-bottom: 0; }
.kgrid[data-view="images"] .kcard__body { display: none; }
.kgrid[data-view="images"] .kcard__cap { display: block; opacity: 0; transition: opacity .2s; }
.kgrid[data-view="images"] .kcard:hover .kcard__cap, .kgrid[data-view="images"] .kcard__media:focus-visible .kcard__cap { opacity: 1; }
/* вид «список» */
.kgrid[data-view="list"] { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.kgrid[data-view="list"] .kcard { flex-direction: row; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0; }
.kgrid[data-view="list"] .kcard:hover { transform: none; box-shadow: none; background: var(--card); }
.kgrid[data-view="list"] .kcard__media { width: 128px; flex: none; border: 1px solid var(--line); border-radius: 8px; }
.kgrid[data-view="list"] .kcard__body { display: grid; grid-template-columns: 96px minmax(160px, .8fr) minmax(0, 1.6fr) minmax(120px, .6fr) auto; align-items: center; gap: 16px; padding: 0 12px 0 0; }
.kgrid[data-view="list"] .kcard__meta { flex-direction: column; gap: 2px; }
.kgrid[data-view="list"] .kcard__foot { margin: 0; padding: 0; }
.kgrid[data-view="list"] .swatches { display: none; }

/* Кейс концепта */
.case-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 40px; align-items: end; margin: 22px 0 36px; }
.case-no { font: 600 13.5px var(--f-mono); color: var(--accent-ink); letter-spacing: .04em; }
.case-head .h1 { margin-top: 14px; }
.case-head .lead { margin-top: 18px; }
.case-head .actions { margin-top: 28px; }
.meta-list { margin: 0; border-top: 1.5px solid var(--ink); }
.meta-list div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.meta-list dt { font: 500 12px var(--f-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.meta-list dd { margin: 0; text-align: right; font-weight: 500; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser__bar i:nth-child(1) { background: #ec6a5e; } .browser__bar i:nth-child(2) { background: #f4bf4f; } .browser__bar i:nth-child(3) { background: #61c554; }
.browser__url { margin: 0 auto; width: min(460px, 60%); height: 24px; border-radius: 7px; background: var(--card); font: 500 11.5px/24px var(--f-mono); color: var(--ink-3); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px; }
.browser img { width: 100%; }
.scrollshot { max-height: min(80vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.step__head { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
.step__n { font: 600 13px var(--f-mono); color: var(--accent-ink); letter-spacing: .06em; }
.step__t { font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.02; margin-top: 8px; }
.step__body > p { color: var(--ink-2); font-size: 17px; max-width: 66ch; }
.quote { margin: 22px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--r) var(--r) 0;
  font: italic 600 clamp(24px, 2.4vw, 34px)/1.15 var(--f-serif); color: var(--ink); }
.quote small { display: block; margin-top: 10px; font: 500 12px var(--f-mono); color: var(--ink-3); font-style: normal; letter-spacing: .04em; }
.wire { display: grid; gap: 8px; max-width: 760px; }
.wire div { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 12px 16px; font-size: 14.5px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; background: color-mix(in srgb, var(--card) 60%, transparent); }
.wire div b { font: 500 11px var(--f-mono); color: var(--ink-3); letter-spacing: .06em; flex: none; width: 34px; }
.wire .w1 { min-height: 120px; font-weight: 750; font-size: 20px; color: var(--ink); background: var(--card); border-style: solid; border-color: var(--line); letter-spacing: -.02em; }
.wire .w2 { min-height: 66px; font-weight: 600; color: var(--ink); }
.wire .w3 { margin-left: 34px; min-height: 44px; font-size: 13.5px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.sw { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.sw i { display: block; height: 104px; }
.sw span { display: flex; justify-content: space-between; padding: 9px 11px; font: 500 12.5px var(--f-mono); }
.sw span em { font-style: normal; color: var(--ink-3); }
.typo { display: grid; gap: 10px; margin-top: 18px; }
.typo__item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.typo__sample { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.typo__name { font: 500 12.5px var(--f-mono); color: var(--ink-3); text-align: right; }
.screens { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.phone { width: 100%; max-width: 300px; justify-self: center; border-radius: 46px; padding: 11px; background: #0d0c0b; box-shadow: var(--shadow-lg), inset 0 0 0 2px #34302b; position: sticky; top: calc(var(--hdr) + 24px); }
.phone img { border-radius: 36px; width: 100%; }
.proto { position: relative; aspect-ratio: 16 / 10; border-radius: 0 0 14px 14px; overflow: hidden; background: var(--paper-2); }
.proto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); }
.proto iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; background: #fff; }
.proto__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 10, 8, .38); }
.proto.is-live .proto__play, .proto.is-live > img { display: none; }
.techstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 22px; }
.techstats div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.techstats b { display: block; font: 600 26px/1 var(--f-mono); letter-spacing: -.04em; }
.techstats span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: border-color .2s; }
.pn a:hover { border-color: var(--ink-3); }
.pn a img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pn a:last-child { grid-template-columns: minmax(0, 1fr) 120px; text-align: right; }
.pn a:last-child img { order: 2; }
.pn small { display: block; font: 500 12px var(--f-mono); color: var(--ink-3); }
.pn b { font-size: 17px; letter-spacing: -.02em; }

/* Страница программы */
.prod-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; margin: 22px 0 0; }
.prod-icon { width: 128px; height: 128px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.prod-icon img { width: 100%; height: 100%; object-fit: cover; }
.prod-head .h1 { font-size: clamp(38px, 5.4vw, 80px); margin-top: 10px; }
.prod-head .lead { margin-top: 14px; }
.prod-el { width: 118px; height: 128px; border: 1.5px solid var(--g); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; background: color-mix(in srgb, var(--g) 8%, var(--card)); }
.prod-el small { font: 500 11px var(--f-mono); color: var(--ink-3); }
.prod-el b { margin-top: auto; font-size: 46px; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--g); }
.prod-el span { font: 500 10.5px/1.25 var(--f-mono); color: var(--ink-3); margin-top: 6px; }
.prod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.prod-aside { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 14px; }
.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: 30px; letter-spacing: -.03em; margin: 40px 0 14px; }
.prose h3 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-ink); }
.prose code { font: 500 .88em var(--f-mono); background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.specs { margin: 0; border-top: 1.5px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { font: 500 11.5px var(--f-mono); color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.feature h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.feature b.fn { display: block; font: 500 12px var(--f-mono); color: var(--accent-ink); margin-bottom: 12px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shots figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.shots figure:first-child { grid-column: 1 / -1; }
.shots img, .shots video { width: 100%; }
.plats { display: flex; flex-wrap: wrap; gap: 6px; }
.plats .chip { font-size: 13px; min-height: 30px; }

/* Исследования */
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.idea { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.idea h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.idea p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.idea__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.idea__foot a { font: 600 13px var(--f-mono); color: var(--accent-ink); text-decoration: none; }
.idea__foot a:hover { text-decoration: underline; }
.idea { scroll-margin-top: 96px; }
.idea:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.idea__media { display: block; margin: -24px -24px 4px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.idea__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.idea--case:hover .idea__media img { transform: scale(1.03); }

/* Шрифты: переменные --ff, --fbg, --ffg, --fac, --fmu, --fink задаются на блоке из build.py */
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.fcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.fcard:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.fcard__spec { position: relative; min-height: 250px; padding: 28px 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--fbg); color: var(--ffg); font-family: var(--ff); }
.fcard__spec::after { content: ""; position: absolute; right: 26px; top: 30px; width: 10px; height: 24px; background: var(--fac); }
.fcard__spec b { font-weight: 700; font-size: 96px; line-height: .9; }
.fcard__spec span { font-size: 21px; line-height: 1.15; }
.fcard__body { flex: 1; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.fcard__body h3 { font-size: 22px; letter-spacing: -.02em; }
.fcard__body p { flex: 1; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fcard__body .more { align-self: flex-start; }
.fhero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--fbg); color: var(--ffg); font-family: var(--ff); }
.fhero::before { content: ""; position: absolute; left: clamp(28px, 5vw, 64px); top: 0; width: 56px; height: 8px; background: var(--fac); }
.fhero__t { margin: 0; font-weight: 700; font-size: clamp(44px, 8vw, 124px); line-height: .98; overflow-wrap: anywhere; }
.fhero__abc { margin: clamp(22px, 3vw, 40px) 0 0; font-size: clamp(16px, 1.8vw, 24px); line-height: 1.5; letter-spacing: .08em; color: var(--fmu); overflow-wrap: anywhere; }
.ffigs { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ffig { margin: 0; }
.ffig a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #2b2b2b; }
.ffig img { width: 100%; transition: transform .4s ease; }
.ffig a:hover img { transform: scale(1.02); }
.ffig figcaption { margin-top: 8px; font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-3); }
.fstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 22px; }
.fstrip figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #333; }
.fstrip img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.fstrip figcaption { padding: 5px 8px 6px; font: 500 10.5px var(--f-mono); color: #bdbdbd; background: #2a2a2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmetrics, .fweights, .ftester, .fglyphs { margin-top: 22px; border-radius: var(--r-lg); background: var(--fbg); color: var(--ffg); }
.fhero, .fmetrics, .fweights, .ftester, .fglyphs, .fcard__spec, .fpn b { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ffg) 12%, transparent); }
.fmetrics { padding: clamp(14px, 2.4vw, 28px); }
.fmetrics svg { display: block; width: 100%; height: auto; }
.fm-lines line { stroke: var(--fmu); stroke-width: 3; stroke-dasharray: 14 10; opacity: .6; }
.fm-lines line:nth-of-type(3) { stroke: var(--fac); stroke-dasharray: none; opacity: 1; }
.fm-l { fill: var(--fmu); font: 500 32px var(--f-mono); }
.fm-g { fill: currentColor; font: 400 1000px var(--ff); }
.fmetrics.is-ss .fm-g, .ftester.is-ss .ftester__text { font-feature-settings: "ss01" 1; }
.fmetrics__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font: 500 12.5px var(--f-mono); color: var(--fmu); }
.fmetrics .chip, .ftester .chip { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.fmetrics .chip[aria-pressed="true"], .ftester .chip[aria-pressed="true"] { background: var(--fac); border-color: var(--fac); color: #fff; }
.fweights { display: grid; overflow: hidden; }
.fweights div { padding: 22px 26px 26px; }
.fweights div + div { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.fweights__l { display: block; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fmu); }
.fweights p { margin: 10px 0 0; font-family: var(--ff); font-size: clamp(28px, 4vw, 58px); line-height: 1.02; overflow-wrap: anywhere; }
.ftester { overflow: hidden; scroll-margin-top: 96px; transition: background .2s, color .2s; }
.ftester.is-inv { background: var(--ffg); color: var(--fbg); }
.ftester__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font: 500 12.5px var(--f-mono); }
.ftester__bar label { display: inline-flex; align-items: center; gap: 10px; }
.ftester__bar input[type="range"] { width: 160px; accent-color: var(--fac); }
.ftester__bar output { min-width: 3ch; }
.ftester .seg { background: transparent; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.ftester .seg button { color: inherit; }
.ftester .seg button[aria-pressed="true"] { background: var(--fac); color: #fff; box-shadow: none; }
.ftester__text { min-height: 220px; padding: clamp(20px, 3vw, 36px); font-family: var(--ff); font-size: 56px; line-height: 1.12; outline: none; overflow-wrap: anywhere; }
.fglyphs { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); overflow: hidden; margin-top: 14px; }
.fglyphs__big { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; border-right: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.fglyphs__big b { font: 400 clamp(120px, 14vw, 210px)/1 var(--ff); }
.fglyphs__big span { margin-top: 12px; font: 500 12.5px var(--f-mono); color: var(--fmu); }
.fglyphs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); align-content: start; }
.fglyphs__grid button { aspect-ratio: 1; border: 0; border-right: 1px solid color-mix(in srgb, currentColor 10%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background: transparent; color: inherit; font: 400 24px var(--ff); cursor: pointer; }
.fglyphs__grid button:hover, .fglyphs__grid button[aria-current] { background: var(--fac); color: #fff; }
.mocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; margin-top: 22px; font-family: var(--ff); }
.mock { margin: 0; display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
.mock figcaption { font: 500 12.5px var(--f-mono); color: var(--ink-3); }
.mock--a4 { grid-column: span 3; grid-row: span 2; }
.mock--card, .mock--sign { grid-column: span 3; }
.mock--phone { grid-column: span 2; }
.mock--web { grid-column: span 4; align-self: start; }
.a4 { aspect-ratio: 210 / 297; overflow: hidden; padding: 9cqi 8cqi; display: flex; flex-direction: column; gap: 3.4cqi; border-radius: 4px;
  background: #fbfaf7; color: #1d1c1a; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 40px -18px rgba(0, 0, 0, .35); }
.a4__head { position: relative; display: flex; flex-direction: column; gap: 1.2cqi; padding-bottom: 3cqi; border-bottom: .8cqi solid var(--fink); }
.a4__head::after { content: ""; position: absolute; right: 0; bottom: -.8cqi; width: 14cqi; height: .8cqi; background: var(--fac); }
.a4__head b { font-weight: 700; font-size: 6cqi; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--fink); }
.a4__head span { font-size: 2.6cqi; letter-spacing: .14em; text-transform: uppercase; color: #6b6760; }
.a4__meta { display: flex; justify-content: space-between; gap: 4cqi; font-size: 2.5cqi; color: #6b6760; }
.a4__title { margin: 2cqi 0 0; font-weight: 700; font-size: 4.2cqi; line-height: 1.15; }
.a4__body { display: flex; flex-direction: column; gap: 2cqi; font-size: 2.9cqi; line-height: 1.45; }
.a4__body p { margin: 0; }
.a4__body i { display: block; height: 1.3cqi; border-radius: 1cqi; background: #e5e1d8; }
.a4__body i.s { width: 60%; }
.a4__sign { margin-top: auto; display: flex; align-items: flex-end; gap: 4cqi; font-size: 2.8cqi; }
.a4__sign i { flex: 0 0 30cqi; border-bottom: .3cqi solid currentColor; }
.bcard { position: relative; aspect-ratio: 90 / 50; padding: 8cqi 7cqi 6cqi; display: flex; flex-direction: column; border-radius: 2cqi;
  background: var(--fbg); color: var(--ffg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 14px 30px -16px rgba(0, 0, 0, .45); }
.bcard::before { content: ""; position: absolute; left: 7cqi; top: 0; width: 9cqi; height: 2cqi; background: var(--fac); }
.bcard b { max-width: 85%; font-weight: 700; font-size: 7.4cqi; line-height: 1; }
.bcard span { margin-top: 3cqi; font-size: 3.4cqi; letter-spacing: .06em; text-transform: uppercase; color: var(--fmu); }
.bcard small { margin-top: auto; font-size: 3.4cqi; }
.plate { position: relative; aspect-ratio: 2 / 1; padding: 6cqi 9cqi; display: flex; flex-direction: column; justify-content: center; gap: 3cqi; border-radius: 1.6cqi; color: var(--fink);
  background: linear-gradient(135deg, #dedbd4, #bcb8af 45%, #e6e3dc 70%, #aca89e);
  box-shadow: inset 0 0 0 .5cqi rgba(255, 255, 255, .45), 0 14px 30px -16px rgba(0, 0, 0, .45); }
.plate::before, .plate::after { content: ""; position: absolute; top: 4cqi; width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: radial-gradient(#8d897f, #5f5b53); }
.plate::before { left: 4cqi; } .plate::after { right: 4cqi; }
.plate b { font-weight: 700; font-size: 6.4cqi; line-height: 1.04; }
.plate span { font-size: 3.2cqi; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.mphone { container-type: inline-size; width: 100%; padding: 3.8cqi; border-radius: 16cqi; background: #0d0c0b; box-shadow: var(--shadow-lg), inset 0 0 0 2px #34302b; }
.mphone__scr { position: relative; aspect-ratio: 9 / 19; overflow: hidden; padding: 16cqi 8cqi 8cqi; display: flex; flex-direction: column; gap: 5cqi;
  border-radius: 12.5cqi; background: var(--fbg); color: var(--ffg); }
.mphone__scr::before { content: ""; position: absolute; top: 3.5cqi; left: 50%; width: 30cqi; height: 8cqi; border-radius: 6cqi; background: #0d0c0b; transform: translateX(-50%); }
.mphone__bar { display: flex; justify-content: space-between; align-items: center; gap: 4cqi; padding-bottom: 4cqi; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.mphone__bar b { font-weight: 700; font-size: 5cqi; line-height: 1.1; }
.mphone__bar i { flex: none; width: 8cqi; height: 5cqi; border-block: .9cqi solid currentColor; }
.mphone__scr p { margin: 0; font-size: 5.4cqi; line-height: 1.4; color: var(--fmu); }
.mphone__scr .mphone__h { margin-top: 4cqi; font-weight: 700; font-size: 10cqi; line-height: 1.02; color: inherit; }
.mphone__btn { margin-top: auto; padding: 4.6cqi; border-radius: 4cqi; text-align: center; font-weight: 700; font-size: 5.4cqi; background: var(--fac); color: #fff; }
.mweb { aspect-ratio: 16 / 9; padding: 4cqi 5cqi 6cqi; display: flex; flex-direction: column; gap: 2cqi; background: var(--fbg); color: var(--ffg); }
.mweb__nav { display: flex; justify-content: space-between; align-items: center; gap: 3cqi; padding-bottom: 3cqi; font-size: 2cqi; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.mweb__nav b { font-weight: 700; font-size: 2.4cqi; }
.mweb__nav nav { display: flex; gap: 2.6cqi; color: var(--fmu); }
.mweb p { max-width: 64%; margin: 0; font-size: 2.4cqi; line-height: 1.4; color: var(--fmu); }
.mweb .mweb__h { max-width: none; margin-top: auto; font-weight: 700; font-size: 7.4cqi; line-height: .98; color: inherit; }
.fpn b { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--fbg); color: var(--ffg); font: 700 40px var(--ff); }
.pn a.fpn:last-child b { order: 2; }
.pn a.fpn strong { font-size: 17px; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .fglyphs { grid-template-columns: 1fr; }
  .fglyphs__big { border-right: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  .ffigs[style*="--cols:3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock--a4, .mock--web { grid-column: 1 / -1; grid-row: auto; }
  .mock--card, .mock--sign, .mock--phone { grid-column: span 1; }
}
@media (max-width: 640px) {
  .ffigs, .mocks { grid-template-columns: 1fr; }
  .mock--card, .mock--sign, .mock--phone { grid-column: 1 / -1; }
  .mock--phone .mphone { max-width: 280px; margin-inline: auto; }
  .ftester__text { font-size: 34px; }
}
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.repo { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.repo:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.repo__name { font: 600 14.5px/1.35 var(--f-mono); overflow-wrap: anywhere; }
.repo__name span { color: var(--ink-3); font-weight: 500; }
.repo p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.repo__meta { display: flex; gap: 14px; flex-wrap: wrap; font: 500 12px var(--f-mono); color: var(--ink-3); align-items: center; }
.repo__meta i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.gh-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.gh-bar svg { width: 30px; height: 30px; }
.gh-bar b { font-size: 20px; letter-spacing: -.02em; }
.gh-bar span { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 15px; }
.gh-bar .btn { margin-left: auto; }

/* Услуги */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aud__card { padding: 30px 28px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.aud__card:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); --ink-2: color-mix(in srgb, var(--paper) 78%, transparent); }
.aud__card h3 { font-size: 28px; letter-spacing: -.035em; }
.aud__card > p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; font-size: 15.5px; line-height: 1.45; }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.process div { padding: 24px 22px 8px 0; }
.process div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.process b { display: block; font: 600 13px var(--f-mono); color: var(--accent-ink); }
.process h3 { font-size: 22px; letter-spacing: -.03em; margin: 12px 0 8px; }
.process p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .chip { font-family: var(--f-mono); font-size: 13px; }
.faq { border-top: 1.5px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* Контакты */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.contact__main { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--accent); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.contact__main .label { color: rgba(255, 255, 255, .8); }
.contact__mail { font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -.045em; line-height: 1; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact__main p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16.5px; }
.contact__side { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.links-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.links-list li { border-bottom: 1px solid var(--line); }
.links-list a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; text-decoration: none; }
.links-list a span { color: var(--ink-3); font-size: 14.5px; }
.links-list a:hover b { color: var(--accent-ink); }

/* Призыв */
.cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: end; }
.cta::after { content: "§"; position: absolute; right: -2%; top: -30%; font: italic 600 clamp(300px, 40vw, 560px)/1 var(--f-serif); color: rgba(255, 255, 255, .1); pointer-events: none; }
.cta .h2 { color: #fff; position: relative; z-index: 1; }
.cta .h2 em { color: #fff; }
.cta p { margin: 18px 0 0; font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 48ch; position: relative; z-index: 1; }
.cta .actions { position: relative; z-index: 1; justify-content: flex-end; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; }

/* ─────────────── Подвал ─────────────── */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: clamp(56px, 7vw, 96px) 0 28px; overflow: hidden;
  --ink: var(--on-dark); --line: var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand__mark { color: var(--on-dark); }
.site-footer .brand__mark .m-l { stroke: var(--dark); }
.site-footer .brand__sub { color: var(--on-dark-2); }
.footer-about { margin: 18px 0 0; font-size: 15px; line-height: 1.55; max-width: 44ch; }
.footer-mail { display: inline-block; margin-top: 18px; font: 600 18px var(--f-mono); color: var(--on-dark); text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.site-footer h4 { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.site-footer ul a:hover, .footer-mail:hover { color: var(--accent); }
.site-footer ul small { color: var(--on-dark-2); font-size: 12.5px; margin-left: 6px; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--on-dark); transition: .2s; }
.socials a:hover { background: var(--on-dark); color: var(--dark); }
.socials svg { width: 18px; height: 18px; }
.footer-word { font-weight: 800; font-size: min(24.5vw, 360px); letter-spacing: -.07em; line-height: .78; color: var(--on-dark); margin: clamp(48px, 7vw, 96px) 0 26px; white-space: nowrap; user-select: none; }
.footer-word em { font: italic 600 1em var(--f-serif); color: var(--accent); letter-spacing: -.04em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--dark-line); padding-top: 20px; font-size: 13px; }
.footer-bottom a { color: var(--on-dark-2); }

/* ─────────────── Анимации появления ─────────────── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ─────────────── Адаптив ─────────────── */
@media (max-width: 1180px) {
  .nav__links a { padding: 9px 9px; font-size: 14.5px; }
  .brand__sub { display: none; }
}
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: grid; }
  .ptable { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-child(3n + 1) { padding-left: 0; }
  .stat:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .index__row { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .index__thumb { display: none; }
  .tile, .tile--8, .tile--6 { grid-column: span 6; }
  .tile--8 { flex-direction: column; }
  .tile--8 .tile__media { aspect-ratio: 16 / 10; min-height: 0; flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .tile--8 .tile__body { padding: 18px 20px 20px; }
  .srcs, .upcoming { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prod-layout { grid-template-columns: 1fr; }
  .prod-aside { position: static; }
  .aud { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process div:nth-child(3) { padding-left: 0; border-left: 0; }
  .kgrid[data-view="list"] .kcard__body { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .kgrid[data-view="list"] .kcard__what, .kgrid[data-view="list"] .kcard__plat { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .page-hero__grid, .case-head, .sec-head, .cta, .contact, .cols-2 { grid-template-columns: 1fr; }
  .passport { max-width: 460px; }
  .stamp { right: 8px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe:nth-child(2) { border-right: 0; }
  .pipe:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pipe:not(:last-child)::after { display: none; }
  .principles { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 18px; }
  .step__head { position: static; }
  .screens { grid-template-columns: 1fr; }
  .phone { position: static; }
  .cta .actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .pn { grid-template-columns: 1fr; }
  .prod-head { grid-template-columns: auto minmax(0, 1fr); }
  .prod-el { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --hdr: 64px; }
  .ticker { font-size: 11.5px; }
  .ptable { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .el { aspect-ratio: 1; padding: 7px; border-radius: 9px; }
  .el__name, .el__n { display: none; }
  .el__icon { width: 18px; height: 18px; top: 6px; right: 6px; border-radius: 5px; }
  .el__sym { font-size: 21px; }
  .readout { grid-template-columns: 60px minmax(0, 1fr); }
  .readout__sym { width: 60px; height: 60px; font-size: 24px; }
  .readout .btn { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 18px 14px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 14px; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .index__row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; padding: 22px 0; }
  .index__text { grid-column: 2; }
  .index__arrow { display: none; }
  .tile, .tile--8, .tile--6 { grid-column: 1 / -1; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe:last-child { border-bottom: 0; }
  .formats, .cards--3 { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mosaic a { border-radius: 7px; }
  .kgrid { grid-template-columns: 1fr; }
  .kgrid[data-view="images"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kgrid[data-view="list"] .kcard__media { width: 84px; }
  .kgrid[data-view="list"] .kcard__body { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kgrid[data-view="list"] .kcard__foot { display: none; }
  .toolbar { position: static; }
  .count-line { margin-left: 0; width: 100%; }
  .sites { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .prod-icon { width: 88px; height: 88px; border-radius: 22px; }
  .prod-head { gap: 18px; }
  .shots { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .meta-list div { flex-direction: column; gap: 2px; }
  .meta-list dd { text-align: left; }
  .typo__item { grid-template-columns: 1fr; }
  .typo__name { text-align: left; }
  .gh-bar .btn { margin-left: 0; }
  .btn { height: 50px; padding: 0 20px; }
  .btn-lg { height: 56px; }
  .pn a, .pn a:last-child { grid-template-columns: 88px minmax(0, 1fr); text-align: left; }
  .pn a:last-child img { order: 0; }
}

/* Режим отбора концептов (/koncepty/?otbor=1) */
.otbor { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); font-size: 14.5px; max-width: calc(100% - 24px); }
.otbor .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.otbor-cb { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(12, 10, 8, .82); color: #fff; font: 600 12.5px var(--f-sans); cursor: pointer; }
.otbor-cb input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.kcard.is-marked { outline: 3px solid var(--accent); outline-offset: -3px; }
.kcard.is-marked .kcard__media img { opacity: .35; filter: grayscale(1); }

@media print {
  .ticker, .site-header, .site-footer, .toolbar, .cta, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
