:root {
  color-scheme: light;
  --paper: #F1F1ED;
  --ink: #252421;
  --graphite: #333330;
  --muted: #575853;
  --line: #CAC9C2;
  --orange: #F47A2B;
  --orange-hover: #FF9150;
  --link-color: #A13E12;
  --link-hover: #80300D;
  --field-border: #83827B;
  --mist: var(--paper);
  --night: var(--ink);
  --white: var(--paper);
  --muted-on-dark: var(--line);
  --line-on-dark: rgb(202 201 194 / 35%);
  --accent-text: var(--ink);
  --accent-on-dark: var(--paper);
  --shade-heavy: color-mix(in srgb, var(--ink) 70%, transparent);
  --shade-light: color-mix(in srgb, var(--ink) 10%, transparent);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --body-size: 16px;
  --caption-size: 14px;
  --h1: clamp(32px, 30px + 1.1vw, 36px);
  --h2: clamp(26px, 24px + 0.65vw, 28px);
  --h3: clamp(19px, 18px + 0.3vw, 20px);
  --gutter: clamp(16px, 4.4444vw, 72px);
  --section-space: clamp(32px, 5vw, 64px);
  --header-height: 72px;
  --wrap: 1320px;
  --radius: 3px;
}

*, ::before, ::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body-size)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
:where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; }
:where(ul, ol)[class] { list-style: none; }
:where(a) { color: inherit; text-underline-offset: .24em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(svg) { flex: none; vertical-align: middle; }
img { display: block; width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--accent-on-dark); }

h1, h2, h3 {
  font-weight: 630;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}

h1 { font-size: var(--h1); line-height: 1.04; }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: var(--h3); line-height: 1.23; }
p { max-width: 70ch; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-width: 0;
}

.dark {
  color-scheme: dark;
  color: var(--white);
  background: var(--graphite);
  --muted: var(--muted-on-dark);
  --line: var(--line-on-dark);
  --accent-text: var(--accent-on-dark);
  --link-color: var(--orange);
  --link-hover: var(--orange-hover);
}

.section { padding-block: var(--section-space); }
.section-mist { background: var(--mist); }
.section-title, .section-heading { margin-bottom: clamp(22px, 3vw, 36px); }
.section-heading > p { color: var(--muted); margin-top: 14px; }
.heading-with-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.lead { color: var(--muted); }
.part-no, .step-index { font-family: var(--mono); letter-spacing: 0; }
.part-no { overflow-wrap: anywhere; }

.button, .text-link {
  display: inline-flex;
  min-height: 46px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.button {
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-solid { color: var(--ink); background-color: var(--orange); }
.button-solid:hover { background-color: var(--orange-hover); }
.button-outline { background-color: transparent; border-color: var(--line); }
.button-outline:hover { border-color: var(--accent-text); color: var(--accent-text); }
.button:disabled { cursor: wait; opacity: .68; }
.text-link { justify-content: flex-start; }
main a:is(.text-link, .contact-phone),
main :is(p, dd, .catalog-card h3, .consent, .breadcrumbs) a:not(.button) { color: var(--link-color); }
main a:is(.text-link, .contact-phone):hover,
main :is(p, dd, .catalog-card h3, .consent, .breadcrumbs) a:not(.button):hover { color: var(--link-hover); }

.skip-link {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 30;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--paper);
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  border-bottom: 1px solid var(--line-on-dark);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  flex: none;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  line-height: 1;
}

.wordmark { display: grid; gap: 2px; }
.wordmark strong { font-size: 27px; font-weight: 730; letter-spacing: -.058em; }
.wordmark > span { color: var(--muted); font-size: 14px; font-weight: 550; letter-spacing: .045em; }

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1.45vw, 27px);
}

.site-nav a, .site-nav summary {
  display: flex;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  padding: 8px 3px;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav a:hover, .site-nav summary:hover, .site-nav [aria-current="page"], .product-menu.is-current > summary {
  color: var(--accent-text);
}

.product-menu { position: relative; }
.product-menu summary, .faq-list summary { list-style: none; cursor: pointer; }
.product-menu summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.product-menu[open] summary svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute;
  z-index: 22;
  top: calc(100% + 5px);
  left: -12px;
  display: grid;
  width: max-content;
  padding: 6px 12px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px #0004;
}

.menu-panel a { width: 100%; padding-inline: 10px; }
.menu-panel a:hover { background: var(--graphite); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle svg:last-child, .menu-toggle[aria-expanded="true"] svg:first-child { display: none; }
.menu-toggle[aria-expanded="true"] svg:last-child { display: inline; }
.mobile-actions { display: none; }

.hero {
  background: var(--graphite);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.4vw, 75px);
  padding-block: clamp(32px, 4vw, 58px) clamp(24px, 3.5vw, 48px);
}

