/*
 * Atelier Zero — canonical landing-page stylesheet.
 *
 * This file is the SINGLE SOURCE OF TRUTH for the open-design-landing
 * skill's visual system. It is consumed by:
 *
 *   1. `scripts/compose.ts` — inlined into the standalone HTML output.
 *   2. `apps/landing-page/app/globals.css` — copied verbatim for the
 *      Astro static deployable counterpart.
 *   3. `example.html` — the pre-rendered known-good demo.
 *
 * If you change tokens, layout, motion, or component styles, edit them
 * here. The `@import` at top loads the four Google fonts the system
 * requires (Inter Tight, Inter, Playfair Display, JetBrains Mono).
 *
 * Layout, type pairing, and section rhythm stay Atelier Zero.
 * Color is bound to the ЮрЭкс wordmark tricolor (see brand-spec.md):
 * white field, navy letters, red chevron — sampled, not guessed.
 */
:root {
  --paper: oklch(0.997 0 0);
  --paper-warm: oklch(0.961 0.003 264.5);
  --paper-dark: color-mix(in oklch, var(--ink) 12%, var(--paper));
  --ink: oklch(0.360 0.099 258);
  --ink-soft: color-mix(in oklch, var(--ink) 88%, var(--paper));
  --ink-mute: color-mix(in oklch, var(--ink) 80%, var(--paper));
  --ink-faint: color-mix(in oklch, var(--ink) 68%, var(--paper));
  --coral: oklch(0.585 0.239 28.1);
  --coral-soft: color-mix(in oklch, var(--coral) 72%, var(--paper));
  --mustard: var(--coral);
  --olive: var(--ink-mute);
  --bone: var(--paper-warm);
  --line: color-mix(in oklch, var(--ink) 16%, transparent);
  --line-soft: color-mix(in oklch, var(--ink) 8%, transparent);
  --line-faint: color-mix(in oklch, var(--ink) 5%, transparent);
  --shadow: 0 30px 60px -30px color-mix(in oklch, var(--ink) 22%, transparent);
  /*
   * Скругления. Раньше в теме было тринадцать разных радиусов — от 4px
   * до 32px плюс 999px у кнопок: значения набирались по ходу работы над
   * секциями и в систему не складывались. Теперь два токена.
   *
   * Углы намеренно почти прямые: типографика темы говорит языком
   * документа — римские цифры разделителей, `Nº`, счётчики, волосяные
   * линии, — а крупные скругления говорили языком приложения. Теперь
   * угол читается как обрез бумаги.
   *
   * Лица остаются круглыми: квадратный портрет заметно холоднее.
   */
  --r-block: 2px;
  --r-control: 4px;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --coral-press: color-mix(in oklch, var(--coral) 82%, var(--ink));
  --ink-hover: color-mix(in oklch, var(--ink) 86%, var(--paper));
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 150ms;
  --dur-ui: 180ms;
  --dur-enter: 320ms;
}
html { scroll-padding-top: 72px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}/* paper texture overlay across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.24  0 0 0 0 0.44  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.shell { position: relative; z-index: 2; }
.container {
  max-width: 1360px;
  padding: 0 64px;
  margin: 0 auto;
  position: relative;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }}/* nav — floating island over the map; compresses on scroll */
.nav {
  --nav-logo: 48px;
  --nav-pad: 14px;
  padding: var(--nav-pad) 20px 0;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  isolation: isolate;
  overflow: visible;
  transform: none;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  pointer-events: none;
  transition: padding var(--dur-ui) var(--ease-out);
}
.nav-inner,
.nav-toggle,
.nav-collapse {
  pointer-events: auto;
}
.nav::before,
.nav::after { content: none; display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-inner {
    background: var(--paper);
  }}
.nav.is-compact {
  --nav-logo: 40px;
  --nav-pad: 8px;
}
.nav.is-hidden {
  transform: none;
  pointer-events: none;
}
.nav.is-open {
  transform: none;
  pointer-events: none;
}
header.nav > .nav-inner.container,
.nav-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
  max-width: 1320px;
  border-radius: var(--r-block);
  position: relative;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.15) blur(18px);
  backdrop-filter: saturate(1.15) blur(18px);
  border: 2px solid color-mix(in oklch, var(--ink) 28%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--paper) 70%, transparent),
    0 10px 28px -18px color-mix(in oklch, var(--ink) 38%, transparent);
  transition: min-height var(--dur-ui) var(--ease-out),
    padding var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out);
}
header.nav.is-compact > .nav-inner.container,
.nav.is-compact .nav-inner {
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 4px;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  border-color: color-mix(in oklch, var(--ink) 36%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--paper) 80%, transparent),
    0 12px 32px -16px color-mix(in oklch, var(--ink) 44%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  flex-shrink: 0;
}
.nav .brand {
  grid-column: 1;
  justify-self: start;
  padding-left: 0;
}
.brand-mark {
  width: auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}
.nav .brand-mark {
  height: var(--nav-logo);
  transition: height var(--dur-ui) var(--ease-out);
}
/* У логотипа собственная альфа, подложки в файле нет. Раньше белый фон
 * прятали через mix-blend-mode: multiply, но у шапки backdrop-filter, а он
 * создаёт изолированный контекст наложения — логотип смешивался не со
 * страницей, а с полупрозрачным фоном самой шапки, и белый прямоугольник
 * всё равно проступал. */
