/* Нейроникс — main.css v2 «Импульс». Слои: reset, tokens, fonts, base, layout, components, effects, i18n, vendor, kiosk, draft. */
@layer reset, tokens, fonts, base, layout, components, effects, i18n, vendor, kiosk, draft;

/* reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { margin: 0; }
  h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, svg, canvas { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
  button { cursor: pointer; }
  fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  legend { padding: 0; }
  summary { cursor: pointer; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  [hidden] { display: none !important; }
}

/* tokens */
@layer tokens {
  :root {
    color-scheme: light;
    --bg: #FFFFFF; --bg: oklch(100% 0 0);
    --bg-2: #F4F6FA; --bg-2: oklch(97.3% 0.006 262);
    --bg-3: #E9EDF5; --bg-3: oklch(94.5% 0.010 262);
    --ink: #0B0F19; --ink: oklch(15.5% 0.022 268);
    --ink-2: #5B6478; --ink-2: oklch(49.5% 0.030 262);
    --line: #DDE2EC; --line: oklch(91.0% 0.013 262);
    --accent: #1F4FFF; --accent: oklch(55.5% 0.245 265);
    --accent-hover: #1540DB; --accent-hover: oklch(48.5% 0.230 265);
    --accent-soft: #E8EEFF; --accent-soft: oklch(94.5% 0.030 265);
    --on-accent: #FFFFFF; --on-accent: oklch(100% 0 0);
    /* одинаковые в обеих темах */
    --band: #0B0F19; --band-dark: #000; --on-band: #F2F4F8; --band-accent: #5B84FF;
    --accent-band: #1F4FFF; --on-accent-band: #FFFFFF; --on-accent-band-2: #E6ECFF;
    /* производные: hex-фолбэк, затем color-mix */
    --accent-12: rgb(31 79 255 / .12); --accent-12: color-mix(in oklch, var(--accent) 12%, transparent);
    --accent-35: rgb(31 79 255 / .35); --accent-35: color-mix(in oklch, var(--accent) 35%, transparent);
    --accent-55: rgb(31 79 255 / .55); --accent-55: color-mix(in oklch, var(--accent) 55%, transparent);
    --accent-glow: rgb(31 79 255 / .45); --accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);
    --line-strong: rgb(11 15 25 / .25); --line-strong: color-mix(in oklch, var(--ink) 25%, transparent);
    --shadow-1: rgb(11 15 25 / .06); --shadow-1: color-mix(in oklch, var(--ink) 6%, transparent);
    --backdrop: rgb(11 15 25 / .55); --backdrop: color-mix(in oklch, var(--ink) 55%, transparent);
    --hatch: rgb(242 244 248 / .05); --hatch: color-mix(in oklch, var(--on-band) 5%, transparent);
    --focus: var(--accent);
    --font-display: "Manrope", "Manrope Fallback", system-ui, sans-serif;
    --font-text: "Golos Text", "Golos Fallback", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Mono Fallback", ui-monospace, Consolas, monospace;
    /* шкала v2 */
    --t-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --t-s: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
    --t-base: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
    --t-lead: clamp(1.125rem, 1.02rem + 0.55vw, 1.4375rem);
    --t-h3: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
    --t-h2: clamp(2.25rem, 1rem + 4.4vw, 5.25rem);
    --t-h1: clamp(3rem, min(1rem + 11.5vw, 20svh), 11.5rem);
    --t-giant: clamp(6rem, 22vw, 20rem);
    --t-num: clamp(4rem, 9.5vw, 9.5rem);
    --t-word: clamp(4rem, 15.5vw, 15rem);
    --t-ticker: clamp(1rem, 2.2vw, 1.75rem);
    --space-3: 1.5rem; --space-4: 2rem;
    --section-pad: clamp(4rem, 9vw, 9rem);
    --container: 90rem;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --gap: clamp(1rem, 2vw, 2rem);
    --gutter-l: var(--gutter);
    --edge: max(var(--gutter-l), calc((100% - var(--container)) / 2 + var(--gutter-l)));
    --header-h: 64px;
    --cover-r: 24px; --rail-x: 2rem;
    --r-s: 4px; --r-m: 12px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-shutter: cubic-bezier(.76, 0, .24, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --d-state: 200ms; --d-dialog: 250ms; --d-theme: 300ms;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #070A12; --bg: oklch(11.5% 0.020 268);
      --bg-2: #0F1420; --bg-2: oklch(17.5% 0.025 265);
      --bg-3: #161D2E; --bg-3: oklch(22.5% 0.030 265);
      --ink: #F2F4F8; --ink: oklch(96.5% 0.005 262);
      --ink-2: #9AA3B8; --ink-2: oklch(70.0% 0.025 262);
      --line: #1E2536; --line: oklch(25.5% 0.030 265);
      --accent: #5B84FF; --accent: oklch(64.5% 0.190 265);
      --accent-hover: #7C9DFF; --accent-hover: oklch(71.5% 0.160 265);
      --accent-soft: #121B3A; --accent-soft: oklch(23.0% 0.070 265);
      --on-accent: #070A12; --on-accent: oklch(11.5% 0.020 268);
      --accent-12: rgb(91 132 255 / .12); --accent-12: color-mix(in oklch, var(--accent) 12%, transparent);
      --accent-35: rgb(91 132 255 / .35); --accent-35: color-mix(in oklch, var(--accent) 35%, transparent);
      --accent-55: rgb(91 132 255 / .55); --accent-55: color-mix(in oklch, var(--accent) 55%, transparent);
      --accent-glow: rgb(91 132 255 / .45); --accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);
      --line-strong: rgb(242 244 248 / .25); --line-strong: color-mix(in oklch, var(--ink) 25%, transparent);
      --shadow-1: rgb(242 244 248 / .06); --shadow-1: color-mix(in oklch, var(--ink) 6%, transparent);
      --backdrop: rgb(7 10 18 / .7); --backdrop: color-mix(in oklch, var(--bg) 70%, transparent);
    }
    :root:not([data-theme="light"]) .band:not(.band--blue) { --bg: var(--band-dark); border-block: 1px solid var(--line); }
    :root:not([data-theme="light"]) .grain { opacity: .08; }
  }
  [data-theme="dark"] {
    color-scheme: dark;
    --bg: #070A12; --bg: oklch(11.5% 0.020 268);
    --bg-2: #0F1420; --bg-2: oklch(17.5% 0.025 265);
    --bg-3: #161D2E; --bg-3: oklch(22.5% 0.030 265);
    --ink: #F2F4F8; --ink: oklch(96.5% 0.005 262);
    --ink-2: #9AA3B8; --ink-2: oklch(70.0% 0.025 262);
    --line: #1E2536; --line: oklch(25.5% 0.030 265);
    --accent: #5B84FF; --accent: oklch(64.5% 0.190 265);
    --accent-hover: #7C9DFF; --accent-hover: oklch(71.5% 0.160 265);
    --accent-soft: #121B3A; --accent-soft: oklch(23.0% 0.070 265);
    --on-accent: #070A12; --on-accent: oklch(11.5% 0.020 268);
    --accent-12: rgb(91 132 255 / .12); --accent-12: color-mix(in oklch, var(--accent) 12%, transparent);
    --accent-35: rgb(91 132 255 / .35); --accent-35: color-mix(in oklch, var(--accent) 35%, transparent);
    --accent-55: rgb(91 132 255 / .55); --accent-55: color-mix(in oklch, var(--accent) 55%, transparent);
    --accent-glow: rgb(91 132 255 / .45); --accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);
    --line-strong: rgb(242 244 248 / .25); --line-strong: color-mix(in oklch, var(--ink) 25%, transparent);
    --shadow-1: rgb(242 244 248 / .06); --shadow-1: color-mix(in oklch, var(--ink) 6%, transparent);
    --backdrop: rgb(7 10 18 / .7); --backdrop: color-mix(in oklch, var(--bg) 70%, transparent);
  }
  [data-theme="dark"] .band:not(.band--blue) { --bg: var(--band-dark); border-block: 1px solid var(--line); }
  [data-theme="dark"] .band--blue, :root:not([data-theme="light"]) .band--blue { border-block: 1px solid rgb(255 255 255 / .3); }
  [data-theme="dark"] .grain { opacity: .08; }
  /* «всегда тёмные» поверхности: hero, process, footer, шапка над ними */
  .band, .on-dark {
    --bg: var(--band); --bg-2: #141A28; --bg-3: #1C2436; --ink: var(--on-band); --ink-2: #B8C0D2;
    --line: #262E40; --accent: var(--band-accent); --accent-hover: #7C9DFF; --accent-soft: #121B3A; --on-accent: #070A12; --focus: var(--on-band);
    --accent-12: rgb(91 132 255 / .12); --accent-12: color-mix(in oklch, var(--accent) 12%, transparent);
    --accent-55: rgb(91 132 255 / .55); --accent-glow: rgb(91 132 255 / .45); --accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);
    --line-strong: rgb(242 244 248 / .3); --shadow-1: rgb(0 0 0 / .3); --backdrop: rgb(0 0 0 / .6);
    color-scheme: dark;
  }
  /* всегда синяя полоса */
  .band--blue, .on-blue {
    --bg: var(--accent-band); --bg-2: #1A45E6; --bg-3: #173CCC; --ink: var(--on-accent-band); --ink-2: var(--on-accent-band-2);
    --line: rgb(255 255 255 / .3); --accent: #FFFFFF; --accent-hover: #E6ECFF; --accent-soft: rgb(255 255 255 / .12); --on-accent: var(--accent-band); --focus: #FFFFFF;
    --accent-12: rgb(255 255 255 / .12); --accent-55: rgb(255 255 255 / .55); --accent-glow: rgb(255 255 255 / .35); --line-strong: rgb(255 255 255 / .45);
    --hatch: rgb(255 255 255 / .06); color-scheme: dark;
  }
}

