/* ============================================================
   ВОМЗ — прототип сайта vomz36.ru
   Промышленная система: графит, бумага, фирменный красный.
   Всё в этом файле переносится в Next.js как есть.
   ============================================================ */

:root {
  /* три цвета, как договорились: графит, бумага, красный ВОМЗ */
  --ink:        #16181c;
  --ink-2:      #3d434c;
  --ink-3:      #626973;   /* контраст 5.0 на сером фоне секций, 5.5 на белом */
  --paper:      #ffffff;
  --paper-2:    #f3f4f6;
  --paper-3:    #e8eaed;
  --line:       #d3d7dc;
  --line-2:     #e5e8ec;
  --red:        #c8102e;   /* фирменный красный с логотипа */
  --red-dark:   #a10d25;
  --red-wash:   #fdf2f4;

  --wrap: 1240px;
  --gut: 24px;

  --fs-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;
  --fs-disp: "Oswald", "Arial Narrow", Arial, sans-serif;
  --fs-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ---------- дисплейный шрифт: Oswald, локально ---------- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/oswald-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/oswald-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fs-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1, h2 {
  font-family: var(--fs-disp);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 20px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: var(--fs-mono); }
.nowrap { white-space: nowrap; }

/* ---------- метка-рубрика ---------- */
.eyebrow {
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- шапка ---------- */
.topbar {
  background: var(--ink);
  color: #b9bec6;
  font-size: 14px;
}
.topbar .wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #dfe3e8; text-decoration: none; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: block; height: 46px; width: auto; flex-shrink: 0; }
.logo-text { line-height: 1.15; }
.logo-text b { display: block; color: var(--ink); font-family: var(--fs-disp); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.logo-text span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  /* в одну строку: перенос ломал шапку, подложке тоже нужна одна линия */
  flex-wrap: nowrap;
  position: relative;
}
.nav a {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }

/* подложка переезжает к пункту под курсором — позицию считает ui.js */
.nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  height: 36px;
  margin-top: -18px;
  width: var(--pill-w, 0);
  border-radius: 999px;
  background: var(--paper-2);
  opacity: 0;
  transform: translateX(var(--pill-x, 0));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-pill {
    transition:
      transform .34s cubic-bezier(.16, 1, .3, 1),
      width .34s cubic-bezier(.16, 1, .3, 1),
      opacity .2s ease;
  }
}
.nav.pill-on .nav-pill { opacity: 1; }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  font-family: var(--fs-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font: 600 16px/1.2 var(--fs-sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-3); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ---------- герой ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
  filter: grayscale(.35) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,24,28,.96) 0%, rgba(22,24,28,.78) 52%, rgba(22,24,28,.42) 100%);
}
.hero-inner {
  position: relative;
  padding: 64px 0 64px;
  max-width: 860px;
}
.hero h1 { color: #fff; }
.hero .lead {
  font-size: clamp(16px, 1.6vw, 20px);
  color: #cbd1d8;
  max-width: 660px;
  margin-bottom: 32px;
}
.hero .eyebrow { color: #ff5a6e; }
.hero .eyebrow::after { background: rgba(255,255,255,.22); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 48px;
}
.facts div { padding: 24px 32px; border-right: 1px solid rgba(255,255,255,.16); }
.facts div:first-child { padding-left: 0; }   /* левый край — по колонке текста */
.facts div:last-child { border-right: 0; }
.facts b {
  display: block;
  font-family: var(--fs-disp);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: clamp(28px, 3.6vw, 46px);
  color: #fff;
}
.facts span { font-size: 14px; color: #a8b0b9; }

/* ---------- секции ---------- */
section { padding: 64px 0; }
section[id] { scroll-margin-top: 96px; }   /* липкая шапка не перекрывает якорь */
section.tight { padding: 48px 0; }
section.alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--ink-3); font-size: 18px; margin-bottom: 0; }

/* ---------- таблицы ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  /* separate вместо collapse: без него у ячеек не работает скругление,
     а ряд должен подсвечиваться скруглённой плашкой */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  min-width: 640px;
}
caption {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
th, td {
  text-align: left;
  padding: 13px 14px;
  border: 0;
  vertical-align: top;
}
/* шапка приглушённым текстом, а не тёмной плашкой; отделена одной линией */
thead th {
  background: var(--paper);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  height: 48px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
/* Строки без горизонтальных линеек. Фон живёт на ячейках, а не на строке:
   у tr скругление не отрисовывается, поэтому края ряда округляют
   крайние ячейки. Лёгкая полоса через строку оставлена намеренно —
   таблицы тут плотные, технические, и без неё и без линеек глаз
   теряет строку на пятой колонке. */
tbody tr:nth-child(even) td { background: #fbfcfd; }
tbody tr:hover td { background: var(--red-wash); }
tbody td:first-child { border-radius: 9px 0 0 9px; }
tbody td:last-child { border-radius: 0 9px 9px 0; }
td.num, th.num { font-family: var(--fs-mono); white-space: nowrap; }
td strong { color: var(--ink); }
.table-note { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* ---------- карточки направлений ---------- */
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dir {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.dir:hover { border-color: var(--ink); transform: translateY(-2px); }
.dir img {
  aspect-ratio: 4/3;
  object-fit: contain;      /* кадр показываем целиком, а не обрезаем по рамке */
  width: 100%;
  background: var(--paper-2);
  padding: 4px;
}
.dir-body { padding: 24px 24px 32px; }
.dir h3 { margin-bottom: 8px; }
.dir p { color: var(--ink-2); margin-bottom: 16px; }
.dir ul { margin: 0 0 16px; padding-left: 16px; color: var(--ink-3); font-size: 16px; }
.dir li { margin-bottom: 4px; }
.dir .more { color: var(--red); font-weight: 600; font-size: 16px; margin-top: auto; }

/* ---------- работы ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work { border: 1px solid var(--line); background: #fff; }
.work img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.work-body { padding: 16px 16px 16px; }
.work-body b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.work-body span { font-size: 14px; color: var(--ink-3); display: block; }
.work-tag {
  display: inline-block;
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--line);
  padding: 4px 8px;
  margin-bottom: 8px;
}

/* ---------- станки плиткой ---------- */
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.machine {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* модель — как выбитое на станке клеймо */
.machine .model {
  align-self: start;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .04em;
  background: var(--red-wash);
  border: 1px solid #f3d5da;
  border-radius: 999px;
  padding: 3px 10px;
}
.machine b { color: var(--ink); font-size: 19px; margin-top: 2px; }
/* характеристики читаются как паспортная таблица: подпись слева, число справа */
.machine dl {
  margin: 10px 0 0;
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  align-items: baseline;
}
.machine dt, .machine dd { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.machine dt:last-of-type, .machine dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.machine dt { color: var(--ink-3); }
.machine dd { margin: 0; font-family: var(--fs-mono); color: var(--ink); text-align: right; white-space: nowrap; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}
.step .n { font-family: var(--fs-mono); font-size: 12px; color: var(--red); display: block; margin-bottom: 8px; }

/* нумерованная линия над шагами: кружки стоят по центрам колонок,
   а черта соединяет центр первого с центром последнего.
   Раскладку строит ui.js — шагов на разных страницах разное число. */
.steps-rail { position: relative; margin-bottom: 18px; }
.rail-line {
  position: absolute;
  top: 50%;
  left: var(--rail-left, 10%);
  width: var(--rail-w, 80%);
  height: 2px;
  transform: translateY(-50%);
  background: var(--line);
}
.rail-nums { position: relative; display: grid; }
.rail-nums span {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  /* белый кружок с рамкой виден и на белой секции, и на серой,
     и заодно перекрывает черту, которая идёт под ним */
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink);
  font-family: var(--fs-mono);
  font-weight: 600;
  font-size: 14px;
}
/* номер уехал на линию — в карточке он больше не нужен */
.steps-railed .step .n { display: none; }

@media (hover: hover) {
  .step { transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease, border-color .2s ease; }
  .step:hover {
    transform: translateY(-4px);
    border-color: var(--ink-3);
    box-shadow: 0 14px 30px rgba(22, 24, 28, .12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
  .step:hover { transform: none; }
}
/* на телефоне шаги идут в одну колонку — линия там бессмысленна */
@media (max-width: 620px) {
  .steps-rail { display: none; }
  .steps-railed .step .n { display: block; }
}
.step b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 18px; }
.step span { font-size: 14px; color: var(--ink-3); }

/* ---------- отрасли ---------- */
/* отрасли — цветные ярлыки, каждый в своём тоне.
   Тона приглушённые, чтобы не спорить с фирменным красным. */
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries span {
  --st: #fff;
  --st-ink: var(--ink-2);
  --st-line: var(--line);
  border: 1px solid var(--st-line);
  background: var(--st);
  color: var(--st-ink);
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(22, 24, 28, .08), 0 6px 14px rgba(22, 24, 28, .05);
}
.industries span:nth-child(1) { --st: #fdf1dc; --st-ink: #7a5312; --st-line: #f0dcb4; }
.industries span:nth-child(2) { --st: #e8eff7; --st-ink: #1f4e79; --st-line: #c7dbee; }
.industries span:nth-child(3) { --st: #fdeade; --st-ink: #8a4413; --st-line: #f5cfb2; }
.industries span:nth-child(4) { --st: #e6f4ec; --st-ink: #1d5f3b; --st-line: #c2e3d1; }
.industries span:nth-child(5) { --st: #e3f2f4; --st-ink: #14595f; --st-line: #bfe1e5; }
.industries span:nth-child(6) { --st: #eceef0; --st-ink: #34393f; --st-line: #d3d7dc; }
.industries span:nth-child(7) { --st: #f0f3dd; --st-ink: #4f5a16; --st-line: #dbe2b8; }

@media (prefers-reduced-motion: no-preference) {
  .industries span { transition: transform .22s ease, box-shadow .22s ease; }
}
@media (hover: hover) {
  /* под курсором ярлык выравнивается и приподнимается */
  .industries span:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(22, 24, 28, .1), 0 12px 24px rgba(22, 24, 28, .12);
  }
}

/* ---------- форма ---------- */
.form-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 16px/1.4 var(--fs-sans);
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 1px; }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-3); margin: 16px 0 24px; }
.consent input { width: 18px; height: 18px; margin-top: 0px; flex-shrink: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; font-weight: 600; }
.contact-list a, .contact-list span { font-size: 18px; color: var(--ink); text-decoration: none; }

/* ---------- крошки ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; color: var(--line); }

/* ---------- страница товара ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 32px; }
.product-media { border: 1px solid var(--line); background: var(--paper-2); }
.scheme {
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0/28px 28px,
    #fff;
  position: relative;
}
.scheme-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: #cfd4da;
  font-size: 12px;
  padding: 8px 16px;
  font-family: var(--fs-mono);
}
.price-box { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 24px 24px; margin: 24px 0; background: #fff; }
.price { font-family: var(--fs-mono); font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price small { font-size: 14px; font-weight: 400; color: var(--ink-3); font-family: var(--fs-sans); }
.price-meta { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0 16px; font-size: 14px; }
.price-meta div b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.badge {
  display: inline-block;
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: .05em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--paper-2);
  margin: 0 4px 4px 0;
}
.badge-red { border-color: var(--red); color: var(--red); background: var(--red-wash); }

/* ---------- выбор исполнения ---------- */
.variants { margin: 24px 0 16px; }
.variants-title { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.variant {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  min-height: 48px;
}
.variant:hover { border-color: var(--ink-3); }
.variant:has(input:checked) { border-color: var(--red); background: var(--red-wash); }
.variant input { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; }
.variant span { display: flex; flex-direction: column; gap: 0px; }
.variant b { color: var(--ink); font-size: 16px; }
.variant em { font-style: normal; font-size: 14px; color: var(--ink-3); letter-spacing: .01em; }

/* ---------- сводка цифр ---------- */
/* завод в цифрах: отдельные карточки, цифра работает как заголовок */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.specs div {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 14px;
  background: #fff;
}
.specs b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--fs-disp);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}
.specs span { font-size: 15px; color: var(--ink-3); }
@media (hover: hover) {
  .specs div { transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
  .specs div:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    border-top-color: var(--red);
    box-shadow: 0 14px 32px rgba(22, 24, 28, .11);
  }
}

/* ---------- «чего не делаем» ---------- */
.limits { border-left: 3px solid var(--red); background: var(--red-wash); padding: 24px 24px; }
.limits ul { margin: 8px 0 0; padding-left: 16px; }
.limits li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- фильтр оборудования ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: 500 14px var(--fs-sans);
  padding: 8px 16px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: #9aa1aa; padding: 48px 0 32px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.footer a { color: #c8ced5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #767d86;
}

/* ---------- уведомление о технических данных (152-ФЗ) ---------- */
.cbar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  max-width: 780px;
  margin: 0 auto;
  background: var(--ink);
  color: #d3d7dc;
  border-top: 3px solid var(--red);
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  font-size: 14px;
  line-height: 1.5;
}
.cbar p { margin: 0; flex: 1 1 340px; }
.cbar a { color: #fff; text-underline-offset: 3px; }
.cbar-b { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- всплывающая карточка заказа ---------- */
.pop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12,13,16,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  animation: pop-in .18s ease-out;
}
@keyframes pop-in { from { opacity: 0 } to { opacity: 1 } }
.pop-w {
  position: relative;
  background: #fff;
  border-top: 4px solid var(--red);
  max-width: 520px;
  width: 100%;
  padding: 32px 32px 32px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  max-height: 92vh;
  overflow-y: auto;
}
.pop-w h3 { font-size: 24px; margin-bottom: 8px; }
.pop-w > p { color: var(--ink-2); font-size: 16px; }
.pop-x {
  position: absolute;
  top: 10px; right: 12px;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
}
.pop-x:hover { color: var(--ink); }
.pop-w .field { margin-bottom: 12px; }
.pop-w .btn { width: 100%; }
.pop-alt {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-3);
}
.pop-alt a { font-family: var(--fs-mono); color: var(--ink); text-decoration: none; }
.pop-alt a:hover { color: var(--red); }

@media (max-width: 620px) {
  .pop-w { padding: 24px 16px 24px; }
  .cbar { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
}

/* ---------- пометка прототипа ---------- */
.proto-flag {
  background: #ffe9a8;
  border-bottom: 1px solid #e5c977;
  color: #5a4506;
  font-size: 14px;
  padding: 8px 0;
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .dir-grid { grid-template-columns: 1fr; }
  .form-block { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 16px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero-inner { padding: 48px 0 48px; }
  .works, .machines, .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .header .wrap { min-height: 64px; gap: 12px; }
  .header-phone { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  table { font-size: 14px; }
}

/* ---------- фото изделия на карточке товара ---------- */
.pshot { position: relative; margin: 0; border-bottom: 1px solid var(--line); }
.pshot img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- сертификаты ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert { border: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 220px 1fr; }
.cert img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; padding: 12px; border-right: 1px solid var(--line); background: var(--paper-2); }
.cert-body { padding: 24px 24px 24px; }
.cert-body h3 { margin: 0 0 4px; font-size: 20px; }
.cert-body dl { margin: 12px 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.cert-body dt { color: var(--ink-3); }
.cert-body dd { margin: 0; color: var(--ink); }
@media (max-width: 900px) {
  .certs { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .cert img { aspect-ratio: 3/4; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* четыре цифры в шапке главной */
.facts-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .facts-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .facts-4 { grid-template-columns: 1fr; } }

/* превью сканов документов: показываем шапку листа, а не середину */

/* ============================================================
   Интерфейс: мобильное меню, подбор, просмотр фото
   ============================================================ */

/* ---------- иконки morphicons ---------- */
morph-icon { display: inline-block; vertical-align: middle; line-height: 0; }

/* ---------- бургер и мобильная панель ---------- */
.nav-toggle {
  display: none;
  margin-left: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--ink-3); }

.mnav { display: none; }
.mnav a { text-decoration: none; }
.mnav nav { display: grid; }
.mnav nav a {
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav nav a[aria-current="page"] { color: var(--red); }
.mnav-extra { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0 4px; }
.mnav-extra a { font-size: 14px; color: var(--ink-2); }
.mnav-cta { display: grid; gap: 8px; padding: 12px 0 4px; }
.mnav-cta .btn { justify-content: center; }
.mnav-note { font-family: var(--fs-mono); font-size: 14px; color: var(--ink-3); }

/* ---------- липкая полоса действий на телефоне ---------- */
.mbar { display: none; }
.mbar a {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 8px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.mbar-call { background: var(--ink); color: #fff; }
.mbar-cta { background: var(--red); color: #fff; }

/* ---------- кнопка с иконкой ---------- */
.btn-ico { display: inline-flex; align-items: center; gap: 8px; }
.btn-done { background: #1f7a3d; border-color: #1f7a3d; }
.form-done { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.form-err { color: var(--red); }
/* поле-ловушка для роботов: человек его не видит и не заполняет */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- вопросы и ответы ---------- */
details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
.faq-i { color: var(--red); flex-shrink: 0; }

/* ---------- подбор исполнения ---------- */
.finder { border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; padding: 24px 24px; margin-bottom: 24px; }
.finder-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.finder-lead { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; max-width: 70ch; }
.finder-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.finder-row label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.finder-row select {
  font: inherit; font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  min-width: 150px;
}
.finder-row select:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.finder-count { margin: 12px 0 0; font-family: var(--fs-mono); font-size: 14px; color: var(--ink-3); }
.finder-count.finder-empty { color: var(--red); }

/* ---------- таблицы: шапка и первая колонка не уезжают ---------- */
.table-scroll table thead th { position: sticky; top: 0; z-index: 3; }
.table-scroll table td:first-child,
.table-scroll table th:first-child { position: sticky; left: 0; background: #fff; z-index: 2; }
.table-scroll table thead th:first-child { z-index: 4; background: var(--paper); }
.table-scroll table tbody tr:nth-child(even) td:first-child { background: #fbfcfd; }
/* подсветка ряда должна доезжать и до залипшей колонки */
.table-scroll table tbody tr:hover td:first-child { background: var(--red-wash); }

/* ---------- просмотр фотографий ---------- */
.zoomable { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 11, 13, .93);
  display: grid; place-items: center;
  padding: 24px;
}
.lb-w { position: relative; max-width: min(1100px, 100%); }
.lb-img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lb-bar {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0px 0;
  color: #d6dae0; font-size: 14px;
}
.lb-num { font-family: var(--fs-mono); color: #8a929c; flex-shrink: 0; }
.lb-x, .lb-p, .lb-n {
  position: absolute;
  background: rgba(255,255,255,.1); color: #fff;
  border: 0; cursor: pointer;
  width: 46px; height: 46px;
  font-size: 24px; line-height: 1;
}
.lb-x:hover, .lb-p:hover, .lb-n:hover { background: var(--red); }
.lb-x { top: -8px; right: -8px; }
.lb-p { left: -60px; top: 50%; transform: translateY(-50%); }
.lb-n { right: -60px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  body.nav-open { overflow: hidden; }
  .mnav { display: block; padding: 8px 16px 24px; border-bottom: 1px solid var(--line); background: #fff; }
  .mnav[hidden] { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -2px 12px rgba(0,0,0,.14);
  }
  body { padding-bottom: 48px; }
  .lb-p, .lb-n { left: auto; right: auto; top: auto; bottom: -56px; transform: none; }
  .lb-p { left: 0; }
  .lb-n { right: 0; }
  .finder-row select { min-width: 0; width: 100%; }
  .finder-row label { flex: 1 1 44%; }
}

/* ---------- шапка на телефоне: логотип, бургер и ничего лишнего ---------- */
@media (max-width: 900px) {
  .header .wrap { flex-wrap: nowrap; gap: 12px; }
  .header-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .logo-text span { display: none; }
}
@media (max-width: 620px) {
  .header-phone { display: none; }
  .logo-mark { height: 38px; }
  .logo-text b { font-size: 18px; }
  .topbar { font-size: 12px; }
  .table-scroll table td:first-child,
  .table-scroll table th:first-child { position: static; }
}

/* ---------- на узком экране колонки задаёт медиазапрос, а не разметка ---------- */
@media (max-width: 900px) {
  .dir-grid[style], .works[style], .machines[style], .certs[style] { grid-template-columns: 1fr !important; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .works[style] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* узкий десктоп: телефон уступает место пунктам меню, он есть в верхней полосе */
@media (max-width: 1180px) and (min-width: 901px) {
  .header .wrap { gap: 14px; }
  .header-phone { display: none; }
  .nav a { padding: 6px 8px; font-size: 15px; }
}

/* ---------- карусель фотографий ---------- */
.gal { position: relative; }
.gal-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gal-track::-webkit-scrollbar { height: 8px; }
.gal-track::-webkit-scrollbar-thumb { background: var(--line); }
.gal-track img {
  flex: 0 0 auto;
  width: min(440px, 80vw);
  aspect-ratio: 4/3;
  object-fit: cover;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.gal-btn {
  position: absolute;
  top: calc(50% - 5px);
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(17, 17, 17, .12);
}
.gal-btn:hover { border-color: var(--red); color: var(--red); }
.gal-btn[disabled] { opacity: .3; cursor: default; box-shadow: none; }
.gal-btn[disabled]:hover { border-color: var(--line); color: var(--ink); }
.gal-p { left: -16px; }
.gal-n { right: -16px; }
@media (max-width: 900px) {
  .gal-btn { display: none; }
  .gal-track img { width: min(320px, 84vw); }
}

/* ---------- карта проезда ---------- */
/* Карта стоит в правой колонке блока контактов: на широком экране это
   572 px, высота по кадру 4:3. Виджет тянется на всю ячейку, поэтому
   в конструкторе карту достаточно собрать под 572 x 430. */
.map {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 620px) { .map { min-height: 260px; } }

/* ============================================================
   Живость: переходы, появление, ховеры.
   Всё движение выключается через prefers-reduced-motion.
   ============================================================ */

/* переходы между страницами (Chromium: плавный кроссфейд) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .16s ease both; }
  ::view-transition-new(root) { animation: vt-in .24s ease both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* появление при прокрутке: класс ставит ui.js */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity .65s cubic-bezier(.16, 1, .3, 1) var(--rvd, 0s),
      transform .65s cubic-bezier(.16, 1, .3, 1) var(--rvd, 0s);
  }
  .rv-in { opacity: 1; transform: none; }
}

/* герой главной: каскад текста и медленный наезд фото */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-zoom 13s cubic-bezier(.22, .6, .3, 1) both; }
  .hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.16, 1, .3, 1) forwards; }
  .hero-inner > :nth-child(1) { animation-delay: .05s; }
  .hero-inner > :nth-child(2) { animation-delay: .14s; }
  .hero-inner > :nth-child(3) { animation-delay: .23s; }
  .hero-inner > :nth-child(4) { animation-delay: .32s; }
  .hero-inner > :nth-child(5) { animation-delay: .45s; }
}
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* заголовок героя: слова проявляются по очереди, из размытия.
   Текст лежит в разметке обычной строкой — на слова его режет ui.js,
   поэтому без скрипта и в поиске заголовок остаётся целым и видимым. */
.tg-w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  /* блочный подъём заголовку не нужен: его ведут слова */
  .hero-inner > .tg { animation: none; opacity: 1; transform: none; }
  .tg-on .tg-w {
    opacity: 0;
    filter: blur(9px);
    animation: tg-in var(--tg-dur, .62s) cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--tg-i, 0) * var(--tg-step, .085s) + var(--tg-base, .12s));
  }
  /* Герой читается сверху вниз: сначала заголовок, следом подзаголовок.
     Заголовок идёт крупным шагом — 8 слов, договаривает к 1,73 с.
     Подзаголовок подхватывает на последнем слове заголовка, а не ждёт,
     пока оно догорит: пауза между блоками читается как подвисание.
     Шаг у него мельче — слов 23 против восьми. */
  .hero-inner > h1.tg      { --tg-step: .13s;  --tg-base: .12s; --tg-dur: .7s; }
  .hero-inner > .lead.tg   { --tg-step: .025s; --tg-base: .95s; --tg-dur: .5s; }
}
@keyframes tg-in { to { opacity: 1; filter: blur(0); } }

/* ============================================================
   Карточки с вырезанным углом.
   Ярлык садится в нижний левый угол снимка, а два вогнутых
   скругления по краям создают вид выреза, а не наклейки сверху.
   Скругления рисуются радиальным градиентом на псевдоэлементах —
   лишних узлов в разметке не нужно.
   ============================================================ */
.cut-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.cut-label {
  --cut-r: 16px;
  --cut-bg: var(--paper);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  background: var(--cut-bg);
  border: 0;
  border-top-right-radius: calc(var(--cut-r) + 4px);
  padding: 8px 14px 8px 14px;
}
/* заворот вправо вдоль нижнего края снимка: квадрат заливается цветом
   ярлыка, а четверть круга у дальнего угла вырезается прозрачностью —
   получается вогнутый стык, а не приклеенный уголок */
.cut-label::before {
  content: '';
  position: absolute;
  left: 100%;
  bottom: 0;
  width: var(--cut-r);
  height: var(--cut-r);
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, transparent var(--cut-r), var(--cut-bg) calc(var(--cut-r) + .5px));
}

/* ярлык направления виден только когда скрипт перенёс его в снимок:
   иначе он мелькнул бы отдельной строкой в потоке карточки */
.dir-tag { display: none; }
.dir-tag.cut-label { display: block; }

/* кейсы */
.work.cut { border-radius: 14px; }
.work.cut .work-body { padding-top: 14px; }

/* направления: вырез крупнее — карточка сама крупнее */
.dir.cut { border-radius: 16px; }
.dir.cut .cut-media { border-radius: 15px 15px 0 0; }
/* кадр заполняет рамку целиком: с contain по краям просвечивала подложка */
.dir.cut .cut-media img { object-fit: cover; padding: 0; background: none; }
.dir.cut .cut-label { --cut-r: 20px; font-family: var(--fs-mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--red); padding: 9px 16px; }

/* карточки: подъём и приближение фото */
.work, .dir, .machine, .cert {
  transition: transform .25s ease, box-shadow .25s ease;
}
.work, .dir { overflow: hidden; }
.work img, .dir img { transition: transform .5s cubic-bezier(.22, .6, .3, 1); }
@media (hover: hover) {
  .work:hover, .dir:hover, .machine:hover, .cert:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(22, 24, 28, .12);
  }
  .work:hover img, .dir:hover img { transform: scale(1.035); }
}

/* кнопки: отклик на нажатие */
.btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease; }
.btn:active { transform: translateY(1px) scale(.985); }

/* строки таблиц: подсветка под курсором */
tbody tr { transition: background .15s ease; }
@media (hover: hover) { tbody tr:hover { background: var(--paper-2); } }

/* шапка: после прокрутки сжимается в плавающую панель (класс ставит ui.js).
   На телефоне остаётся обычной полосой — там меню всё равно в бургере. */
.header { transition: box-shadow .3s ease, background .3s ease, border-color .3s ease, padding .3s ease; }
.header.is-scrolled { box-shadow: 0 8px 28px rgba(22, 24, 28, .1); }

@media (min-width: 901px) {
  .header .wrap { border: 1px solid transparent; }

  /* фон и рамка переезжают с полосы на саму панель */
  .header.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
    padding: 10px 0;
  }
  .header.is-scrolled .wrap {
    max-width: 1060px;
    min-height: 60px;
    padding: 0 8px 0 20px;
    gap: 18px;
    border-color: var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 12px 34px rgba(22, 24, 28, .14), 0 2px 6px rgba(22, 24, 28, .06);
  }
  /* прямые углы кнопки вылезали за дугу панели — скругляем в тон */
  .header.is-scrolled .header-cta .btn { border-radius: 999px; }
  .header.is-scrolled .logo-mark { height: 32px; }
  /* в сжатой шапке остаётся только марка: в ней уже написано «ВОМЗ»,
     а «Воронежский» без второй строки не читается как название */
  .header.is-scrolled .logo-text { display: none; }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .header .wrap {
    transition:
      max-width .4s cubic-bezier(.16, 1, .3, 1),
      min-height .4s cubic-bezier(.16, 1, .3, 1),
      background .3s ease, box-shadow .3s ease,
      border-color .3s ease, border-radius .3s ease, padding .3s ease;
  }
  .header .logo-mark { transition: height .4s cubic-bezier(.16, 1, .3, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-inner > * { animation: none; opacity: 1; transform: none; }
  .work, .dir, .machine, .cert, .work img, .dir img, .btn, tbody tr { transition: none; }
}