.brand-mark img {
  width: auto;
  height: 36px;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.nav .brand-mark img {
  height: var(--nav-logo);
  max-width: none;
  width: auto;
  transition: height var(--dur-ui) var(--ease-out);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: box-shadow var(--dur-fast) var(--ease-out);
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.nav-links a .num {
  font-size: 9px;
  color: var(--coral);
  position: absolute;
  top: 6px;
  right: -14px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.nav-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 0 14px;
  min-height: 44px;
  height: 44px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  box-shadow: none;
  transition: background 150ms cubic-bezier(0.2, 0, 0, 1),
    color 150ms cubic-bezier(0.2, 0, 0, 1),
    border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}
.nav-cta::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  box-shadow: none;
  animation: none;
}
.nav-cta::after { content: none; }
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink-hover);
  color: var(--paper);
  border-color: var(--ink-hover);
  transform: none;
}
.rev-empty {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  max-width: 54ch;
}
.rev-empty p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.nav-cta:active {
  background: var(--ink);
  color: var(--paper);
  transform: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: color-mix(in oklch, var(--paper) 70%, transparent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nav-toggle:hover {
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  color: var(--ink);
}
.nav-toggle-icon {
  width: 14px;
  height: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
}
.nav-collapse {
  display: contents;
}
.nav-collapse nav {
  grid-column: 2;
  justify-self: center;
}/* ---------- typography primitives ---------- */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--coral);
  display: inline-block;
}
.label .ix {
  color: var(--ink-faint);
  font-weight: 500;
  margin-left: 4px;
}
.display {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--ink);
  line-height: 1.12;
}
.display em {
  font-family: inherit;
  font-style: italic;
  font-weight: 650;
  letter-spacing: inherit;
}
.hero h1.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.display .dot { color: inherit; }
.hero h1.display .dot { color: var(--coral); }/* Taste pass: magazine chrome off. One coral flourish lives on the hero. */
.sec-rule,
.work-rule { display: none; }
.label .ix { display: none !important; }
.section-header .label,
.labs-head .label,
.method-head .label,
.law-grid > div:first-child .label,
#faq > .label,
.work-copy .label{ display: none; }
.label::before { display: none; }
.lab .badge,
.lab .num-row,
/* .lab h3 — здесь лежит имя юриста, а не мишура прототипа: не скрываем. *//* .sit small — номера сценариев, в списке они нужны: не скрываем. */
.work-card .index{ display: none; }
.lab-role {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 10px 0 8px;
}
.lead {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
}
.meta {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--coral);
}/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: var(--r-control);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 150ms cubic-bezier(0.2, 0, 0, 1), background 150ms cubic-bezier(0.2, 0, 0, 1), color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--paper);
  box-shadow: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: var(--coral-press);
  color: var(--paper);
}
.btn-primary:active {
  transform: translateY(1px);
  background: var(--coral-press);
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in oklch, var(--ink) 42%, transparent);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:active {
  background: color-mix(in oklch, var(--ink) 10%, transparent);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn.is-loading,
.btn.is-loading:disabled {
  opacity: 1;
  cursor: wait;
  pointer-events: none;
  background: var(--coral-press);
  color: var(--paper);
}
.btn .arrow {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn .arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }/* helper used inline in headlines *//* ---------- HERO — SVG Russia motion frame, office in Stavropol ---------- */
.hero {
  position: relative;
  padding: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 62% at 50% 48%, color-mix(in oklch, var(--ink) 10%, transparent), transparent 64%),
    radial-gradient(circle, color-mix(in oklch, var(--ink) 12%, transparent) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--paper);
}
.hero-russia-scene {
  position: absolute;
  inset: 8px 2% 12px;
  pointer-events: none;
}
.hero-russia-drift {
  position: absolute;
  inset: 0;
  transform-origin: 50% 48%;
  animation: russia-drift 22s ease-in-out infinite;
}
.hero-russia {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-russia .subjects {
  filter: drop-shadow(8px 12px 0 color-mix(in oklch, var(--ink) 18%, transparent));
}
.hero-russia .subject {
  stroke: color-mix(in oklch, var(--ink) 48%, var(--paper));
  stroke-width: 0.7;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.hero-russia .flag-white { fill: color-mix(in oklch, var(--paper) 86%, var(--ink)); }
.hero-russia .flag-blue { fill: var(--ink); }
.hero-russia .flag-red { fill: var(--coral); }
.hero-russia .city {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.1;
  opacity: 0;
  animation: russia-city 0.45s 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-russia .hq-region {
  fill: color-mix(in oklch, var(--coral) 82%, var(--ink));
  stroke: var(--paper);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px color-mix(in oklch, var(--coral) 40%, transparent));
}
.hero-russia .ray {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
  opacity: 0;
  animation: russia-ray 1.15s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-russia .office .pin {
  fill: var(--coral);
  stroke: var(--paper);
  stroke-width: 2.6;
}
.hero-russia .office .halo {
  fill: color-mix(in oklch, var(--paper) 55%, transparent);
  stroke: var(--paper);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: russia-halo 2.6s 1.2s ease-in-out infinite;
}
.hero-russia .office .reach {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.15;
  transform-box: fill-box;
  transform-origin: center;
  animation: russia-reach 3.8s 0.8s ease-out infinite;
}
.hero-russia .office .reach.is-late {
  animation-delay: 2.4s;
}
.hero-russia .office-label {
  pointer-events: none;
}
.hero-russia .office-plate {
  fill: color-mix(in oklch, var(--paper) 94%, transparent);
  stroke: color-mix(in oklch, var(--ink) 26%, var(--paper));
  stroke-width: 1.35;
  filter: drop-shadow(0 10px 14px color-mix(in oklch, var(--ink) 18%, transparent));
}
.hero-russia .office-stem {
  fill: none;
  stroke: color-mix(in oklch, var(--ink) 40%, var(--paper));
  stroke-width: 1.5;
  stroke-linecap: round;
}
.hero-russia .office-tick {
  fill: var(--coral);
}
.hero-russia .office-kicker {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--coral);
}
.hero-russia .office-city {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  fill: var(--ink);
}
.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(240px, 0.92fr);
  align-items: stretch;
  gap: 12px 32px;
  min-height: 100svh;
  height: 100%;
  padding: 96px max(48px, 4vw) 0;
}
.hero-portrait {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(720px, 56vw);
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  justify-self: end;
  align-self: end;
  gap: 16px;
  pointer-events: none;
}
.hero-portrait figcaption {
  flex: 0 1 13rem;
  max-width: 16rem;
  margin: 0 0 22% 0;
  text-align: right;
  text-shadow: 0 1px 0 color-mix(in oklch, var(--paper) 88%, transparent), 0 0 18px var(--paper);
}
.hero-portrait figcaption strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.hero-portrait figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero-portrait img {
  display: block;
  width: auto;
  max-width: min(560px, 42vw);
  height: auto;
  max-height: calc(100svh - 88px);
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 28px color-mix(in oklch, var(--ink) 18%, transparent));
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  justify-self: start;
  width: auto;
  max-width: 38rem;
  margin: 0;
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-copy-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.hero-copy-text { min-width: 0; width: 100%; }
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  margin: 0 0 10px;
  max-width: 12ch;
  animation: hero-type-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  text-shadow: 0 1px 0 color-mix(in oklch, var(--paper) 80%, transparent), 0 0 28px var(--paper);
}
.hero-copy .lead {
  margin: 0;
  max-width: 38ch;
  font-size: 16px;
  color: var(--ink-soft);
  text-shadow: 0 0 22px var(--paper);
}
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 18px;
  width: 100%;
}
.hero-actions .btn {
  flex: 1 1 0;
  white-space: nowrap;
}
.hero-copy .btn-primary {
  animation: none;
}
.hero-proof {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 16rem;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}
.hero-proof-item:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}
.hero-proof-item b {
  display: block;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 1px 0 color-mix(in oklch, var(--paper) 80%, transparent), 0 0 20px var(--paper);
}
.hero-proof-item b .unit {
  display: inline;
  margin-left: 0.18em;
  font-size: 0.52em;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-proof-item small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 0 16px var(--paper);
}
@keyframes russia-city {
  from { opacity: 0; }
  to { opacity: 1; }}
