/* ==========================================================================
   EA Packaging — global stylesheet
   Guangzhou Dongya Packaging Products Co., Ltd. / aluminium aerosol cans
   --------------------------------------------------------------------------
   Design notes
   - Editorial rhythm: every section = eyebrow + large heading + one-lead line.
   - Three background tones only: warm paper (#F6F4EF), white, charcoal.
     Sections are separated by whitespace and tone shifts, not by borders.
   - Radius is deliberately restrained (0-4px).
   - Animation: reveal-on-scroll (IntersectionObserver), hover scale on media,
     cross-fade on the application tabs. All motion is disabled when the user
     prefers reduced motion.
   - No web fonts are loaded: system stacks only, so Cyrillic renders with the
     OS font that already ships it (critical for the Russian version).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --paper: #f6f4ef;
  --paper-2: #ffffff;
  --paper-3: #efebe2;
  --ink: #101215;
  --ink-2: #5a5e66;
  --char: #0e1012;
  --char-2: #181b1f;
  --line: rgba(16, 18, 21, 0.14);
  --line-soft: rgba(16, 18, 21, 0.08);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #a8451e;          /* 5.3:1 on --paper */
  --accent-on-dark: #e3a077;  /* 8.4:1 on --char  */
  --ph-bg: #e4e0d6;
  --ph-bg-dark: #242a30;

  /* Type */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", Arial, sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(64px, 9vw, 148px);
  --stack: clamp(28px, 4vw, 56px);
  /* One oversized corner is what stops a photograph from reading as a framed
     box. It alternates direction per slot — see section 26. */
  --cut: clamp(38px, 4.4vw, 72px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--accent-on-dark); }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--paper-2); }