/* fonts */
@layer fonts {
  @font-face { font-family: "Manrope"; src: url(/fonts/manrope.woff2) format("woff2-variations"), url(/fonts/manrope.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
  @font-face { font-family: "Golos Text"; src: url(/fonts/golos-text.woff2) format("woff2-variations"), url(/fonts/golos-text.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
  @font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
  /* для китайского/японского: те же шрифты без U+2014 и U+2026 — «——» и «……» берутся из CJK-шрифта сплошной линией */
  @font-face { font-family: "Manrope CJK"; src: url(/fonts/manrope.woff2) format("woff2-variations"), url(/fonts/manrope.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; unicode-range: U+0000-2013, U+2015-2025, U+2027-FFFF; }
  @font-face { font-family: "Golos CJK"; src: url(/fonts/golos-text.woff2) format("woff2-variations"), url(/fonts/golos-text.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0000-2013, U+2015-2025, U+2027-FFFF; }
  @font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 105.47%; ascent-override: 101.07%; descent-override: 28.44%; line-gap-override: 0%; }
  @font-face { font-family: "Golos Fallback"; src: local("Arial"); size-adjust: 108.95%; ascent-override: 89.95%; descent-override: 20.19%; line-gap-override: 0%; }
  @font-face { font-family: "Mono Fallback"; src: local("Consolas"), local("Menlo"), local("Courier New"); size-adjust: 109.13%; ascent-override: 93.47%; descent-override: 27.49%; line-gap-override: 0%; }
}

/* base */
@layer base {
  html { font-size: calc(100% * var(--scale, 1)); scroll-padding-top: calc(var(--header-h) + 1rem); interpolate-size: allow-keywords; background: var(--band); }
  html:has(.site-header.is-compact) { --header-h: 56px; }
  body { background: var(--bg); color: var(--ink); font: 400 var(--t-base) / 1.55 var(--font-text); min-height: 100vh; min-height: 100svh; }
  body.is-locked { overflow: hidden; }
  body:has(dialog[open]) { overflow: hidden; }
  ::selection { background: var(--accent); color: var(--on-accent); }
  h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
  h1 { font-size: var(--t-h1); font-weight: 800; line-height: .92; letter-spacing: -.035em; }
  h2 { font-size: var(--t-h2); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
  h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
  .h2__light { font-weight: 500; }
  p, li, dd, dt, figcaption { text-wrap: pretty; }
  p, li { hyphens: auto; overflow-wrap: break-word; } /* страховка без словаря переносов (headless/старые сборки Chrome): длинное немецкое слово ломается, а не вылезает из колонки */
  a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  a:hover { color: var(--accent-hover); }
  strong { font-weight: 500; }
  abbr[title] { text-decoration: underline dotted; text-underline-offset: .15em; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: inherit; }
  :focus:not(:focus-visible) { outline: none; }
  .mono { font-family: var(--font-mono); font-size: var(--t-s); line-height: 1.4; font-weight: 400; hyphens: manual; letter-spacing: 0; }
  .kicker { text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-size: var(--t-s); }
  .label { text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-size: var(--t-xs); }
  .label--arrow::before { content: "→ "; color: var(--accent); }
  .lead { font-size: var(--t-lead); line-height: 1.4; text-wrap: balance; max-width: 58ch; }
  .prose { max-width: 58ch; font-size: calc(var(--t-base) * 1.05); }
  .prose p + p { margin-top: 1em; }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 120; padding: .7rem 1rem; border-radius: 4px; background: var(--accent-band); color: #fff; font: 700 var(--t-s) / 1.2 var(--font-display); text-decoration: none; translate: 0 calc(-100% - 1.5rem); transition: translate var(--d-state) var(--ease); }
  .skip-link:focus-visible { translate: 0 0; outline-color: #fff; }
  html:not(.draft) [data-requires]:not([data-filled]) { display: none !important; }
  details::details-content { height: 0; overflow: clip; transition: height var(--d-theme) var(--ease), content-visibility var(--d-theme) allow-discrete; }
  details[open]::details-content { height: auto; }
  /* контур — только у декоративных гигантов, третьей строки H1 и словознака */
  .outline { color: transparent; -webkit-text-stroke: 1px var(--line); paint-order: stroke fill; }
  @supports not (-webkit-text-stroke: 1px #000) { .outline { color: color-mix(in oklch, var(--ink) 18%, transparent); } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  }
}

/* layout */
@layer layout {
  .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter-l) var(--gutter); }
  @media (min-width: 64rem) { :root { --gutter-l: max(var(--gutter), calc(var(--rail-x) + 3.5rem)); } }
  main { position: relative; z-index: 1; background: var(--bg); counter-reset: section; }
  section[data-numbered] { counter-increment: section; }
  .section__kicker { position: relative; z-index: 1; }
  .section__kicker::before { content: counter(section, decimal-leading-zero) " · "; }

  /* ритм поверхностей: секции, крышки, полосы */
  .section { position: relative; z-index: 1; background: var(--bg); color: var(--ink); padding-block: var(--section-pad); }
  .stack, .contacts { background: var(--bg-2); }
  .cover { margin-top: calc(-1 * var(--cover-r)); border-radius: var(--cover-r) var(--cover-r) 0 0; box-shadow: 0 -1px 0 var(--line); }
  .band { position: relative; isolation: isolate; background: var(--bg); color: var(--ink); }
  .band::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(45deg, transparent 0 11px, var(--hatch) 11px 12px); }
  .band > * { position: relative; z-index: 1; }
  .why { padding-bottom: 0; }

  .section__grid { position: relative; display: grid; gap: var(--gap); }
  .section__grid > * { min-width: 0; }
  .section__h2 { position: relative; z-index: 1; max-width: 16ch; }
  .section__lead { color: var(--ink-2); position: relative; z-index: 1; }
  @media (min-width: 64rem) {
    .section__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
    .section__kicker { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 1; justify-self: start; align-self: start; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin-top: .2em; }
    .section__h2 { grid-column: 2 / 12; }
    .section__lead { grid-column: 7 / -1; margin-top: clamp(.5rem, 1.5vw, 1.5rem); }
  }

  /* гигантские номера: два слоя (контур + заливка по клипу) */
  .giant { position: absolute; z-index: 0; pointer-events: none; user-select: none; font: 800 var(--t-giant) / .8 var(--font-display); letter-spacing: -.04em; }
  .giant__stroke, .giant__fill { display: block; }
  .giant__stroke::before, .giant__fill::before { content: counter(section, decimal-leading-zero); }
  .giant__stroke { color: transparent; -webkit-text-stroke: 1px var(--line); }
  @supports not (-webkit-text-stroke: 1px #000) { .giant__stroke { color: color-mix(in oklch, var(--ink) 12%, transparent); } }
  .giant__fill { position: absolute; inset: 0; color: var(--accent); clip-path: inset(100% 0 0 0); }
  .giant--section { left: calc(var(--gutter-l) - .15em); top: -.35em; }
  .giant--section::after { content: ""; position: absolute; inset: 0 -.5em -.3em; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--line) 1px, transparent 1.5px) 0 0 / 32px 32px; mask-image: radial-gradient(closest-side, #000 40%, transparent); }
  .giant--step .giant__stroke::before, .giant--step .giant__fill::before { content: counter(step); }
  .giant--reason .giant__stroke::before, .giant--reason .giant__fill::before { content: counter(reason); }
  @media (max-width: 63.99rem) { .giant--section { left: auto; right: .25rem; top: -.45em; } .giant--section::after { inset: 0 0 -.3em -.5em; mask-image: radial-gradient(closest-side, #000 30%, transparent); } }   /* цифра в строке кикера — не под первой строкой H2 */

  /* шапка */
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--header-h); color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease), height var(--d-state) var(--ease), box-shadow .25s; }
  .site-header.is-compact { height: 56px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .site-header__row { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); height: 100%; }

  /* шина (десктоп) и полоса прогресса (телефон) */
  .rail { display: none; }
  .rail-m { position: fixed; top: var(--header-h); left: 0; z-index: 19; width: 100%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
  @media (min-width: 64rem) { html:not([data-tier="a"]) .rail { display: none; } html:not([data-tier="a"]) .rail-m { display: block; } }
  @media (min-width: 64rem) {
    .rail-m { display: none; }
    .rail { display: block; position: fixed; left: var(--rail-x); top: calc(var(--header-h) + 1.25rem); bottom: 1.25rem; z-index: 15; width: 1px; counter-reset: mark; }
    .rail__track { position: absolute; inset: 0; background: var(--line); }
    .rail__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
    .rail__dot { position: absolute; left: -3.5px; top: -4px; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); transform-origin: center; }
    .rail__mark { position: absolute; left: -2px; top: calc(var(--at, 0) * 100%); counter-increment: mark; width: 5px; height: 5px; margin-top: -2px; background: var(--line-strong); text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
    .rail__mark::before { content: counter(mark, decimal-leading-zero); position: absolute; left: 14px; top: -5px; font: 400 10px / 1.4 var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
    .rail__mark::after { content: attr(data-label); position: absolute; left: 36px; top: -5px; font: 400 10px / 1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; translate: -6px 0; transition: opacity .2s var(--ease), translate .2s var(--ease); }
    .rail__mark:hover::after { opacity: 1; translate: 0 0; }
    .rail__mark.is-active { background: var(--accent); color: var(--accent); }
  }

  /* hero: сцена, сетка, тикер */
  .hero { position: sticky; top: 0; z-index: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; isolation: isolate; overflow: clip; padding-top: var(--header-h); }
  @media (min-width: 64rem) and (max-width: 79.99rem) { .hero { --t-h1: clamp(3rem, min(1rem + 10.2vw, 20svh), 11.5rem); } }
  .hero__bg { position: absolute; inset: 0; z-index: 0; }
  .hero__svg { position: absolute; inset: 0; background: url(/assets/hero-board.svg) 0 0 / 768px 768px repeat; }
  .hero__pulse { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; }
  html[data-tier="a"] .hero__pulse, html[data-tier="a"][data-pointer="fine"] .hero__pulse { display: none; }
  .hero__gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); background: transparent; }
  .hero__gl.is-on { opacity: 1; }
  .hero__glow { position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle 450px at 22% 58%, var(--accent-glow), transparent 70%); opacity: .5; pointer-events: none; }
  .hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-content: center; padding-block: clamp(1rem, 2.5vh, 2rem) clamp(.75rem, 2vh, 1.5rem); }
  .hero__grid > * { min-width: 0; }
  .hero__kicker { grid-column: 1 / span 9; margin-bottom: clamp(.75rem, 2vh, 1.5rem); }
  .hero__h1 { grid-column: 1 / -1; text-wrap: initial; hyphens: manual; margin-inline-start: -.04em; }
  html[lang^="en"] .hero__h1 { margin-inline-start: 0; }
  .hero__l { display: block; overflow: clip; padding: .06em .05em .16em 0; margin: -.06em 0 -.16em 0; }
  .hero__l--ign { color: transparent; -webkit-text-stroke: 1px var(--on-band); }
  @supports not (-webkit-text-stroke: 1px #000) { .hero__l--ign { color: var(--on-band); } }
  .hero__l--ign.is-lit { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
  .hero__sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: clamp(.75rem, 2vh, 1.25rem) clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1rem, 2.5vh, 2rem); }
  @media (min-width: 80rem) { .hero__sub { grid-column: 8 / -1; display: grid; justify-items: start; margin-top: calc(var(--t-h1) * -.92 + .1em); align-self: end; } }
  @media (max-width: 39.99rem), (max-height: 44rem) and (max-width: 63.99rem) { .hero { position: relative; } }
  /* ноутбуки 1280×800 / 1366×768 и планшеты в альбомной: hero помещается в экран — кнопки в одну строку, H1 ниже */
  @media (min-width: 80rem) and (max-width: 89.99rem) { .hero__sub { grid-column: 7 / -1; } }
  @media (min-width: 64rem) and (max-height: 56rem) { .hero { --t-h1: clamp(3rem, min(1rem + 11.5vw, 14svh), 11.5rem); } }
  .hero__lead { max-width: 42ch; color: var(--ink); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
  .hero__stand-note { display: none; }
  .hero__bottom { position: relative; z-index: 2; min-width: 0; padding-bottom: var(--cover-r); }
  .ticker { display: flex; min-width: 0; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: .6rem; color: var(--ink-2); font-size: var(--t-ticker); letter-spacing: .02em; }
  .ticker::before, .ticker::after { content: attr(data-text); flex: none; padding-inline-end: 1.5em; animation: ticker 40s linear infinite; }
  .ticker:hover::before, .ticker:hover::after, .ticker:focus-within::before, .ticker:focus-within::after { animation-play-state: paused; }
  .scroll-hint { display: flex; justify-content: flex-end; gap: .5em; padding: .6rem var(--gutter) .8rem; color: var(--ink-2); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; }
  .scroll-hint__arrow { display: inline-block; animation: hint 1.8s var(--ease) infinite; }
  
  @media (max-width: 39.99rem) {
    .hero { min-height: 88vh; min-height: 88svh; }
    .hero__bg { mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); }
    .hero__sub { display: grid; }
    .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
    .hero__cta .btn { width: 100%; }
    .hero__kicker { grid-column: 1 / -1; }
    .ticker { font-size: 1rem; }
  }

  /* станки и роботы: крышка на hero → тёмная витрина во всю ширину (всегда #070A12): подпись, сетка из девяти ячеек 4:3 (3×3 на десктопе,
     2 колонки на планшете, 1 колонка на телефоне) — в каждой своя модель, две кнопки → «Сотрудничество с производителями» → шаги поставки.
     Один фиксированный WebGL-canvas на весь вьюпорт лежит ПОД ячейками и рисует каждую по scissor (js/viewer3d.js); пока модель ячейки
     не построена (или без JS/WebGL) — WebP в ячейке. Подписей у моделей нет (политика раздела — см. README) */
  .catalog__lead { display: grid; gap: .75rem; }
  /* «Ищем партнёров»: синяя карточка сразу под вводкой — главное сообщение для иностранных производителей и поставщиков */
  .catalog__call { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; gap: clamp(.75rem, 1.5vw, 1.1rem); justify-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 12px; background: var(--bg); color: var(--ink); }
  @supports (corner-shape: bevel) { .catalog__call { border-radius: 12px 28px 12px 12px; corner-shape: round bevel round round; } }
  .catalog__call .kicker { color: var(--ink-2); }
  .catalog__call-h { font: 800 clamp(1.5rem, 1rem + 1.8vw, 2.6rem) / 1.08 var(--font-display); letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }
  .catalog__call-text { max-width: 62ch; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
  .catalog__call .btn { margin-top: .25rem; }
  @media (min-width: 64rem) { .catalog__call { grid-column: 2 / -1; } }
  .showroom { --bg: #070A12; --bg-2: #0F1420; --edge-r: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); margin-top: clamp(2rem, 5vw, 4rem); background: #070A12; border-block: 1px solid var(--line); }
  .showroom.band::before { content: none; }   /* штриховка .band только по краям тёмной сетки читалась как просвет */
  .showroom__stage { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); padding: clamp(1rem, 2.5vw, 1.5rem) var(--edge-r) clamp(1.25rem, 3vw, 1.75rem) var(--edge); min-width: 0; }
  /* сетка: без разделителей, рамки и скругления — девять моделей просто стоят на тёмном поле (по решению владельца); воздух между
     соседями даёт кадрирование модели в ячейке (PAD в viewer3d.js / поля в WebP-кадрах). Ячейки над canvas (z-index 1 против 0 внутри stacking context .showroom) */
  .showroom__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .showroom__cell { position: relative; z-index: 1; aspect-ratio: 4 / 3; min-width: 0; overflow: clip; background: #070A12; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: -3px; }
  .showroom__cell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; -webkit-touch-callout: none; pointer-events: none; transition: opacity .4s var(--ease); }
  /* модель ячейки построена (is-gl на ячейке): фон прозрачный — сквозь него виден canvas, WebP гаснет, курсор grab / grabbing */
  .showroom__cell.is-gl { background: transparent; cursor: grab; }
  .showroom__cell.is-gl > img { opacity: 0; }
  .showroom__cell.is-dragging { cursor: grabbing; }
  /* кадр 3D-модели — 2D-холст внутри ячейки (viewer3d.js копирует в него кадр из внеэкранного WebGL-буфера): прокручивается вместе с ячейкой */
  .showroom__cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
  .showroom__cell.is-gl > .showroom__cv { opacity: 1; }
  .showroom__grid::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
  .is-loading .showroom__grid::after, .is-busy .showroom__grid::after { opacity: 1; animation: busy-line 1.2s var(--ease) infinite; }
  .showroom__hint { opacity: 0; color: var(--ink-2); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; transition: opacity .6s var(--ease); }
  .is-gl .showroom__hint { opacity: 1; }
  .showroom__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
  /* сотрудничество с производителями, шаги поставки и финальная строка */
  .catalog__more { margin-top: clamp(3rem, 6vw, 5rem); }
  .catalog__partner { grid-column: 1 / -1; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
  .plist { list-style: none; counter-reset: pitem; display: grid; gap: var(--gap); }
  .plist li { counter-increment: pitem; display: grid; gap: .5rem; align-content: start; max-width: 40ch; padding-top: .75rem; border-top: 1px solid var(--line); font-size: var(--t-base); text-wrap: pretty; }
  .plist li::before { content: counter(pitem, decimal-leading-zero); font: 400 var(--t-xs) / 1 var(--font-mono); letter-spacing: .1em; color: var(--accent); }
  .catalog__steps { grid-column: 1 / -1; display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
  .isteps { list-style: none; counter-reset: istep; display: grid; gap: var(--gap); }
  .catalog__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
  .catalog__close { font-size: var(--t-lead); max-width: 40ch; text-wrap: balance; }
  /* планшет: 2 колонки, девятая ячейка во всю ширину (8:3); телефон: 1 колонка, 9 рядов 4:3 */
  @media (max-width: 63.99rem) { .showroom__stage { padding-inline: var(--gutter); } .showroom__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .showroom__cell:nth-child(9) { grid-column: 1 / -1; aspect-ratio: 8 / 3; } .showroom__cell:nth-child(9) > img { object-fit: contain; } }
  @media (max-width: 39.99rem) { .showroom__grid { grid-template-columns: minmax(0, 1fr); } .showroom__cell:nth-child(9) { grid-column: auto; aspect-ratio: 4 / 3; } .showroom__cta { width: 100%; } .showroom__cta .btn { flex: 1 1 12rem; } }
  @media (min-width: 40rem) { .isteps, .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64rem) {
    /* десктоп: 3×3, сетка по высоте вписана в экран (три ряда 4:3 + подпись и кнопки), по центру полосы */
    .showroom__grid { width: min(100%, max(48rem, calc((100vh - var(--header-h) - 11rem) * 4 / 3))); width: min(100%, max(48rem, calc((100svh - var(--header-h) - 11rem) * 4 / 3))); margin-inline: auto; }
    .showroom__hint, .showroom__cta { width: min(100%, max(48rem, calc((100vh - var(--header-h) - 11rem) * 4 / 3))); width: min(100%, max(48rem, calc((100svh - var(--header-h) - 11rem) * 4 / 3))); margin-inline: auto; }
    .catalog__partner, .catalog__steps, .catalog__foot { grid-column: 2 / -1; }
    .isteps, .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  /* кто мы */
  .about__body { grid-column: 1 / -1; display: grid; gap: var(--gap); margin-top: clamp(1rem, 3vw, 2.5rem); }
  .about__body > * { min-width: 0; }
  .about__mark { display: grid; grid-template-columns: max-content 1fr; font: 800 var(--t-num) / .85 var(--font-display); letter-spacing: -.03em; }
  .about__neuro { grid-column: 1 / -1; color: var(--accent); margin-inline-start: -.1em; }
  .about__nix { grid-column: 1 / -1; color: var(--ink); margin-inline-start: 1em; }
  .trace { grid-column: 1; width: 1.15em; height: auto; color: var(--line); margin-block: .12em; overflow: visible; }
  .trace--m { display: none; }
  .trace__pad { fill: var(--accent); transform-origin: center; transform-box: fill-box; scale: 0; transition: scale .3s var(--ease-out); }
  .trace__pad.is-on { scale: 1; }
  .about__text { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); align-content: start; }
  .about__h3 { margin-top: clamp(1rem, 2vw, 1.5rem); }
  .theses { list-style: none; counter-reset: thesis; border-top: 1px solid var(--line); overflow: clip; }
  .thesis { counter-increment: thesis; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); font: 700 var(--t-h3) / 1.12 var(--font-display); letter-spacing: -.02em; }
  .thesis::before { content: counter(thesis, decimal-leading-zero); padding-top: .35em; font: 400 var(--t-s) / 1 var(--font-mono); color: var(--accent); }
  .facts { color: var(--ink-2); }
  @media (min-width: 64rem) {
    .about__body { grid-column: 2 / -1; grid-template-columns: repeat(11, minmax(0, 1fr)); align-items: start; }
    .about__mark { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
    .about__text { grid-column: 6 / -1; }
  }
  /* все ширины: дорожка и «никс» в одной строке — дорожка ведёт от «Нейро» прямо к слову
     (раньше дорожка была отдельной строкой: слова расходились на 73 px на телефоне и до 200 px на десктопе) */
  .about__mark { grid-template-columns: auto 1fr; align-items: end; }
  .about__mark .trace { grid-row: 2; grid-column: 1; margin-block: 0 .1em; color: var(--line-strong); }
  .about__mark .trace--d { width: .9em; }
  .about__nix { grid-row: 2; grid-column: 2; margin-inline-start: .05em; }
  @media (max-width: 63.99rem) { .about__mark { margin-bottom: .5rem; } }
  @media (max-width: 39.99rem) { .about__mark { font-size: 4rem; } .trace--d { display: none; } .trace--m { display: block; width: 1em; } }

  /* направления (bento) */
  .bus { display: block; width: 100%; height: 8px; overflow: visible; margin-bottom: calc(var(--section-pad) * .55); }
  .bus__line { stroke: var(--line); stroke-width: 1; }
  .bus__pad, .bus__via { fill: var(--line-strong); }
  .about .bus, .services .bus, .why .bus { margin-top: calc(-1 * var(--section-pad) + 1.5rem); }
  html:not([data-tier="a"]) .bus { display: none; }   /* без DrawSVG видны только квадратики — читается как случайный пунктир */
  .bento { grid-column: 1 / -1; display: grid; gap: var(--gap); counter-reset: tile; margin-top: clamp(1.5rem, 4vw, 3rem); --tile-accent: var(--accent); --tile-on: var(--on-accent); --tile-ink: var(--ink); --tile-bg: var(--bg); }
  .services__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
  .services__caption { font-size: var(--t-lead); max-width: 34ch; text-wrap: balance; }
  .industries { flex-basis: 100%; color: var(--ink-2); }
  @media (min-width: 40rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64rem) {
    .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(34rem, auto) minmax(28rem, auto); }
    .tile--1, .tile--4 { grid-column: span 7; }
    .tile--2, .tile--3 { grid-column: span 5; }
    .services__foot { justify-content: flex-end; }
  }

  /* как работаем: сцена */
  .stage { display: grid; grid-template-columns: minmax(0, 1fr); }
  .stage__head { display: grid; gap: var(--gap); }
  .stage__head > * { min-width: 0; }
  .stage__lead { color: var(--ink-2); font-size: var(--t-base); max-width: 40ch; }
  .stage__body { position: relative; min-width: 0; margin-top: clamp(2rem, 5vw, 4rem); }
  .track { list-style: none; counter-reset: step; display: grid; gap: var(--gap); }
  .pcard { counter-increment: step; position: relative; display: grid; gap: .75rem; align-content: start; padding: clamp(1.5rem, 4vw, 2rem); background: #0F1420; border-radius: 16px; overflow: clip; }
  .process .pcard, [data-theme="dark"] .pcard { background: #0B0F19; box-shadow: inset 0 0 0 1px var(--line); }
  .pcard h3 { font-size: calc(var(--t-h3) * 1.1); padding-inline-end: 22%; max-width: 22ch; }
  .pcard__text { max-width: 44ch; color: var(--ink); }
  .pcard > :not(.giant) { position: relative; z-index: 1; }   /* крупная цифра шага — под текстом карточки */
  .pcard__result { display: grid; gap: .35rem; margin-top: .5rem; padding: 1rem 1.1rem; background: var(--accent-soft); border-radius: 8px; max-width: 44ch; }
  .giant--step { right: .5rem; top: .15em; font-size: clamp(5rem, 11vw, 10rem); }
  .prail { position: absolute; z-index: 0; }
  .prail__line { position: absolute; inset: 0; background: var(--line); }
  .prail__dot { position: absolute; width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
  .stage__glow { display: none; position: absolute; width: 800px; height: 800px; top: 50%; left: 0; translate: -50% -50%; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); opacity: .35; pointer-events: none; }
  .stage__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
  .stage__count { display: none; font-size: var(--t-h3); color: var(--ink); letter-spacing: .04em; }
  .stage__count [data-count] { color: var(--accent); }
  .stage__caption { color: var(--ink-2); max-width: 60ch; }
  /* вертикальная стопка: телефон, планшет, tier B, kiosk, iPad, reduced-motion */
  .prail { left: calc(var(--gutter-l) - 1.5rem); top: 0; bottom: 0; width: 1px; }
  .prail__dot { left: -4.5px; top: 0; }
  .track { padding-inline: var(--gutter-l) var(--gutter); }
  .pcard { --card-top: calc(var(--header-h) + 1rem + var(--i, 0) * .5rem); }
  .pcard:nth-child(1) { --i: 0; } .pcard:nth-child(2) { --i: 1; } .pcard:nth-child(3) { --i: 2; } .pcard:nth-child(4) { --i: 3; } .pcard:nth-child(5) { --i: 4; }
  @media (max-width: 63.99rem) {
    .prail { display: none; }
    .giant--step { font-size: 22vw; right: .25rem; top: .05em; }
  }
  @media (min-width: 64rem) {
    .stage__head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .stage__head .section__kicker { grid-column: 1; grid-row: 1 / span 2; justify-self: start; align-self: start; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin-top: .2em; }
    .stage__h2 { grid-column: 2 / 11; }
    .stage__lead { grid-column: 7 / -1; }
    .track { padding-inline: var(--edge); }
    .prail { left: calc(var(--edge) - 2rem); }
    .pcard { position: sticky; top: var(--card-top); }
    html:not([data-pin]) .pcard { --card-top: calc(var(--header-h) + 1rem + var(--i, 0) * 1.25rem); box-shadow: inset 0 0 0 1px var(--line), 0 -14px 30px -8px rgb(0 0 0 / .75); }
  }
  /* горизонтальная сцена: html[data-pin] ставит motion-boot.js (tier A, не kiosk, не iPad) — pin в js/motion-desktop.js */
  @media (min-width: 64rem) {
    html[data-pin] .process { padding-block: 0; }
    /* высота сцены — не меньше экрана, но следует содержимому: ни у сцены, ни у карточек фиксированной высоты нет, текст никогда не режется (pin в motion-desktop.js пересчитывается по ResizeObserver) */
    html[data-pin] .stage { min-height: 100vh; min-height: 100svh; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 1rem); padding-bottom: calc(1rem + var(--cover-r)); overflow: clip; }
    html[data-pin] .stage__head { align-items: end; gap: .75rem var(--gap); }
    html[data-pin] .stage__head .section__kicker { grid-column: 1 / -1; grid-row: auto; writing-mode: horizontal-tb; transform: none; margin: 0; }
    /* сцена должна уместиться в экран целиком вместе с самой высокой карточкой (RU/DE): H2 в две строки, а не в три */
    html[data-pin] .stage__h2 { grid-column: 1 / span 8; font-size: clamp(2rem, .75rem + 2.6vw, 3.25rem); max-width: 30ch; }
    html[data-pin] .stage__lead { grid-column: 9 / -1; margin: 0; }
    html[data-pin] .stage__body { align-self: center; margin-top: 0; padding-top: 1.75rem; }
    html[data-pin] .track { display: flex; gap: 3vw; width: max-content; padding-inline: var(--edge) var(--gutter); }
    html[data-pin] .pcard { position: relative; top: auto; flex: none; width: clamp(28rem, 38vw, 34rem); min-height: clamp(18rem, 46vh, 26rem); padding: 1.5rem 1.75rem; grid-template-rows: auto 1fr auto; } /* flex-лента растягивает все карточки до самой высокой */
    html[data-pin] .pcard h3 { font-size: calc(var(--t-h3) * .9); padding-inline-end: 20%; }
    html[data-pin] .pcard__result { padding: .85rem 1rem; font-size: 1rem; }
    html[data-pin] .pcard::before { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; translate: 0 calc(-1.75rem - 5px); background: var(--line); transition: background-color .3s, scale .3s var(--ease-out); }
    html[data-pin] .pcard { overflow: visible; }
    html[data-pin] .pcard.is-active::before { background: var(--accent); scale: 1.6; }
    html[data-pin] .pcard__text { max-width: min(44ch, 80%); font-size: 1.0625rem; line-height: 1.5; }
    html[data-pin] .pcard:not(.is-active) { opacity: .55; }
    html[data-pin] .pcard.is-ready { transition: opacity .4s var(--ease); }   /* после входа GSAP: CSS-переход не спорит с твином появления */
    html[data-pin] .prail { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
    html[data-pin] .prail__dot { left: var(--edge); top: -4.5px; margin-left: -5px; }
    html[data-pin] .stage__glow { display: block; left: var(--edge); top: 55%; }
    html[data-pin] .stage__foot { margin-top: 0; }
    html[data-pin] .stage__count { display: block; font-size: 1.75rem; }
    html[data-pin] .stage__caption { max-width: 48ch; text-align: right; }
  }
  /* низкие экраны (1366×768, 1024×768): сцена плотнее, чтобы карточки и счётчик были в кадре; если всё равно выше экрана — pin прижимает сцену низом (motion-desktop.js) */
  @media (min-width: 64rem) and (max-height: 50rem) {
    html[data-pin] .stage { padding-top: calc(var(--header-h) + .5rem); padding-bottom: calc(.75rem + var(--cover-r)); }
    html[data-pin] .stage__body { padding-top: 1.25rem; }
    html[data-pin] .pcard::before { translate: 0 calc(-1.25rem - 5px); }
    html[data-pin] .stage__caption { max-width: 64ch; }
    html[data-pin] .stage__h2 { font-size: clamp(1.75rem, .5rem + 2vw, 2.5rem); }
    html[data-pin] .stage__lead { font-size: var(--t-s); }
    html[data-pin] .pcard { min-height: 16rem; padding: 1.25rem 1.5rem; }
    html[data-pin] .pcard h3 { font-size: calc(var(--t-h3) * .8); }
    html[data-pin] .pcard__text { font-size: var(--t-s); }
    html[data-pin] .pcard__result { padding: .7rem .9rem; font-size: var(--t-s); }
    html[data-pin] .stage__count { font-size: 1.4rem; }
  }

  /* компетенции: три панели */
  .panels { grid-column: 1 / -1; position: relative; display: grid; margin-top: clamp(1.5rem, 4vw, 3rem); }
  .panels__lines { display: none; }
  .stack__caption { grid-column: 1 / -1; justify-self: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); color: var(--ink-2); max-width: 44ch; text-align: right; }
  @media (min-width: 40rem) {
    .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
    .panel:nth-of-type(3) { grid-column: 1 / -1; }
  }
  @media (min-width: 52rem) {
    .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .panel:nth-of-type(3) { grid-column: auto; }
    .panels__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .panels__lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
    .panel { padding-inline: clamp(1.25rem, 2.5vw, 2.25rem); padding-bottom: 1rem; }
  }

  /* почему мы: полосы во всю ширину */
  .reasons { list-style: none; counter-reset: reason; border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); }
  .reason { counter-increment: reason; position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: clip; }
  .reason__grid { position: relative; display: grid; gap: var(--gap); padding-block: clamp(2rem, 4vw, 3rem); min-height: 34vh; align-content: center; }
  .reason__grid > * { min-width: 0; }
  .giant--reason { position: relative; align-self: center; }
  .reason__body { display: grid; gap: .75rem; max-width: 58ch; }
  .reason__body h3 { font-size: calc(var(--t-h2) * .7); line-height: 1.02; letter-spacing: -.028em; }
  @media (min-width: 40rem) {
    .reason__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .giant--reason { grid-column: 1 / span 3; }
    .reason__body { grid-column: 4 / -1; }
  }
  @media (max-width: 39.99rem) {
    .giant--reason { position: absolute; right: .25rem; top: .1em; }
    .reason__grid { padding-top: 3.5rem; min-height: 0; } .reason__body h3 { padding-inline-end: 3.75rem; }
  }
  .why-not { padding-block: clamp(5rem, 10vw, 9rem); }
  .why-not__grid { display: grid; gap: var(--gap); }
  .why-not__grid > * { min-width: 0; }
  .why-not__h { font-size: var(--t-h2); font-weight: 800; line-height: .98; letter-spacing: -.03em; max-width: 12ch; }
  .quote { margin-top: 2rem; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--on-accent-band); display: grid; gap: .75rem; max-width: 58ch; }
  .quote blockquote { font-size: var(--t-lead); line-height: 1.4; }
  @media (min-width: 64rem) {
    .why-not__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .why-not__h { grid-column: 1 / span 5; }
    .why-not__list, .quote { grid-column: 6 / -1; }
  }

  /* контакты */
  .contacts__h2 { font-size: calc(var(--t-h2) * 1.1); max-width: 14ch; }
  .contacts__lead { max-width: 48ch; }
  .contacts__grid { grid-column: 1 / -1; display: grid; gap: clamp(2rem, 4vw, 3rem) var(--gap); margin-top: clamp(1.5rem, 4vw, 3rem); }
  .contacts__grid > * { min-width: 0; }
  .requisites { grid-column: 1 / -1; margin-top: clamp(2rem, 5vw, 3.5rem); }
  @media (min-width: 52rem) {
    .contacts__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
    .contacts__channels { grid-column: span 5; }
    .lead-form { grid-column: 7 / -1; }
    .contacts__grid:not(:has(.lead-form[data-filled])) .contacts__channels { grid-column: span 8; }
  }
  @media (min-width: 64rem) { .contacts__grid, .requisites { grid-column: 2 / -1; } }

  /* футер: открывается из-под контактов */
  .site-footer { position: sticky; bottom: 0; z-index: 0; min-height: min(100vh, 46rem); min-height: min(100svh, 46rem); display: grid; align-content: space-between; padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; overflow: clip; border-bottom: 0; }
  @media (max-width: 63.99rem), (max-height: 49.99rem) { .site-footer { position: relative; min-height: 0; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); } }
  .site-footer > .container { position: relative; z-index: 1; display: grid; align-content: space-between; gap: clamp(2rem, 4vw, 3rem); min-height: 100%; }
  .site-footer > .container::before { content: ""; position: absolute; top: -1.5rem; left: var(--gutter-l); right: var(--gutter); height: 1px; background: var(--band-accent); }
  .site-footer > .container::after { content: ""; position: absolute; top: calc(-1.5rem - 3.5px); left: var(--gutter-l); width: 8px; height: 8px; background: var(--band-accent); }
  .footer__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); font-size: var(--t-s); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
  .footer__grid > * { min-width: 0; }
  @media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr minmax(15rem, 1.2fr); } } /* колонке инструментов не меньше 15rem — строка семи языков (≈ 14rem) остаётся одной строкой и на 64rem */
  .wordmark { position: relative; z-index: 0; font: 800 var(--t-word) / .85 var(--font-display); letter-spacing: -.04em; white-space: nowrap; margin-inline-start: -.04em; margin-block: -.2em; font-kerning: none; }   /* поля .2em у слоёв: «й», «р» целиком внутри клипа заливки; без кернинга слой, разбитый SplitText на буквы, совпадает с контуром */
  .wordmark::before { content: ""; position: absolute; z-index: -1; left: 30%; top: 50%; width: min(1000px, 150vw); height: min(1000px, 150vw); translate: -50% -50%; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); opacity: .35; pointer-events: none; }
  .wordmark__stroke { display: block; padding-block: .2em; color: transparent; -webkit-text-stroke: 1px var(--on-band); }
  @supports not (-webkit-text-stroke: 1px #000) { .wordmark__stroke { color: color-mix(in oklch, var(--on-band) 25%, transparent); } }
  .wordmark__fill { position: absolute; inset: 0; padding-block: .2em; color: var(--on-band); clip-path: inset(100% 0 0 0); }
  .wordmark__fill .wordmark__a { color: var(--band-accent); }
  @media (max-width: 39.99rem) { .wordmark { font-size: 22vw; line-height: 1.02; white-space: normal; } .wordmark__a, .wordmark__b { display: block; } }
  .motto { color: var(--ink-2); margin-top: 1rem; }
}

/* components */
@layer components {
  /* кнопки: прямоугольник со срезанным правым верхним углом (корпус микросхемы) */
  .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .75em; min-height: 56px; padding: 0 1.5rem; border-radius: 4px; border: 0; font: 700 var(--t-base) / 1 var(--font-display); letter-spacing: -.01em; text-decoration: none; hyphens: manual; color: var(--ink); background: transparent; cursor: pointer; transition: background-color var(--d-state) var(--ease), color var(--d-state) var(--ease), border-color var(--d-state) var(--ease); }
  @supports (corner-shape: bevel) { .btn { border-radius: 4px 14px 4px 4px; corner-shape: round bevel round round; } }
  @media (max-width: 22.5rem) { .btn { padding-inline: 1rem; gap: .5em; } }
  .btn--primary { background: var(--accent); color: var(--on-accent); }
  .btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
  .btn--ghost { border: 1px solid currentColor; color: var(--ink); }
  .btn--ghost:hover { color: var(--accent); }
  .btn--small { min-height: 2.25rem; padding: 0 .9rem; font-size: var(--t-s); border: 1px solid var(--line-strong); }
  .btn--small:hover { border-color: var(--accent); color: var(--accent); }
  .btn--header { min-height: 44px; padding: 0 1.1rem; font-size: var(--t-s); }
  .btn--submit { width: 100%; min-height: 64px; justify-content: space-between; font-size: calc(var(--t-h3) * .9); padding-inline: 1.5rem; }
  .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
  .btn__arrow { position: relative; overflow: hidden; width: 1em; height: 1em; flex: none; }
  .btn__arrow::before, .btn__arrow::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; transition: translate .3s var(--ease-out); }
  .btn__arrow::after { translate: -100% 0; }
  .btn:hover .btn__arrow::before { translate: 100% 0; }
  .btn:hover .btn__arrow::after { translate: 0 0; }
  .icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); transition: background-color var(--d-state) var(--ease), color var(--d-state) var(--ease); }
  .icon-btn:hover { background: var(--accent-12); color: var(--accent); }
  .icon-btn--sq { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; }

  /* шапка */
  .logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 800 1.5rem / 1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
  .logo:hover { color: var(--ink); }
  .logo .mark { width: 24px; height: 24px; flex: none; }
  .logo__word { display: block; max-width: 12em; overflow: hidden; transition: max-width .25s var(--ease), opacity .25s var(--ease); }
  .is-compact .logo__word { max-width: 0; opacity: 0; }
  .on-dark .mark__trace, .on-dark .mark__pad { stroke: var(--band-accent); fill: var(--band-accent); }
  .on-dark .mark__trace { fill: none; }
  .on-blue .mark__trace { stroke: #fff; fill: none; } .on-blue .mark__pad { fill: #fff; }
  .site-nav { margin-inline: auto; display: none; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: clamp(.75rem, 1.4vw, 1.5rem); list-style: none; }
  .site-nav a, .footer__nav a, .menu__list a { color: var(--ink); text-decoration: none; }
  .site-nav a { display: inline-block; padding: .35rem 0; font: 500 var(--t-s) / 1.2 var(--font-text); white-space: nowrap; background: linear-gradient(var(--accent), var(--accent)) no-repeat left calc(100% - .1rem) / var(--u, 0%) 1px; transition: --u var(--d-state) var(--ease), color var(--d-state) var(--ease); }
  .site-nav a:hover, .site-nav a[aria-current] { --u: 100%; color: var(--accent); }
  .site-header__tools { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(.5rem, 1.2vw, 1rem); }
  .site-header__cta { display: none; }
  .menu-btn { min-height: 44px; padding: 0 1rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; font: 700 var(--t-s) / 1.2 var(--font-display); }
  @supports (corner-shape: bevel) { .menu-btn { border-radius: 4px 12px 4px 4px; corner-shape: round bevel round round; } }
  .menu-btn:hover { color: var(--accent); }
  .site-header .lang--pop { display: none; }
  @media (min-width: 40rem) { .site-header .lang--pop { display: block; } }
  @media (min-width: 64rem) { .site-nav { display: block; } .site-header__cta { display: inline-flex; } .menu-btn { display: none; } }
  /* семь пунктов на узком десктопе (64–80rem): шаг плотнее */
  @media (min-width: 64rem) and (max-width: 79.99rem) { .site-nav ul { gap: clamp(.6rem, 1.1vw, 1rem); } }
  /* шапка подстраивается под длину пунктов на любом языке (js/nav.js → initHeaderFit): меню никогда не переносится на вторую строку.
     Не помещается — сначала убираем кнопку «Обсудить задачу» и словознак (hdr-nocta), всё равно тесно — сворачиваем меню в «Меню» (hdr-menu). */
  @media (min-width: 64rem) {
    .site-nav { min-width: 0; overflow-x: clip; }
    .site-nav ul { flex-wrap: nowrap; }
    html.hdr-nocta .site-header__cta { display: none; }
    html.hdr-nocta .logo__word { max-width: 0; opacity: 0; }
    html.hdr-menu .site-nav { display: none; }
    html.hdr-menu .menu-btn { display: inline-flex; align-items: center; }
    html.hdr-menu .site-header__cta { display: inline-flex; }
    html.hdr-measuring .logo__word { transition: none; }
    html.hdr-measuring:not(.hdr-nocta) .logo__word { max-width: 12em; opacity: 1; }
  }
  /* переключатель языка (семь версий, разметку собирает build-pages): шапка — <details> с кнопкой «RU ⌄» и списком родных названий
     (Esc / клик снаружи — nav.js), мобильное меню — чипы, футер и 404 — строка коротких меток. Текущий язык — aria-current + синий квадрат. */
  .lang { letter-spacing: .04em; }
  .lang a { color: var(--accent); text-decoration: none; }
  .lang--pop { position: relative; }
  .lang__btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.25rem; padding: .3rem .45rem; border-radius: var(--r-s); color: var(--accent); transition: background-color var(--d-state) var(--ease), color var(--d-state) var(--ease); }
  .lang__btn:hover, .lang--pop[open] .lang__btn { background: var(--accent-12); }
  .lang__chev { flex: none; transition: rotate var(--d-state) var(--ease); }
  .lang--pop[open] .lang__chev { rotate: 180deg; }
  .lang__list { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 5; min-width: 11.5rem; padding: .35rem; list-style: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 16px 40px -16px var(--backdrop); }
  @supports (corner-shape: bevel) { .lang__list { border-radius: 4px 12px 4px 4px; corner-shape: round bevel round round; } }
  .lang__list a, .lang__grid a { display: flex; align-items: center; gap: .6rem; white-space: nowrap; color: var(--ink); transition: background-color var(--d-state) var(--ease), color var(--d-state) var(--ease), border-color var(--d-state) var(--ease); }
  .lang__list a::before, .lang__grid a::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--accent); opacity: 0; transition: opacity var(--d-state) var(--ease); }
  .lang__list a { padding: .45rem .6rem; border-radius: var(--r-s); }
  .lang__list a:hover { background: var(--accent-12); color: var(--accent); }
  .lang__list a[aria-current], .lang__grid a[aria-current] { color: var(--accent); }
  .lang__list a[aria-current]::before, .lang__grid a[aria-current]::before { opacity: 1; }
  .lang__grid { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
  .lang__grid a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 4px; }
  .lang__grid a:hover { border-color: var(--accent); }
  .lang__grid a[aria-current] { border-color: var(--accent); background: var(--accent-12); }
  /* строка семи меток: одной строкой везде, где помещается (≥ 40rem — без переноса, мельче и плотнее); на телефоне — перенос */
  .lang--line { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; max-width: 100%; }
  .lang--line a { padding: .3rem .45rem; border-radius: var(--r-s); }
  @media (min-width: 40rem) { .lang--line { flex-wrap: nowrap; white-space: nowrap; gap: 0; font-size: var(--t-xs); } .lang--line a { padding: .3rem .35rem; } }
  .lang--line a:hover { background: var(--accent-12); }
  .lang--line a[aria-current] { color: var(--ink); cursor: default; }
  .lang--line a[aria-current]:hover { background: transparent; }
  .theme { color: var(--ink); }

  /* шина-разделитель, чипы, details */
  .chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
  .chip { font: 400 var(--t-s) / 1.4 var(--font-mono); padding: 0; background: none; border: 0; hyphens: manual; }
  .chip::before { content: "[ "; } .chip::after { content: " ]"; }
  .chip::before, .chip::after { color: var(--accent); }
  .okved summary, .requisites summary, .panel__title { display: inline-flex; align-items: center; gap: .55rem; width: max-content; max-width: 100%; }
  .okved summary { color: var(--accent); font: 400 var(--t-s) / 1.4 var(--font-mono); }
  .okved summary::before, .requisites summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; font: 500 1.1em / 1 var(--font-mono); transition: rotate var(--d-state) var(--ease); }
  .okved[open] summary::before, .requisites[open] summary::before { rotate: 45deg; }
  .okved .t-open, .okved[open] .t-closed { display: none; }
  .okved[open] .t-open { display: inline; }
  .okved p { margin-top: .75rem; color: var(--ink-2); font-size: var(--t-xs); overflow-wrap: anywhere; }

  /* плитки направлений */
  .tile { container: tile / inline-size; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.5rem, 5cqi, 2.5rem); background: var(--bg-2); border-radius: 16px; overflow: clip; transition: box-shadow var(--d-state) var(--ease); }
  @supports (corner-shape: bevel) { .tile, .pcard { border-radius: 16px 20px 16px 16px; corner-shape: round bevel round round; } }
  .tile::before { content: var(--tile-n, ""); position: absolute; z-index: 0; top: .25em; right: .35em; font: 800 clamp(3.5rem, 8cqi, 6rem) / 1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--accent-55); pointer-events: none; transition: translate var(--d-state) var(--ease); }
  @supports not (-webkit-text-stroke: 1px #000) { .tile::before { color: var(--accent-12); } }
  .tile:hover::before { translate: -4px -4px; }
  .tile > * { position: relative; z-index: 1; }
  .tile__coord::before { content: var(--tile-n, "") " / 04"; letter-spacing: .1em; }
  /* номера плиток — явно: счётчик внутри контейнера (.tile) Safari обнуляет (style containment) */
  .tile--1 { --tile-n: "01"; } .tile--2 { --tile-n: "02"; } .tile--3 { --tile-n: "03"; } .tile--4 { --tile-n: "04"; }
  .tile__coord { color: var(--ink-2); font-size: var(--t-xs); }
  .tile h3 { font-size: min(calc(var(--t-h3) * 1.15), 9cqi); padding-inline-end: 2.2em; margin-top: .25rem; }
  @container tile (max-width: 30rem) { .tile h3 { padding-inline-end: 0; margin-top: .75rem; } }
  .tile__sub { color: var(--ink-2); font-weight: 500; }
  .tile__text { max-width: 52ch; }
  .tile > .label { margin-top: .6rem; }
  .tile__result { display: grid; gap: .35rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
  .tile__result p:last-child { max-width: 52ch; }
  .okved { margin-top: .25rem; }
  .tile:hover, .tile:focus-within { box-shadow: 0 1px 0 var(--shadow-1), 0 24px 40px -24px var(--accent-35); }
  .tile--1 { background: var(--tile-accent); color: var(--tile-on); --ink: var(--tile-on); --ink-2: rgb(255 255 255 / .82); --line: rgb(255 255 255 / .3); --accent: var(--tile-on); --accent-12: rgb(255 255 255 / .12); --accent-55: rgb(255 255 255 / .6); --accent-35: rgb(0 0 0 / .3); --focus: var(--tile-on); }
  [data-theme="dark"] .tile--1, :root:not([data-theme="light"]) .tile--1 { --ink-2: rgb(7 10 18 / .78); --line: rgb(7 10 18 / .25); --accent-55: rgb(7 10 18 / .45); }
  .tile--3 { --t-bg: var(--tile-ink); --t-ink: var(--tile-bg); --t-ink2: #B8C0D2; --t-line: #262E40; --t-accent: var(--band-accent); background: var(--t-bg); color: var(--t-ink); --ink: var(--t-ink); --ink-2: var(--t-ink2); --line: var(--t-line); --accent: var(--t-accent); --accent-12: rgb(91 132 255 / .14); --accent-55: rgb(91 132 255 / .6); --focus: var(--t-ink); }
  /* тёмная тема: плитка 3 — тёмная карточка с рамкой (инверсия — только в светлой); цвета — родительские (inherit) */
  [data-theme="dark"] .tile--3 { --ink: inherit; --ink-2: inherit; --line: inherit; --accent: inherit; --accent-12: inherit; --accent-55: inherit; --focus: inherit; background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile--3 { --ink: inherit; --ink-2: inherit; --line: inherit; --accent: inherit; --accent-12: inherit; --accent-55: inherit; --focus: inherit; background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } }
  [data-theme="dark"] .tile--3:is(:hover, :focus-within) { box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--shadow-1), 0 24px 40px -24px var(--accent-35); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile--3:is(:hover, :focus-within) { box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--shadow-1), 0 24px 40px -24px var(--accent-35); } }
  .tile--4 { background: radial-gradient(400px circle at calc(100% + 60px) calc(100% + 60px), color-mix(in oklch, var(--accent) 18%, transparent), transparent 70%) no-repeat, var(--bg-2); }

  /* станки и роботы: карточки шагов поставки */
  .istep { counter-increment: istep; position: relative; display: grid; gap: .6rem; align-content: start; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--bg-2); border-radius: 16px; overflow: clip; }
  @supports (corner-shape: bevel) { .istep { border-radius: 16px 20px 16px 16px; corner-shape: round bevel round round; } }
  .istep::before { content: counter(istep, decimal-leading-zero); font: 400 var(--t-xs) / 1 var(--font-mono); letter-spacing: .1em; color: var(--accent); }
  .istep h3 { font-size: calc(var(--t-h3) * .82); max-width: 18ch; }
  .istep > p { color: var(--ink); }
  .istep__result { display: grid; gap: .3rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); font-size: var(--t-s); }

  /* компетенции */
  .panel__title { position: relative; display: block; width: auto; padding-block: 1.25rem 2.75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); transition: color var(--d-state); }
  .panel__title::before { content: "A"; position: absolute; left: -.05em; top: -.05em; z-index: -1; font: 800 6rem / 1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); pointer-events: none; }
  .panel:nth-of-type(2) .panel__title::before { content: "B"; }
  .panel:nth-of-type(3) .panel__title::before { content: "C"; }
  .panel { position: relative; isolation: isolate; }
  .panel:has(li:hover) .panel__title { color: var(--accent); }
  .panel__list { list-style: none; }
  .panel__list li { position: relative; padding: 1rem 0 1rem 2.4rem; border-top: 1px solid var(--line); transition: background-color var(--d-state) var(--ease); }
  .panel__list li::before { content: ""; position: absolute; left: 0; top: calc(1rem + .78em); width: 24px; height: 1px; background: var(--accent); transform-origin: left; scale: 0 1; transition: scale var(--d-state) var(--ease); }
  .panel__list li::after { content: ""; position: absolute; left: 22px; top: calc(1rem + .78em - 3px); width: 7px; height: 7px; background: var(--accent); opacity: 0; transition: opacity var(--d-state) var(--ease); }
  .panel__list li:hover { background: var(--bg); }
  .panel__list li:hover::before { scale: 1 1; }
  .panel__list li:hover::after { opacity: 1; }
  @media (min-width: 40rem) { .panel > summary { pointer-events: none; } .panel::details-content { content-visibility: visible; display: block; height: auto; } }
  @media (max-width: 39.99rem) {
    .panel { border-top: 1px solid var(--line); }
    .panel__title { padding-block: 1rem; cursor: pointer; }
    .panel__title::before { font-size: 3rem; left: auto; right: 2.5rem; top: .15rem; }
    .panel__title { padding-inline-end: 6rem; }
    .panel:last-of-type { border-bottom: 1px solid var(--line); }
    .panel__title::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 500 1.4rem / 1 var(--font-mono); color: var(--accent); transition: rotate var(--d-state) var(--ease); }
    .panel[open] .panel__title::after { rotate: 45deg; }
    .panel__list { padding-bottom: 1rem; }
  }

  /* почему мы: синий wipe */
  .reason::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform-origin: right; scale: 0 1; transition: scale .45s var(--ease); }
  @media (pointer: fine) {
    .reason:hover::before { transform-origin: left; scale: 1 1; }
    .reason:hover { color: var(--on-accent); --ink: var(--on-accent); --ink-2: var(--on-accent); }
    .reason:hover .giant__stroke { -webkit-text-stroke-color: var(--on-accent); }
    .reason:hover .giant__fill { color: var(--on-accent); clip-path: inset(0 0 0 0) !important; }
    .reason:hover .giant__stroke { color: transparent; }
    .reason .reason__body { transition: color .3s var(--ease); }
  }
  .why-not__list { list-style: none; border-top: 1px solid var(--line); }
  .why-not__list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); font: 700 var(--t-h3) / 1.15 var(--font-display); letter-spacing: -.02em; }
  .x { margin-top: .5em; overflow: visible; }
  .x line { stroke: currentColor; stroke-width: 1.5; }
  .quote figcaption { color: var(--ink-2); }

  /* контакты */
  .contacts__list { display: grid; }
  .contacts__row { display: grid; gap: .35rem; padding-block: 1rem; border-top: 1px solid var(--line); }
  .contacts__row:last-child { border-bottom: 1px solid var(--line); }
  .contacts__row dt { color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-size: var(--t-xs); }
  .contacts__row dd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font: 700 var(--t-h3) / 1.15 var(--font-display); letter-spacing: -.02em; }
  .contacts__row dd > span { overflow-wrap: anywhere; }
  .contacts__acts { display: inline-flex; flex: none; align-items: center; gap: .5rem; }   /* «Написать» и «скопировать» — всегда в одной строке */
  .messengers { gap: .5rem; }
  .messengers a { font: 500 var(--t-base) / 1.4 var(--font-text); }
  .contacts__save { margin-top: var(--space-3); }
  .placeholder-card { display: grid; gap: .75rem; max-width: 40rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px dashed var(--accent-55); border-radius: var(--r-s); }
  .placeholder-card p { color: var(--ink-2); }
  .lead-form { display: grid; gap: 1.75rem; align-content: start; }
  .field, .form__note, .form__summary { width: 100%; }
  .field { display: grid; gap: .3rem; }
  .field > label { color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-size: var(--t-xs); }
  .field input:not([type="checkbox"]), .field textarea { width: 100%; padding: .75rem 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / var(--fw, 0%) 2px; color: var(--ink); font-size: var(--t-lead); transition: background-size .25s var(--ease), border-color var(--d-state); }
  .field input:hover, .field textarea:hover { border-color: var(--ink); }
  .field input:focus-visible, .field textarea:focus-visible { outline: none; --fw: 100%; }
  /* тема заявки: нативный select в стиле полей (подчёркивание), шеврон — двумя градиентами цвета --ink-2; 16px+ — iOS не зумит */
  .field select { width: 100%; padding: .75rem 1.75rem .75rem 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%) no-repeat calc(100% - 10px) 55% / 6px 6px, linear-gradient(135deg, var(--ink-2) 50%, transparent 50%) no-repeat calc(100% - 4px) 55% / 6px 6px; color: var(--ink); font: inherit; font-size: max(1rem, var(--t-lead)); text-overflow: ellipsis; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color var(--d-state); }
  .field select:hover { border-color: var(--ink); }
  .field select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
  .field select option { color: initial; background: initial; }
  /* ловушка для ботов: поле есть в форме, но человеку не видно и не доступно с клавиатуры */
  .field--hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .field textarea { field-sizing: content; min-height: 4lh; max-height: 16lh; resize: vertical; }
  .field :user-invalid { border-color: var(--accent); }
  .field__error { display: none; color: var(--accent); font-size: var(--t-s); opacity: 0; transition: opacity var(--d-state) var(--ease); }
  .field__error::before { content: "i"; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: .45em; border: 1px solid currentColor; border-radius: 50%; font: 700 .75em / 1 var(--font-mono); vertical-align: .1em; }
  .field:has(:user-invalid) .field__error { display: block; opacity: 1; }
  .field--check { gap: .5rem; }
  .check { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: .75rem; font-size: var(--t-s); cursor: pointer; }
  .check input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
  .check__box { display: grid; place-items: center; width: 20px; height: 20px; margin-top: .1rem; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--on-accent); transition: background-color var(--d-state), border-color var(--d-state); }
  @supports (corner-shape: bevel) { .check__box { border-radius: 2px 7px 2px 2px; corner-shape: round bevel round round; } }
  .check__box svg { opacity: 0; transition: opacity var(--d-state); }
  .check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
  .check input:checked + .check__box svg { opacity: 1; }
  .check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 3px; }
  .check input:user-invalid + .check__box { border-color: var(--accent); }
  .check__link { font-size: var(--t-s); margin-inline-start: calc(20px + .75rem); }
  .form__summary { display: none; color: var(--accent); font-weight: 500; }
  form:has(:user-invalid) .form__summary { display: block; }
  .form__note { color: var(--ink-2); font-size: var(--t-xs); }
  .requisites summary { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
  .requisites__body { display: grid; gap: .35rem; margin-top: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }

  /* футер */
  .footer__brand { display: grid; gap: .75rem; }
  .footer__logo { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; max-width: 30ch; }
  .footer__logo .mark { width: 28px; height: 28px; flex: none; }
  .footer__nav ul, .legal__links { list-style: none; display: grid; gap: .5rem; counter-reset: fnav; }
  .footer__nav li { counter-increment: fnav; }
  .footer__nav li::before { content: counter(fnav, decimal-leading-zero) " "; font: 400 var(--t-xs) / 1 var(--font-mono); color: var(--accent); letter-spacing: .08em; }
  .footer__nav a { font-weight: 500; }
  .footer__nav a:hover { color: var(--accent); }
  @media (pointer: coarse) {
    .footer__nav ul, .legal__links { gap: 0; }
    .footer__nav a, .legal__links a, .kiosk-link { display: inline-block; padding-block: .55rem; }
    .requisites summary { padding-block: .55rem; }
    .lang--line { flex-wrap: wrap; row-gap: 0; }
    .lang--line a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
    .okved summary { padding-block: .6rem; }
    .site-header .icon-btn { width: 44px; height: 44px; }
  }
  .legal { display: grid; gap: .75rem; color: var(--ink-2); }
  .footer__tools { display: grid; gap: 1rem; justify-items: start; }
  .theme-switch { display: flex; flex-wrap: wrap; gap: .35rem; }
  .theme-switch legend { width: 100%; margin-bottom: .5rem; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
  .theme-switch label { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 4px; font-size: var(--t-s); cursor: pointer; transition: border-color var(--d-state), color var(--d-state), background-color var(--d-state); }
  .theme-switch label:hover { border-color: var(--accent); }
  .theme-switch label:has(:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-12); }
  .theme-switch input { width: .9rem; height: .9rem; margin: 0; accent-color: var(--accent); }
  .kiosk-link { font-size: var(--t-s); }

  /* диалоги */
  .dialog { width: min(100% - 2rem, 32rem); max-height: min(100% - 2rem, 90svh); margin: auto; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); color: var(--ink); }
  .dialog::backdrop { background: rgb(11 15 25 / .55); background: var(--backdrop); backdrop-filter: none; }
  .dialog h2 { font-size: var(--t-h3); margin-bottom: 1rem; }
  .dialog p { max-width: 62ch; }
  .dialog__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
  .dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
  .dialog__head h2 { margin: 0; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-size: var(--t-s); }
  .dialog--menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 1rem var(--gutter) 2rem; grid-template-rows: auto 1fr auto; --bg: var(--band); --ink: var(--on-band); --ink-2: #B8C0D2; --line: #262E40; --accent: var(--band-accent); --on-accent: #070A12; --accent-12: rgb(91 132 255 / .12); background: var(--band); color: var(--on-band); color-scheme: dark; }
  .dialog--menu[open] { display: grid; }
  .dialog--menu { height: 100dvh; overscroll-behavior: contain; --line-strong: rgb(242 244 248 / .3); --focus: var(--on-band); }
  .dialog--menu > .dialog__head { position: sticky; top: 0; z-index: 1; background: var(--bg); }
  .menu__list { list-style: none; display: grid; counter-reset: menu; align-content: center; }
  .menu__list li { counter-increment: menu; }
  .menu__list a { display: flex; align-items: baseline; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); font: 700 2rem / 1.1 var(--font-display); letter-spacing: -.02em; color: var(--on-band); }
  .menu__list a::before { content: counter(menu, decimal-leading-zero); font: 400 var(--t-s) / 1 var(--font-mono); color: var(--accent); }
  .menu__list a:hover { color: var(--accent); }
  .menu__foot { display: grid; gap: 1.25rem; justify-items: start; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  @media (max-height: 56rem) { .menu__list a { font-size: 1.5rem; padding-block: .55rem; } .menu__foot { gap: .9rem; margin-top: .75rem; padding-top: .75rem; } }   /* после базовых правил — иначе их не перебить */

  /* toast, оверлей стенда, служебные страницы */
  .toast { position: fixed; inset: auto auto 1.25rem 50%; margin: 0; padding: .7rem 1.1rem; max-width: min(100% - 2rem, 32rem); border: 0; border-radius: 4px; background: var(--ink); color: var(--bg); translate: -50% 0; }
  @supports not selector(:popover-open) { .toast { display: none; } .toast.is-open { display: block; } }
  .kiosk-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: var(--backdrop); }
  .kiosk-overlay__card { display: grid; gap: 1rem; justify-items: center; max-width: 32rem; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); }
  .kiosk-overlay__card h2 { font-size: var(--t-h3); }
  .service-page { background: var(--bg); }
  .service { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: clamp(2rem, 6vw, 4rem); padding-block: clamp(3rem, 8vw, 6rem); }
  .service__logo { display: inline-flex; align-items: center; gap: 12px; font: 800 1.5rem / 1 var(--font-display); letter-spacing: -.01em; }
  .service__logo .mark { width: 24px; height: 24px; }
  .service__block { display: grid; gap: 1rem; justify-items: start; max-width: 44rem; }
  .service__block h1, .service__h { font-size: var(--t-h2); font-weight: 800; line-height: .98; letter-spacing: -.03em; }

  /* кастомный курсор (создаёт js/motion-desktop.js) */
  .cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .2s; }
  .cursor.is-shown { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); border-radius: 50%; }
  .cursor__ring { position: fixed; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 400 14px / 1 var(--font-mono); color: var(--ink); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background-color .25s, border-color .25s, border-style .25s; }
  .cursor.on-dark { --ink: var(--on-band); --accent: var(--band-accent); --accent-12: rgb(91 132 255 / .16); }
  .cursor.on-blue { --ink: #fff; --accent: #fff; --accent-12: rgb(255 255 255 / .16); }
  .cursor.is-link .cursor__ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: var(--accent-12); }
  .cursor.is-arrow .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--accent-12); }
  .cursor.is-arrow .cursor__ring::after { content: "↗"; }
  .cursor.is-probe .cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-style: dashed; }
  .cursor.is-grab .cursor__ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-style: dashed; }
  .cursor.is-grab .cursor__ring::after { content: "↔"; }
  .cursor.is-text { opacity: 0; }
  html[data-cursor] body, html[data-cursor] a, html[data-cursor] button, html[data-cursor] summary, html[data-cursor] label { cursor: none; }
  html[data-cursor] input, html[data-cursor] textarea, html[data-cursor] select, html[data-cursor] [contenteditable] { cursor: text; }
  html[data-cursor] select { cursor: pointer; }
  @media (forced-colors: active) { .cursor { display: none; } }
}