@keyframes russia-ray {
  from { opacity: 0; }
  to { opacity: 0.42; }}
@keyframes russia-reach {
  0% { transform: scale(0.4); opacity: 0.55; }
  70% { opacity: 0.1; }
  100% { transform: scale(2.6); opacity: 0; }}
@keyframes russia-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.2%, 1%, 0) scale(1.03); }}
@keyframes russia-halo {
  0%, 100% { transform: scale(0.82); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 0.15; }}
@keyframes hero-type-in {
  from { opacity: 0; letter-spacing: 0.05em; }
  to { opacity: 1; letter-spacing: -0.028em; }}/* ---------- common section header ---------- */
section { position: relative; padding: 88px 0; }
section.tight { padding: 64px 0; }
.sec-rule {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sec-rule .roman {
  font-family: var(--serif);
  font-style: italic;
  color: var(--coral);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: none;
}
.sec-rule .meta-grp { display: inline-flex; gap: 26px; }
.sec-rule .dot-mark { color: var(--coral); }

.section-header { margin-bottom: 70px; }
.section-header .label { margin-bottom: 32px; }
.section-header h2 {
  font-size: clamp(40px, 4.6vw, 66px);
  max-width: 22ch;
}
.section-header .lead { margin-top: 22px; }
.quiz-sec .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 20px 48px;
  align-items: end;
  max-width: none;
  width: 100%;
  margin-bottom: 36px;
}
.quiz-sec .section-header h2 {
  max-width: 18ch;
  margin: 0;
}
.quiz-sec .section-header .lead {
  margin: 0;
  max-width: 38ch;
  padding-bottom: 4px;
  color: var(--ink-soft);
}/* ---------- WIRE / GLOBAL TICKER ----------
 *
 * Slim editorial strip between the hero and the About section. Two
 * counter-scrolling marquees (cities → and contributors ←) signal that
 * the project is global and community-driven, without disrupting the
 * existing roman-numeral section count. Pure CSS animation; the track
 * content is duplicated in markup so the loop wraps seamlessly.
 */
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }}
@media (prefers-reduced-motion: reduce) {
  .nav-cta,
  .nav-cta::before,
  .hero-copy .btn-primary{ animation: none !important; }}/* ---------- ABOUT ---------- */