.hero-copy { padding-bottom: 14px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 620;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; flex: none; }

.hero h1 { max-width: 16ch; }
.hero-title-tail { color: var(--muted-on-dark); }
.keep-together { white-space: nowrap; }
.hero .lead { margin-top: clamp(18px, 2vw, 24px); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(21px, 2.35vw, 30px); }
.hero-actions .button { padding-inline: 14px; }

.photo { min-width: 0; }
.photo-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border-radius: var(--radius);
}

.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
figcaption {
  color: var(--muted);
  padding-top: 11px;
  font-size: var(--caption-size);
  line-height: 1.5;
}

.hero-photo .photo-frame {
  position: relative;
  aspect-ratio: 1.095;
  background: var(--graphite);
  outline: 1px solid var(--line-on-dark);
  outline-offset: -1px;
}

.hero-photo .photo-frame img { object-fit: cover; object-position: 53% 49%; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { padding-top: 10px; }

.facts { background: var(--night); border-block: 1px solid var(--line-on-dark); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px clamp(10px, 1.8vw, 24px);
  font-size: 15px;
  font-weight: 510;
  line-height: 1.4;
}

.facts-grid li + li { border-left: 1px solid var(--line-on-dark); }
.facts-grid li:first-child { padding-left: 0; }
.facts-grid svg { color: var(--accent-text); }

.catalog-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.catalog-card:hover, .catalog-card:focus-within { border-color: var(--accent-text); box-shadow: 0 8px 24px #31312910; }
.catalog-card h3 { order: 1; }
.catalog-card h3 a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 17px 8px;
  text-decoration: none;
}
.catalog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.catalog-card h3 a:focus-visible { outline-offset: -4px; }
.catalog-card h3 svg { color: var(--accent-text); }
.catalog-photo { display: contents; }
.catalog-photo .photo-frame { order: 0; aspect-ratio: 1.6; border-radius: 0; }
.catalog-photo figcaption { order: 2; padding: 0 17px 16px; }
.catalog-description { order: 3; padding: 0 17px 16px; }

.process-section { padding-block: clamp(38px, 4.7vw, 64px); border-block: 1px solid var(--line); }
.process-grid, .order-grid, .cycle-grid {
  display: grid;
  gap: 26px 18px;
}
.process-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.process-grid li, .order-grid li, .cycle-grid li { min-width: 0; border-top: 1px solid var(--line); padding-top: 13px; }
.process-grid li { display: grid; grid-template-rows: auto minmax(3.85em, auto) auto auto; align-content: start; }
.step-index { display: inline-block; color: var(--accent-text); font-size: 15px; font-weight: 650; line-height: 1.4; }
.process-grid h3 { margin-block: 5px 12px; line-height: 1.16; hyphens: auto; }
.process-grid p { margin-top: 10px; }
.step-photo figcaption { font-size: 14px; padding-top: 7px; }
.step-photo .photo-frame img { object-fit: cover; }

.application { background: var(--graphite); }
.application-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(26px, 6vw, 98px);
}

.application-copy { padding-top: 4px; }
.application-copy p { margin-block: 15px 20px; color: var(--muted); }
.request-form { min-width: 0; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 570; }
.field label span, .consent label span { color: var(--accent-text); }
.field :is(input, textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background-color: var(--paper);
}