/* effects */
@layer effects {
  @property --u { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

  /* зерно: статично, поверх всего */
  .grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url(/assets/grain.svg) 0 0 / 128px 128px; opacity: .05; transform: translateZ(0); }
  @media (max-width: 64rem) { .grain { opacity: .04; } }

  /* интро «включение прибора»: линия → затвор → строки (CSS, без JS) */
  .boot { position: fixed; inset: 0; z-index: 100; pointer-events: none; animation: boot-hide 1ms linear 1.1s forwards; }
  .boot::before, .boot::after { content: ""; position: absolute; left: 0; right: 0; height: 50%; background: var(--band); animation: 550ms var(--ease-shutter) 550ms forwards; }
  .boot::before { top: 0; animation-name: shutter-up; }
  .boot::after { bottom: 0; animation-name: shutter-down; }
  .boot__line { position: absolute; left: 0; right: 0; top: 50%; z-index: 1; height: 1px; background: var(--band-accent); transform-origin: left; transform: scaleX(0); animation: boot-line 450ms var(--ease) forwards, boot-off 200ms linear 550ms forwards; }
  .boot__brand { position: absolute; left: var(--gutter-l); top: calc(50% - 1.6em); z-index: 1; color: var(--on-band); opacity: 0; text-transform: uppercase; letter-spacing: .12em; animation: boot-brand 200ms linear 150ms forwards, boot-off 200ms linear 550ms forwards; }
  @keyframes shutter-up { to { transform: translateY(-100%); } }
  @keyframes shutter-down { to { transform: translateY(100%); } }
  @keyframes boot-line { to { transform: scaleX(1); } }
  @keyframes boot-off { to { opacity: 0; } }
  @keyframes boot-brand { to { opacity: 1; } }
  @keyframes boot-hide { to { visibility: hidden; } }
  .hero__l, .hero__kicker, .hero__lead, .hero__cta { translate: 0 24px; animation: rise 600ms var(--ease) 600ms forwards; }
  .hero__l:nth-child(2) { animation-delay: 680ms; }
  .hero__l:nth-child(3) { animation-delay: 760ms; }
  .hero__kicker { animation-delay: 700ms; }
  .hero__lead { animation-delay: 850ms; }
  .hero__cta { animation-delay: 1000ms; }
  @keyframes rise { to { translate: 0 0; } }
  .hero__l--ign { animation: rise 600ms var(--ease) 760ms forwards, ignite-word 350ms var(--ease) 1.1s forwards; }
  @keyframes ignite-word { to { color: var(--accent); -webkit-text-stroke-color: var(--accent); } }
  .hero__svg { mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-size: 220% 100%; mask-position: 100% 0; animation: sweep 900ms var(--ease) 550ms forwards; }
  @keyframes sweep { to { mask-position: 0 0; } }
  .hero__pulse { animation: hero-pulse 4s linear infinite 1.2s; }
  @keyframes hero-pulse { from { translate: 0 -40vh; opacity: 0; } 20% { opacity: 1; } to { translate: 0 30vh; opacity: 0; } }
  @keyframes hint { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
  @keyframes ticker { to { translate: -100% 0; } }
  /* GSAP перехватывает интро (только если успел до 600 мс): CSS-строки выключаются, opacity никогда не 0 */
  html.gsap-intro .hero__l, html.gsap-intro .hero__kicker, html.gsap-intro .hero__lead, html.gsap-intro .hero__cta { animation: none; translate: none; }
  html.gsap-intro .hero__l--ign { transition: color .35s var(--ease), -webkit-text-stroke-color .35s var(--ease); }

  /* диалоги, popover, тема */
  .dialog { opacity: 0; scale: .98; transition: opacity var(--d-dialog) var(--ease), scale var(--d-dialog) var(--ease), display var(--d-dialog) allow-discrete, overlay var(--d-dialog) allow-discrete; }
  .dialog[open] { opacity: 1; scale: 1; }
  @starting-style { .dialog[open] { opacity: 0; scale: .98; } }
  .dialog::backdrop { opacity: 0; transition: opacity var(--d-dialog) var(--ease), display var(--d-dialog) allow-discrete, overlay var(--d-dialog) allow-discrete; }
  .dialog[open]::backdrop { opacity: 1; }
  @starting-style { .dialog[open]::backdrop { opacity: 0; } }
  .menu__list li { opacity: 1; translate: 0 0; transition: opacity .4s var(--ease) calc(var(--i, 0) * 50ms), translate .4s var(--ease) calc(var(--i, 0) * 50ms); }
  .menu__list li:nth-child(2) { --i: 1; } .menu__list li:nth-child(3) { --i: 2; } .menu__list li:nth-child(4) { --i: 3; } .menu__list li:nth-child(5) { --i: 4; } .menu__list li:nth-child(6) { --i: 5; } .menu__list li:nth-child(7) { --i: 6; }
  @starting-style { .dialog--menu[open] .menu__list li { opacity: 0; translate: 0 14px; } }
  .toast { opacity: 0; transition: opacity var(--d-state) var(--ease), translate var(--d-state) var(--ease), display var(--d-state) allow-discrete, overlay var(--d-state) allow-discrete; }
  .toast:popover-open, .toast.is-open { opacity: 1; translate: -50% 0; }
  @starting-style { .toast:popover-open { opacity: 0; translate: -50% 8px; } }
  .lang__list { opacity: 1; translate: 0 0; transition: opacity var(--d-state) var(--ease), translate var(--d-state) var(--ease); }
  @starting-style { .lang--pop[open] .lang__list { opacity: 0; translate: 0 -6px; } }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--d-theme); animation-timing-function: var(--ease); }

  /* spotlight под курсором (координаты ставит js/motion-desktop.js) */
  @media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    [data-spot]::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent-12), transparent 70%); transition: opacity var(--d-state) var(--ease); }
    [data-spot]:hover::after { opacity: 1; }
  }

  /* tier B / без JS: движение на CSS scroll-driven; при has-gsap выключено */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      html:not(.has-gsap) .giant__fill { animation: giant-fill both linear; animation-timeline: view(); animation-range: entry 0% entry 60%; }
      html:not(.has-gsap) .wordmark__fill { animation: giant-fill both linear; animation-timeline: view(); animation-range: entry 0% entry 90%; }
      html:not(.has-gsap) .trace__path { stroke-dasharray: 1; animation: draw forwards linear; animation-timeline: view(); animation-range: entry 0% cover 40%; }
      html:not(.has-gsap) .about__neuro { animation: ignite forwards linear; animation-timeline: view(); animation-range: entry 0% cover 40%; }
      html:not(.has-gsap) .tile { animation: tile-in forwards linear; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      html:not(.has-gsap) .thesis, html:not(.has-gsap) .prose p, html:not(.has-gsap) .panel, html:not(.has-gsap) .reason__body, html:not(.has-gsap) .why-not__list li, html:not(.has-gsap) .pcard, html:not(.has-gsap) .field, html:not(.has-gsap) .footer__grid > *, html:not(.has-gsap) .istep, html:not(.has-gsap) .showroom__cta, html:not(.has-gsap) .plist li, html:not(.has-gsap) .catalog__foot > * { animation: reveal forwards linear; animation-timeline: view(); animation-range: entry 0% entry 35%; }
      html:not(.has-gsap) .rail__fill { animation: railfill both linear; animation-timeline: scroll(root); }
      .rail-m { animation: railx both linear; animation-timeline: scroll(root); }
      html:not(.has-gsap) .stage__body { view-timeline-name: --process; }
      html:not(.has-gsap) .prail__dot { animation: dot-y both linear; animation-timeline: --process; animation-range: contain 0% contain 100%; }
      @media (min-width: 64rem) {
        html:not(.has-gsap):not([data-tier="a"]) .pcard, html[data-nopin] .pcard, html[data-kiosk] .pcard { animation: reveal forwards linear, shrink both linear; animation-timeline: view(), view(); animation-range: entry 0% entry 35%, exit 0% exit 100%; }
      }
    }
  }
  @keyframes reveal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
  @keyframes tile-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
  /* iPhone/iPad (тир b) на Safari < 26: animation-timeline нет, GSAP не грузится — заливка цифр и словознака оставалась
     спрятанной (виден только контур). Показываем её; js/main.js добавляет html.io-fill и проявляет по входу в экран. */
  @supports not (animation-timeline: view()) {
    html:not([data-tier="a"]) .giant__fill, html:not([data-tier="a"]) .wordmark__fill { clip-path: inset(0 0 0 0); }
    html.io-fill:not([data-tier="a"]) :is(.giant__fill, .wordmark__fill) { transition: clip-path 1.1s var(--ease); }
    html.io-fill:not([data-tier="a"]) :is(.giant, .wordmark):not(.is-in) > :is(.giant__fill, .wordmark__fill) { clip-path: inset(100% 0 0 0); }
    html:not([data-tier="a"]) .rail-m { display: none; }
  }
  html:not([data-tier="a"]) .trace__pad { scale: 1; }
  @keyframes giant-fill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes ignite { from { color: var(--accent-soft); } to { color: var(--accent); } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes railfill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes railx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes dot-y { from { top: 0; } to { top: calc(100% - 10px); } }
  @keyframes shrink { to { scale: .96; } }
  @keyframes busy-line { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
  html.has-gsap .reason::before { z-index: -1; }

  /* reduced motion: конечные состояния, ничего тяжёлого */
  @media (prefers-reduced-motion: reduce) {
    .boot { display: none; }
    .hero__l, .hero__kicker, .hero__lead, .hero__cta { translate: none; animation: none; }
    .hero__l--ign { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
    .hero__svg { mask-image: none; animation: none; }
    .hero__pulse, .hero__gl { display: none; }
    .showroom__cv, .showroom__hint, .showroom__cell > img { transition: none; }
    .ticker::before, .ticker::after { animation: none; }
    .scroll-hint__arrow { animation: none; }
    .giant__fill, .wordmark__fill { clip-path: inset(0 0 0 0); }
    .trace__path { stroke-dasharray: none; }
    .trace__pad { scale: 1; }
    .rail__fill, .rail__dot { display: none; }
    .rail-m { display: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    [data-spot]::after { display: none; }
  }
}

/* ============================================================ vendor (lenis.css 1.3) */
@layer vendor {
  html.lenis, html.lenis body { height: auto; }
  .lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
  .lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch], .lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
  .lenis.lenis-smooth iframe { pointer-events: none; }
  .lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }
}

/* i18n: шрифты и типографика семи языков (README «Языки»). Латиница и кириллица — из своих woff2 (Manrope / Golos / JetBrains Mono);
   иероглифы, кана и хангыль берутся из системных шрифтов (--cjk), вебшрифтов для них нет — CJK-подмножества весят мегабайты.
   Заголовки CJK на ≈ 15 % меньше (квадратные плотные знаки) и без отрицательного трекинга; переносы — line-break: strict,
   корейский не рвёт слова (keep-all). Немецкий переносится сам (hyphens: auto по lang="de"). */
@layer i18n {
  html[lang="zh-Hans"] { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC"; }
  html[lang="zh-Hant"] { --cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC"; }
  html[lang="ja"] { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP"; }
  html[lang="ko"] { --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR"; word-break: keep-all; }
  html[lang^="zh"], html[lang="ja"], html[lang="ko"] {
    --font-display: "Manrope", "Manrope Fallback", var(--cjk), system-ui, sans-serif;
    --font-text: "Golos Text", "Golos Fallback", var(--cjk), system-ui, sans-serif;
  }
  html[lang^="zh"], html[lang="ja"] {
    --font-display: "Manrope CJK", var(--cjk), system-ui, sans-serif;
    --font-text: "Golos CJK", var(--cjk), system-ui, sans-serif;
  }
  html[lang^="zh"], html[lang="ja"], html[lang="ko"] {
    --font-mono: "JetBrains Mono", "Mono Fallback", ui-monospace, Consolas, var(--cjk), monospace;
    --t-h1: clamp(2.6rem, min(.85rem + 9.8vw, 17svh), 9.75rem);
    --t-h2: clamp(1.9rem, .85rem + 3.75vw, 4.5rem);
    --t-word: clamp(3.4rem, 12vw, 12rem);
    hyphens: manual; line-break: strict;
  }
  @media (min-width: 64rem) and (max-width: 79.99rem) { :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) .hero { --t-h1: clamp(2.6rem, min(.85rem + 8.7vw, 17svh), 9.75rem); } }
  @media (min-width: 64rem) { :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"])[data-pin] .stage__h2 { font-size: clamp(1.7rem, .7rem + 2.3vw, 3rem); } }
  @media (min-width: 64rem) and (max-height: 50rem) { :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"])[data-pin] .stage__h2 { font-size: clamp(1.6rem, .5rem + 1.8vw, 2.3rem); } }
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) :is(p, li, h1, h2, h3) { hyphens: manual; }
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) :is(h1, h2, h3, .why-not__h, .reason__body h3, .thesis, .why-not__list li, .contacts__row dd, .menu__list a, .showroom__name, .showroom__spec dd, .btn, .logo, .service__h) { letter-spacing: 0; }
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) .hero__h1 { margin-inline-start: 0; }
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) .mono { overflow-wrap: anywhere; }
  /* мера заголовков секций: 16ch латиницы ≈ 9 квадратных знаков — слишком узко, CJK получает 20ch (≈ 11 знаков) */
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) .section__h2 { max-width: 20ch; }
  /* японский: заголовки переносятся по фразам (word-break: auto-phrase — Chrome ≥ 119, BudouX; остальные браузеры — как обычно),
     на телефоне H1 чуть меньше (катакана длинная: «ハードウェア。» — семь знаков), на широком экране вводка не поднимается
     к третьей строке H1 — длинное слово столкнулось бы с ней. Для zh/ko третья строка H1 — не длиннее четырёх знаков + знак препинания. */
  html[lang="ja"] :is(h1, h2, h3, .hero__l) { word-break: auto-phrase; }
  /* Safari не умеет auto-phrase: сборка ставит <wbr> между фразами (BudouX), keep-all — перенос только по ним */
  @supports not (word-break: auto-phrase) { html[lang="ja"] :is(h1, h2, h3, .hero__l) { word-break: keep-all; overflow-wrap: anywhere; } }
  html[lang^="zh"] :is(h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
  :is(html[lang^="zh"], html[lang="ja"]) .hero__kicker { word-break: keep-all; }
  :is(html[lang^="zh"], html[lang="ja"], html[lang="ko"]) :is(.kicker, .label) { letter-spacing: .02em; }
  @media (max-width: 39.99rem) { html[lang="ja"] { --t-h1: clamp(2.4rem, .6rem + 8.6vw, 9.75rem); } }
  @media (max-width: 24.99rem) { html[lang="ja"] { --t-h1: calc((100vw - 2.75rem) / 8.2); } }
  @media (min-width: 80rem) { html[lang="ja"] .hero__sub { grid-column: 1 / -1; display: flex; align-self: auto; margin-top: clamp(1rem, 2.5vh, 2rem); } }
  /* немецкий: составные слова в заголовках на телефоне переносятся с дефисом (иначе «Werkzeugmaschine|n»); семь пунктов меню на узком десктопе (64–80rem) чуть плотнее */
  @media (max-width: 39.99rem) { html[lang="de"] { --t-h2: clamp(2rem, 1rem + 4.4vw, 5.25rem); } } html[lang="de"] :is(h1, h2, h3) { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  @media (min-width: 64rem) and (max-width: 79.99rem) { html[lang="de"] .site-nav a { font-size: calc(var(--t-s) * .92); } html[lang="de"] .site-nav ul { gap: clamp(.5rem, .9vw, .85rem); } }
}

/* kiosk */
@layer kiosk {
  html[data-kiosk] { --scale: 1.25; --container: 120rem; scroll-snap-type: y proximity; scroll-padding-top: 0; }
  html[data-kiosk][data-theme="dark"] { --bg: #000; --bg: oklch(0% 0 0); --band: #000; }
  html[data-kiosk] section { scroll-snap-align: start; }
  html[data-kiosk] .site-header, html[data-kiosk] .site-footer, html[data-kiosk] .lead-form, html[data-kiosk] .contacts__save, html[data-kiosk] .scroll-hint, html[data-kiosk] .skip-link, html[data-kiosk] .rail, html[data-kiosk] .rail-m, html[data-kiosk] .cursor { display: none; }
  html[data-kiosk] .hero { min-height: 100vh; min-height: 100svh; padding-top: 0; }
  html[data-kiosk] .hero__stand-note { display: block; position: absolute; right: var(--gutter); bottom: 1rem; z-index: 3; max-width: 34ch; color: var(--ink-2); }
  html[data-kiosk] .band { border-block: 1px solid var(--line); }
  html[data-kiosk] .cover { margin-top: 0; border-radius: 0; }
  html[data-kiosk].is-idle, html[data-kiosk].is-idle * { cursor: none !important; }
}

/* draft */
@layer draft {
  .draft [data-fill]:not([data-filled]) { display: inline-block; min-width: 4em; padding: .15em .75em; border: 1px dashed var(--accent-55); border-radius: var(--r-s); color: var(--ink-2); font: 400 .85em / 1.4 var(--font-mono); letter-spacing: .02em; vertical-align: baseline; }
  .draft [data-fill]:not([data-filled])::before { content: "заполнить"; }
  html:not([lang^="ru"]).draft [data-fill]:not([data-filled])::before { content: "fill in"; }
  .draft [data-requires]:not([data-filled]) { outline: 1px dashed var(--accent-55); outline-offset: 4px; border-radius: var(--r-s); }
  .draft .hint { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-inline-start: .35rem; padding: 0; border: 1px dashed var(--accent-55); border-radius: 50%; background: transparent; color: var(--accent); font: 700 .7rem / 1 var(--font-mono); vertical-align: middle; }
  .draft .hint__pop { margin: auto; padding: .5rem .75rem; border: 1px dashed var(--accent-55); border-radius: var(--r-s); background: var(--bg); color: var(--ink-2); font: 400 var(--t-s) / 1.4 var(--font-mono); max-width: min(100% - 2rem, 32rem); }
  @supports not selector(:popover-open) { .hint { display: none !important; } }
}
