/* =========================================================
   Мастерская Тюрина и Дедюлина — светлый монохром
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --bg: #e7e7e4;
  --bg-2: #dcdcd8;
  --paper: #f5f5f3;
  --white: #ffffff;
  --ink: #0c0c0d;
  --ink-2: #3b3b3e;
  --muted: #76767a;
  --line: #cbcbc6;
  --line-2: #b3b3ae;

  --dark: #0c0c0d;
  --dark-2: #161618;
  --dark-line: #2a2a2d;
  --dark-text: #a5a5a9;

  --err: #b3261e;
  --ok: #1f6f47;

  --container: 1320px;
  --gutter: 32px;
  --header-h: 76px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* мелкий капс с разрядкой — фирменный приём */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker--light { color: var(--dark-text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--black { background: var(--ink); color: var(--white); }
.btn--black:hover { background: #2b2b2e; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--bg); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 11.5px; }
.btn--lg { height: 58px; font-size: 13px; }
.btn--block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.link-btn:hover { opacity: .6; }
.link-btn--light { color: var(--white); }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--dark);
  color: #d9d9db;
  font-size: 12px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 36px;
}
.topbar__links { display: flex; gap: 22px; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--white); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 231, 228, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.nav { display: flex; gap: 30px; }
.nav > a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  transition: right .25s;
}
.nav > a:hover::after,
.nav > a.is-active::after { right: 0; }
.nav__extra { display: none; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}
.logo__mark {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.logo__sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.logo--light { color: var(--white); align-items: flex-start; }

.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.header__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transition: opacity .2s;
}
.header__icon:hover { opacity: .6; }
.header__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.header__cta { margin-left: 8px; }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--ink);
  transition: transform .25s, background-color .2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before,
.burger span::after { content: ""; left: 0; margin-left: 0; }
.burger span::before { transform: translateY(-7px); }
.burger span::after { transform: translateY(7px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- 1. Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #f3f3f1 0%, var(--bg) 70%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(600px, calc(100vh - 112px), 880px);
  padding-top: 48px;
  padding-bottom: 36px;
}
.hero__kicker,
.hero__note {
  position: absolute;
  z-index: 3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__kicker { left: var(--gutter); top: 48px; }
.hero__note { right: var(--gutter); bottom: 120px; text-align: left; }
.hero__kicker::after,
.hero__note::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 12px;
  background: var(--ink);
}

.hero__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  transform: translateY(-56%);
  text-align: center;
  pointer-events: none;
}
.hero__word {
  display: block;
  font-size: clamp(84px, 20vw, 330px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.055em;
  color: var(--ink);
  white-space: nowrap; /* буквы — отдельные span-ы: без этого слово переносится по буквам */
  user-select: none;
}
.hero__word .ch { display: inline-block; }

.hero__stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 96px;
  z-index: 2;
  touch-action: pan-y;
}
.hero__stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  cursor: grab;
}
.hero__stage canvas.is-ready { opacity: 1; }
.hero__stage canvas:active { cursor: grabbing; }

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .5s;
}
.hero__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hero__hint.is-hidden { opacity: 0; }
.hero__callouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__lines line { stroke: var(--ink); stroke-width: 1; }
.hero__lines circle { fill: var(--ink); }
.hero__lines circle.ring { fill: none; stroke: var(--ink); }
.callout {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .45s;
  will-change: transform;
}
.callout i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0;
}
.hero__callouts.is-on .callout.is-placed { opacity: 1; }
.hero__lines { opacity: 0; transition: opacity .45s; }
.hero__callouts.is-on .hero__lines { opacity: 1; }

.hero__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__legend { display: none; }
/* без WebGL переключатель и легенда не нужны */
.hero:not(.hero--3d) .switch,
.hero:not(.hero--3d) .hero__legend,
.hero:not(.hero--3d) .hero__callouts { display: none; }