.dark .field :is(input, textarea, select) { background-color: var(--ink); }
.field textarea { resize: vertical; }
.field textarea::placeholder { opacity: 1; color: var(--muted); }
.select-control { position: relative; }
.field select { appearance: none; padding-right: 36px; }
.select-control::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input[type="file"] { padding: 0 8px 0 0; }
.field input::file-selector-button {
  min-height: 46px;
  max-width: 66%;
  margin-right: 9px;
  padding: 4px 12px;
  font: 600 14px/1.25 var(--font);
  color: var(--ink);
  background-color: var(--line);
  border: 0;
  cursor: pointer;
  white-space: normal;
}
.dark .field input::file-selector-button { color: var(--white); background-color: var(--line-on-dark); }
.field input::file-selector-button:hover { background-color: var(--line); }
.dark .field input::file-selector-button:hover { background-color: var(--line-on-dark); }
.file-display { display: none; }
.js .file-picker { position: relative; }
.js .file-picker input {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}
.js .file-display {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--paper);
}
.js .dark .file-display { background: var(--ink); }
.field :is(input, textarea, select):focus,
.file-picker:focus-within .file-display,
.consent input:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}
.file-button, .file-name { display: grid; align-content: center; padding: 8px 11px; font-size: 14px; line-height: 1.35; }
.file-button { flex: none; font-weight: 600; background: var(--line); }
.dark .file-button { background: var(--line-on-dark); }
.file-picker:hover .file-button { background: var(--line); }
.dark .file-picker:hover .file-button { background: var(--line-on-dark); }
.file-name { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.field-hint, .consent { color: var(--muted); font-size: var(--caption-size); }
.field-hint { margin-top: 7px; }
.consent { margin-block: 17px 16px; }
.consent > div { display: flex; align-items: flex-start; gap: 10px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 9px 0 0; accent-color: var(--accent-text); cursor: pointer; }
.consent label { display: flex; align-items: flex-start; gap: 5px; min-height: 44px; padding-block: 7px; cursor: pointer; }
.consent > a { display: inline-block; margin-left: 30px; }
.form-status:not(:empty) { margin-top: 14px; font-weight: 550; }
.form-status[data-kind="error"] { color: var(--accent-text); }
.form-fallback { margin-top: 12px; }
.selected-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--muted-on-dark);
  background: var(--ink);
  font-size: 15px;
}
.selected-part strong { display: block; }
.clear-part { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }

.production-location { margin-top: -15px; margin-bottom: 20px; color: var(--muted); }
.plant-grid, .split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}
.plant { padding: 16px 0; border-top: 1px solid var(--line); }
.plant p { margin-top: 8px; color: var(--muted); }
.plant .text-link { margin-top: 6px; }
.plant-grid + .gallery-block, .section > .gallery-block:not(:first-child) { margin-top: 14px; }

.photo-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-block .photo figcaption { border-bottom: 1px solid var(--line); padding-bottom: 11px; }
/* сцены цеха: на весь кадр, без подписи */
.gallery-block [data-photo="hero_slive_metalla"] .photo-frame img,
.gallery-block [data-photo="shag4_zalivka_lgm"] .photo-frame img,
.gallery-block [data-photo="shag5_chpu"] .photo-frame img,
.gallery-block [data-photo="proizvodstvo_liniya_lgm"] .photo-frame img,
.gallery-block [data-photo="proizvodstvo_vitrina"] .photo-frame img,
.gallery-block [data-photo="lgm_partiya_modelej"] .photo-frame img,
.gallery-block [data-photo="lgm_modeli_bolshie"] .photo-frame img,
.gallery-block [data-photo="proizvodstvo_stellazh"] .photo-frame img,
.gallery-block [data-photo="kontrol_massy"] .photo-frame img,
.gallery-block [data-photo="otlivki_na_stole"] .photo-frame img { object-fit: cover; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px 50px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  font-weight: 600;
  line-height: 1.35;
}
.faq-list summary:hover { color: var(--accent-text); }
.faq-list summary span {
  display: grid;
  flex: none;
  place-items: center;
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-text);
}
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; width: 12px; height: 1px; background: currentColor; }
.faq-list summary span::after { rotate: 90deg; }
.faq-list [open] summary span::after { display: none; }
.faq-list p { padding: 1px 32px 19px 0; color: var(--muted); }