.section--dark { background: var(--char); color: #f2f1ee; }
.section--hairline { border-top: 1px solid var(--line-soft); }
.on-dark { color: #f2f1ee; }

/* Eyebrow: 12–13px, uppercase, wide tracking, accent colour */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.on-dark .eyebrow { color: var(--accent-on-dark); }

.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.18;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.on-dark .lead { color: #a8acb4; }

.section-head { max-width: 900px; }
.section-head + * { margin-top: var(--stack); }

.muted { color: var(--ink-2); }
.on-dark .muted { color: #a8acb4; }

.small { font-size: 14px; line-height: 1.55; }

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }

.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.on-dark .btn { --btn-bg: #f2f1ee; --btn-fg: var(--ink); }
.on-dark .btn:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }

/* Text link with moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow span[aria-hidden] { transition: transform 0.4s var(--ease); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }
.on-dark .link-arrow:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   4. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Staggered children: 80–120ms apart */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0.00s; }
.stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
.stagger.is-in > *:nth-child(3) { transition-delay: 0.20s; }
.stagger.is-in > *:nth-child(4) { transition-delay: 0.30s; }
.stagger.is-in > *:nth-child(5) { transition-delay: 0.40s; }
.stagger.is-in > *:nth-child(6) { transition-delay: 0.50s; }
.stagger.is-in > *:nth-child(7) { transition-delay: 0.60s; }

/* No-JS fallback: never hide content */
html.no-js .reveal,
html.no-js .stagger > * { opacity: 1 !important; transform: none !important; }
html.no-js .tabs__list { display: none !important; }
html.no-js .tab-panel[hidden] { display: block !important; }
html.no-js .tab-panel + .tab-panel { margin-top: 56px; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 19px;
  white-space: nowrap;
  text-decoration: none;
}
/* The client's own wordmark, 158x40 native. Not a CSS square: a real <img> with
   2x/3x sources, so a retina panel renders down from 474px instead of stretching
   158px. Height comes from the intrinsic ratio; never set it by hand. */
.brand__logo {
  display: block;
  width: 158px;
  height: auto;
  flex: none;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink);
  padding-block: 6px;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher — language self-names, no flags */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px;
}
.lang a {
  padding: 5px 9px;
  border-radius: 2px;
  color: var(--ink-2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang a:hover { color: var(--ink); background: var(--paper-3); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--paper-3); font-weight: 500; }

.nav__cta { padding: 12px 20px; min-height: 44px; font-size: 14px; white-space: nowrap; }

/* Russian navigation runs longer than English: tighten the row rather than
   let "О компании" or the CTA wrap onto two lines. */
html[lang="ru"] .nav__links { gap: clamp(10px, 1.2vw, 18px); }
html[lang="ru"] .nav__link { font-size: 13px; }
html[lang="ru"] .nav__cta { padding: 12px 15px; font-size: 12.5px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 96px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__link {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__foot { margin-top: 40px; display: grid; gap: 18px; }
.drawer__meta { font-size: 14px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.1vw, 96px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__media { position: relative; }
.hero__media .ph { aspect-ratio: 4 / 5; }

/* Russian headlines run longer: pull the display size down a notch */
html[lang="ru"] .hero__title { font-size: clamp(30px, 4.9vw, 66px); letter-spacing: -0.03em; }
html[lang="ru"] .h2 { font-size: clamp(29px, 3.9vw, 50px); }
html[lang="ru"] .lead,
html[lang="ru"] .hero__lead { max-width: 54ch; }

/* --------------------------------------------------------------------------
   7. Placeholder media blocks (real photography is pending)
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: var(--ph-bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(16, 18, 21, 0.04) 0 1px,
    transparent 1px 11px
  );
  color: #55595f;
  overflow: hidden;
  /* One large corner, three tight ones. Deliberately asymmetric: a 2px radius
     on all four corners is what a template looks like. */
  border-radius: 2px 2px var(--cut) 2px;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(16, 18, 21, 0.22);
  pointer-events: none;
}
.ph__label {
  position: relative;
  padding: 16px 18px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  max-width: 34ch;
}
.on-dark .ph {
  background-color: var(--ph-bg-dark);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 11px
  );
  color: #9aa2ab;
}
.on-dark .ph::before { border-color: rgba(255, 255, 255, 0.22); }

/* Hover: subtle scale + slight brightness shift */
/* The wrapper clips the hover zoom, so it has to carry the same corner —
   otherwise the scale on .ph gets squared off at the frame edge. */
.media {
  overflow: hidden;
  border-radius: 2px 2px var(--cut) 2px;
}
.media:hover .ph,
.media:focus-within .ph { transform: scale(1.03); filter: brightness(1.05); }

/* --------------------------------------------------------------------------
   8. Numbers bar
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(36px, 4.6vw, 64px);
}
.stat { display: flex; flex-direction: column-reverse; gap: 10px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1;
  font-weight: 550;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.stat__value small {
  font-size: 0.5em;
  font-weight: 450;
  letter-spacing: 0;
  margin-left: 4px;
}
.stat__label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: 18ch;
}

/* --------------------------------------------------------------------------
   8b. The two deciding checks (internal coating / valve interface)
   Two columns, hairline top rule, small index number. Not cards: the point is
   that these are checks, not features.
   -------------------------------------------------------------------------- */
.veto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: var(--stack);
  align-items: start;
}
.veto {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.veto__num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.veto p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 52ch;
}
.spec-list {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(104px, 0.55fr) 1.45fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-list dt {
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spec-list dd {
  font-size: 14.5px;
  line-height: 1.5;
}
.veto .media { margin-top: 26px; }
.veto .ph { aspect-ratio: 16 / 10; }

/* --------------------------------------------------------------------------
   9. Products
   -------------------------------------------------------------------------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: var(--stack);
}
.prod { display: flex; flex-direction: column; }
.prod .media { margin-bottom: 22px; }
.prod .ph { aspect-ratio: 4 / 3; }
.prod__range {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.prod .h3 { margin-bottom: 12px; }
.prod p { color: var(--ink-2); font-size: 15.5px; }
.prod ul { margin-top: 18px; display: grid; gap: 8px; }
.prod ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.prod ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.prod .link-arrow { margin-top: auto; padding-top: 22px; align-self: start; }

/* Compact De / H3 / C2 block inside a product card */
.mini-spec {
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.mini-spec > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mini-spec dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.mini-spec dd { font-size: 13.5px; color: var(--ink-2); }

/* Spec table */
.table-wrap { margin-top: clamp(40px, 5vw, 72px); overflow-x: auto; }
.spec-table {
  font-size: 15px;
  min-width: 560px;
}
.spec-table caption {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 16px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom-color: var(--ink);
}
.spec-table tbody th {
  font-weight: 500;
  width: 34%;
  white-space: nowrap;
}
.spec-table td:first-of-type {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spec-table td:last-child { color: var(--ink-2); font-size: 14px; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

/* Comparison table: all three columns carry prose, so nothing may be clipped */
.compare-table td {
  white-space: normal;
  font-size: 14px;
  color: var(--ink-2);
}
.compare-table tbody th {
  width: 22%;
  white-space: normal;
  vertical-align: top;
}
.compare-table thead th:nth-child(2) { color: var(--accent); }
.compare-table td:first-of-type { white-space: normal; color: var(--ink); }

/* Small "to be confirmed" flag */
.tbc {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 7px;
  vertical-align: 1px;
  white-space: nowrap;
}
.on-dark .tbc { color: #a8acb4; border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   10. Contrast section (NOT / IS)
   -------------------------------------------------------------------------- */
.contrast__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 96px);
  margin-top: var(--stack);
  align-items: start;
}
.contrast__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d939b;
  margin-bottom: 20px;
  display: block;
}
.contrast__label--is { color: var(--accent-on-dark); }
.contrast__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 450;
}
.contrast__col--not .contrast__text { color: #7f858d; }
.contrast__col--is .contrast__text { color: #f7f6f3; }
.contrast__body {
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #a8acb4;
  max-width: 46ch;
}
.contrast__body--strong { color: #d8d6d1; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.pillar h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 10px;
  color: #f2f1ee;
}
.pillar p { font-size: 14.5px; color: #a8acb4; line-height: 1.55; }

/* --------------------------------------------------------------------------
   11. Application tabs
   -------------------------------------------------------------------------- */
.tabs { margin-top: var(--stack); }
.tabs__list {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  background: none;
  border: 0;
  padding: 16px 0 18px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-panel { padding-top: clamp(32px, 4vw, 56px); }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering > * {
  animation: panelIn 0.6s var(--ease) both;
}
.tab-panel.is-entering > *:nth-child(2) { animation-delay: 0.06s; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
}
.panel-grid .ph { aspect-ratio: 3 / 2; }
.panel-body .h3 { margin-bottom: 14px; }
.panel-body p { color: var(--ink-2); max-width: 52ch; }
.panel-body ul { margin-top: 24px; display: grid; gap: 10px; }
.panel-body li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.panel-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   12. Capabilities
   -------------------------------------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.cap-list { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.cap-item { padding-bottom: clamp(28px, 3.4vw, 44px); border-bottom: 1px solid var(--line-soft); }
.cap-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cap-item__index {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.cap-item p { color: var(--ink-2); font-size: 15.5px; max-width: 54ch; margin-top: 10px; }

.cap-media { display: grid; gap: 20px; }
.cap-media .ph { aspect-ratio: 5 / 4; }
.cap-media__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cap-media__grid .ph { aspect-ratio: 1 / 1; }

/* Company block (nav "About") */
.about-block {
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
}
.about-block p { color: var(--ink-2); max-width: 68ch; }
.about-block p + p { margin-top: 16px; }

/* --------------------------------------------------------------------------
   13. Certifications
   -------------------------------------------------------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.cert-badge {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
}
.cert-badge__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 550;
}
.cert-badge__meta {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cert-badge p { font-size: 15px; color: var(--ink-2); }
.cert-badge .link-arrow { margin-top: 22px; }

.doc-list { margin-top: 8px; }
.doc-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.doc-list li:first-child { border-top: 1px solid var(--ink); }
.doc-list span:last-child { flex: none; }

/* --------------------------------------------------------------------------
   14. Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--stack);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.step__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step .h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step__time {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-3);
  border-radius: 2px;
  padding: 4px 8px;
}
.footnote {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
}
.on-dark .footnote { color: #8d939b; }

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: var(--stack);
}
.quote {
  border: 1px dashed var(--line-dark);
  border-radius: 3px;
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 260px;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #d8d6d1;
}
.quote__meta { font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: #8d939b; }
.quote__meta strong { display: block; color: #f2f1ee; font-weight: 500; letter-spacing: 0.06em; margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: var(--stack); border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer {
  padding: 0 0 28px;
  max-width: 74ch;
  color: var(--ink-2);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   17. RFQ form
   -------------------------------------------------------------------------- */
.rfq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.rfq-aside .lead { margin-top: 4px; }
/* The quote heading is long by design; keep it one step below the section h2
   so the form column stays the visual anchor of the block. */
.rfq-aside .h2 { font-size: clamp(28px, 3.1vw, 42px); }
.rfq-contact {
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.rfq-contact dt {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 14px;
}
.rfq-contact dd { font-size: 16px; }
.rfq-contact dd a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.rfq-contact dd a:hover { border-color: var(--accent); color: var(--accent); }

.rfq {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(24px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(16, 18, 21, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 69, 30, 0.14);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101215' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--ink); border-bottom: 1px solid var(--line); }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
  margin-top: 6px;
}
.form-foot .small { max-width: 34ch; }
.form-status {
  grid-column: 1 / -1;
  font-size: 14.5px;
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { border-color: rgba(63, 124, 74, 0.4); background: #f2f7f2; color: #2f5c37; }
.form-status--error { border-color: rgba(168, 69, 30, 0.4); background: #fbf3ef; color: #8e3a18; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--char);
  color: #a8acb4;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: #f2f1ee; margin-bottom: 16px; }
.footer-brand .brand__sub { color: #8d939b; }
.footer-brand p { font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.footer-col h2 {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d939b;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; font-size: 14.5px; }
.footer-col a { transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #f2f1ee; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: #f2f1ee; }
.footer-updated { color: #7c828a; }

/* --------------------------------------------------------------------------
   19. Responsive — 1440 / 1024 / 640
   -------------------------------------------------------------------------- */
@media (min-width: 1441px) {
  :root { --container: 1400px; }
}

/* Navigation collapses earlier than the rest of the layout: six labels plus a
   CTA in two languages need more room than the original five. */
@media (max-width: 1280px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .nav__cta { display: none; }
  .lang { display: none; }
  .drawer .lang { display: flex; width: max-content; }
  .drawer .nav__cta { display: inline-flex; width: 100%; }
}

@media (max-width: 1024px) {
  .hero { min-height: 0; padding-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 72px); }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; }
  .hero__media .ph { aspect-ratio: 16 / 10; }

  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .veto-grid { grid-template-columns: 1fr; gap: 40px; }
  .prod-grid { grid-template-columns: 1fr; gap: 40px; }
  .prod .ph { aspect-ratio: 16 / 9; }
  .contrast__grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel-grid .ph { order: -1; }
  .cap-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .quotes { grid-template-columns: 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 72px; }
  .nav { min-height: 64px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand__logo { width: 132px; }
  .brand__sub { display: none; }

  .hero__title { font-size: clamp(32px, 9.2vw, 44px); }
  html[lang="ru"] .hero__title { font-size: clamp(28px, 8.2vw, 38px); }
  .h2 { font-size: clamp(27px, 7.6vw, 36px); }
  html[lang="ru"] .h2 { font-size: clamp(25px, 7vw, 33px); }
  .hero__actions .btn { width: 100%; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 26px; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }

  /* Tabs stay inside the container on phones: the strip scrolls, the page does not */
  .tabs__list { gap: 18px; }
  .tab { font-size: 14px; padding-block: 13px 15px; }

  /* The specification table must not create a horizontal scrollbar at 390px:
     drop the min-width and let the three columns wrap instead. The DOM stays a
     real <table>, so crawlers and screen readers still get the structure. */
  .table-wrap { overflow: visible; }
  .spec-table { min-width: 0; font-size: 13.5px; }
  .spec-table caption { display: block; width: 100%; }
  .spec-table thead th { font-size: 10.5px; letter-spacing: 0.06em; }
  .spec-table th, .spec-table td { padding: 11px 8px 11px 0; }
  .spec-table tbody th { white-space: normal; width: 32%; }
  .spec-table td:first-of-type { white-space: normal; }
  .spec-table td:last-child { font-size: 12.5px; }

  /* Key/value rows stack on phones; the compare table keeps its three columns
     and scrolls inside its own wrapper instead of squeezing prose to 100px. */
  .spec-list > div { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
  .spec-list dt { font-size: 11px; }
  .table-wrap--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap--scroll .compare-table { min-width: 660px; }
  .cap-media__grid { gap: 12px; }

  .steps { grid-template-columns: 1fr; gap: 24px; }
  .quote { min-height: 0; }
  .rfq { grid-template-columns: 1fr; }
  /* Two link columns come from the 1024 block (base is four); re-declaring the
     same value here changed nothing and made the phone breakpoint look like it
     owned the footer. What actually changes at this width is the bottom bar:
     it stacks. */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .drawer__link { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   20. Reduced motion — everything off
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .ask-panel {
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 94vh;
  }
  .ask-panel .h3 { font-size: 23px; }
  .ask-panel__lead { font-size: 14px; }
  .ask-fields { gap: 12px; margin-top: 18px; }
  .ask-fields .field textarea { min-height: 68px; }
  .consent { font-size: 12.5px; }
  .ask-panel__foot { margin-top: 14px; padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .media:hover .ph { transform: none; filter: none; }
}

/* --------------------------------------------------------------------------
   21. Long-form pages (privacy, terms)
   -------------------------------------------------------------------------- */
.page-header { padding-block: clamp(48px, 6vw, 88px) clamp(16px, 2vw, 28px); }
.page-header .h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 550;
  margin-bottom: 16px;
}
.page-meta {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(19px, 2vw, 23px); margin-top: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { font-size: 16px; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 14px; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.prose a { color: var(--ink); border-bottom: 1px solid var(--line); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.draft-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   22. Print (quotations get printed — keep it legible)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .rfq, .tabs__list, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 24px; }
  .section--dark, .site-footer { background: #fff; color: #000; }
}

/* ==========================================================================
   20. PHOTOGRAPHY LAYER
   Real plant photography imported from the Chinese site (eapacking.cn) and
   re-cropped per slot. Every image here is the client's own asset.
   Portraits of people, laboratory macro shots and the burst test rig are NOT
   in that library — those slots keep the dashed placeholder on purpose.
   ========================================================================== */

.ph--photo {
  display: block;
  background: #e9e6e0;   /* light paper tone: a slow image must not read as a black hole */
  padding: 0;
}
.ph--photo.is-dark { background: #16181b; }
.ph--photo::before { display: none; }

.ph > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero: the source frame is square, so the column is square too —
   a 4:5 box would crop the left-hand can out of frame. */
.hero__media .ph { aspect-ratio: 1 / 1; }

/* Applications: one band for the whole section, instead of six sector
   photos we do not actually own. */
.apps-band {
  margin: clamp(30px, 4vw, 52px) 0 0;
}
.apps-band .ph { aspect-ratio: 16 / 9; }
.apps-band figcaption,
.about-figure figcaption,
.fig-16-10 figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  max-width: 62ch;
}

/* Six sectors now read as text panels — the photo moved to the band above. */
.panel-grid { grid-template-columns: minmax(0, 1fr); }
.panel-body { max-width: 68ch; }

/* About figure — 1200×960 source, so 5:4 keeps it whole */
.about-figure { margin: clamp(24px, 3vw, 38px) 0 0; }   /* UA default is 40px inline */
.about-figure .ph { aspect-ratio: 5 / 4; }

/* Two technical photographs that moved off the home page: the lined bodies
   (1130×706) onto /capabilities/, the necked opening (480×300) onto /products/.
   Both sources are close to 16:10, so that is the frame — the ratio is set by
   the file, not by the layout, and neither picture is cropped. */
.fig-16-10 { margin: clamp(22px, 2.8vw, 34px) 0 0; }
.fig-16-10 .ph { aspect-ratio: 16 / 10; }

/* Partner brand marks — light background only, transparent WebP */
.partner-strip {
  margin-top: clamp(36px, 4.4vw, 64px);
  padding-top: clamp(26px, 3.2vw, 40px);
  border-top: 1px solid var(--line);
}
.partner-strip__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.partner-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.partner-strip__row img {
  height: 54px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .partner-strip__row img { height: 40px; }
  .apps-band { max-width: none; }
}


/* Four technical slots we do not have photography for. Rather than leave
   dashed TODO boxes in the most visible column, they read as a spec grid —
   the same honesty, without looking like an unfinished page. */
.spec-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  aspect-ratio: 3 / 2;
  padding: 16px 18px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: #f2f0eb;
  min-width: 0;
}
.spec-tile__icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.spec-tile__label {
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.spec-tile__note {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}


/* ==========================================================================
   23. INNER PAGES
   One shell renders 30+ pages, so the vocabulary here has to survive being
   repeated: breadcrumbs, a reading column, a related-pages grid and the
   closing quote band. Nothing decorative — these pages are read, not looked at.
   ========================================================================== */

/* Breadcrumbs — deliberately quiet. They exist for orientation and for the
   BreadcrumbList that search engines read, not as a visual element. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.crumbs a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--line); }
.crumbs span[aria-hidden] { opacity: 0.35; }
.crumbs span[aria-current] { color: var(--ink); }

.page-header .eyebrow { margin-bottom: 18px; }
.page-header .lead { max-width: 62ch; }
.page-header .page-meta { margin-top: 20px; }

/* The prose column is narrow on purpose: a specification page is read line by
   line, and a 1300px measure is unreadable at 16px. Tables break out below. */
.prose .footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Related pages — three across, collapsing to one. Each card is a whole link.
   Kept as <a> so the block is clickable at 44px minimum on touch. */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
}
/* The dividers used to be the container background showing through 1px gaps.
   That works until a card is allowed to move: translating it drags a 1px band
   of line colour along under it, which reads as a printing error rather than
   as lift. So each card now draws its own hairline as a 1px ring — the rings
   meet exactly at the shared edge, the grid still reads as one ruled table,
   and a hovering card carries its rule with it. */
/* /applications/ carries seven sector cards — one more than divides by three
   at both 3 and 2 columns. A last card that starts a new row takes the whole
   row instead of leaving two empty cells behind it. The :last-child in front
   is what keeps it to that one case: at two columns the first card is also
   nth-child(3n+1), and only the compound selector excludes it. */
.related-grid > .related:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.related {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--paper);
  min-width: 0;
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.related:hover,
.related:focus-visible {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--line), 0 26px 46px -26px rgba(16, 18, 21, 0.45);
  z-index: 3;
}
.related:active { transform: translateY(-3px); }
.related__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.related h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 550;
  color: var(--ink);
  text-wrap: balance;
}
.related p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Closing quote band — the same invitation on every page, so a visitor who
   lands deep never has to scroll back up to find the way in. */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(16px, 2vw, 32px);
}
.cta-band .h2 { max-width: 20ch; margin-bottom: 14px; }
.cta-band .lead { max-width: 52ch; }
.cta-band__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 640px) {
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .crumbs { font-size: 11.5px; gap: 6px; }
}

/* Glossary and long-reference pages: a term heading has to be linkable, and
   the term index is a contents list rather than a paragraph. */
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 550;
  margin-top: clamp(26px, 3vw, 34px);
  margin-bottom: 8px;
  scroll-margin-top: 96px;
}
.prose h3:target { color: var(--accent); }
.term-index {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.term-index a { border-bottom: 1px solid var(--line-soft); }
.term-index a:hover { border-bottom-color: var(--accent); }

/* Prose tables: three columns of sentences rather than a parameter sheet.
   The base .spec-table keeps values on one line, which is right for "35–66 mm"
   and wrong for "Ethanol finds any break in the internal lining". */
.spec-table--prose { min-width: 0; table-layout: auto; }
/* Deliberately not width:100% — a three-column prose table sized to its
   content reads as an editorial table; stretched to 1320px it reads as a
   form with two empty columns. */
.spec-table--prose tbody th { white-space: normal; width: 26%; }
.spec-table--prose td:first-of-type {
  white-space: normal;
  font-variant-numeric: normal;
  color: var(--ink);
}
.spec-table--prose td { line-height: 1.55; }
.spec-table--prose td:last-child { font-size: 14px; }
.spec-table strong { font-weight: 550; }

@media (max-width: 720px) {
  .spec-table--prose tbody th { width: auto; }
  .spec-table--prose td,
  .spec-table--prose tbody th { padding: 12px 10px 12px 0; }
}

/* --------------------------------------------------------------------------
   Prose tables on a phone
   Three columns of sentences cannot survive a 390px viewport with a horizontal
   scroll — the third column simply vanishes with no affordance. Instead each
   row becomes a labelled block: the attribute is the heading, and every cell
   carries its column name from data-label.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .spec-table--prose,
  .spec-table--prose tbody,
  .spec-table--prose tr,
  .spec-table--prose th,
  .spec-table--prose td,
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
    min-width: 0;
  }
  .spec-table--prose thead,
  .compare-table thead { display: none; }

  /* the old homepage rule forced a 660px min-width on the comparison table so
     it would scroll; here it must collapse, so the stacking is not defeated. */
  .table-wrap--scroll .compare-table,
  .table-wrap--scroll .spec-table--prose { min-width: 0; }

  .spec-table--prose tr,
  .compare-table tr {
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
  }
  .spec-table--prose tr:last-child,
  .compare-table tr:last-child { border-bottom: 0; }

  .spec-table--prose th[scope="row"],
  .compare-table th[scope="row"] {
    display: block;
    width: auto;
    padding: 0 0 10px;
    border: 0;
    font-size: 15.5px;
    color: var(--ink);
  }

  .spec-table--prose td,
  .compare-table td {
    padding: 0 0 10px;
    border: 0;
    font-size: 14px;
  }
  .spec-table--prose td:last-child,
  .compare-table td:last-child { padding-bottom: 0; }

  .spec-table--prose td[data-label]::before,
  .compare-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    opacity: 0.85;
  }
}

/* ==========================================================================
   24. COMPACT HOME
   The homepage is a router, not a catalogue. Eight blocks, four screens.
   Everything that used to be argued in full here now has its own URL, so the
   home page states each fact once and links to the page that proves it.
   Inner pages keep the roomier rhythm — every rule below is scoped to .home.

   The eight blocks, in the order pages_home.py emits them:
     1  hero             .hero
     2  trust bar        .trust
     3  decision band    .decide    (three hairline rows)
     4  products         .prod-grid (unequal columns, 200 px frames)
     5  markets          .markets-grid  (three routes + one full-width note)
     6  scope            .notdo     (what we do not do)
     7  applications     .pill-row + .fills
     8  quote            .cta-sec
   Blocks that were merged away keep their rule here only if a class is still
   emitted: .veto and .duo are gone with their blocks and their .home rules
   went with them; .prod stays.
   ========================================================================== */
.home .section { padding-block: clamp(20px, 1.9vw, 30px); }
/* A band that is already divided by a hairline needs less air than a section
   that changes tone; the two hairline bands carry their own, tighter rhythm. */
.home .section--hairline { padding-block: clamp(16px, 1.45vw, 21px); }
.home .section-head { max-width: 760px; }
.home .section-head + * { margin-top: clamp(12px, 1.5vw, 20px); }
.home .h2 { font-size: clamp(25px, 2.9vw, 40px); }
/* the shared Russian display sizes are tuned for long inner-page leads;
   on the compact home they have to follow the same scale as English */
html[lang="ru"] .home .h2 { font-size: clamp(23px, 2.5vw, 35px); }
html[lang="ru"] .home .hero__title { font-size: clamp(27px, 3.35vw, 44px); }
/* The base sheet caps every Russian lead at 54ch, which is right for a body
   column and wrong for the hero: the Russian lead is a third longer than the
   English one, so the cap turned it into eight lines and pushed the hero to
   746 px. The compact home re-declares the measure for its own two blocks. */
html[lang="ru"] .home .hero__lead,
html[lang="ru"] .home .hero__boundary { max-width: 78ch; }
.home .h3 { font-size: clamp(19px, 1.55vw, 23px); }
/* break headings on sense, not on the last word of the column */
.home .section-head .h2,
.home .cta-sec .h2 { text-wrap: balance; }
.home .lead { font-size: clamp(16px, 1.3vw, 18px); max-width: 74ch; }
/* A single short word alone on the last line is what makes a narrow column
   look unfinished, and at 390 px it happens in five of the eight blocks.
   `pretty` lets the browser rebalance the last two lines instead of leaving
   that orphan. It changes no copy and no type size; a browser that does not
   support it ignores the declaration and wraps exactly as before. */
.home .decide__row p,
.home .prod p,
.home .market p,
.home .markets-note,
.home .notdo p,
.home .fills { text-wrap: pretty; }

/* 24.1 Hero ---------------------------------------------------------------- */
.home .hero {
  min-height: 0;
  display: block;
  padding-block: clamp(16px, 1.9vw, 26px) clamp(18px, 2.1vw, 30px);
}
.home .hero__grid {
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
}
.home .hero__title {
  font-size: clamp(32px, 4.5vw, 58px);
  margin-bottom: clamp(10px, 1.2vw, 14px);
}
.home .hero__lead {
  font-size: clamp(15px, 1.15vw, 16.5px);
  max-width: 76ch;
  margin-bottom: clamp(11px, 1.3vw, 15px);
}
/* The boundary: the one sentence that stops the wrong enquiry. It is set off by
   a rule rather than by a colour, so it reads as a condition of the offer and
   not as a second paragraph of advertising. */
.home .hero__boundary {
  max-width: 68ch;
  margin-bottom: clamp(14px, 1.7vw, 20px);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 1.55;
  color: var(--ink-2);
}
.home .hero__actions { margin-bottom: clamp(14px, 1.7vw, 20px); }
/* The source frame is square. A 5:4 box cropped the base of the cans off. */
.home .hero__media .ph { aspect-ratio: 1 / 1; }
.home .hero__meta { gap: 8px clamp(14px, 1.6vw, 22px); }

/* 24.2 Trust bar -----------------------------------------------------------
   Four facts on one hairline, and one line of small print under them. The
   line is the part that is not a badge: it names the three documents a buyer
   can actually be sent, which is why the ISO item above it can afford to be
   two words long.
   -------------------------------------------------------------------------- */
.home .trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: clamp(10px, 1.2vw, 16px) 0;
}
.home .trust li {
  padding-right: 18px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.15vw, 16.5px);
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.home .trust li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}
.home .trust__note {
  margin-top: clamp(10px, 1.2vw, 14px);
  padding-top: clamp(8px, 1vw, 12px);
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 92ch;
}

/* 24.3 Decision band -------------------------------------------------------
   Three rows, each one decision the buyer has to make before a price means
   anything. Number, title, two lines, arrow — a row, not a card. The two
   photographs that used to sit here are on /capabilities/ and /products/,
   which is where the argument they illustrate is made.
   -------------------------------------------------------------------------- */
.home .decide,
.home .notdo {
  margin-top: clamp(12px, 1.5vw, 20px);
  border-top: 1px solid var(--line);
}
.home .decide__row,
.home .notdo__row {
  display: grid;
  gap: 0 clamp(16px, 2vw, 30px);
  padding-block: clamp(9px, 0.95vw, 12px);
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.home .decide__row {
  grid-template-columns: 40px minmax(0, 0.92fr) minmax(0, 1.3fr) minmax(0, 0.44fr);
  grid-template-areas: "num title text link";
}
.home .notdo__row {
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.44fr);
  grid-template-areas: "num text link";
}
.home .decide__num,
.home .notdo__num {
  grid-area: num;
  padding-top: 4px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.home .decide__row .h3 { grid-area: title; font-size: clamp(17px, 1.45vw, 20.5px); }
.home .decide__row p { grid-area: text; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.home .notdo__row p { grid-area: text; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 82ch; }
.home .decide__row .link-arrow,
.home .notdo__row .link-arrow {
  grid-area: link;
  justify-self: end;
  align-self: start;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: right;
}

/* 24.4 Products ------------------------------------------------------------
   Three unequal columns, and every frame locked to 200 px with the image
   contained rather than cropped. Unequal columns stop the block reading as a
   template; a fixed frame height stops three files of three different ratios
   from setting three different row heights. */
.home .prod-grid {
  grid-template-columns: 1.14fr 0.9fr 1fr;
  align-items: start;
  gap: clamp(20px, 2.4vw, 34px);
}
.home .prod:nth-child(2) { margin-top: clamp(10px, 1.1vw, 14px); }
.home .prod .media { margin-bottom: 10px; }
.home .prod .ph {
  height: 200px;
  aspect-ratio: auto;
  background: transparent;
}
.home .prod .ph > img {
  object-fit: contain;
  object-position: center bottom;
}
.home .prod .h3 { margin-bottom: 4px; font-size: clamp(17px, 1.35vw, 19.5px); }
.home .prod p { font-size: 14.5px; }
.home .prod .link-arrow { padding-top: 10px; margin-bottom: 2px; }
.home .prod__range { margin-bottom: 6px; }

/* 24.5 BLOCK A — four markets ---------------------------------------------
   Three cards, one per compliance route, plus a footnote that runs the full
   width underneath. :empty stays as the belt to the braces — if the grid is
   ever emptied again it costs zero height instead of painting an empty box. */
.home .markets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}
.home .markets-grid:empty { display: none; }
.home .market {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-content: start;
}
/* 标题收一档：三列里 20px 的 H3 会换行三次，把三张卡的顶边推到不同高度 */
.home .market .h3 {
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  line-height: 1.32;
  letter-spacing: -0.005em;
}
.home .market p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
/* 脚注走整行，把「这是数据不是预测」和 HS 6 位这条读法从卡片里摘出来：
   它约束的是上面三张卡全体，挂在任何一张下面都会变成那一张的注脚 */
.home .markets-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* 24.6 Applications --------------------------------------------------------
   Six sectors as pills and one line of fills. The sector words are the only
   industry vocabulary on the home page; the formats underneath are where the
   six notes that used to sit in the cards went. */
.home .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home .pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.home .pill:hover,
.home .pill:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--paper-2);
}
.home .fills {
  margin-top: clamp(10px, 1.2vw, 14px);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 88ch;
}
.home .fills .link-arrow { margin-left: 8px; white-space: nowrap; }

/* 24.7 Closing CTA on dark ------------------------------------------------- */
.on-dark .page-meta { color: #8d939b; }
.on-dark .link-arrow { border-bottom-color: var(--line-dark); }
.home .cta-sec .rfq {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
  padding: clamp(20px, 2.4vw, 32px);
  gap: 12px 16px;
}
.home .cta-sec .rfq-aside .h2 { font-size: clamp(22px, 2.3vw, 31px); }
.home .cta-sec .page-meta { margin-top: 10px; letter-spacing: .06em; }
.home .cta-sec .field textarea { min-height: 92px; }
.home .cta-sec .rfq-contact { margin-top: clamp(14px, 1.6vw, 20px); padding-top: 14px; }
.home .cta-sec .rfq-contact dt { margin-top: 7px; }
.home .cta-sec .rfq-contact dd { font-size: 14px; line-height: 1.5; }
.home .cta-sec .rfq-contact { border-top-color: var(--line-dark); }
/* The plant sentence, in the aside. It replaced a whole section; the thing the
   asker needs at this point is one reassurance, not three photographs. */
.home .rfq-plant {
  margin-top: clamp(10px, 1.2vw, 14px);
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b9c0c7;
}
.home .rfq-plant .link-arrow { color: var(--accent-on-dark); border-bottom-color: var(--line-dark); }
.on-dark .rfq-contact dt { color: #9aa2ab; }
.on-dark .rfq-contact dd a { border-bottom-color: var(--line-dark); }
.on-dark .rfq-contact dd a:hover { color: var(--accent-on-dark); border-bottom-color: var(--accent-on-dark); }
.home .cta-sec .btn--accent { --btn-bg: var(--accent-on-dark); --btn-fg: #17110c; }
.home .footnote { margin-top: clamp(12px, 1.4vw, 20px); }

/* 24.8 Breakpoints --------------------------------------------------------- */
.home .site-footer { padding-top: clamp(36px, 4vw, 56px); }
.home .footer-top { gap: clamp(24px, 3vw, 40px); }

@media (max-width: 1024px) {
  .home .hero__media .ph { aspect-ratio: 5 / 4; }
  /* 三列在平板上会把每张卡压到 200px 出头，14.5px 的正文字数掉到 28 字/行 */
  .home .markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 0; }
  .home .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .home .trust li:nth-child(n + 3) { padding-top: 10px; }
  .home .decide__row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "num title" ". text" ". link";
  }
  .home .notdo__row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "num text" ". link";
  }
  .home .decide__row .link-arrow,
  .home .notdo__row .link-arrow {
    justify-self: start;
    text-align: left;
    margin-top: 10px;
  }
  /* Single column here, so a frame with a fixed height would letterbox the can
     into a stripe. The 4:3 ratio comes back above the snap layout. */
  .home .prod-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .home .prod:nth-child(2) { margin-top: 0; }
  .home .prod .ph { height: auto; aspect-ratio: 4 / 3; }
  .home .prod .ph > img { object-fit: cover; object-position: center; }
}

@media (max-width: 640px) {
  .home .section { padding-block: clamp(26px, 6vw, 38px); }
  /* 手机上两张卡并排 = 每张 150px，正文一行只剩十几字，读不成句 */
  .home .markets-grid { grid-template-columns: 1fr; gap: 18px; }
  .home .hero__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* Horizontal snap: one card and a slice of the next, so the reader can see
     there are three bands without scrolling past three stacked photographs.
     The row bleeds to the screen edge and scrolls, which is why the page
     itself must not scroll sideways — body carries overflow-x: hidden. */
  .home .prod-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
  }
  .home .prod-grid::-webkit-scrollbar { display: none; }
  .home .prod {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    padding-right: 4px;
  }
  .home .prod .ph { height: 190px; aspect-ratio: auto; }
  .home .prod .ph > img { object-fit: contain; object-position: center bottom; }
  .home .fills .link-arrow { display: inline-block; margin: 8px 0 0; }
}

/* ==========================================================================
   25. QUICK MESSAGE
   Three entry points, one panel:
     .ask-fab    floating trigger, every page, appears after the first screen
     .ask-strip  inline trigger dropped after the first substantive block
     .ask-sheet  the panel itself — three fields, not a second RFQ
   The whole point is that a visitor with one question does not have to fill in
   a five-field quotation form to ask it.
   ========================================================================== */

/* 25.1 Floating trigger ---------------------------------------------------- */
.ask-fab {
  position: fixed;
  right: clamp(16px, 2.2vw, 26px);
  bottom: clamp(16px, 2.2vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 16px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--char);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 32px rgba(14, 16, 18, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
    visibility 0.45s, background 0.3s var(--ease);
}
.ask-fab.is-in { opacity: 1; visibility: visible; transform: none; }
.ask-fab.is-parked { opacity: 0; visibility: hidden; transform: translateY(14px); }
.ask-fab:hover { background: var(--accent); }
.ask-fab:active { transform: translateY(1px); }
.ask-fab__icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  .ask-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 46px;
    font-size: 13.5px;
    padding: 0 16px 0 13px;
  }
}

/* 25.2 Inline strip -------------------------------------------------------- */
.ask-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 56px);
  margin-top: clamp(28px, 3.4vw, 48px);
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
  background: var(--paper-3);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
}
.ask-strip__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.ask-strip__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 64ch;
}
.ask-strip .btn { flex: none; }
/* Slim variant, used on the home page: the label is dropped and the sentence
   runs on one line, so two entry points cost ~190px instead of ~340. */
.ask-strip--slim { padding: 16px clamp(18px, 2.2vw, 26px); margin-top: clamp(22px, 2.4vw, 32px); }
.ask-strip--slim .ask-strip__label { display: none; }
.ask-strip--slim .ask-strip__text { max-width: none; }

@media (max-width: 768px) {
  .ask-strip { grid-template-columns: minmax(0, 1fr); }
  .ask-strip .btn { justify-self: start; }
  .ask-strip--slim .ask-strip__label { display: block; }
}

/* 25.3 The panel ----------------------------------------------------------- */
.ask-sheet {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
}
.ask-sheet:not([open]) { display: none; }
.ask-sheet[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ask-sheet::backdrop {
  background: rgba(10, 12, 14, 0.58);
  backdrop-filter: blur(3px);
}
.ask-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 4px 4px 0 0;
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: 0 -18px 60px rgba(10, 12, 14, 0.28);
  animation: ask-in 0.42s var(--ease);
}
@keyframes ask-in {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ask-panel__head { position: relative; padding-right: 44px; }
.ask-panel .h3 {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.14;
  margin-top: 10px;
  text-wrap: balance;
}
.ask-panel__lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ask-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.ask-close:hover { border-color: var(--ink); background: var(--paper-3); }
.ask-close svg { width: 15px; height: 15px; }

.ask-fields {
  display: grid;
  gap: 16px;
  margin-top: clamp(20px, 2.4vw, 28px);
}
.ask-fields .field textarea { min-height: 84px; }
.ask-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}
.ask-foot .small { max-width: 30ch; }
.ask-panel__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.ask-panel__foot a { border-bottom: 1px solid var(--line); }
.ask-panel__foot a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Desktop: slide in from the right instead of rising from the bottom, so the
   page underneath stays readable and the panel does not look like a cookie bar. */
@media (min-width: 900px) {
  .ask-sheet[open] { align-items: stretch; justify-content: flex-end; }
  .ask-panel {
    width: min(100%, 480px);
    max-height: none;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -18px 0 60px rgba(10, 12, 14, 0.22);
    animation: ask-slide 0.42s var(--ease);
  }
  @keyframes ask-slide {
    from { transform: translateX(28px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-panel { animation: none; }
  .ask-fab { transition: none; }
}

/* 25.4 No-JS fallback ------------------------------------------------------
   The panel is a <dialog> driven by showModal(); without JS it can never open,
   so every trigger must degrade to something that still works. Two cases:
     a) scripting disabled  -> <noscript><style> in <head> flips the classes
     b) main.js failed to load -> html keeps .no-js, these rules apply
   In both cases the button disappears and a tel: anchor takes its place, so a
   visitor is never left with a control that silently does nothing. */
.ask-fallback { display: none; }

html.no-js .ask-fab,
html.no-js .ask-sheet,
html.no-js [data-ask] { display: none !important; }
html.no-js .ask-fallback { display: inline-flex; }
/* With the trigger gone the strip is pure text: keep it, drop the empty column. */
html.no-js .ask-strip { grid-template-columns: minmax(0, 1fr); }
/* …and the lone tel: link must not stretch across the whole row. */
html.no-js .ask-strip .ask-fallback { justify-self: start; }

/* ==========================================================================
   26. PHOTO SHAPE — one oversized corner, never a framed rectangle
   Every photograph on this site was a 2px-radius box sitting on a grid line.
   Four equal corners + equal columns is exactly what a template looks like,
   and it is what made the product shots read as thumbnails rather than cans.
   Two moves fix it, both cheap and both reversible:
     a) one corner per image is cut to var(--cut), the other three stay at 2px;
     b) the cut alternates direction, so no two neighbours match.
   Nothing here changes the crop — that is handled per slot by matching
   aspect-ratio to the real pixel ratio of the file.
   ========================================================================== */

/* 26.1 Alternating direction ------------------------------------------------ */
.hero__media,
.hero__media .ph,
.home .prod:nth-child(2) .media,
.home .prod:nth-child(2) .ph,
.plant__shot--main,
.plant__shot--main .ph,
.cap-media .ph {
  border-radius: var(--cut) 2px 2px 2px;
}

/* 26.2 The plant block ------------------------------------------------------
   Text on the left, three frames on the right: a wide one and a stack of two
   that is deliberately shorter than the frame beside it. The mismatch is the
   point — aligned bottoms would put the box back.
   -------------------------------------------------------------------------- */
.plant__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(26px, 3.6vw, 58px);
  align-items: start;
}
.plant__facts {
  margin-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--ink);
}
.plant__facts > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.6fr) 1.4fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.plant__facts dt {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plant__facts dd { font-size: 14.5px; line-height: 1.5; }

.plant__shots {
  display: grid;
  grid-template-columns: 1.3fr minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  align-items: start;
}
.plant__shot { margin: 0; }
.plant__shot--main .ph { aspect-ratio: 3 / 2; }
.plant__side { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.plant__side .ph { aspect-ratio: 4 / 3; }
/* Second frame drops and pulls in — the right column stops being a stack. */
.plant__side .plant__shot:last-child { margin-left: clamp(0px, 3vw, 42px); }
.plant__shot figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  max-width: 34ch;
}

/* 26.3 A frame waiting for its photograph --------------------------------
   build/pages_home.py writes .ph--todo when the file is not in assets/img yet.
   It has to look like a deliberate slot, not a broken image, and it has to
   say which filename will fill it. */
.ph--todo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
}
.ph--todo::before { display: none; }
.ph--todo code {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  opacity: 0.72;
  word-break: break-all;
}

@media (max-width: 900px) {
  .plant__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .plant__shots { grid-template-columns: minmax(0, 1fr); }
  .plant__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plant__side .plant__shot:last-child { margin-left: 0; }
  .plant__shot--main .ph { aspect-ratio: 4 / 3; }
  /* The filename does not fit in a half-width frame; the gutter does the work. */
  .ph--todo { padding: 12px; font-size: 11px; }
  .ph--todo code { display: none; }
}

/* 26.4 The product frames no longer crop --------------------------------
   This section used to hold two position-scoped crop boxes: one for the
   middle product card (aluminium-aerosol-cans-de-46-55mm.webp, 640×480, a
   second can sliced at the right edge) and one for the second checks card
   (aerosol-cans-valve-and-caps.webp, 480×300).

   Both are gone, for two different reasons. The checks card went with the
   checks block, which is now a hairline band; that photograph lives on
   /products/ in the valve-interface section. And the product frames are
   locked to 200 px with object-fit: contain (§24.4), so nothing is cropped
   any more and no crop box can help — a rule here would only fight the
   frame height. Kept as a note so the next reader does not re-add one. */

/* ==========================================================================
   27. CLICK RESPONSE — the page answers, it does not perform
   --------------------------------------------------------------------------
   One rule for everything interactive: the reply arrives inside a fifth of a
   second, it moves a few pixels at most, and it always says which element is
   talking. Nothing bounces, nothing rotates, nothing chases the cursor. A
   factory site that behaves like a toy reads as a smaller factory.

   Two constraints shaped what is deliberately NOT here:
     · .related sits in a hairline grid whose 1px gaps are the container
       background. Translating a card on hover would expose a sliver of line
       colour underneath it, so the card answers with its own surface and an
       accent edge that draws in, not with movement.
     · A table row gets a background wash only. A left border on :hover would
       change the first column's width and shove the whole table sideways on
       every mouse-over.
   ========================================================================== */

/* 27.1 Cards ------------------------------------------------------------- */
.related { position: relative; overflow: hidden; }
.related::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.42s var(--ease);
}
.related h3 { transition: color 0.3s var(--ease); }
.related:hover::after,
.related:focus-visible::after { transform: scaleX(1); }
.related:hover h3,
.related:focus-visible h3 { color: var(--accent); }
.related:hover .related__label,
.related:focus-visible .related__label { letter-spacing: 0.16em; }
.related__label { transition: letter-spacing 0.35s var(--ease); }

/* 27.2 Specification tables ---------------------------------------------- */
.spec-table tbody tr { transition: background 0.22s var(--ease); }
.spec-table tbody tr:hover { background: rgba(168, 69, 30, 0.045); }

/* 27.3 Questions --------------------------------------------------------- */
.faq-item { transition: box-shadow 0.3s var(--ease); }
.faq-item[open] { box-shadow: inset 2px 0 0 var(--accent); }
.faq-item[open] summary { color: var(--ink); }
.faq-item summary:focus-visible { outline-offset: 4px; }

/* 27.4 Buttons and pills -------------------------------------------------- */
/* The fill already changes on hover; 1px of lift is what makes the change read
   as a press rather than a recolour. Neither sits in a hairline grid, so the
   move cannot open a gap. */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.home .pill:hover,
.home .pill:focus-visible { transform: translateY(-1px); }

/* 27.5 The one thing that follows the pointer ----------------------------
   A single 2px underline that grows from the left on links inside body text.
   It is the only pointer-following effect on the site, and it is on the
   element a reader is most likely to be aiming at. */
.prose a { transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }

/* ==========================================================================
   28. ROOM TO READ — why the long pages got quieter without losing a word
   --------------------------------------------------------------------------
   The paragraphs on the sector and reference pages ARE the product: they are
   written to be lifted out and quoted whole by an assistant. So the answer to
   "it looks dense" is not fewer words — delete a paragraph and you delete the
   thing that gets cited. It is more room around the words that are there:
   longer line-height, wider gaps between paragraphs, a narrower measure, and
   a numbered rule before every section heading so the eye gets a landing
   point every few hundred words instead of one grey wall.

   The measure drops from 72ch to 66ch. At 16px, 72 characters is past the
   length the eye tracks comfortably in one saccade, which is a large part of
   what "dense" feels like even when the writing is fine.

   This section is scoped to .prose and the home page contains zero .prose
   blocks — the home page has a hard height budget (§24) and none of this
   touches it.
   ========================================================================== */
.prose { max-width: 66ch; }
.prose p,
.prose li { line-height: 1.72; }
.prose p + p { margin-top: 18px; }
.prose ul { gap: 11px; }
.prose ul li::before { background: var(--accent); opacity: 0.55; }

.prose h2 {
  position: relative;
  margin-top: clamp(46px, 5.2vw, 66px);
  margin-bottom: 16px;
  padding-top: clamp(20px, 2.2vw, 26px);
  counter-increment: prose-h2;
}
/* The number and the rule are one object: 01 ———— */
.prose h2::before {
  content: counter(prose-h2, decimal-leading-zero);
  position: absolute;
  top: 3px;
  left: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.prose h2::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 32px;
  right: 0;
  height: 1px;
  background: var(--line-soft);
}
/* The first heading of a page has nothing above it to be numbered against. */
.prose h2:first-child { margin-top: 0; }
.prose h2:first-child::before,
.prose h2:first-child::after { content: none; }
.prose h2:first-child { padding-top: 0; }

.prose h3 { margin-top: clamp(30px, 3.4vw, 40px); }

/* A note is not a smaller paragraph — it is the sentence the writer stopped to
   add. Left rule, larger type, its own air. */
.prose .footnote {
  margin-top: clamp(28px, 3.4vw, 40px);
  padding: 4px 0 4px 20px;
  border-top: 0;
  border-left: 2px solid var(--accent);
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
}

/* ==========================================================================
   29. CONTACT DOCK — phones only
   --------------------------------------------------------------------------
   On a 390px screen the floating button sits exactly where the thumb rests and
   gets tapped by accident, and it can only do one thing. A bar along the
   bottom edge carries the three actions that actually get used — call,
   WhatsApp, write — in the same vertical space, because at this breakpoint the
   floating button is switched off.

   It is hidden until the reader has scrolled past the hero, and it steps aside
   for the quotation form (main.js), so it never competes with the real CTA.
   With JS off the bar is visible from the start: tel: and wa.me need no script,
   and a phone visitor without JS should not lose the only way to call.
   ========================================================================== */
.ask-dock { display: none; }

@media (max-width: 900px) {
  .ask-fab { display: none !important; }

  .ask-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -20px rgba(16, 18, 21, 0.6);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(110%);
    transition: transform 0.4s var(--ease);
  }
  .ask-dock.is-in,
  html.no-js .ask-dock { transform: none; }

  .ask-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    padding: 8px 4px 9px;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-2);
    background: none;
    border: 0;
    border-right: 1px solid var(--line-soft);
    cursor: pointer;
    transition: color 0.22s var(--ease), background 0.22s var(--ease);
  }
  .ask-dock__item:last-child { border-right: 0; }
  .ask-dock__item svg { width: 19px; height: 19px; flex: none; }
  .ask-dock__item:hover,
  .ask-dock__item:focus-visible { color: var(--accent); }
  .ask-dock__item:active { background: var(--paper-3); }

  .ask-dock__item--accent {
    color: #fff;
    background: var(--char);
  }
  .ask-dock__item--accent:hover,
  .ask-dock__item--accent:focus-visible { color: #fff; background: var(--accent); }

  .ask-dock .ask-fallback { display: none; }
  html.no-js .ask-dock .ask-fallback { display: flex; }

  /* Reserve the bar's height so the last line of the footer is not covered.
     60px is the measured height of the bar itself (54px min-height + 1px rule,
     children come out at 59); the extra 4px keeps the bar's shadow off the
     last line of type rather than sitting a hair above it. */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   30. INVITATION BUBBLE — desktop only, once per session
   --------------------------------------------------------------------------
   The floating button says "Leave a message" and stays silent. A reader who
   has reached the bottom third of a page has already decided whether this
   supplier is relevant, and a single line of text next to the button is worth
   more there than another section in the flow — it costs no page height,
   which matters because the home page is held to a four-screen ceiling.

   It is not a modal and not an auto-opened panel: it is a nudge that a reader
   can dismiss with one click and never see again in that session. A panel that
   opens itself is the fastest way to lose the enquiry it was trying to get.
   ========================================================================== */
.ask-teaser {
  position: fixed;
  right: clamp(16px, 2.2vw, 26px);
  bottom: calc(clamp(16px, 2.2vw, 26px) + 62px);
  z-index: 89;
  width: 272px;
  padding: 15px 38px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  box-shadow: 0 22px 48px -26px rgba(16, 18, 21, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s;
}
.ask-teaser.is-in { opacity: 1; visibility: visible; transform: none; }

/* The tail points down at the button, so the two read as one control. */
.ask-teaser::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.ask-teaser__text {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.ask-teaser__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  cursor: pointer;
}
.ask-teaser__go svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.ask-teaser__go:hover svg { transform: translateX(3px); }

.ask-teaser__close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.ask-teaser__close:hover { color: var(--ink); }
.ask-teaser__close svg { width: 11px; height: 11px; }

/* The dock owns the bottom edge on phones; two invitations there is one too many. */
@media (max-width: 900px) {
  .ask-teaser { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ask-dock { transition: none; }
  .related::after { transition: none; }
  .ask-teaser { transition: none; }
  .ask-teaser__go svg { transition: none; }
}

/* ==========================================================================
   31. INTERACTION, SECOND PASS — louder, on request
   --------------------------------------------------------------------------
   The first pass was deliberately quiet: a few pixels, a colour shift, nothing
   that announces itself. The client came back twice saying it was still not
   visible, so the reply is now three signals instead of one — it moves, it
   changes colour, and it changes depth — and the duration dropped from 0.35s
   to 0.28s so the reply arrives while the pointer is still arriving.

   What is still not allowed: bounce, rotation, cursor chasing, and anything
   that shifts the text under the reader's eye. A card may leave the page; its
   words may not move inside it.
   ========================================================================== */

/* 31.1 Cards lift off the grid ------------------------------------------- */
.prod {
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
}
.prod:hover,
.prod:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -28px rgba(16, 18, 21, 0.4);
}
.prod:active { transform: translateY(-2px); }

/* 31.2 Photographs answer the pointer ------------------------------------ */
/* 1.03 was chosen so the frame would not visibly move. That was the point of
   the complaint: at 1.03 nothing moves. 1.06 over 0.6s is slow enough to read
   as a camera move rather than a jump, and the frame's cut corner stays put
   because the wrapper is what clips. */
.media:hover .ph,
.media:focus-within .ph { transform: scale(1.06); filter: brightness(1.04); }
.media .ph { transition: transform 0.6s var(--ease), filter 0.4s var(--ease); }

/* 31.3 Buttons commit ---------------------------------------------------- */
.btn {
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(16, 18, 21, 0.55);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--accent:hover { background: #8f3a18; }

/* 31.4 Links draw their rule --------------------------------------------- */
.link-arrow {
  border-bottom-color: var(--line);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease),
    gap 0.24s var(--ease);
}
.link-arrow:hover { gap: 12px; border-bottom-color: var(--accent); }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }

/* 31.5 Section eyebrow draws its rule out --------------------------------- */
.eyebrow::before {
  transition: width 0.5s var(--ease);
}
.section-head:hover .eyebrow::before,
.section:hover > .container > .section-head .eyebrow::before { width: 64px; }

/* 31.6 Table rows --------------------------------------------------------- */
.spec-table tbody tr {
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.spec-table tbody tr:hover {
  background: rgba(168, 69, 30, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* 31.7 Footer and navigation links ---------------------------------------- */
.footer-col a,
.nav a,
.foot-links a {
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-col a:hover,
.foot-links a:hover { color: var(--accent); padding-left: 4px; }
.nav a:hover { color: var(--accent); }

/* 31.8 Pills -------------------------------------------------------------- */
.pill {
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
    color 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -14px rgba(16, 18, 21, 0.5);
}

/* ==========================================================================
   32. PHOTO GALLERY — the frames that came off the plant floor
   --------------------------------------------------------------------------
   Three per row, 4:5, no equal-height trickery: the captions are one line of
   fact each, and a caption that wraps to four lines is a caption that should
   have been a paragraph somewhere else.

   The hover is the same promise as everywhere else on this page now — the
   photograph grows, the rule under it turns accent, and the caption darkens,
   so the reader can tell which frame the pointer is on without hunting.
   ========================================================================== */
.fig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
.fig-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid figure { margin: 0; }
.fig-grid .ph { aspect-ratio: 4 / 5; }
.fig-grid figcaption {
  position: relative;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: color 0.24s var(--ease);
}
.fig-grid figcaption::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 26px;
  height: 1px;
  background: var(--line);
  transition: width 0.4s var(--ease), background 0.3s var(--ease);
}
.fig-grid figure:hover figcaption { color: var(--ink); }
.fig-grid figure:hover figcaption::before { width: 54px; background: var(--accent); }
.fig-grid .media,
.fig-grid .ph { will-change: transform; }

@media (max-width: 900px) {
  .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig-grid .ph { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .fig-grid,
  .fig-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .fig-grid .ph { aspect-ratio: 4 / 3; }
}

/* Touch has no hover, so the press is the reply. */
@media (hover: none) {
  .related:active,
  .prod:active { transform: scale(0.985); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .related,
  .prod,
  .pill,
  .btn,
  .media .ph,
  .fig-grid figcaption::before,
  .example-marker { transition: none !important; }
  .related:hover,
  .prod:hover,
  .pill:hover,
  .btn:hover { transform: none; }
  .media:hover .ph { transform: none; filter: none; }
}

/* ==========================================================================
   33. LINE GALLERY — the plant, in the order a can moves through it
   --------------------------------------------------------------------------
   Twelve frames, four to a row. This is a contact sheet, not a slideshow: the
   point is that the reader can see the whole chain at once and follow a single
   can from a bare body to a tested one.

   The frame number is a CSS counter, not a typed "01". The version this was
   adapted from carried hand-written numbers that started at 02 because a
   thirteenth frame sat above the list, so the first photograph was labelled
   "02" and the caption claimed twelve. A counter cannot drift out of step with
   the pictures: delete a frame and everything renumbers.
   ========================================================================== */
.line-gallery {
  counter-reset: shot;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}
.line-gallery > li { counter-increment: shot; min-width: 0; }
.line-shot { margin: 0; }
.line-shot .ph { aspect-ratio: 2 / 3; }
.line-shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.line-shot figcaption::before {
  content: counter(shot, decimal-leading-zero);
  flex: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.line-gallery > li:hover .line-shot figcaption {
  color: var(--ink);
  border-top-color: var(--accent);
}

@media (max-width: 1100px) {
  .line-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .line-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-shot figcaption { font-size: 11.5px; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .line-shot figcaption { transition: none; }
}

/* --------------------------------------------------------------------------
   34. PAGE BANNER — one photograph per page, picked for that page's subject
   --------------------------------------------------------------------------
   The banner is the first thing on the page, so it carries the page's own
   headline instead of a generic slogan.

   The veil is not decoration. These are plant photographs: bare aluminium and
   overhead strip lights, both near-white. White type dropped straight onto
   them is unreadable, so every banner gets a left-to-right scrim that is
   almost opaque under the text and lifts to let the right third of the frame
   through. Type sits on the darkest part and the picture stays visible where
   nothing is written.

   Portrait file below 760px: at 390px wide a 20:9 strip is 176px tall, which
   cannot hold an h1 plus a lead. The portrait twin is cropped 4:5 from the same
   frame, so the phone gets a real banner rather than a letterbox slit.
*/
.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  /* width:100% is load-bearing. Every child is absolutely positioned, so the
     box has no in-flow content; without an explicit width, aspect-ratio plus
     max-height derive the WIDTH from the height and the banner stops at
     ~1320px inside a 1440px viewport, leaving a strip of page background down
     the right edge. Measured, not guessed: 594 * 20/9 = 1320. */
  width: 100%;
  aspect-ratio: 20 / 9;
  max-height: min(66vh, 620px);
  min-height: 320px;
  background: var(--char);
  color: #fff;
}
.page-banner__media { position: absolute; inset: 0; z-index: 0; }
.page-banner__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 1.4s var(--ease);
}
.page-banner:hover .page-banner__media img { transform: scale(1.055); }

.page-banner__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg,
      rgba(11, 13, 16, 0.93) 0%,
      rgba(11, 13, 16, 0.84) 26%,
      rgba(11, 13, 16, 0.52) 52%,
      rgba(11, 13, 16, 0.20) 74%,
      rgba(11, 13, 16, 0.46) 100%),
    linear-gradient(180deg,
      rgba(11, 13, 16, 0.50) 0%,
      rgba(11, 13, 16, 0.00) 26%,
      rgba(11, 13, 16, 0.42) 82%,
      rgba(11, 13, 16, 0.62) 100%);
}

.page-banner > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(18px, 2.4vw, 32px) clamp(26px, 3.6vw, 52px);
}

.page-banner .crumbs {
  margin-bottom: clamp(14px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.page-banner .crumbs a { color: rgba(255, 255, 255, 0.86); }
/* The base rule paints the current crumb --ink, which is invisible on a
   photograph. This is why the page name vanished from the trail. */
.page-banner .crumbs span[aria-current] { color: #fff; }
.page-banner .crumbs span[aria-hidden] { opacity: 0.45; }
.page-banner .crumbs a:hover { color: #fff; }
.page-banner .crumbs li + li::before { color: rgba(255, 255, 255, 0.32); }

.page-banner .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}
.page-banner .eyebrow::before { background: var(--accent-on-dark); }

.page-banner .h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.1vw, 58px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.032em;
  max-width: 21ch;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  text-wrap: balance;
}
html[lang="ru"] .page-banner .h1 {
  font-size: clamp(25px, 3.5vw, 48px);
  letter-spacing: -0.028em;
  max-width: 24ch;
}

.page-banner .lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 48ch;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.5;
  margin: 0;
}
html[lang="ru"] .page-banner .lead { max-width: 52ch; }

/* A standfirst or meta line that still needs a home after the headline moved
   into the banner: a thin paper strip, not another full section. */
.section--tight { padding-block: clamp(28px, 3.4vw, 46px); }

@media (max-width: 760px) {
  .page-banner {
    aspect-ratio: 4 / 5;
    max-height: none;
    min-height: 0;
  }
  .page-banner .h1 { max-width: none; }
  .page-banner .lead { max-width: none; font-size: 14.5px; }
  .page-banner > .container { padding-block: 16px 30px; }
}

/* --------------------------------------------------------------------------
   35. HOME CAROUSEL — three claims, three frames, one headline each
   --------------------------------------------------------------------------
   Only the first slide is an <h1>. Slides two and three use a <p> styled to
   match: three <h1>s would hand a search engine three competing page titles,
   and three <h2>s before the first section would flatten the outline. The
   visual weight is identical; the document outline stays honest.

   Autoplay stops on hover, on focus, and for prefers-reduced-motion. Motion
   that cannot be stopped is the one thing carousels get wrong.
*/
.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--char);
  color: #fff;
  /* Same trap as .page-banner: slides are absolutely positioned, so the box
     has no in-flow content and aspect-ratio would derive width from height
     (702 * 16/9 = 1248). Width first, then the ratio. */
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 78vh (702px at 900) pushed the homepage to 4118px = 4.58 screens, past the
     4.5-screen ceiling. 70vh/640 brings it back to ~4046 and still leaves the
     banner as the first thing on the screen, not a letterbox. */
  max-height: min(70vh, 640px);
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s var(--ease), visibility 0.85s step-end;
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s var(--ease), visibility 0s;
}

.hero-slide__media { position: absolute; inset: 0; z-index: 0; }
.hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}
.hero-slide.is-active .hero-slide__media img {
  animation: heroDrift 9s var(--ease) forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.03); }
  to   { transform: scale(1.075); }
}

.hero-slide__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(94deg,
      rgba(10, 12, 15, 0.94) 0%,
      rgba(10, 12, 15, 0.86) 24%,
      rgba(10, 12, 15, 0.55) 50%,
      rgba(10, 12, 15, 0.18) 74%,
      rgba(10, 12, 15, 0.40) 100%),
    linear-gradient(180deg,
      rgba(10, 12, 15, 0.55) 0%,
      rgba(10, 12, 15, 0.00) 24%,
      rgba(10, 12, 15, 0.46) 80%,
      rgba(10, 12, 15, 0.70) 100%);
}

.hero-slide > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  /* The container is bottom-aligned, so anything that does not fit disappears
     upward — silently, and it takes the headline with it. These paddings are
     sized against the tallest real slide (English: 6-line lead; Russian: a
     3-line headline), not against an empty box. */
  padding-block: clamp(20px, 2.6vw, 36px) clamp(72px, 7vw, 96px);
}

.hero-slide .eyebrow {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: clamp(12px, 1.6vw, 18px);
}
.hero-slide .eyebrow::before { background: var(--accent-on-dark); }

.hero-slide__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.01;
  font-weight: 600;
  letter-spacing: -0.038em;
  max-width: 20ch;
  margin: 0 0 clamp(14px, 1.8vw, 24px);
  text-wrap: balance;
}
.hero-slide__title em {
  font-style: normal;
  color: var(--accent-on-dark);
}
/* Russian runs longer on every axis: a four-line headline, a longer lead, a
   longer boundary sentence. At 56px the block ran past the top of a 630px
   banner and the first line was clipped away — the container is bottom-aligned,
   so overflow disappears upward and silently. Smaller type and a wider measure
   bring it back to three lines. */
html[lang="ru"] .hero-slide__title {
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-width: 30ch;
}
html[lang="ru"] .hero-slide__lead {
  font-size: clamp(13px, 0.98vw, 14.5px);
  line-height: 1.46;
  max-width: 58ch;
}
html[lang="ru"] .hero-carousel .hero__boundary {
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 62ch;
}

.hero-slide__lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.5;
  /* 50ch set the paragraph to eight lines inside a 640px banner and pushed it
     against the rail. 58ch at a slightly smaller size brings it to six lines
     and keeps the block clear of the tabs. */
  max-width: 58ch;
  margin: 0 0 clamp(16px, 1.9vw, 24px);
}
html[lang="ru"] .hero-slide__lead { max-width: 62ch; }

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.hero-slide .link-arrow { color: rgba(255, 255, 255, 0.9); }
.hero-slide .link-arrow:hover { color: #fff; }

/* --- the rail: numbers, a fill bar, and the slide's own label ------------ */
.hero-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-block: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 12, 15, 0) 0%, rgba(10, 12, 15, 0.55) 100%);
}
.hero-rail > .container {
  display: flex;
  gap: clamp(4px, 1vw, 18px);
  align-items: stretch;
  width: 100%;
}
.hero-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 2px 20px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s var(--ease);
}
.hero-tab:hover,
.hero-tab:focus-visible { color: rgba(255, 255, 255, 0.92); }
.hero-tab.is-active { color: #fff; }
.hero-tab__num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--accent-on-dark);
}
.hero-tab__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-tab__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.hero-tab__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-tab.is-active .hero-tab__fill::after {
  animation: heroFill var(--hero-dwell, 4s) linear forwards;
}
.hero-carousel.is-paused .hero-tab.is-active .hero-tab__fill::after {
  animation-play-state: paused;
}
@keyframes heroFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* The boundary sentence and the meta row were written for a paper background.
   On the carousel they sit on near-black, so both need their own colour or
   they vanish into the photograph. */