.switch {
  display: inline-flex;
  border: 1px solid var(--ink);
}
.switch button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- 2. Направления (чёрная полоса) ---------- */
.band {
  background: var(--dark);
  color: var(--white);
}
.band__title {
  padding: 22px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.band__title span { color: var(--dark-text); font-weight: 500; }
.band__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.band__list li + li { border-left: 1px solid var(--dark-line); }
.band__item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 34px 28px 28px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background-color .25s;
}
.band__item:hover { background: var(--dark-2); }
.band__icon {
  width: 110px;
  height: 60px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.band__text b {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}
.band__text span { display: block; font-size: 14px; line-height: 1.5; color: var(--dark-text); }
.band__arrow {
  justify-self: end;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.4;
  transition: transform .25s;
}
.band__item:hover .band__arrow { transform: translateX(5px); }

.band__note {
  padding: 20px 0 24px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark-text);
}

/* ---------- 3. Точность (станок) ---------- */
.precision {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.precision .cnc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.precision .cnc__screen,
.precision .cnc__stage3d {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.precision .cnc__screen { filter: grayscale(1) contrast(1.05); }
.precision__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 680px;
  padding-top: 104px;
  padding-bottom: 48px;
  pointer-events: none;
}
.precision__inner > * { pointer-events: auto; }
.precision__title {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.precision__text {
  max-width: 360px;
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--ink-2);
}
.precision__steps {
  display: flex;
  gap: 4px;
  max-width: 500px;
}
.precision__steps li { flex: 1; }
.cnc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 10px 14px 0;
  border: 0;
  border-top: 1px solid var(--line-2);
  background: none;
  text-align: left;
  cursor: pointer;
}
.cnc-step__num { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.cnc-step__title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.cnc-step__text { font-size: 12px; color: var(--muted); }
.cnc-step__bar {
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--ink);
}
.cnc-step.is-done .cnc-step__bar { width: 100%; opacity: .35; }
.cnc-step.is-active .cnc-step__title,
.cnc-step.is-active .cnc-step__num { color: var(--ink); }
.cnc-step:hover .cnc-step__title { color: var(--ink); }

/* 3D-версия станка (assets/js/cnc3d.js) */
.cnc__stage3d {
  display: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
  opacity: 0;
  transition: opacity .9s ease;
}
.cnc--3d .cnc__stage3d { display: block; }
.cnc--3d .cnc__screen { display: none; }
.cnc__stage3d.is-ready { opacity: 1; }
.cnc__stage3d canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.cnc__cam { display: none; }