.site-footer {
  background: var(--night);
  border-top: 1px solid var(--line-on-dark);
  padding-block: clamp(34px, 4.5vw, 62px) 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .95fr;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-grid h2 { font-size: 16px; line-height: 1.35; letter-spacing: 0; margin-bottom: 7px; }
.footer-grid p, .footer-grid ul, .footer-base { color: var(--muted); font-size: var(--caption-size); overflow-wrap: anywhere; }
.footer-grid p { margin-top: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { line-height: 1.55; }
.footer-grid a:not(.brand), .footer-base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-grid a:hover, .footer-base a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 10px 36px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }

.inner-hero {
  padding-block: clamp(22px, 4.4vw, 64px) clamp(38px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--graphite);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 15px; color: var(--muted); font-size: var(--caption-size); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.breadcrumbs [aria-current] { color: var(--white); }
.inner-hero h1 { max-width: 24ch; text-wrap: balance; }
.inner-hero .lead { margin-top: 18px; }
.section-gallery { padding-block: clamp(32px, 5.1vw, 70px); }
.benefits-area { margin-top: 20px; }
.benefits-area .line-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.line-benefits { display: grid; gap: 12px; list-style: none; }
.line-benefits li { display: flex; align-items: flex-start; gap: 8px; }
.line-benefits li svg { color: var(--accent-text); margin-top: 3px; }
.fact-blocks :is(p, .line-benefits) { margin-top: 14px; color: var(--muted); }
.fact-blocks .text-link { margin-top: 8px; }
.cycle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cycle-grid h3 { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.cycle-grid [data-photo="shag4_zalivka_lgm"] img { object-fit: cover; }
.order-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.order-grid h3 { margin-top: 8px; }
.order-grid p { margin-top: 7px; color: var(--muted); }

.parts-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--body-size); }
.parts-table :is(th, td) { padding: 13px clamp(10px, 1.3vw, 18px); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.parts-table thead th { color: var(--white); background: var(--graphite); font-weight: 590; }
.parts-table tbody th { font-weight: 580; }
.parts-table tbody tr:nth-child(even) { background: var(--paper); }
.parts-table .table-action { text-align: right; }
.parts-table .table-action .button { white-space: nowrap; }
.table-note { color: var(--muted); margin-top: 18px; }
.cell-label { display: none; }

.passport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 5vw, 80px); align-items: start; }
.passport-grid > div > p { margin-block: 15px 17px; color: var(--muted); }
.passport {
  padding: clamp(16px, 2.8vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.passport dl { margin-top: 17px; }
.passport dl > div { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: 7px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.passport dt { color: var(--muted); }
.passport dd { font-weight: 560; }
.stamp { width: fit-content; margin-top: 18px; padding: 5px 10px; border: 2px solid var(--muted); border-radius: var(--radius); color: var(--muted); font: 700 15px/1.4 var(--mono); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); align-items: start; gap: clamp(24px, 5vw, 72px); }
.contact-form > h2 { margin-bottom: 24px; }
.contact-aside { padding: clamp(18px, 2.7vw, 29px); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-aside h2 { margin-bottom: 16px; }
.contact-list > div { padding-block: 8px; border-top: 1px solid var(--line); }
.contact-list dt { font-weight: 610; }
.contact-list dd, .contact-aside p { color: var(--muted); }
.contact-list :target { border-top-color: var(--accent-text); background-color: var(--paper); }
.contact-aside p { margin-top: 14px; }

.legal > * { max-width: 70ch; }
.legal h2 { margin-bottom: 12px; }
.legal p + h2 { margin-top: 30px; }
.legal .text-link { margin-top: 12px; }

@media (min-width: 600px) {
  :root {
    --body-size: 17px;
    --h1: clamp(44px, 5vw, 44px);
    --h2: clamp(34px, 4vw, 34px);
    --h3: 21px;
  }
}

@media (min-width: 1024px) {
  :root {
    --body-size: clamp(17px, 1.25vw, 18px);
    --caption-size: clamp(14px, 1.05vw, 15px);
    --h1: clamp(56px, 4.45vw, 64px);
    --h2: clamp(40px, 3.1vw, 44px);
    --h3: clamp(22px, 1.66vw, 24px);
    --header-height: 74px;
  }
}

@media (max-width: 1199px) {
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid li { grid-template-rows: auto auto auto auto; }
}

@media (max-width: 1099px) {
  .header-row { gap: 10px; }
  .js .header-row { grid-template-columns: 1fr auto auto; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    align-content: start;
    justify-content: stretch;
    padding: 0 0 12px;
    gap: 0;
  }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height) - 68px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px var(--gutter) 14px;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px #0004;
  }
  .site-nav a, .site-nav summary { width: 100%; padding: 10px 5px; }
  .site-nav summary { justify-content: space-between; }
  .menu-panel { position: static; width: auto; padding: 1px 14px; box-shadow: none; }
  .header-row > .button { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 19ch; }
  .hero-photo .photo-frame { aspect-ratio: 1.55; }
  .hero-photo .photo-frame img { object-position: 54% 47%; }
  .catalog-grid, .photo-grid, .photo-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 699px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid li { min-height: 61px; padding: 10px 12px; }
  .facts-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-grid li:nth-child(n + 3) { border-top: 1px solid var(--line-on-dark); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-grid, .faq-grid, .contact-grid, .passport-grid { grid-template-columns: minmax(0, 1fr); }
  .benefits-area .line-benefits { grid-template-columns: minmax(0, 1fr); }
  .footer-base { align-items: flex-start; flex-direction: column; }
  .parts-table, .parts-table tbody { display: block; }
  .parts-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .parts-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 13px;
    gap: 6px 12px;
  }
  .parts-table tbody tr + tr { margin-top: 10px; }
  .parts-table :is(th, td) { display: block; padding: 2px 0; border: 0; }
  .parts-table tbody th, .parts-table .table-action { grid-column: 1 / -1; text-align: left; }
  .parts-table .table-action { padding: 6px 0 2px; }
  .cell-label { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
  .parts-table tbody th .cell-label { display: none; }
}

@media (max-width: 599px) {
  :root { --header-height: 62px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header-row { width: calc(100% - 24px); gap: 6px; }
  .site-header .brand { gap: 5px; }
  .site-header .brand > svg { width: 30px; height: 30px; }
  .site-header .wordmark strong { font-size: 23px; }
  .site-header .wordmark > span { letter-spacing: 0; }
  .header-row > .button { padding: 5px 6px; text-align: center; }
  .mobile-actions {
    position: fixed;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    gap: 8px;
    inset: auto 0 0;
    z-index: 19;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--night);
  }
  .mobile-actions .button { width: 100%; padding-inline: 5px; white-space: nowrap; }
  .hero-grid { padding-top: 26px; gap: 22px; }
  .hero h1 { max-width: 17ch; }
  .hero-photo .photo-frame { aspect-ratio: 1.22; }
  .eyebrow { margin-bottom: 15px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding-inline: 10px; gap: 6px; }
  .hero-actions svg { width: 16px; height: 16px; }
  .catalog-grid, .photo-grid, .photo-grid.cols-2, .photo-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .catalog-photo .photo-frame { aspect-ratio: 1.5; }
  .catalog-card h3 a { padding: 10px 13px 7px; }
  .catalog-photo figcaption { padding: 0 13px 13px; }
  .plant-grid, .split-grid, .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-grid { gap: 16px; }
  .plant-grid { gap: 3px; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 18px 14px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-base p { padding-bottom: 4px; }
}

@media (max-width: 380px) {
  .header-row { gap: 5px; }
  .site-header .brand { gap: 4px; }
  .site-header .brand > svg { width: 27px; height: 27px; }
  .site-header .wordmark > span { letter-spacing: -.035em; }
  .hero-actions .button-outline svg { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible { animation: section-enter .42s ease-out both; }
  @keyframes section-enter {
    from { opacity: .78; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

/* ловушка для ботов в форме */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Первый экран: видео на весь экран фоном (выбор владельца 05.12.2026: слив печи, «Ярко, эффектно», кадр вправо) */
.hero-bg { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - 75px); background: var(--ink); }
.hero-bg .hero-grid { grid-template-columns: minmax(0, 1fr); position: relative; z-index: 2; }

.hero-bg-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
 }
.hero-bg-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 11, 10, .55) 0%, rgba(12, 11, 10, .19) 62%, rgba(12, 11, 10, 0) 100%),
    linear-gradient(0deg, rgba(12, 11, 10, .5) 0%, rgba(12, 11, 10, 0) 45%),
    rgba(12, 11, 10, .25); }
.hero-brand { font-weight: 700; letter-spacing: .02em; line-height: 1; font-size: clamp(34px, 6.4vw, 92px); color: var(--white); margin: 0 0 18px; }

@media (max-aspect-ratio: 3/4), (max-width: 700px) {
  .hero-bg-video { object-position: 50% 50%; }
  .hero-bg-shade { background: linear-gradient(0deg, rgba(12, 11, 10, .75) 0%, rgba(12, 11, 10, .2) 60%), rgba(12, 11, 10, .3); }
}

/* ===== Правки по ревью дизайна ChatGPT (05.12.2026) ===== */

/* Светлые разделы подряд — тонкая линия вместо смены фона */
.section:not(.dark):not(.inner-hero) + .section:not(.dark) { border-top: 1px solid var(--line); }
.process-section { border-block: 0; }
.catalog-card { background: var(--paper); }

/* Первый экран: название — подпись, заголовок — главный */
.hero-bg .hero-copy { max-width: 900px; }
.hero-brand { font-size: clamp(15px, 1.25vw, 18px); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: var(--white); }
.hero-brand span { color: var(--accent-on-dark); }
.hero-bg .eyebrow { margin-bottom: 18px; }
.hero-bg h1 { max-width: 12ch; font-size: clamp(46px, 7.2vw, 108px); line-height: .98; letter-spacing: -.05em; color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-bg .lead { color: var(--muted-on-dark); font-size: clamp(17px, 1.35vw, 20px); max-width: 52ch; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-bg-shade {
  background:
    radial-gradient(ellipse 60% 75% at 18% 55%, rgba(12, 11, 10, .62) 0%, rgba(12, 11, 10, .3) 55%, rgba(12, 11, 10, 0) 100%),
    linear-gradient(0deg, rgba(12, 11, 10, .55) 0%, rgba(12, 11, 10, 0) 40%),
    rgba(12, 11, 10, .12);
}

/* Как работаем: 3 шага в ряд, номер рядом с названием */
.process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px clamp(18px, 2.4vw, 34px); }
.process-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; column-gap: 12px; align-items: baseline; align-content: start; }
.process-grid li > :not(.step-index):not(h3) { grid-column: 1 / -1; }
.process-grid .step-index { font-size: 17px; }
.process-grid h3 { margin: 0 0 14px; hyphens: manual; }
.process-grid p { margin-top: 12px; }
.step-video .photo-frame { background: var(--ink); }
.step-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Внутренние страницы: снимок справа от заголовка */
.inner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.inner-hero-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper); }
.inner-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.inner-hero-media + .section-gallery { padding-top: clamp(24px, 4vw, 56px); }