.about-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  max-height: 520px;
  margin-left: auto;
  overflow: hidden;
  border-radius: var(--r-block);
}
.about-art img { width: 100%; height: 100%; object-fit: contain; }/* ---------- CAPABILITIES ---------- */
@keyframes why-mark-beat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.045); }
  20% { transform: scale(1); }
  30% { transform: scale(1.08); }
  44% { transform: scale(1); }}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.card {
  padding: 28px 26px 32px;
  background: var(--bone);
  border-radius: var(--r-block);
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in oklch, var(--ink) 6%, transparent);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.card .num .tag {
  font-family: var(--sans);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
}
.card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--ink);
}
.card h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.014em;
  margin-bottom: 14px;
}
.card p {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 24ch;
}/* ---------- LABS ---------- */
.labs-head {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 20px 48px;
  align-items: end;
  margin-bottom: 22px;
}
.labs-head h2 { font-size: clamp(34px, 4.2vw, 54px); }
.labs-lead {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 36ch;
  margin: 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 28px;
}
.pill {
  padding: 0 14px;
  min-height: 44px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.2, 0, 0, 1), color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms cubic-bezier(0.2, 0, 0, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pill[hidden] { display: none; }
.pill:hover,
.pill:focus-visible {
  background: color-mix(in oklch, var(--ink) 6%, var(--paper));
  color: var(--ink);
  border-color: var(--ink);
}
.pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pill.active:hover,
.pill.active:focus-visible {
  background: var(--ink-hover);
  color: var(--paper);
  border-color: var(--ink-hover);
}
.pill .count {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--ink-faint);
}
.pill.active .count { color: color-mix(in oklch, var(--paper) 78%, transparent); }
.labs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
}
.lab {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lab-img {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  border-radius: var(--r-block);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.lab-img img { width: 100%; height: 100%; object-fit: cover; }
.lab-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  color: var(--ink);
  padding: 5px 8px;
  border-radius: var(--r-block);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lab h3,
.lab h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.25;
  margin-bottom: 6px;
}
.lab .lab-role {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.lab p {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 14px;
}
.lab.is-filtered-out { display: none; }
.labs-empty {
  display: none;
  margin: 8px 0 12px;
  padding: 48px 28px;
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--bone);
}
.labs-empty.is-visible { display: block; }
.labs-empty p {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 18px;
}
.labs-empty a,
.labs-empty button {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  min-height: 44px;
  background: transparent;
  cursor: pointer;
}
.labs-empty a:hover,
.labs-empty a:focus-visible,
.labs-empty button:hover,
.labs-empty button:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: transparent;
}
.lab-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  width: max-content;
  margin-top: auto;
}
.lab-more:hover,
.lab-more:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: color-mix(in oklch, var(--ink) 4%, transparent);
}
.labs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress span {
  width: 26px; height: 2px;
  background: var(--line);
  border-radius: var(--r-block);
}
.progress span.on { background: var(--coral); }
.labs-foot .progress { display: none; }/* ---------- METHOD ---------- */
.method-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}
.method-head h2 { font-size: clamp(34px, 4.2vw, 54px); }
.method-head .right {
  display: block;
  max-width: 54ch;
  padding-top: 0;
}
.method-head .plus {
  display: none;
}
.method-head .right p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 22ch;
  line-height: 1.55;
}/* ---------- WORK ---------- */
.work {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-block);
  margin: 0 64px;
  overflow: hidden;
  position: relative;
  padding: 72px 64px 88px;
}
.work::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n2)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.6;
  mix-blend-mode: screen;
}
.work-rule {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid color-mix(in oklch, var(--paper) 16%, transparent);
  padding-top: 16px;
  margin-bottom: 60px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 55%, transparent);
}
.work-rule .roman { color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 0.04em; text-transform: none; }
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 40px 48px;
  align-items: stretch;
  position: relative;
}
.work .label { color: var(--paper); }
.work .label::before { background: var(--paper); }
.work-copy h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.024em;
  margin: 28px 0 16px;
  color: var(--paper);
}
.work-copy h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.work-copy h2 .dot { color: var(--paper); }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  width: fit-content;
}
.work-link::after { content: '↗'; color: currentColor; }/* Белым — только внутри тёмного блока «Цифры». */
.work .work-link { color: var(--paper); border-bottom-color: var(--paper); }
.work-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-block);
  padding: 32px 30px;
  position: relative;
  transform: rotate(-1.2deg);
  text-decoration: none;
  display: block;
  transition: transform var(--dur-enter) var(--ease-out), box-shadow var(--dur-enter) var(--ease-out);
}
.work-card:hover {
  transform: rotate(-1.2deg) translateY(-4px);
  box-shadow: var(--shadow);
}
.work-card.alt {
  transform: rotate(2.4deg) translateY(20px);
  padding: 28px 26px;
}
.work-card.alt:hover {
  transform: rotate(2.4deg) translateY(16px);
  box-shadow: var(--shadow);
}
.work-card .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.work-card .small-label {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--coral);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.work-card .index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.work-card h3 {
  font-family: var(--sans);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.work-card p {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 28ch;
}
.work-card .img {
  aspect-ratio: 16 / 10;
  background: var(--bone);
  border-radius: var(--r-block);
  overflow: hidden;
  margin-bottom: 22px;
}
.work-card .img img { width: 100%; height: 100%; object-fit: cover; }
.work-card .meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.work-card .year { color: var(--coral); font-weight: 600; }
.work-card.is-current {
  box-shadow: 0 0 0 1px var(--coral);
}
.work-copy .lead {
  color: color-mix(in oklch, var(--paper) 82%, var(--ink));
  max-width: 36ch;
  margin: 0 0 28px;
}
.hero-russia .city.is-on {
  fill: var(--coral);
  stroke: var(--paper);
  r: 6;
}/* ---------- TESTIMONIAL / COLLABORATORS ---------- */
.author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.author .avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ink);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
}
.author p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.author p span {
  display: block;
  color: var(--ink-mute);
  font-weight: 400;
}
.testimonial-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--r-block);
}
.testimonial-art img { width: 100%; height: 100%; object-fit: contain; }/* ---------- AMR band ---------- *//* ---------- CTA ---------- */
.cta h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 14px 0 16px;
}
.cta .lead { margin-bottom: 22px; max-width: 42ch; font-size: 16px; }/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 38ch;
}
.foot-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-col a:hover,
.foot-col a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-bottom .right { display: inline-flex; gap: 24px; align-items: center; }/* ---------- scroll-reveal motion ----------
 *
 * JS-only pages start hidden. GSAP owns x / y / autoAlpha.
 * CSS fallback (no GSAP) fades opacity only.
 * `.work-card` keeps its CSS rotate: GSAP never writes transform there.
 */