.hero-carousel .hero__boundary {
  max-width: 56ch;
  margin-bottom: clamp(16px, 2vw, 24px);
  padding-left: 14px;
  border-left: 2px solid var(--accent-on-dark);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}
html[lang="ru"] .hero-carousel .hero__boundary { max-width: 62ch; }
.hero-carousel .hero__meta { color: rgba(255, 255, 255, 0.60); }
.hero-carousel .hero__meta li::before { background: var(--accent-on-dark); }

/* --- pager for phones: the rail collapses to dots ---------------------- */
@media (max-width: 820px) {
  /* 4:5 was measured against the inner-page banner and copied here by mistake.
     The carousel carries more than a banner does — boundary, CTA, meta row and
     the rail — and 488px cut the headline off the top (content is bottom-
     aligned, so the overflow goes upward and disappears). 82vh holds it. */
  .hero-carousel {
    aspect-ratio: auto;
    height: min(82vh, 700px);
    max-height: none;
    min-height: 0;
  }
  .hero-slide > .container { padding-block: 16px 76px; }
  .hero-slide__title { max-width: none; }
  .hero-slide__lead {
    max-width: none;
    font-size: 13.8px;
    line-height: 1.46;
    margin-bottom: 16px;
  }
  .hero-carousel .hero__boundary {
    font-size: 12.5px;
    line-height: 1.46;
    margin-bottom: 14px;
  }
  .hero-tab {
    flex: 0 0 auto;
    width: 34px;
    padding: 16px 0 20px;
    justify-content: center;
  }
  .hero-tab__label { display: none; }
  .hero-rail > .container { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide__media img { animation: none; }
  .hero-tab.is-active .hero-tab__fill::after { animation: none; transform: scaleX(1); }
  .hero-slide { transition: opacity 0.01s; }
  .page-banner__media img { transition: none; }
}