/* Номера деталей: моноширинный, без разрыва внутри номера */
.part-no { overflow-wrap: normal; white-space: nowrap; font-size: max(.94em, 15px); }
.parts-table td, .parts-table th { overflow-wrap: break-word; }

/* Вопросы и ответы на графите, ссылка обратно к заявке */
.faq-section.dark { border-top: 1px solid var(--line); }
.faq-back { margin-top: 18px; }
.application + .faq-section { padding-top: 0; border-top: 0; }
.application + .faq-section .faq-grid { padding-top: var(--section-space); border-top: 1px solid var(--line); }

/* Подвал: связь рядом с логотипом и крупнее */
.footer-grid { grid-template-columns: 1.1fr 1.1fr 1fr 1fr; }
.footer-grid > div:last-child { order: 1; }
.footer-grid > div:first-child { order: 0; }
.footer-grid > div:nth-child(2) { order: 2; }
.footer-grid > div:nth-child(3) { order: 3; }
.footer-grid > div:last-child ul { font-size: 18px; color: var(--white); }
.footer-grid > div:last-child a { color: var(--white); font-weight: 600; }
.footer-grid > div:last-child a:hover { color: var(--accent-on-dark); }

@media (max-width: 1199px) {
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .inner-hero-photo { aspect-ratio: 16 / 10; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid .contact-aside { order: -1; }
}
@media (max-width: 599px) {
  .header-row { width: calc(100% - 32px); gap: 8px; }
  .header-row > .button { font-size: 14px; padding-inline: 8px; }
  .wrap { width: calc(100% - 32px); }
  .mobile-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: 16px; }
  .mobile-actions .button { font-size: 15px; gap: 6px; padding-inline: 4px; }
  .mobile-actions svg { width: 18px; height: 18px; }
  h1, .inner-hero h1 { overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
  .hero-bg h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-bg .keep-together { white-space: normal; }
  /* каталог: миниатюра слева, название и подпись справа */
  .catalog-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; }
  .catalog-photo .photo-frame { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; aspect-ratio: auto; min-height: 112px; }
  .catalog-description { grid-column: 2; grid-row: 3; padding: 0 10px 10px 0; font-size: 14px; color: var(--muted); }
  .catalog-card h3 { grid-column: 2; grid-row: 1; font-size: 18px; }
  .catalog-card h3 a { padding: 10px 10px 4px 0; min-height: 44px; }
  .catalog-photo figcaption { grid-column: 2; grid-row: 2; padding: 0 10px 10px 0; font-size: 14px; }
  .catalog-photo .photo-frame img { object-fit: cover; }
  .catalog-grid { gap: 10px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Полосы и первые экраны с фоновым видео (ковш, замер) */
.video-band, .video-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.video-band { display: flex; align-items: center; min-height: clamp(420px, 68vh, 620px); }
.video-band .video-band-copy, .video-hero > .wrap { position: relative; z-index: 2; }
.video-band h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; max-width: 13ch; color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.video-band p { margin-block: 18px 26px; max-width: 46ch; color: var(--muted-on-dark); font-size: clamp(17px, 1.3vw, 19px); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.video-band .hero-bg-video, .video-hero .hero-bg-video { object-position: 50% 50%; }
.video-hero { padding-block: clamp(48px, 9vw, 140px); border-bottom: 0; }
.video-hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.video-hero .lead { color: var(--muted-on-dark); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.video-band + .application { border-top: 1px solid var(--line); }
@media (max-width: 599px) {
  .video-band { min-height: 520px; align-items: flex-end; padding-bottom: 40px; }
}
.footer-grid li.footer-person { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-bottom: 6px; }

/* Первые экраны */
.hero-bg { min-height: 620px; }
.video-hero { display: grid; align-items: center; min-height: 460px; padding-block: 32px; }
.hero-bg .hero-bg-shade, .video-hero .hero-bg-shade {
  background: linear-gradient(to right, var(--shade-heavy) 0%, var(--shade-heavy) 30%, var(--shade-light) 82%);
}
.inner-hero-media {
  display: grid;
  align-items: center;
  min-height: var(--product-height, 380px);
  padding-block: 24px;
}
.hero-naveska-mtz, .hero-cisterny { --product-height: 360px; --mobile-product-height: 380px; }
.hero-vtulki-cilindrov { --mobile-product-height: 410px; }
/* Фото первого экрана целиком: рамка 4:3 под формат фото, без обрезки */
.inner-hero-photo {
  display: block;
  justify-self: end;
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}
.inner-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-naveska-mtz .inner-hero-photo { justify-self: stretch; width: 100%; aspect-ratio: auto; height: clamp(210px, 23vw, 330px); }
.engine-models { margin-top: 8px; }
.catalog-grid { grid-auto-rows: 1fr; }
/* Тяга А61.03.000А1: новое фото горизонтальное (06.12.2026), поворот больше не нужен */
.hero-naveska-mtz .inner-hero-photo img { object-position: 50% 48%; }
.inspection-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inspection-photos .photo-frame { aspect-ratio: 1; }
.selected-part { margin-block: 14px; }
.selected-part p { margin: 0; }
.selected-part:not([hidden]) + p { display: none; }

.site-nav [aria-current="page"], .product-menu.is-current > summary,
.catalog-card h3 svg, .button-outline svg:has(path[d^="M4 12"]) { color: var(--orange); }
.brand polygon { fill: var(--orange); }
.text-link, .catalog-card h3 a { text-decoration: underline; }
.contact-hero, .legal-hero { display: grid; align-items: center; padding-block: 16px; }
.contact-hero { min-height: 250px; }
.contact-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 30px; }
.contact-hero h1, .legal-hero h1 { font-size: clamp(30px, 3.4vw, 48px); max-width: none; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; }
.contact-phone { font-size: clamp(25px, 2.6vw, 38px); line-height: 1.2; font-weight: 650; white-space: nowrap; }
.drawing-example { max-width: 230px; }
.drawing-example img { max-height: 124px; object-fit: contain; object-position: left; }
.contact-form .drawing-example { display: none; }
.contact-aside .drawing-example { max-width: none; margin: 4px 0 0; }
.contact-aside .drawing-example img { max-height: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-aside .drawing-example figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }
.legal-hero { min-height: 175px; }
.legal-hero .wrap, .legal-section .wrap { max-width: 76ch; }
.legal-hero .breadcrumbs, .contact-hero .breadcrumbs { margin-bottom: 4px; }
.revision { margin-top: 8px; color: var(--muted); }
.legal-section { padding-top: 24px; }

@media (max-width: 599px) {
  .hero-bg { min-height: 490px; justify-content: flex-end; }
  .video-hero { min-height: 380px; align-items: end; padding-block: 110px 24px; }
  .hero-bg .hero-bg-video, .video-hero .hero-bg-video {
    height: 78%;
    object-position: center 78%;
    mask-image: linear-gradient(black 62%, transparent);
  }
  .hero-bg .hero-bg-shade, .video-hero .hero-bg-shade {
    background: linear-gradient(to top, var(--shade-heavy), var(--shade-light));
  }
  .hero-bg .hero-grid { padding-block: 155px 22px; }
  .inner-hero-media { min-height: var(--mobile-product-height, 390px); padding-block: 14px 20px; }
  .inner-hero-grid { gap: 16px; }
  .inner-hero-photo { height: 155px; }
  .hero-naveska-mtz .inner-hero-photo { height: 112px; }
  .inner-hero-media .breadcrumbs { margin-bottom: 4px; }
  .inner-hero-media .hero-actions { margin-top: 14px; }
  .photo-grid.parts-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .parts-gallery figcaption { font-size: 14px; }
  .contact-hero { min-height: 210px; }
  .contact-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-hero .drawing-example { display: none; }
  .contact-form .drawing-example { display: block; margin-block: 8px 12px; }
  .legal-hero { min-height: 155px; }
}

/* Правки после проверки 05.12 (вечер) */
.form-status[data-kind="error"] { color: #a34518; }
.dark .form-status[data-kind="error"] { color: var(--orange-hover); }
.catalog-photo .photo-frame img { object-fit: cover; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); }
.example-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.example-text h3 { margin-bottom: 10px; }
.example-text p { color: var(--muted); max-width: 46ch; }
@media (max-width: 899px) {
  .inner-hero-photo { justify-self: start; }
  .example-row { grid-template-columns: minmax(0, 1fr); }
  .contact-grid .contact-aside { order: 1; }
}
@media (max-width: 599px) {
  .inner-hero-photo { width: min(100%, 268px); height: auto; }
  .hero-naveska-mtz .inner-hero-photo { width: 100%; height: 112px; }
  .contact-aside .drawing-example { display: none; }
}
.contact-aside h2 { font-size: clamp(22px, 2vw, 26px); }

/* Факты на видео и подписи материалов */
.hero-bg:has(.hero-specs) .hero-copy { max-width: 960px; }
.hero-bg:has(.hero-specs) .hero-bg-shade,
.video-hero:has(.hero-specs) .hero-bg-shade {
  background:
    linear-gradient(to top, rgb(12 11 10 / 62%), transparent 78%),
    linear-gradient(90deg, rgb(12 11 10 / 76%) 0%, rgb(12 11 10 / 67%) 64%, rgb(12 11 10 / 36%));
}

.hero-specs {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr) minmax(0, 1.05fr) minmax(0, .75fr);
  gap: 5px clamp(12px, 1.6vw, 24px);
  max-width: 960px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-on-dark);
}

.hero-specs li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  align-items: end;
}

