/* GR Aluprom: публичный сайт (gr-aluprom.ru).
   Направление: строгий инженерный B2B, фирменный синий #0E5794 (как в логотипе), крупная
   производственная фотография. Скругления: кнопки и поля 8px, карточки и
   фото 14px. Одна тема на страницу, тёмная по prefers-color-scheme. */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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 {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #141a26;
  --text: #253041;
  --muted: #5b6472;
  --line: #dde3ea;
  --accent: #0e5794;
  --accent-hover: #0b4779;
  --accent-soft: #e9f0fa;
  --on-accent: #ffffff;
  --success: #1f7a45;
  --error: #b42318;
  --shadow: 0 1px 2px rgba(20, 26, 38, .05), 0 12px 32px -12px rgba(20, 26, 38, .16);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 68px;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-zh: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Onest", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b;
    --surface: #151c26;
    --surface-2: #1b2430;
    --ink: #eef2f7;
    --text: #d3dae3;
    --muted: #9aa6b4;
    --line: #283342;
    --accent: #5fa4dd;
    --accent-hover: #81b7e4;
    --accent-soft: #132a3d;
    --on-accent: #0b1220;
    --success: #4cc283;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.lang-zh { font-family: var(--font-zh); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.3vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: 0; line-height: 1.3; }
/* китайские заголовки переносим по словам (границы — U+200B в zh.json), а не посреди слова */
.lang-zh h1, .lang-zh h2 { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s cubic-bezier(.16, 1, .3, 1);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .icon { transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .icon { transform: translateX(3px); }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand-logo { height: 44px; width: auto; }
.brand-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-logo-light { display: none; }
  .brand-logo-dark { display: block; }
}
/* Тёмная шапка над тёмным первым экраном (главная, «Матрицы», «Оборудование»): те же
   токены, что у тёмных разделов .line, и белый логотип; выпадающее меню на телефоне тоже. */
.has-dark-top .site-header {
  --bg: #0d141e; --surface: #151c26; --surface-2: #1b2430;
  --ink: #eef2f7; --text: #d3dae3; --muted: #9aa6b4; --line: #26344a;
  --accent: #5fa4dd; --accent-hover: #81b7e4; --on-accent: #0b1220;
  color-scheme: dark;
}
.has-dark-top .site-header .brand-logo-light { display: none; }
.has-dark-top .site-header .brand-logo-dark { display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.main-nav > a { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav > a:hover { color: var(--accent); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lang-switch a, .lang-switch .lang-current { padding: 3px 8px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch .lang-current { background: var(--surface-2); color: var(--ink); }
.lang-switch a:hover { color: var(--accent); }
.header-cta { flex: 0 0 auto; }
.cta-short { display: none; }
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; line-height: 0; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-icon-close { display: none; }

/* Hero: текст слева, фото справа */
.hero { padding: 56px 0 72px; }
/* в меню — страница, на которой посетитель */
.main-nav > a[aria-current="page"] { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 24ch; }
.lang-zh .hero-copy h1 { max-width: 14em; }
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Витрина: кто мы и две карточки направлений, у каждого своя страница */
.hub { padding: 56px 0 88px; }
.dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dir {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.dir:hover { transform: translateY(-3px); }
.dir img { display: block; flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 2 / 1; object-fit: cover; background: var(--surface-2); }
.dir-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px; }
.dir-title { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.dir-text { color: var(--muted); }
.dir-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--accent); }
.dir-link .icon { transition: transform .2s; }
.dir:hover .dir-link .icon { transform: translateX(3px); }
/* Главная: первый экран с прессом в разрезе (initHeroPress) */
.line.hero-press { padding: 64px 0 72px; }
.hero-press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero-press-copy h1 { max-width: 18ch; font-size: clamp(2rem, 3.1vw, 2.85rem); }
.lang-zh .hero-press-copy h1 { max-width: 12em; }
.hero-press-copy .hero-sub { margin-top: 20px; max-width: 44ch; }
.hero-press-fig { position: relative; margin: 0; }
.hero-press-view {
  aspect-ratio: 16 / 11;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9% 91%, transparent), linear-gradient(180deg, transparent, #000 9% 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9% 91%, transparent), linear-gradient(180deg, transparent, #000 9% 91%, transparent);
  mask-composite: intersect;
}
.hero-press-view .line-iso, .hero-press-view svg { display: block; width: 100%; height: 100%; }
.hero-press .line-scene { cursor: default; touch-action: auto; }
.hero-press-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--ex-muted); }
.hero-press-mark {
  position: absolute; transform: translate(-50%, calc(-100% - 22px)); padding: 4px 11px;
  border: 1px solid var(--ex-accent); border-radius: 999px; background: rgba(13, 20, 30, .9);
  color: var(--ex-ink); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.hero-press-mark::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--ex-accent); }
.hero-press-facts { margin-top: 56px; }
/* Четыре факта под первым экраном: чем мы отличаемся, одной строкой */
.hero-facts {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line);
}
.hero-facts li { display: grid; align-content: start; gap: 4px; padding: 22px 24px 0; }
.hero-facts li:first-child { padding-left: 0; }
.hero-facts li + li { border-left: 1px solid var(--line); }
.hero-facts b { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.hero-facts span { font-size: 15px; color: var(--muted); }

/* Секции */
.section { padding: 88px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 60ch; }

.check-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list .icon { color: var(--accent); margin-top: 4px; }

/* Почему мы: фото слева, список справа */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.why-media { margin: 0; border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; background: var(--surface-2); }
.why-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* схемы вместо фото: вписаны целиком, с полями */
.dir img.dir-scheme { object-fit: contain; padding: 18px 24px 6px; }
.why-media img.why-scheme { object-fit: contain; padding: 5%; }
.why-copy h2 { margin-bottom: 28px; }
.why-list { margin: 0; display: grid; gap: 0; }
.why-item { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 20px; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item dt { color: var(--ink); font-weight: 600; }
.why-item dd { margin: 0; color: var(--muted); }

/* Заявка */
.section-request { background: var(--surface-2); }
.request-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 56px; align-items: start; }
/* Сроки КП у формы: что будет после заявки */
.lead-promise { margin-top: 28px; max-width: 60ch; }
.lead-promise > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.lead-promise dt { font-weight: 600; color: var(--ink); }
.lead-promise dd { margin: 0; color: var(--muted); }
.contact-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-block h3 { margin-bottom: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--accent); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-phones { align-items: flex-start !important; }
.contact-phones .icon { margin-top: 2px; }
.contact-phones > span { display: grid; gap: 4px; }
.contact-label { font-size: 14px; color: var(--muted); }

.request-form { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.req { color: var(--error); }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input[type="text"], .field.has-error textarea { border-color: var(--error); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-error, .form-error { font-size: 13px; color: var(--error); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: var(--bg); transition: background-color .15s, border-color .15s, color .15s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-drop { display: flex !important; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius-sm); background: var(--accent-soft); cursor: pointer; font-weight: 400 !important; }
.file-drop .icon { color: var(--accent); width: 22px; height: 22px; }
.file-drop-text { display: grid; gap: 2px; }
.file-drop-text strong { color: var(--ink); font-size: 15px; }
.file-drop-text span { color: var(--muted); font-size: 13px; }
.file-drop.is-dragover { border-color: var(--accent); border-style: solid; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.file-list:empty { display: none; }
.file-remove { margin-left: 6px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.file-remove:hover { color: var(--error); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--text) !important; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.btn-submit { justify-self: start; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 40px 12px; display: grid; gap: 10px; justify-items: center; }
.form-success[hidden] { display: none; }
.form-success-icon .icon { width: 48px; height: 48px; color: var(--success); }
.request-form.is-sent > :not(.form-success) { display: none; }
[hidden] { display: none !important; }

/* Политика */
.legal-container { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p { color: var(--text); }
.legal-updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.credits { padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 36px; width: auto; }
.footer-about { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-legal a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-legal a:hover { color: var(--accent); }
.footer-legal { color: var(--muted); display: grid; gap: 4px; align-content: start; }
.footer-copy { margin-top: 10px; }

/* Линия прессования: тёмный раздел, схема на всю ширину и высоту окна, карточка узла
   всплывает поверх неё. Внутри раздела
   общие токены (--accent, --text и т. д.) переопределены под тёмный фон, поэтому кнопки
   и списки берут их сами. Без JS схемы нет, карточки узлов и шаги идут списком.
   Оранжевый на схеме только у нагретого металла, интерфейс в фирменном синем. */
.line {
  --ex-bg: #0d141e; --ex-ink: #eef2f7; --ex-muted: #9aa6b4; --ex-line: #26344a; --ex-accent: #5fa4dd;
  --accent: #5fa4dd; --accent-hover: #81b7e4; --on-accent: #0b1220;
  --ink: var(--ex-ink); --text: #d3dbe6; --muted: var(--ex-muted); --line: var(--ex-line);
  padding: 96px 0 0; background: var(--ex-bg); color: var(--text);
}
.line h2, .line h3, .line h4 { color: var(--ex-ink); }
.line-head { max-width: 48rem; margin-bottom: 36px; }
.line-eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ex-accent); letter-spacing: .02em; }
.line-lead { margin-top: 14px; font-size: 18px; color: var(--ex-muted); max-width: 60ch; }
/* Направления над схемой линий: оснастка, линии, станки и запчасти */
.eq-groups { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0 0 56px; padding: 0; }
.eq-group { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--ex-line); }
.eq-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(95, 164, 221, .12); color: var(--ex-accent); }
.eq-group h2 { margin-top: 6px; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
.eq-group p { font-size: 15px; color: var(--ex-muted); }
.eq-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--ex-accent); text-decoration: none; }
.eq-link .icon { transition: transform .2s; }
.eq-link:hover .icon { transform: translateX(3px); }
/* Схема на всю ширину окна, а кнопки и окно узла поверх неё — по сетке страницы (--edge —
   отступ края .container от края окна), в одну линию с заголовком и текстом над схемой. */
.line-explorer { position: relative; --edge: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter)); }
.line-stage { display: none; }
/* Без JS окна нет: карточки идут списком в ширину страницы */
.line-panel { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.line-close { display: none; }

/* Карточки: общая типографика */
.line-card h3 { font-size: 1.5rem; }
.line-text { margin-top: 10px; color: var(--ex-muted); }
.line-card h4 { margin: 22px 0 10px; font-size: 14px; font-weight: 600; }
.line-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--ex-muted); }
.line-crumbs a { color: var(--ex-muted); text-decoration: none; }
.line-crumbs a:hover { color: var(--ex-ink); }
.line-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.line-step-nav { display: flex; gap: 6px; margin-top: -4px; }
.line-step-nav button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--ex-line); border-radius: 50%; background: none; color: var(--ex-ink); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.line-step-nav button:hover { border-color: var(--ex-accent); background: rgba(95, 164, 221, .12); }
.line-cta { margin-top: 26px; }