/* элементы плоской SVG-версии станка (запасной вариант без WebGL) */
.cnc__screen { display: block; width: 100%; height: auto; background: #06080b; }
.cnc--instant .cnc-slot,
.cnc--instant .cnc-hole,
.cnc--instant .cnc-anod-level,
.cnc--instant .cnc-mark-wipe,
.cnc--instant .cnc-engrave { transition: none !important; }

.cnc-rail { transition: opacity .35s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.cnc-rail.is-out { opacity: 0; transform: translateX(-60px); }
.cnc-anod-level { transform: translateY(100px); transition: transform 1.8s cubic-bezier(.45, 0, .25, 1); }
.cnc.is-anodized .cnc-anod-level { transform: translateY(0); }
.cnc-slot rect:first-child { fill: rgba(0, 0, 0, .5); }
.cnc-slot rect:last-child { fill: rgba(0, 0, 0, .55); }
.cnc-slot { opacity: 0; transition: opacity .18s; }
.cnc-slot.is-on { opacity: 1; }
.cnc-hole circle:first-child { fill: rgba(0, 0, 0, .35); }
.cnc-hole circle:last-child { fill: #05070a; }
.cnc-hole {
  opacity: 0;
  transform: scale(.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cnc-hole.is-on { opacity: 1; transform: scale(1); }
.cnc-mark rect { fill: rgba(255, 255, 255, .08); stroke: #e8e8e8; stroke-width: 2; }
.cnc-mark text { font: 700 20px var(--font); fill: #e8e8e8; letter-spacing: 3px; }
.cnc-mark-wipe { transform: translateX(-104px); }
.cnc.is-marked .cnc-mark-wipe { transform: translateX(0); }
.cnc-engrave { font: 600 10px var(--font-mono); letter-spacing: .14em; fill: rgba(255, 255, 255, .32); opacity: 0; transition: opacity .6s; }
.cnc.is-engraved .cnc-engrave { opacity: 1; }
.cnc-vise rect { fill: #1a212c; stroke: #3a4555; }
.cnc-vise circle { fill: #0d1117; stroke: #4b5667; }
.cnc-vise { transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.cnc.is-unclamped .cnc-vise--l { transform: translateX(-16px); }
.cnc.is-unclamped .cnc-vise--r { transform: translateX(16px); }
.cnc-tool { transform: translate(450px, -70px); transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.cnc-tool.is-idle { opacity: .45; }
.cnc-tool__laser, .cnc-sparks, .cnc-beam, .cnc-beam-dot { opacity: 0; transition: opacity .2s; }
.cnc-tool.is-laser .cnc-tool__laser { opacity: 1; }
.cnc-tool.is-laser .cnc-tool__cutter { opacity: 0; }
.cnc-tool.is-firing .cnc-beam, .cnc-tool.is-firing .cnc-beam-dot { opacity: 1; }
.cnc-tool.is-cutting .cnc-sparks { opacity: 1; }
.cnc-beam { stroke: #ff5a3c; stroke-width: 2.5; animation: cnc-flicker .12s steps(2) infinite; }
.cnc-chip { fill: #ffd36b; animation: cnc-chip .55s linear infinite; }
@keyframes cnc-chip {
  from { transform: translate(0, 0); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}
@keyframes cnc-flicker { 50% { opacity: .65; } }

/* ---------- Общие секции ---------- */
.section { padding: 112px 0; }
.section--white { background: var(--paper); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 44px;
}
.section__title {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.section__aside {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- 4. Технологический цикл ---------- */
.cards { display: grid; gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  padding-bottom: 30px;
  transition: border-color .25s;
}
.card:hover { border-color: var(--ink); }
.card__pic {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;
  margin-bottom: 26px;
  background: #ededea;
}
.card__pic svg {
  width: 72%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.card__pic .dash { stroke-dasharray: 4 4; stroke: var(--muted); }
.card__num,
.card__title,
.card__text { padding: 0 26px; }
.card__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.card__title { margin: 8px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.2; }
.card__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 5. Мастера ---------- */
.masters__lead {
  max-width: 980px;
  margin-bottom: 56px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.masters__lead b { font-weight: 800; }
.masters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.master {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.master__photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  background: var(--bg-2);
}
.master__photo span {
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  color: #c9c9c4;
}
.master__photo small {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.master__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 30px;
  font-size: 15px;
  color: var(--ink-2);
}
.master__role { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.master__name { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.master__fact { font-size: 15px; color: var(--ink); }
.master__fact b { font-size: 22px; font-weight: 800; margin-right: 4px; }
.master__quote {
  margin: auto 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.stats li { padding: 26px 20px 0 0; }
.stats b {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.stats span { font-size: 13.5px; color: var(--muted); }

/* ---------- 6. Опт ---------- */
.wholesale {
  padding: 112px 0;
  background: var(--dark);
  color: var(--white);
}
.wholesale__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.wholesale__title {
  margin: 18px 0 20px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.wholesale__lead {
  max-width: 440px;
  margin-bottom: 36px;
  font-size: 17px;
  color: var(--dark-text);
}
.wholesale__list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-line);
}
.wholesale__list li:last-child { border-bottom: 1px solid var(--dark-line); }
.wholesale__list span { grid-row: span 2; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--dark-text); padding-top: 5px; }
.wholesale__list b { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.wholesale__list p { font-size: 14.5px; color: var(--dark-text); }

/* ---------- 7. Работы ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.work p { margin-top: 12px; font-size: 15px; font-weight: 600; }
.work__pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .025) 14px 15px),
    var(--bg-2);
}
.work__pic svg {
  width: 46%;
  fill: none;
  stroke: #8d8d89;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.work__pic small {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* отзывы с Авито */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  gap: 16px;
  margin-top: 56px;
}
.reviews__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 30px;
  background: var(--ink);
  color: var(--white);
}
.reviews__rating { display: flex; align-items: baseline; gap: 8px; }
.reviews__rating b { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.reviews__rating span { font-size: 15px; color: var(--dark-text); }
.reviews__stars { display: flex; gap: 3px; }
.reviews__stars svg,
.review__stars svg { width: 16px; height: 16px; fill: currentColor; }
.reviews__count { margin-bottom: 14px; font-size: 14px; color: var(--dark-text); }
.reviews__summary .btn { margin-top: auto; max-width: 100%; height: auto; min-height: 50px; padding: 12px 18px; white-space: normal; text-align: center; line-height: 1.3; }
.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}
.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
}
.review__avatar svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.review__stars { display: flex; gap: 2px; width: 100%; color: var(--ink); }
.review__stars svg { width: 13px; height: 13px; }
.review__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.review__text--todo { color: var(--muted); font-style: italic; }

/* ---------- 8. Заявка ---------- */
.order {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.order__text { max-width: 420px; margin: 22px 0 40px; font-size: 17px; color: var(--ink-2); }
.order__quick { padding-top: 28px; border-top: 1px solid var(--line); }
.order__quick p { margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.order__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.form {
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--white);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.input::placeholder { color: #9d9da0; }
.input:hover { border-color: #8f8f8b; }
.input:focus { outline: none; border-color: var(--ink); }
textarea.input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }

.segmented { display: flex; flex-wrap: wrap; }
.segmented legend { width: 100%; }
.segmented label {
  flex: 1;
  margin: 0;
  cursor: pointer;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.segmented label + label span { border-left: 0; }
.segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.drop {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 18px;
  border: 1px dashed var(--line-2);
  font-weight: 400 !important;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover,
.drop.is-over { border-color: var(--ink); background: #f4f4f2; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.drop__text { font-size: 14px; }
.drop__text b { font-weight: 700; }
.drop__text small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.drop__list { display: grid; gap: 6px; margin-top: 8px; }
.drop__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--bg);
  font-size: 13px;
}
.drop__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__list small { color: var(--muted); white-space: nowrap; }
.drop__list button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.field__error { display: none; margin-top: 6px; font-size: 13px; color: var(--err); }
.field.is-invalid .input,
.field.is-invalid .drop { border-color: var(--err); }
.field.is-invalid .field__error { display: block; }

.field .check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--line-2);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.check input:checked { border-color: var(--ink); background: var(--ink); }
.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border: 2px solid var(--white);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
.check a { color: var(--ink); text-underline-offset: 3px; }
.field--check { margin: 8px 0 24px; }
.field__hint { margin: 8px 0 0 32px; font-size: 12.5px; color: var(--muted); }
.field__hint a { color: var(--ink-2); text-underline-offset: 3px; }
.field--check.is-invalid .check input { border-color: var(--err); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { display: none; margin-top: 14px; padding: 12px 14px; font-size: 14px; }
.form__status a { color: inherit; font-weight: 600; }
.form__status.is-error { display: block; border: 1px solid var(--err); color: var(--err); }
.form__status.is-ok { display: block; border: 1px solid var(--ok); color: var(--ok); }

/* ---------- Подвал ---------- */
.footer {
  padding-top: 72px;
  background: var(--dark);
  color: var(--dark-text);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}
.footer__brand p { max-width: 340px; margin-top: 18px; }
.footer__title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--white); text-decoration: none; transition: opacity .2s; }
.footer__links a:hover { opacity: .6; }
.footer__addr { margin-bottom: 16px; color: var(--white); }

.map {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 32 / 9;
  margin-bottom: 40px;
  border: 1px solid var(--dark-line);
  background:
    linear-gradient(var(--dark-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--dark-2);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.map__load {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--white);
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.map__load:hover { background: var(--white); color: var(--ink); }
.map__load svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
}
.footer__bottom a { color: var(--dark-text); text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--white); }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__req { margin-top: 12px; font-size: 13px; color: var(--white); }
.footer__disclaimer {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: #7d7d82;
}
.map__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-size: 11.5px;
  text-align: center;
  color: var(--dark-text);
}

/* плашка о cookie */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  padding: 14px 16px 14px 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  font-size: 13px;
  line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--ink); text-underline-offset: 3px; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- Попапы ---------- */
.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 44px 40px 40px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(12, 12, 13, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
}
.modal__close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.modal__title { margin-bottom: 10px; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.modal__text { margin-bottom: 24px; font-size: 15px; color: var(--ink-2); }
.modal__text a { color: var(--ink); font-weight: 600; }
.form--modal { padding: 0; border: 0; background: none; }
.modal--thanks { text-align: center; }
.modal__check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--ink);
}
.modal__check svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar { display: none; }

/* ---------- Страница политики ---------- */
.header--simple .header__inner { display: flex; justify-content: space-between; }
.header--simple .logo { align-items: flex-start; }
.doc { padding: 72px 0 112px; }
.doc__inner { max-width: 820px; }
.doc h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-transform: uppercase; }
.doc h2 { margin: 44px 0 14px; font-size: 20px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 10px; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ink); }
.doc__meta { margin-bottom: 32px; font-size: 13px; color: var(--muted); }
.doc__todo { padding: 1px 6px; background: #f3d6d3; color: var(--err); font-style: normal; }
.doc__card { margin-top: 16px; padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
.doc__back { display: inline-flex; margin-bottom: 32px; font-size: 14px; text-decoration: none; }
.doc__back:hover { text-decoration: underline; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__list li:nth-child(3) { border-left: 0; }
  .band__list li:nth-child(n + 3) { border-top: 1px solid var(--dark-line); }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .master { grid-template-columns: minmax(0, 1fr); }
  .master__photo { min-height: 220px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    padding: 8px var(--gutter) 28px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 30px 50px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; }
  .nav > a::after { display: none; }
  .nav__extra { display: grid; gap: 10px; margin-top: 24px; }

  .precision .cnc { width: 80%; }
  .order, .wholesale__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .masters { grid-template-columns: minmax(0, 1fr); }
  .master { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(n + 3) { margin-top: 24px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }

  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .header__cta, .header__icon:first-child { display: none; }
  .logo__mark { font-size: 24px; }
  .logo__sub { font-size: 8px; letter-spacing: .26em; }

  .hero__inner {
    display: block;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .hero__kicker,
  .hero__note { position: static; font-size: 11px; }
  .hero__note { display: none; }
  .hero__title { position: static; transform: none; margin-top: 28px; }
  .hero__word { font-size: 23vw; }
  .hero__stage {
    position: relative;
    top: auto;
    bottom: auto;
    height: 66vw;
    margin-top: -30vw;
  }
  .callout { padding: 0; background: none; }
  .hero__hint { bottom: -6px; font-size: 10px; letter-spacing: .1em; }
  .callout span { display: none; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 8px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__actions .link-btn { align-self: center; }
  .switch { align-self: center; }
  .hero__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .hero__legend li { display: flex; align-items: center; gap: 6px; }
  .hero__legend i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    background: var(--ink);
    color: var(--white);
    font-size: 10px;
    font-style: normal;
  }

  .band__list { grid-template-columns: minmax(0, 1fr); }
  .band__list li + li { border-left: 0; border-top: 1px solid var(--dark-line); }
  .band__item { min-height: 0; grid-template-columns: 76px minmax(0, 1fr) 22px; grid-template-rows: auto; align-items: center; gap: 16px; padding: 22px 0; }
  .band__icon { width: 76px; height: 42px; }
  .band__text b { font-size: 16px; margin-bottom: 4px; }
  .band__text span { font-size: 13px; }
  .band__arrow { width: 22px; height: 22px; }

  .precision .cnc {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .precision .cnc__screen { height: 100%; }
  .precision__inner { min-height: 0; padding-top: 8px; padding-bottom: 56px; gap: 32px; }
  .precision__title br { display: none; }
  .precision__steps { gap: 2px; }
  .cnc-step__text { display: none; }
  .cnc-step__title { font-size: 10.5px; letter-spacing: .02em; }

  .btn { height: auto; min-height: 50px; padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.3; }
  .wholesale .btn { width: 100%; }
  .section, .wholesale { padding: 72px 0; }
  .section__head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .cards--4 { grid-template-columns: minmax(0, 1fr); }
  .master { grid-template-columns: minmax(0, 1fr); }
  .master__photo { min-height: 180px; }
  .master__photo span { font-size: 110px; }
  .master__body { padding: 24px 20px; }
  .masters__lead { margin-bottom: 36px; }
  .stats li { padding-right: 12px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work p { font-size: 13px; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .order__buttons .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .map { aspect-ratio: 4 / 3; }
  .modal { padding: 40px 20px 24px; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(231, 231, 228, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform .25s, opacity .25s;
  }
  .mobile-bar .btn { height: 46px; padding: 0 12px; }
  .cookie { left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; }
  .switch button { padding: 0 14px; font-size: 10.5px; letter-spacing: .08em; }
  .reviews { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .reviews__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .reviews__rating b { font-size: 52px; }
  .mobile-bar.is-hidden,
  .menu-open .mobile-bar { transform: translateY(100%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 68px; }
}

/* =========================================================
   Вступление (только при html.intro-on: без JS и при «меньше движения» его нет)
   ========================================================= */
.intro { display: none; }
.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--white);
  transition: transform 1s cubic-bezier(.77, 0, .18, 1);
  animation: intro-failsafe .01s 7s forwards; /* если скрипт не загрузился — убираем сами */
}
.intro.is-out { transform: translateY(-100%); }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__mark {
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(24px);
  animation: intro-mark .8s .1s cubic-bezier(.16, 1, .3, 1) forwards;
}
.intro__bar {
  position: relative;
  width: 240px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}
.intro__bar i {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.intro__meta {
  display: flex;
  justify-content: space-between;
  width: 240px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8d8d92;
  font-variant-numeric: tabular-nums;
}
.intro.is-out .intro__inner { opacity: 0; transform: translateY(-40px); transition: opacity .5s, transform .8s cubic-bezier(.77, 0, .18, 1); }
@keyframes intro-mark { to { opacity: 1; transform: none; } }
@keyframes intro-failsafe { to { visibility: hidden; transform: translateY(-100%); } }
@keyframes intro-show { to { opacity: 1; transform: none; } }
.intro-lock, .intro-lock body { overflow: hidden; }

/* слово «ТЮНИНГ»: буквы вырастают из-под линии и стягиваются */
.intro-on .hero__word { clip-path: inset(-20% -10vw 0 -10vw); letter-spacing: .06em; }
.intro-on .hero__word .ch {
  display: inline-block;
  transform: translateY(105%);
  animation: intro-show .01s 7s forwards;
}
.is-revealed .hero__word {
  letter-spacing: -.055em;
  transition: letter-spacing 1.8s cubic-bezier(.16, 1, .3, 1) .15s;
}
.is-revealed .hero__word .ch {
  transform: none;
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(.12s + var(--i) * .075s);
}

/* шапка и тексты первого экрана — лесенкой */
.intro-on .topbar,
.intro-on .header,
.intro-on .hero__kicker,
.intro-on .hero__note,
.intro-on .hero__bottom,
.intro-on .hero__legend {
  opacity: 0;
  transform: translateY(18px);
  animation: intro-show .01s 7s forwards;
}
.intro-on .topbar,
.intro-on .header { transform: translateY(-100%); }
.is-revealed .topbar,
.is-revealed .header,
.is-revealed .hero__kicker,
.is-revealed .hero__note,
.is-revealed .hero__bottom,
.is-revealed .hero__legend {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.is-revealed .topbar { transition-delay: .35s; }
.is-revealed .header { transition-delay: .45s; }
.is-revealed .hero__kicker { transition-delay: .9s; }
.is-revealed .hero__note { transition-delay: 1.05s; }
.is-revealed .hero__bottom { transition-delay: 2.2s; }
.is-revealed .hero__legend { transition-delay: 2.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