.hero-specs-value {
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.drawing-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-specs .drawing-label { align-self: start; color: var(--muted-on-dark); }
figcaption .drawing-label { margin-top: 5px; }

/* Полный цикл */
.casting-cycle { background: var(--graphite); }

.casting-cycle-list {
  display: grid;
  gap: clamp(48px, 5vw, 64px);
}

.casting-cycle-list > li {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    "photo ."
    "photo heading"
    "photo description"
    "photo .";
  column-gap: clamp(24px, 5vw, 72px);
}

.casting-cycle-list > li:nth-child(even) {
  grid-template-areas:
    ". photo"
    "heading photo"
    "description photo"
    ". photo";
}

.casting-cycle-heading { grid-area: heading; margin-bottom: 12px; }
.casting-cycle-heading .step-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 16px;
}

.casting-cycle-heading h3 { font-size: clamp(22px, 2vw, 26px); }
.casting-cycle-list .photo { grid-area: photo; }
.casting-cycle-list .photo-frame { background: var(--ink); }
.casting-cycle-list p {
  grid-area: description;
  max-width: 49ch;
  color: var(--muted-on-dark);
}

.contour-section { position: relative; overflow: clip; isolation: isolate; }
.contour-section > .wrap { position: relative; z-index: 1; }
.part-contour {
  position: absolute;
  z-index: 0;
  width: clamp(210px, 26vw, 420px);
  height: auto;
  opacity: .24;
  pointer-events: none;
}