/* Обзор: все узлы по участкам кнопками */
.line-index { display: grid; gap: 14px; margin-top: 22px; }
.line-index-zone { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ex-line); }
.line-index-name { justify-self: start; font-size: 13px; font-weight: 600; color: var(--ex-accent); text-decoration: none; }
.line-index-name:hover { text-decoration: underline; }
.line-index-zone p { display: flex; flex-wrap: wrap; gap: 6px; }
.line-index-zone p a, .line-els a { transition: border-color .15s, background-color .15s, color .15s; }
.line-index-zone p a {
  padding: 5px 11px; border: 1px solid var(--ex-line); border-radius: 999px;
  font-size: 14px; color: var(--ex-ink); text-decoration: none;
}
.line-index-zone p a:hover { border-color: var(--ex-accent); background: rgba(95, 164, 221, .12); }

/* Участок: узлы списком, под именем — что по нему поставляем */
.line-els { list-style: none; margin: 18px 0 0; padding: 0; }
.line-els a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  padding: 13px 4px; border-top: 1px solid var(--ex-line); color: var(--ex-ink); text-decoration: none;
}
.line-els li:last-child a { border-bottom: 1px solid var(--ex-line); }
.line-els b { font-weight: 600; }
.line-els span { grid-column: 1; font-size: 14px; color: var(--ex-muted); }
.line-els .icon { grid-column: 2; grid-row: 1 / 3; color: var(--ex-muted); transition: transform .2s, color .2s; }
.line-els a:hover .icon { color: var(--ex-accent); transform: translateX(3px); }