html.js-motion:not(.rm) [data-reveal] { opacity: 0; }
html.has-gsap [data-reveal] { transition: none; }
html:not(.has-gsap) [data-reveal][data-revealed='true'] { opacity: 1; }

html:not(.has-gsap).js-motion:not(.rm) [data-reveal] {
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

html:not(.has-gsap) .cards > .card[data-reveal]:nth-child(1),
html:not(.has-gsap) .labs-grid > .lab[data-reveal]:nth-child(1){ --reveal-delay: 0ms; }
html:not(.has-gsap) .cards > .card[data-reveal]:nth-child(2),
html:not(.has-gsap) .labs-grid > .lab[data-reveal]:nth-child(2){ --reveal-delay: 60ms; }
html:not(.has-gsap) .cards > .card[data-reveal]:nth-child(3),
html:not(.has-gsap) .labs-grid > .lab[data-reveal]:nth-child(3){ --reveal-delay: 120ms; }
html:not(.has-gsap) .cards > .card[data-reveal]:nth-child(4),
html:not(.has-gsap) .labs-grid > .lab[data-reveal]:nth-child(4){ --reveal-delay: 180ms; }
html:not(.has-gsap) .labs-grid > .lab[data-reveal]:nth-child(5){ --reveal-delay: 180ms; }

@keyframes motion-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }}

html:not(.has-gsap) .labs-grid > .lab.is-exiting {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  pointer-events: none;
}
html:not(.has-gsap) .labs-grid > .lab.is-entering,
html:not(.has-gsap) .labs-empty.is-visible,
html:not(.has-gsap) .form-status.is-visible {
  animation: motion-in var(--dur-enter) var(--ease-out) both;
}
.form-status.is-visible {
  animation: motion-in var(--dur-ui) var(--ease-out) both;
}

.od-dialog {
  opacity: 0;
  translate: 0 10px;
  scale: 0.96;
  transition:
    opacity var(--dur-enter) var(--ease-out),
    translate var(--dur-enter) var(--ease-out),
    scale var(--dur-enter) var(--ease-out),
    overlay var(--dur-enter) var(--ease-out) allow-discrete,
    display var(--dur-enter) var(--ease-out) allow-discrete;
}
.od-dialog[open] {
  display: grid;
  gap: 0;
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
@starting-style {
  .od-dialog[open] {
    opacity: 0;
    translate: 0 10px;
    scale: 0.96;
  }}
.od-dialog::backdrop {
  background: color-mix(in oklch, var(--ink) 42%, transparent);
  opacity: 0;
  transition:
    opacity var(--dur-enter) var(--ease-out),
    overlay var(--dur-enter) var(--ease-out) allow-discrete,
    display var(--dur-enter) var(--ease-out) allow-discrete;
}
.od-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .od-dialog[open]::backdrop { opacity: 0; }}