.part-contour-top { top: -65px; right: -65px; }
.part-contour-bottom {
  bottom: -120px;
  left: -95px;
  mask-image: linear-gradient(to right, #000 42%, transparent 88%);
}
.part-contour-request {
  right: -75px;
  bottom: -120px;
  mask-image: linear-gradient(transparent 5%, #000 55%);
}

@media (max-width: 899px) {
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .hero-specs li:nth-child(n + 3) { padding-top: 10px; }

  .casting-cycle-list > li,
  .casting-cycle-list > li:nth-child(even) {
    grid-template: "heading" auto "photo" auto "description" auto / minmax(0, 1fr);
    row-gap: 12px;
  }

  .casting-cycle-heading { margin-bottom: 0; }
  .part-contour { display: none; }
}

@media (max-width: 599px) {
  .hero-bg:has(.hero-specs) .hero-grid { padding-top: clamp(94px, 30vw, 145px); }
  .hero-bg:has(.hero-specs) .hero-bg-shade,
  .video-hero:has(.hero-specs) .hero-bg-shade {
    background: linear-gradient(to top, rgb(12 11 10 / 82%) 0%, rgb(12 11 10 / 67%) 68%, rgb(12 11 10 / 20%));
  }
}

/* Ряд фактов: компьютер — значения в одну строку, подписи сверху выровнены (06.12) */
@media (min-width: 900px) {
  .hero-specs {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    column-gap: clamp(32px, 3.6vw, 60px);
    width: max-content;
    max-width: 100%;
  }
  .hero-specs li { align-items: start; }
  .hero-specs-value { white-space: nowrap; overflow-wrap: normal; font-size: clamp(24px, 2.1vw, 30px); }
  .hero-specs .drawing-label { max-width: 24ch; }
}

/* «Как работаем» — 4 шага (06.12) */
.process-grid.process-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .process-grid.process-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Логотип по визитке (06.12) */
.brand > svg { color: var(--paper); flex: none; }
.wordmark strong { letter-spacing: -.02em; font-weight: 800; }
.wordmark > span { position: relative; padding-left: 22px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--line); }
.wordmark > span::before { content: ""; position: absolute; left: 0; top: 50%; width: 15px; height: 3px; border-radius: 2px; background: var(--orange); transform: translateY(-50%); }