/* Узел: запчасти раскрываются, у каждой своя кнопка в заявку */
.line-parts { border-top: 1px solid var(--ex-line); }
.line-part { border-bottom: 1px solid var(--ex-line); }
.line-part summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px;
  font-weight: 600; color: var(--ex-ink); cursor: pointer; list-style: none;
}
.line-part summary::-webkit-details-marker { display: none; }
.line-part summary .icon { color: var(--ex-muted); transition: transform .2s, color .2s; }
.line-part summary:hover .icon { color: var(--ex-accent); }
.line-part[open] summary .icon { transform: rotate(90deg); color: var(--ex-accent); }
.line-part-body { padding: 0 4px 18px; font-size: 15px; }
.line-part-body > p:first-child { color: var(--ex-muted); }
.line-part-label { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ex-ink); }
.line-send { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.line-part-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--ex-accent); text-decoration: none; }
.line-part-cta .icon { transition: transform .2s; }
.line-part-cta:hover .icon { transform: translateX(3px); }

/* Шаги процесса: без JS списком, при проигрывании видна одна подпись */
.line-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.line-step { padding-top: 18px; border-top: 1px solid var(--ex-line); }
.line-step-num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ex-accent); font-variant-numeric: tabular-nums; }
.line-step h3 { margin-bottom: 8px; }
.line-step p { color: var(--ex-muted); }
.line-steps-cta { margin-top: 18px; }

/* Без JS: карточки сеткой, участок отдельной строкой над своими узлами */
.line:not(.is-live) .line-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.line:not(.is-live) .line-card[data-card=""], .line:not(.is-live) .line-card-zone, .line:not(.is-live) .line-steps { grid-column: 1 / -1; }
.line:not(.is-live) .line-index, .line:not(.is-live) .line-card-zone .line-els,
.line:not(.is-live) .line-crumbs, .line:not(.is-live) .line-step-nav { display: none; }
/* без JS обзор линии — заголовок её карточек */
.line:not(.is-live) .line-card-overview:not(:first-child) { padding-top: 56px; }
.line:not(.is-live) .line-card-zone { padding-top: 24px; border-top: 1px solid var(--ex-line); }

/* Со схемой */
.line.is-live .line-stage { display: block; }
/* Окно узла поверх схемы: справа (на телефоне снизу), высота по содержимому, длинное
   прокручивается внутри. В процессе в нём подпись шага. */