@media (prefers-reduced-motion: reduce) {
  html.js-motion [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    translate: 0 0 !important;
    scale: 1 !important;
    transition: none !important;
    animation: none !important;
  }
  .nav,
  .nav-inner,
  .nav .brand-mark,
  .nav .brand-mark img { transition: none !important; }
  .nav-cta:hover,
  .nav-cta:focus-visible { transform: none; }
  .nav-cta,
  .nav-cta::before,
  .hero-copy .btn-primary {
    animation: none !important;
  }
  .btn, .nav-cta, .pill, .card, .work-card {
    transition: none !important;
  }
  .labs-grid > .lab.is-exiting,
  .labs-grid > .lab.is-entering,
  .labs-empty.is-visible,
  .form-status.is-visible,
  .od-dialog,
  .od-dialog::backdrop {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  .hero-russia-drift,
  .hero-russia .city,
  .hero-russia .ray,
  .hero-russia .office .halo,
  .hero-russia .office .reach {
    animation: none !important;
  }
  .hero-russia .city,
  .hero-russia .ray {
    opacity: 0.42;
  }
  .hero-russia .city { opacity: 1; }
  .hero h1 {
    animation: none !important;
  }}
html.rm .nav-inner,
html.rm .nav .brand-mark,
html.rm .nav .brand-mark img {
  transition: none !important;
}
html.rm .hero h1,
html.rm .nav-cta,
html.rm .nav-cta::before,
html.rm .hero-copy .btn-primary,
html.rm .hero-russia-drift,
html.rm .hero-russia .city,
html.rm .hero-russia .ray,
html.rm .hero-russia .office .halo,
html.rm .hero-russia .office .reach {
  animation: none !important;
}
html.rm .hero-russia .ray { opacity: 0.42; }
html.rm .hero-russia .city { opacity: 1; }
html.rm .quiz-pane,
html.rm .quiz-art-fig {
  transition: none;
  transform: none;
}
html.rm .quiz-art .float,
html.rm .quiz-art .float-slow{ animation: none; }/* ---------- 12-chapter commercial spreads ---------- */
.quiz-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 0;
  border: 2px solid color-mix(in oklch, var(--ink) 22%, transparent);
  border-radius: var(--r-block);
  overflow: hidden;
  background: var(--paper);
  min-height: 420px;
}
.quiz-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 24px;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.quiz-art::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--coral) 38%, transparent), transparent 68%);
  pointer-events: none;
}
.quiz-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 68%, transparent);
}
.quiz-art-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 220px;
  display: grid;
}
.quiz-art-fig {
  grid-area: 1 / 1;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 420ms;
}
.quiz-art-fig.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.quiz-art-fig svg {
  width: min(100%, 220px);
  height: auto;
  overflow: visible;
}
.quiz-art .float {
  transform-box: fill-box;
  transform-origin: center;
  animation: quiz-float 4.4s ease-in-out infinite;
}
.quiz-art .float-slow {
  animation-duration: 5.6s;
  animation-delay: -1.2s;
}
@keyframes quiz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }}
.quiz-ticks {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quiz-ticks li {
  flex: 1;
  height: 4px;
  border-radius: var(--r-block);
  background: color-mix(in oklch, var(--paper) 18%, transparent);
}
.quiz-ticks li.is-done,
.quiz-ticks li.is-now {
  background: var(--paper);
}
.quiz-ticks li.is-now {
  background: var(--coral);
}
.labs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.progress { flex-wrap: wrap; }
.quiz-main {
  padding: 32px 36px 24px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  background: var(--paper);
}
.quiz-stage {
  display: grid;
  flex: 1;
}
.quiz-pane {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out), visibility 380ms;
}
.quiz-pane.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.quiz-card.is-busy .quiz-opt { pointer-events: none; }
.quiz-pane h3 {
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 20px;
}
.quiz-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quiz-opts.is-pair { grid-template-columns: 1fr 1fr; }
.quiz-opt {
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.quiz-opt:hover, .quiz-opt:focus-visible {
  background: color-mix(in oklch, var(--ink) 6%, var(--paper));
  color: var(--ink);
  border-color: var(--ink);
}
.quiz-opt.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.quiz-opt.is-on:hover, .quiz-opt.is-on:focus-visible {
  background: var(--ink-hover);
  color: var(--paper);
  border-color: var(--ink-hover);
  outline-color: var(--paper);
}
.quiz-nav {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.quiz-result > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.quiz-again {
  margin-top: 14px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.svc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  background: var(--paper);
  min-height: 100%;
}
.svc.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.svc.dark p, .svc.dark .svc-num { color: color-mix(in oklch, var(--paper) 74%, transparent); }
.svc.dark h3 { color: var(--paper); }
.svc.dark a { color: var(--paper); border-bottom-color: var(--coral); }
.svc-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.svc h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}
.svc p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.svc a {
  margin-top: auto;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  width: max-content;
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.svc a:hover, .svc a:focus-visible { color: var(--ink); background: color-mix(in oklch, var(--ink) 5%, transparent); }
.svc.dark a:hover, .svc.dark a:focus-visible {
  color: var(--paper);
  background: color-mix(in oklch, var(--paper) 12%, transparent);
}
.law-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}
.lawnum {
  font-family: var(--sans);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 8px 0 16px;
}
.lawnum span { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--coral); }
.law-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.law-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.law-tab[aria-selected='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.law-tab:hover, .law-tab:focus-visible {
  background: color-mix(in oklch, var(--ink) 6%, var(--paper));
  color: var(--ink);
}
.law-tab[aria-selected='true']:hover,
.law-tab[aria-selected='true']:focus-visible {
  background: var(--ink-hover);
  color: var(--paper);
}
.law-panel h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.law-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.law-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.mark-ok, .mark-warn {
  font-family: var(--serif);
  font-style: italic;
  color: var(--coral);
}
.disclose { margin-top: 18px; }
.disclose-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.disclose.is-open .disclose-body { grid-template-rows: 1fr; }
.disclose-body > div { overflow: hidden; }
.disclose-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.disclose-btn:hover, .disclose-btn:focus-visible { color: var(--ink); background: color-mix(in oklch, var(--ink) 5%, transparent); }
.compare {
  display: grid;
  gap: 16px;
}
.compare-col {
  padding: 22px 22px 18px;
  border: 1px dotted var(--line);
  border-radius: var(--r-block);
}
.compare-col.is-us { border-color: color-mix(in oklch, var(--coral) 45%, var(--line)); }
.compare-col h3 { font-size: 18px; font-weight: 800; margin: 6px 0 12px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.compare-col li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14px; }
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.calc {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  background: var(--paper-warm);
}
.calc h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.calc label, .consult-form select {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.calc select, .consult-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.calc-result {
  padding: 14px 0;
  border-top: 1px dotted var(--line);
}
.calc-result b { display: block; font-size: 16px; margin-bottom: 4px; }
.sits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.sit:hover, .sit:focus-visible {
  background: color-mix(in oklch, var(--ink) 5%, var(--paper));
  color: var(--ink);
  border-color: var(--ink);
}
.sit small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }/* Было `.sit span` — правило ловило ЛЮБОЙ <span> внутри карточки и красило
 * коралловым вложенную разметку: обёртки заголовка, бегущую ленту, сами
 * названия. Целились в стрелку — по ней и бьём. */
.sit .sit-arrow { color: var(--coral); }
.fi { border-bottom: 1px dotted var(--line); }
.fq {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.fq:hover, .fq:focus-visible { color: var(--ink); background: color-mix(in oklch, var(--ink) 4%, transparent); }
.fq .plus { color: var(--coral); font-family: var(--serif); font-style: italic; }
.fa { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.fi.is-open .fa { grid-template-rows: 1fr; }
.fa > div { overflow: hidden; }
.fa p { padding: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.contact-list { display: grid; gap: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.contact-list small { color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.contact-list b { overflow-wrap: break-word; }
.map-slot {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
}
.map-slot iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: var(--surface);
}
.seo-box { max-width: 72ch; }
.seo-box h2 {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.seo-box .seo-full p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.seo-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; }
.seo-links a { color: var(--ink); font-size: 13px; }
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 62ch;
}
.quiz-sec .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  align-items: end;
  max-width: none;
  width: 100%;
  margin-bottom: 36px;
}
.cost-grid h3, .calc h3, .map-slot h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.quiz-opt:focus-visible,
.law-tab:focus-visible,
.sit:focus-visible,
.fq:focus-visible,
.disclose-btn:focus-visible,
.calc select:focus-visible,
.consult-form select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sits{ grid-template-columns: 1fr 1fr; }}
@media (max-width: 880px) {
  .section-header,
  .quiz-sec .section-header,
  .quiz-grid, .law-grid, .cost-grid{ grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; }
  .quiz-art-stage { min-height: 160px; }
  .quiz-main, .quiz-grid { min-height: 0; }
  .quiz-art { padding: 22px 24px 18px; }
  .quiz-main { padding: 24px 22px 18px; }
  .quiz-art-fig svg { width: min(100%, 168px); }}
@media (max-width: 560px) {
  .svc-grid, .sits{ grid-template-columns: 1fr; }}
@media (prefers-reduced-motion: reduce) {
  .disclose-body, .fa, .quiz-pane, .quiz-art-fig { transition: none; }
  .quiz-art .float, .quiz-art .float-slow { animation: none; }}/* responsive */
@media (max-width: 1280px) {
  .container { padding: 0 44px; }
  .work { margin: 0 44px; padding: 90px 44px; }}/* nav: floating island, hamburger from 1080px */
@media (max-width: 1280px) {
  .nav { --nav-logo: 44px; padding-left: 16px; padding-right: 16px; }
  .nav.is-compact { --nav-logo: 36px; }
  header.nav > .nav-inner.container,
  .nav-inner { gap: 10px 14px; padding: 6px 12px 6px 14px; }
  .nav-links { gap: 20px; }
  .nav-cta {
    min-height: 44px;
    height: 44px;
    font-size: 13px;
    padding: 0 14px 0 12px;
  }}
@media (max-width: 1080px) {
  .container { padding: 0 32px; }
  .hero h1 { font-size: clamp(36px, 4.6vw, 54px); }
  .section-header h2 { font-size: clamp(32px, 4vw, 50px); }
  .labs-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .nav { --nav-logo: 40px; --nav-pad: 10px; padding: var(--nav-pad) 12px 0; }
  .nav.is-compact { --nav-logo: 36px; --nav-pad: 6px; }
  .nav-toggle { display: inline-flex; }
  header.nav > .nav-inner.container,
  .nav-inner {
    display: flex;
    justify-content: space-between;
    min-height: 56px;
    padding: 6px 12px 6px 14px;
    overflow: visible;
  }
  header.nav.is-compact > .nav-inner.container,
  .nav.is-compact .nav-inner { min-height: 48px; }
  .nav-collapse {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 16px;
    border-radius: var(--r-block);
    background: color-mix(in oklch, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: saturate(1.15) blur(18px);
    backdrop-filter: saturate(1.15) blur(18px);
    border: 2px solid color-mix(in oklch, var(--ink) 28%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in oklch, var(--paper) 70%, transparent),
      0 18px 40px -22px color-mix(in oklch, var(--ink) 45%, transparent);
  }
  .nav-collapse nav {
    grid-column: auto;
    justify-self: stretch;
  }
  .nav.is-open .nav-collapse { display: flex; }
  .nav-links {
    flex-direction: column;
    gap: 0;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-side {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    grid-column: auto;
    justify-self: stretch;
  }
  .nav-cta { width: 100%; min-height: 44px; height: 44px; transform: none; }}
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .consult-form .form-row,
  .work-facts { grid-template-columns: 1fr 1fr; }
  .labs-head, .method-head { grid-template-columns: 1fr; }
  .labs-lead { max-width: 52ch; }
  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px 8px;
  }
  .pills::-webkit-scrollbar { display: none; }
  .labs-grid { grid-template-columns: repeat(2, 1fr); }
  .work { margin: 0 12px; padding: 60px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-russia-scene { inset: 8px 0 8px; }
  .hero-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.85fr);
    gap: 8px 18px;
    padding: 88px 24px 0;
  }
  .hero-copy { width: auto; max-width: none; margin: 0; padding: 4px 0 8px; height: 100%; }
  .hero-portrait { max-width: min(420px, 52vw); }
  .hero-portrait img { max-width: min(320px, 38vw); }
  .hero-proof { max-width: 16rem; }
  .hero-russia .office-label { display: none; }/* wire — stack the field label above the marquee rows */}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .labs-grid { grid-template-columns: 1fr; }
  .cards, .consult-form .form-row, .work-facts { grid-template-columns: 1fr; }
  .pills {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  section { padding: 64px 0; }
  .hero { min-height: 100svh; }
  .hero-stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 76px 16px 8px;
    min-height: 100svh;
  }
  .hero-portrait {
    position: absolute;
    right: 0;
    left: auto;
    top: auto;
    bottom: 46%;
    width: min(300px, 78vw);
    max-width: none;
    height: auto;
    align-items: flex-end;
    margin: 0;
    gap: 10px;
  }
  .hero-portrait img {
    max-width: min(200px, 48vw);
    object-position: right bottom;
    max-height: 42vh;
  }
  .hero-portrait figcaption {
    max-width: 9.5rem;
    margin-bottom: 8%;
  }
  .hero-portrait figcaption strong { font-size: 14px; }
  .hero-portrait figcaption span { font-size: 11px; }
  .hero-russia-scene { inset: 0 0 42%; }
  .hero-copy {
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding: 12px 0 8px;
    min-height: 42vh;
    height: auto;
  }
  .hero-copy-main {
    flex: 1 1 auto;
    justify-content: space-between;
    min-height: 42vh;
    gap: 20px;
  }
  .hero-proof { max-width: none; }
  .hero-proof-item { padding: 8px 0; }
  .hero-proof-item b { font-size: 26px; }
  .hero-proof-item small { margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; }
  .hero-actions { padding-top: 4px; padding-bottom: 8px; flex-wrap: wrap; }
  .hero-actions .btn { font-size: 13px; padding: 12px 14px; }
  .hero-russia .office-label { display: none; }
  .foot-grid { grid-template-columns: 1fr; }}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 80;
  padding: 12px 18px;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-block);
  transform: translateY(-160%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .nav-cta:focus-visible, .pill:focus-visible, .nav-toggle:focus-visible, .lab-more:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible { outline-color: var(--paper); }
.work-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 36px;
  position: relative;
}
.work-facts div {
  border-top: 1px solid color-mix(in oklch, var(--paper) 18%, transparent);
  padding-top: 14px;
}
.work-facts b {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 6px;
}
.work-facts span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 62%, transparent);
}
.consult-form {
  display: grid;
  gap: 14px;
  max-width: none;
  margin-bottom: 20px;
}
.consult-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.consult-form label {
  display: grid;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.consult-form input,
.consult-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.consult-form textarea { min-height: 88px; resize: vertical; }
.consult-form input:hover,
.consult-form textarea:hover,
.consult-form select:hover,
.calc select:hover {
  border-color: var(--ink);
}
.consult-form input:focus-visible,
.consult-form textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-color: var(--ink);
}
.consult-form input.is-invalid,
.consult-form textarea.is-invalid,
.consult-form input[aria-invalid='true'],
.consult-form textarea[aria-invalid='true'] {
  border-color: var(--coral);
  background: color-mix(in oklch, var(--coral) 10%, var(--bone));
}
.consult-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.45;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.consult-form .consent input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-top: 1px;
  accent-color: var(--coral);
  flex-shrink: 0;
}
.field-error {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.form-status {
  display: none;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  background: var(--bone);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.form-status.is-visible { display: block; }
.form-status.is-pending {
  border-style: solid;
  border-color: var(--line);
}
.form-status.is-error {
  border-color: var(--coral);
  color: var(--ink);
}
.od-dialog {
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  padding: 28px 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  max-width: 420px;
}
.od-dialog[open] {
  display: grid;
  gap: 0;
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.od-dialog h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.od-dialog p {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.consult-form .btn { width: max-content; }/* polish: overflow, contrast, states, small screens */
.labs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lab, .card, .work-card, .foot-col{ min-width: 0; } .labs-foot, .sec-rule { flex-wrap: wrap; }
.field-error { color: var(--ink); }
.form-status.is-success {
  border-style: solid;
  border-color: var(--ink);
  color: var(--ink);
}
.consult-form .consent input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}
.work-copy h2 { line-height: 1.12; }
.work-rule .meta-grp { display: inline-flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.work-rule .dot-mark { color: var(--paper); }
.pill.active:focus-visible {
  outline-color: var(--paper);
}
.nav-toggle:focus-visible {
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  color: var(--ink);
  border-color: var(--ink);
}
.foot-lead { margin-top: 18px; }
.foot-bottom b { color: var(--ink); font-weight: 600; }
@media (max-width: 1400px) {
  .labs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
@media (max-width: 1080px) {
  .labs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .foot-brand { grid-column: 1 / -1; max-width: 52ch; }}
@media (max-width: 880px) {
  .labs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-rule .meta-grp { flex-wrap: wrap; gap: 10px 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }}
@media (max-width: 560px) {
  .labs-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .consult-form .btn { width: 100%; }
  .labs-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .consult-form .form-row,
  .work-facts { grid-template-columns: 1fr; }}