.line.is-live .line-panel {
  position: absolute; top: 16px; right: var(--edge); z-index: 3; display: none; flex-direction: column;
  width: min(400px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: 0; padding: 0;
  background: rgba(16, 24, 36, .95); border: 1px solid var(--ex-line); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(2, 6, 12, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.line.has-card .line-panel, .line.is-playing .line-panel { display: flex; animation: line-pop .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes line-pop { from { opacity: 0; transform: translateX(16px); } }
.line.is-live .line-scroll {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 24px;
  scrollbar-width: thin; scrollbar-color: var(--ex-line) transparent;
}
.line-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--ex-ink); cursor: pointer;
  transition: background-color .15s;
}
.line-close:hover { background: rgba(255, 255, 255, .12); }
.line.is-live .line-close { display: inline-grid; }
.line.is-playing .line-close { display: none; }
/* место под крестик в первой строке карточки */
.line.is-live .line-card-top, .line.is-live .line-card-overview .line-kicker, .line.is-live .line-card-zone .line-crumbs { margin-right: 40px; }
.line-kicker { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ex-accent); }
.line.is-live .line-card { display: none; }
.line.is-live .line-card.is-active { display: block; animation: line-in .35s cubic-bezier(.16, 1, .3, 1); }
.line.is-live .line-steps { display: none; margin: 0; }
.line.is-playing .line-card.is-active { display: none; }
.line.is-playing .line-steps:not([hidden]) { display: block; position: relative; }
.line-steps[hidden], .line-bars[hidden] { display: none; }
.jr-term { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(95, 164, 221, .1); font-size: 15px; color: var(--ex-ink); }
.jr-term .icon { flex: 0 0 auto; color: var(--ex-accent); }
.jr-term b { font-weight: 600; }
/* Путь матрицы шагами: слева этапы, справа схема в кадре этапа и его описание. Без JS
   схемы нет, этапы идут списком. */
.journey { padding-bottom: 96px; }
/* шапка блока: заголовок и виды матриц слева, фото матриц справа */
.jr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: end; margin-bottom: 40px; }
.jr-head .line-head { margin-bottom: 0; }
.jr-kinds { margin-top: 22px; }
.jr-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #121c2a; }
.jr-photo img { width: 100%; height: 100%; object-fit: cover; }
/* факты матриц под первым экраном, затем заголовок пути матрицы */
.jr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 64px; }
.jr-route-head { margin-bottom: 36px; }
/* «Наше производство»: три фото с подписями между фактами и путём матрицы */
.jr-gallery-title { margin-bottom: 20px; font-size: 1.35rem; }
.jr-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 80px; }
.jr-gallery figure { margin: 0; }
.jr-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #121c2a; }
.jr-gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--ex-muted); }
/* Тёмный раздел первым на странице (матрицы, оборудование): отступ как у первого экрана */
.line.page-top { padding-top: 56px; }
.jr { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.jr-nav, .jr-view { display: none; }
.journey.is-live .jr-nav { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
.journey.is-live .jr-view { display: block; }
.journey:not(.is-live) .jr { grid-template-columns: 1fr; }
.jr-steps { display: flex; flex-direction: column; gap: 4px; }
.jr-step {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none;
  font: inherit; text-align: left; color: var(--ex-muted); cursor: pointer; transition: background-color .15s, border-color .15s;
}
/* линия пути между номерами этапов */
.jr-step:not(:last-child)::after {
  content: ""; position: absolute; left: 30px; top: 48px; bottom: -14px; width: 1px; background: var(--ex-line);
}
.jr-num {
  grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--ex-line); border-radius: 50%; background: var(--ex-bg); font-size: 14px; font-weight: 600; color: var(--ex-ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.jr-step-name { font-size: 16px; font-weight: 600; color: var(--ex-ink); }
.jr-step-days { font-size: 13px; }
.jr-step:hover { background: rgba(255, 255, 255, .04); }
.jr-step[aria-selected="true"] { background: rgba(95, 164, 221, .1); border-color: rgba(95, 164, 221, .35); }
.jr-step[aria-selected="true"] .jr-num { background: var(--ex-accent); border-color: var(--ex-accent); color: var(--on-accent); }
.jr-step[aria-selected="true"] .jr-step-days { color: var(--ex-ink); }
.jr-step:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.jr-total { display: flex; gap: 8px; margin-top: 18px; padding: 0 14px; font-size: 14px; color: var(--ex-muted); }
.jr-total .icon { flex: 0 0 auto; margin-top: 2px; color: var(--ex-accent); }
.jr-view {
  position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #121c2a, var(--ex-bg));
}
.journey.no-figure .jr-view { display: none; }
.journey .line-scene { cursor: default; touch-action: auto; }
.journey .line-scene.is-pointing { cursor: pointer; }
.jr-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px 0; }
.journey:not(.is-live) .jr-stage + .jr-stage { border-top: 1px solid var(--ex-line); }
.journey.is-live .jr-stage { display: none; padding-bottom: 0; }
.journey.is-live .jr-stage.is-active { display: grid; animation: line-in .35s cubic-bezier(.16, 1, .3, 1); }
.jr-stage h3 { font-size: 1.6rem; }
.jr-stage h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.jr-detail > .line-text { margin: 0 0 22px; }
.jr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.journey:not(.is-live) .jr-next { display: none; }
.jr-els { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: jr; }
.jr-els li {
  position: relative; display: grid; gap: 2px; padding: 9px 12px 9px 42px; border-radius: var(--radius-sm);
  counter-increment: jr; transition: background-color .15s;
}
.jr-els li::before {
  content: counter(jr); position: absolute; left: 12px; top: 11px; width: 20px; font-size: 13px; font-weight: 600;
  color: var(--ex-muted); text-align: center; font-variant-numeric: tabular-nums;
}
.jr-els b { font-weight: 600; color: var(--ex-ink); }
.jr-els span { font-size: 14px; color: var(--ex-muted); }
.jr-els li.is-on { background: rgba(95, 164, 221, .12); }
.jr-els li.is-on::before { color: var(--ex-accent); }
.line-back {
  display: none; align-items: center; gap: 4px; margin: 0 0 18px -4px; padding: 4px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--ex-muted); cursor: pointer;
}
.line-back:hover { color: var(--ex-ink); }
.line.is-playing .line-back { display: inline-flex; }
.line.is-playing .line-step { padding: 0; border: 0; }
.line.is-playing .line-step:not(.is-active) { display: none; }
.line.is-playing .line-step.is-active { animation: line-in .35s cubic-bezier(.16, 1, .3, 1); }
.line.is-playing .line-step h3 { font-size: 1.5rem; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }

.line-view {
  position: relative; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 460px;
  background: var(--ex-bg); overflow: hidden; -webkit-user-select: none; user-select: none;
}
.line-figure { position: absolute; inset: 0; transition: opacity .22s; }
.line-figure.is-fading { opacity: 0; }
.line-figure .line-iso { position: absolute; inset: 0; }
/* Схему тянут: палец по вертикали прокручивает страницу, вбок и двумя пальцами двигает схему. */
.line .line-scene { display: block; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; cursor: grab; }
.line-view.is-dragging .line-scene, .line-view.is-dragging .line-scene.is-pointing { cursor: grabbing; }
.line.is-playing .line-scene { cursor: default; }

/* Над схемой слева: вкладки линий, вариант линии (горизонтальная, вертикальная) и
   подсказка, как двигать схему; подсказка уходит, когда посетитель уже двигал и приближал */
.line-top {
  position: absolute; left: var(--edge); top: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; max-width: calc(100% - 32px); pointer-events: none;
}
.line-top > * { pointer-events: auto; }
.line-top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; }
.line-top-row .line-tabs { min-width: 0; }
.line.is-playing .line-top { display: none; }
.line-tabs, .line-variants {
  display: flex; gap: 2px; max-width: 100%; padding: 3px; border: 1px solid var(--ex-line); border-radius: 999px;
  background: rgba(13, 20, 30, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.line-tabs { overflow-x: auto; scrollbar-width: none; }
.line-tabs::-webkit-scrollbar { display: none; }
.line-variants[hidden] { display: none; }
.line-tab, .line-variant {
  flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ex-muted); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.line-variant { padding: 6px 14px; font-size: 13px; }
.line-tab:hover, .line-variant:hover { color: var(--ex-ink); }
.line-tab[aria-selected="true"] { background: var(--ex-accent); color: var(--on-accent); }
.line-variant[aria-checked="true"] { background: rgba(95, 164, 221, .2); color: var(--ex-ink); }
.line-hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; background: rgba(13, 20, 30, .82); font-size: 13px; color: var(--ex-muted);
  pointer-events: none; transition: opacity .4s;
}
.line-hint .icon { flex: 0 0 auto; color: var(--ex-ink); }
.line-hint.is-done, .line.is-playing .line-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
.line-tip {
  position: absolute; left: 0; top: 0; padding: 5px 10px; border: 1px solid var(--ex-line); border-radius: 6px;
  background: rgba(8, 13, 20, .92); font-size: 13px; font-weight: 500; color: var(--ex-ink); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1;
}
.line-tip.is-on { opacity: 1; }

/* Низ схемы: в осмотре кнопка процесса и подсказка, в процессе шкала шагов */
.line-bar {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.line-bar > * { pointer-events: auto; }
.line-bar-start { display: flex; gap: 10px; }
.line:not(.has-play) .line-play { display: none; }
.line-view.is-loading::before, .jr-view.is-loading::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ex-accent), transparent) no-repeat; background-size: 40% 100%;
  animation: line-load 1s linear infinite;
}
@keyframes line-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.line-all { background: rgba(13, 20, 30, .82); }
.line-all:hover .icon { transform: none; }
/* открытое окно справа: кнопки и шкала шагов не уходят под него */
.line.has-card .line-bar, .line.is-playing .line-rail { right: calc(min(400px, 100% - 32px) + var(--edge) + 16px); }
.line-play .icon { transition: none; }
.line-play:hover .icon { transform: none; }
.line-zoom {
  display: flex; gap: 2px; padding: 3px; border: 1px solid var(--ex-line); border-radius: 999px; background: rgba(13, 20, 30, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.line-zoom button {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ex-ink); cursor: pointer; transition: background-color .15s, color .15s;
}
.line-zoom button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.line-zoom button:disabled { color: #4a586c; cursor: default; }
.line-rail {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 12px; display: none; align-items: center; gap: 10px; padding: 4px 6px;
  border: 1px solid var(--ex-line); border-radius: 999px; background: rgba(13, 20, 30, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.line.is-playing .line-bar { display: none; }
.line.is-playing .line-rail { display: flex; }
.line-ctl {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ex-ink); cursor: pointer; transition: background-color .15s;
}
.line-ctl:hover { background: rgba(255, 255, 255, .08); }
.line-ctl .icon { display: none; }
.line-ctl[data-state="pause"] .icon:nth-child(1), .line-ctl[data-state="resume"] .icon:nth-child(2),
.line-ctl[data-state="replay"] .icon:nth-child(3), .line-ctl[data-act="close"] .icon { display: block; }
.line-bars { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.line-bars button { padding: 10px 0; border: 0; background: none; cursor: pointer; }
.line-bars span { display: block; position: relative; height: 3px; border-radius: 2px; overflow: hidden; background: var(--ex-line); }
.line-bars span::after { content: ""; position: absolute; inset: 0; background: var(--ex-accent); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.line-hud {
  position: absolute; top: 16px; left: var(--edge); display: none; grid-template-columns: repeat(3, auto); gap: 2px 22px;
  justify-items: start; pointer-events: none;
}
.line.is-playing .line-hud { display: grid; }
/* табло (температура, усилие, скорость) — только у прессования */
.line.is-playing:not([data-scene="extrusion"]) .line-hud { display: none; }
.hud-item { display: grid; gap: 2px; }
.hud-label { font-size: 12px; color: var(--ex-muted); white-space: nowrap; }
.hud-value { font-size: 13px; color: var(--ex-muted); white-space: nowrap; }
.hud-value b { font-size: 22px; font-weight: 600; color: var(--ex-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hud-note { grid-column: 1 / -1; font-size: 11px; color: var(--ex-muted); }


/* Изометрическая линия: токены кита Anatomy (стили ниже, в конце файла) в тёмно-синем
   раздела. Слиток и профиль светлее стальных частей: это алюминий; нагрев перекрашивает
   их токены из site.js. Матрица фирменного синего. Выбранный узел синий, остальные
   притушены токенами, а не прозрачностью: детали остаются непрозрачными и не
   просвечивают друг сквозь друга. */
.line .iso {
  --anatomy-paper: #0d141e; --anatomy-face: #152030; --anatomy-top: #1a2738;
  --anatomy-shade-0: #0f1724; --anatomy-shade-1: #121b2a; --anatomy-shade-2: #151f30; --anatomy-shade-3: #182336;
  --anatomy-lit-top: #24344d; --anatomy-lit-shade: #1c2a3f;
  --anatomy-hi: #d6dfeb; --anatomy-mid: #71839b; --anatomy-lo: #3f4d61; --anatomy-faint: #26334a; --anatomy-lit: #ffffff;
  --anatomy-halo: #03060b; --anatomy-dot: #e6edf5;
}
.line .ex-alu, .line .ex-hot {
  --anatomy-paper: #1a2433; --anatomy-face: #2a374a; --anatomy-top: #4a5a72;
  --anatomy-shade-0: #222e3f; --anatomy-shade-1: #283546; --anatomy-shade-2: #2f3d50; --anatomy-shade-3: #36455a;
  --anatomy-hi: #e8eef6; --anatomy-faint: #3b4a60;
}
.line .ex-die {
  --anatomy-paper: #0f3758; --anatomy-face: #1d639e; --anatomy-top: #68ace4;
  --anatomy-shade-0: #185588; --anatomy-shade-1: #1b619c; --anatomy-shade-2: #206eb0; --anatomy-shade-3: #257bc2;
  --anatomy-hi: #b6d7f2; --anatomy-faint: #2d70a8;
}
.line .ex-mouth, .line .ln-glow { fill: #e8641c; }
/* Свои цвета на схемах других линий: раствор в ваннах, окрашенный профиль, плёнка
   упаковки, дерево поддонов. Цвет только там, где он и есть предмет. */
.line .ln-liquid {
  --anatomy-paper: #0c2430; --anatomy-face: #12384a; --anatomy-top: #1c5a70;
  --anatomy-shade-0: #0f2e3c; --anatomy-shade-1: #123545; --anatomy-shade-2: #153c4e; --anatomy-shade-3: #184457;
  --anatomy-hi: #8fd3e8; --anatomy-faint: #1f4f62;
}
.line .ln-coat {
  --anatomy-paper: #2a2f36; --anatomy-face: #c9ced6; --anatomy-top: #eef1f5;
  --anatomy-shade-0: #9aa2ad; --anatomy-shade-1: #aab1bb; --anatomy-shade-2: #b8bfc8; --anatomy-shade-3: #c4cad2;
  --anatomy-hi: #ffffff; --anatomy-mid: #7d8693; --anatomy-lo: #5d6572; --anatomy-faint: #8a929d;
}
.line .ln-film {
  --anatomy-paper: #1c2a3a; --anatomy-face: #3a4f66; --anatomy-top: #6d86a3;
  --anatomy-shade-0: #2e4054; --anatomy-shade-1: #33465b; --anatomy-shade-2: #384c62; --anatomy-shade-3: #3e5369;
  --anatomy-hi: #dbe7f5; --anatomy-faint: #4a6079;
}
.line .ln-wood {
  --anatomy-paper: #2a2016; --anatomy-face: #5a4630; --anatomy-top: #7d6446;
  --anatomy-shade-0: #44352a; --anatomy-shade-1: #4b3a2c; --anatomy-shade-2: #52402f; --anatomy-shade-3: #594532;
  --anatomy-hi: #d9c3a3; --anatomy-faint: #6b5640;
}
/* Выбранный узел синий, остальные притушены. Детали со своими цветами (кроме синей
   матрицы) тушатся и подсвечиваются вместе с узлом. */
.line .line-scene.is-picking .it:not(.is-on):not(.is-hover), .line .line-scene.is-zone .it:not(.is-zone):not(.is-hover),
.line .line-scene.is-picking .it:not(.is-on):not(.is-hover) :is(.ex-die, .ex-alu, .ln-liquid, .ln-coat, .ln-film, .ln-wood),
.line .line-scene.is-zone .it:not(.is-zone):not(.is-hover) :is(.ex-die, .ex-alu, .ln-liquid, .ln-coat, .ln-film, .ln-wood) {
  --anatomy-face: #111a27; --anatomy-top: #141e2d; --anatomy-paper: #0d141e;
  --anatomy-shade-0: #0e1520; --anatomy-shade-1: #101823; --anatomy-shade-2: #121a27; --anatomy-shade-3: #141d2b;
  --anatomy-lit-top: #182335; --anatomy-lit-shade: #151f2f;
  --anatomy-hi: #56657b; --anatomy-mid: #3a475a; --anatomy-lo: #2a3546; --anatomy-faint: #1c2534; --anatomy-dot: #56657b;
}
.line .line-scene .it.is-on, .line .line-scene .it.is-hover,
.line .line-scene .it:is(.is-on, .is-hover) :is(.ln-liquid, .ln-coat, .ln-film, .ln-wood) {
  --anatomy-paper: #0f2a52; --anatomy-face: #173a6e; --anatomy-top: #2a5596;
  --anatomy-shade-0: #12315f; --anatomy-shade-1: #163a70; --anatomy-shade-2: #1b4482; --anatomy-shade-3: #214f94;
  --anatomy-lit-top: #3363a8; --anatomy-lit-shade: #24508f;
  --anatomy-hi: #cfe2ff; --anatomy-mid: #6fa6ff; --anatomy-lo: #3f72c2; --anatomy-faint: #2d5ea8; --anatomy-dot: #cfe2ff;
}
.line .line-scene.is-pointing { cursor: pointer; }
/* Путь матрицы: узлы других этапов гаснут сильнее, чтобы этап читался сразу. */
.journey .line-scene.is-zone .it:not(.is-zone):not(.is-hover), .journey .line-scene.is-picking .it:not(.is-on):not(.is-hover),
.journey .line-scene.is-zone .it:not(.is-zone):not(.is-hover) :is(.ex-die, .ex-alu, .ln-liquid, .ln-coat, .ln-film, .ln-wood),
.journey .line-scene.is-picking .it:not(.is-on):not(.is-hover) :is(.ex-die, .ex-alu, .ln-liquid, .ln-coat, .ln-film, .ln-wood) {
  --anatomy-face: #0f1722; --anatomy-top: #111a26; --anatomy-paper: #0c121b;
  --anatomy-shade-0: #0d141d; --anatomy-shade-1: #0e151f; --anatomy-shade-2: #0f1721; --anatomy-shade-3: #111924;
  --anatomy-lit-top: #141e2c; --anatomy-lit-shade: #121b28;
  --anatomy-hi: #344052; --anatomy-mid: #263143; --anatomy-lo: #1c2534; --anatomy-faint: #161e2a; --anatomy-dot: #344052;
}

/* Появление при прокрутке: блок показывает, что пришёл новый раздел */
@media (prefers-reduced-motion: no-preference) {
  /* Первый экран — без скрипта: виден сразу, лишь мягко проявляется. */
  .hero-copy { animation: hero-in .8s cubic-bezier(.16, 1, .3, 1) backwards; }
  .hero-media { animation: hero-in .9s .1s cubic-bezier(.16, 1, .3, 1) backwards; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .line.is-live .line-panel, .line.is-live .line-card.is-active { animation: none; }
}

/* Планшет и телефон */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .hero-grid { gap: 36px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; margin-left: 0; }
  /* на телефоне заявка всегда под рукой: короткая кнопка в шапке */
  .header-row { gap: 12px; }
  .header-cta { margin-left: auto; padding: 9px 14px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .menu-open .main-nav { display: flex; }
  .menu-open .menu-icon-open { display: none; }
  .menu-open .menu-icon-close { display: inline; }
  .main-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .lang-switch { margin-top: 14px; align-self: flex-start; }
  .hero { padding: 28px 0 56px; }
  .hero-grid, .why-grid, .request-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .hero-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n + 3) { margin-top: 22px; border-top: 1px solid var(--line); }
  .jr-head { grid-template-columns: 1fr; gap: 28px; }
  .dirs { grid-template-columns: 1fr; }
  .hero-press-grid { grid-template-columns: 1fr; gap: 28px; }
  .line.hero-press { padding: 32px 0 56px; }
  .jr-facts { margin-bottom: 56px; }
  .jr-gallery { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 56px; }
  .jr-gallery figure:first-child { grid-column: 1 / -1; }
  .jr-photo { aspect-ratio: 16 / 7; }
  .eq-groups { grid-template-columns: 1fr; gap: 0; margin-bottom: 40px; }
  .eq-group { padding: 18px 0; }
  .why-media { position: static; aspect-ratio: 16 / 7; }
  .why-media-scheme { aspect-ratio: 5 / 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .line-steps { grid-template-columns: 1fr 1fr; }
  .jr { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .journey.is-live .jr-nav { position: static; }
  .jr-steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .jr-steps::-webkit-scrollbar { display: none; }
  .jr-step { flex: 0 0 auto; grid-template-columns: 28px auto; column-gap: 10px; padding: 8px 14px 8px 8px; border-color: var(--ex-line); border-radius: 999px; }
  .jr-step:not(:last-child)::after { display: none; }
  .jr-num { width: 28px; height: 28px; font-size: 13px; }
  .jr-step-name { font-size: 14px; }
  .jr-step-days { font-size: 12px; }
  .jr-total { margin-top: 12px; padding: 0; font-size: 13px; }
  .jr-stage { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16px; }
  .brand-logo { height: 34px; }
  .section { padding: 64px 0; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts li { padding: 18px 12px 0; }
  .hero-facts b { font-size: 1.1rem; }
  .hero-facts span { font-size: 14px; }
  .jr-photo { display: none; }
  .hub { padding: 28px 0 56px; }
  .line.page-top { padding-top: 32px; }
  .dir-body { padding: 20px 20px 24px; }
  .dir-title { font-size: 1.4rem; }
  .why-item { grid-template-columns: 1fr; gap: 4px; }
  .lead-promise > div { grid-template-columns: 1fr; gap: 2px; }
  .request-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .line { padding: 64px 0 0; }
  .line-panel { padding-bottom: 64px; }
  .line-steps { grid-template-columns: 1fr; }
  /* Окно узла выезжает снизу; в процессе стоит над шкалой шагов */
  .line.is-live .line-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62%;
    border-width: 1px 0 0; border-radius: var(--radius) var(--radius) 0 0;
  }
  .line.has-card .line-panel, .line.is-playing .line-panel { animation-name: line-sheet; }
  @keyframes line-sheet { from { opacity: 0; transform: translateY(24px); } }
  .line.is-playing .line-panel { left: 8px; right: 8px; bottom: 56px; max-height: 42%; border-width: 1px; border-radius: var(--radius); }
  .line.is-live .line-scroll { padding: 18px 18px 20px; }
  .line.has-card .line-bar { right: var(--edge); }
  .line.is-playing .line-rail { right: 8px; }
  .line-all { padding: 9px 11px; }
  .line-all span { display: none; }
  .line-top { left: var(--edge); top: 8px; gap: 6px; max-width: calc(100% - 2 * var(--edge)); }
  .line-tab { padding: 7px 12px; font-size: 13px; }
  .line-variant { padding: 5px 12px; font-size: 12px; }
  .line-hint { padding: 5px 10px; font-size: 12px; }
  .line-zoom button { width: 32px; height: 32px; }
  .line-bar { left: var(--edge); right: var(--edge); bottom: 10px; }
  .line-play { padding: 9px 14px; font-size: 14px; }
  .line-hud { top: 8px; left: 10px; gap: 0 14px; }
  .hud-value b { font-size: 17px; }
  .hud-label { font-size: 11px; }
  .hud-note { display: none; }
  .line-rail { left: 8px; right: 8px; bottom: 8px; gap: 4px; }
  .line-card h3, .line.is-playing .line-step h3 { font-size: 1.3rem; }
  .journey { padding-bottom: 64px; }
  .jr-view { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .jr-stage { padding-top: 22px; }
  .jr-stage h3 { font-size: 1.35rem; }
  .jr-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Кит Anatomy (MIT, webapp/site/figure/kit/iso.css): стили изометрической фигуры, тёмная тема. */
.iso{
  --anatomy-page:#0b0b0b;--anatomy-card:#131313;--anatomy-text:#a3a3a3;--anatomy-strong:#e6e6e6;--anatomy-muted:#6e6e6e;
  --anatomy-paper:#131313;--anatomy-face:#1b1b1b;--anatomy-top:#1c1c1c;
  --anatomy-shade-0:#0f0f0f;--anatomy-shade-1:#121212;--anatomy-shade-2:#151515;--anatomy-shade-3:#181818;
  --anatomy-lit-top:#262626;--anatomy-lit-shade:#1d1d1d;
  --anatomy-hi:#d4d4d4;--anatomy-mid:#6a6a6a;--anatomy-lo:#3e3e3e;--anatomy-faint:#2a2a2a;--anatomy-lit:#ffffff;
  --anatomy-halo:#050505;--anatomy-halo-opacity:.9;--anatomy-dot:#e6e6e6;
  --anatomy-red:#ff6b6b;--anatomy-green:#6be0a0;--anatomy-blue:#6b9bff;
  --anatomy-weight:.6px;--anatomy-ease:cubic-bezier(.32,.72,0,1);
  --anatomy-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --anatomy-lift:inset 0 1px 0 0 #ffffff0a,inset 0 0 0 1px #ffffff06,0 0 0 1px #00000026,0 1px 1px -.5px #00000014,0 3px 3px -1.5px #00000014,0 6px 6px -3px #00000014,0 12px 12px -6px #00000014;
}
.iso-svg{display:block;width:100%;height:auto;overflow:visible}
.iso-svg path,.iso-svg circle{vector-effect:non-scaling-stroke}
.iso-fill{fill:var(--anatomy-paper);stroke:none}
.iso-solid[data-lit]>.iso-fill{fill:var(--anatomy-face)}
.iso-shade,.iso-top{stroke:none}
.iso-shade[data-shade="0"]{fill:var(--anatomy-shade-0)}
.iso-shade[data-shade="1"]{fill:var(--anatomy-shade-1)}
.iso-shade[data-shade="2"]{fill:var(--anatomy-shade-2)}
.iso-shade[data-shade="3"]{fill:var(--anatomy-shade-3)}
.iso-top{fill:var(--anatomy-top)}
.iso-solid[data-lit]>.iso-top{fill:var(--anatomy-lit-top)}
.iso-solid[data-lit]>.iso-shade{fill:var(--anatomy-lit-shade)}
.iso-solid[data-seamless]>.iso-shade,.iso-solid[data-seamless]>.iso-top{stroke-width:.4;stroke-linejoin:round}
.iso-solid[data-seamless]>.iso-shade[data-shade="0"]{stroke:var(--anatomy-shade-0)}
.iso-solid[data-seamless]>.iso-shade[data-shade="1"]{stroke:var(--anatomy-shade-1)}
.iso-solid[data-seamless]>.iso-shade[data-shade="2"]{stroke:var(--anatomy-shade-2)}
.iso-solid[data-seamless]>.iso-shade[data-shade="3"]{stroke:var(--anatomy-shade-3)}
.iso-solid[data-seamless]>.iso-top{stroke:var(--anatomy-top)}
.iso-solid[data-seamless][data-lit]>.iso-top{stroke:var(--anatomy-lit-top)}
.iso-solid[data-seamless][data-lit]>.iso-shade{stroke:var(--anatomy-lit-shade)}
.iso-solid[data-lit]>.iso-edge{stroke:var(--anatomy-lit)}
.iso-halo{fill:var(--anatomy-halo);stroke:none;filter:blur(9px);opacity:var(--anatomy-halo-opacity);transform:translateY(3px)}
.iso-line{fill:none;stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight);stroke-linecap:round;stroke-linejoin:round}
.iso-line[data-tone="hi"]{stroke:var(--anatomy-hi)}
.iso-line[data-tone="mid"]{stroke:var(--anatomy-mid)}
.iso-line[data-tone="lo"]{stroke:var(--anatomy-lo)}
.iso-line[data-tone="faint"]{stroke:var(--anatomy-faint)}
.iso-line[data-tone="lit"]{stroke:var(--anatomy-lit)}
.iso-line[data-tone="red"]{stroke:var(--anatomy-red)}
.iso-line[data-tone="green"]{stroke:var(--anatomy-green)}
.iso-line[data-tone="blue"]{stroke:var(--anatomy-blue)}
.iso-line[data-dotted]{stroke-dasharray:.01 3.5;stroke-width:1}
.iso-line[data-dashed]{stroke-dasharray:3 3}
.iso-line[data-flow]{stroke-dasharray:2 6}
.iso-wire-end{fill:var(--anatomy-paper);stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight)}
.iso-wire[data-tone="hi"] .iso-wire-end{stroke:var(--anatomy-hi)}
.iso-wire[data-tone="mid"] .iso-wire-end{stroke:var(--anatomy-mid)}
.iso-wire[data-tone="faint"] .iso-wire-end{stroke:var(--anatomy-faint)}
.iso-wire[data-tone="lit"] .iso-wire-end{stroke:var(--anatomy-lit)}
.iso-dots circle{fill:var(--anatomy-dot);stroke:none;opacity:.32}
.iso-dots[data-tone="hi"] circle{opacity:.85}
.iso-dots[data-tone="mid"] circle{opacity:.45}
.iso-dots[data-tone="lo"] circle{opacity:.22}
.iso-dots[data-tone="faint"] circle{opacity:.12}
.iso-face-text{fill:var(--anatomy-mid);font-family:var(--anatomy-mono);letter-spacing:.04em}
.iso-face-text[data-tone="hi"]{fill:var(--anatomy-hi)}
.iso-face-text[data-tone="lo"]{fill:var(--anatomy-lo)}
.iso-face-text[data-tone="faint"]{fill:var(--anatomy-faint)}
.tb-body{fill:var(--anatomy-shade-2);stroke:none}
.tb-shine{fill:var(--anatomy-top);stroke:none}
.tb-shade{fill:var(--anatomy-shade-0);stroke:none}
.tb-ring{fill:none;stroke:var(--anatomy-lo);stroke-width:.45;stroke-linecap:butt;stroke-linejoin:round}
.tb-ring[data-tone="mid"]{stroke:var(--anatomy-mid)}
.tb-ring[data-tone="faint"]{stroke:var(--anatomy-faint)}
.tb-ring[data-tone="hi"]{stroke:var(--anatomy-hi)}
@keyframes iso-flow{to{stroke-dashoffset:-32}}
@keyframes iso-pulse{0%,100%{opacity:.18}12%{opacity:1}40%{opacity:.18}}
.iso-line[data-flow]{animation:iso-flow 1600ms linear infinite}
.iso-dots circle[data-pulse]{animation:iso-pulse 1600ms steps(1,end) infinite;animation-delay:var(--pulse-at,0ms)}
@media (prefers-reduced-motion:reduce){.iso-line[data-flow],.iso-dots circle[data-pulse]{animation:none}}
