/*
Theme Name: OMP SPb
Theme URI: https://ompspb.ru/
Description: Концепт главной страницы ОМП — минимальная тема для демонстрации.
Version: 0.1.0
Author: OMP
Text Domain: ompspb
*/

:root {
  --paper: #edf1f3;
  --paper-bright: #fafbfb;
  --ink: #17242d;
  --ink-soft: #52616b;
  --red: #8b4d2e;
  --red-dark: #854a2d;
  --yellow: #b7cbd6;
  --green: #3d6b5b;
  --navy: #18364d;
  --navy-deep: #112735;
  --line: rgba(23, 36, 45, .16);
  --display: "Golos Text", sans-serif;
  --body: "Golos Text", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--paper-bright); background: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 18px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; min-height: var(--header-h); padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper-bright) 92%, transparent); backdrop-filter: blur(12px); transition: background .25s ease, transform .25s ease; }
.site-header.is-scrolled { background: var(--paper-bright); }
.brand { display: flex; align-items: center; gap: 13px; min-height: 48px; }
.brand-mark { display: grid; gap: 3px; width: 27px; transform: skewX(-17deg); }
.brand-mark span { height: 7px; background: var(--navy); }
.brand-mark span:nth-child(2) { width: 76%; margin-left: auto; }
.brand-mark span:nth-child(3) { width: 52%; margin-left: auto; }
.brand-name { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; }
.brand-caption { padding-left: 13px; border-left: 1px solid var(--line); font-size: .64rem; font-weight: 600; line-height: 1.25; text-transform: uppercase; letter-spacing: .055em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 38px); }
.desktop-nav a, .nav-catalog { position: relative; padding: 27px 0 24px; border: 0; color: var(--ink); background: transparent; font-size: .8rem; font-weight: 600; cursor: pointer; }
.desktop-nav a::after, .nav-catalog::after { content: ""; position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after, .nav-catalog:hover::after, .nav-catalog[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-catalog span { display: inline-block; margin-left: 5px; color: var(--red); font-size: 1rem; transition: transform .2s ease; }
.nav-catalog[aria-expanded="true"] span { transform: rotate(45deg); }
.header-phone { display: flex; align-items: center; gap: 8px; padding: 0 24px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.header-phone span { padding: 2px 5px; color: white; background: var(--green); font-size: .58rem; }
.header-cta { align-self: stretch; display: grid; place-items: center; padding: 0 26px; color: white; background: var(--navy); font-size: .78rem; font-weight: 600; transition: background .2s ease; }
.header-cta:hover { background: #234b67; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform .2s ease; }

.mega-menu { position: fixed; z-index: 90; inset: var(--header-h) 0 auto; grid-template-columns: .75fr 2fr; min-height: 390px; border-bottom: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 0 24px 50px rgba(0,0,0,.16); }
.mega-menu:not([hidden]) { display: grid; animation: menuIn .26s ease-out both; }
.mega-intro { display: flex; flex-direction: column; padding: 52px clamp(28px, 5vw, 80px); color: white; background: var(--ink); }
.mega-intro p { margin: 0 0 28px; color: var(--yellow); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.mega-intro strong { max-width: 360px; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 2rem); line-height: 1.2; }
.mega-intro a { margin-top: auto; font-weight: 700; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; }
.mega-links a { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 30px clamp(24px, 4vw, 60px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .2s ease, background .2s ease; }
.mega-links a:hover { color: white; background: var(--navy); }
.mega-links b { font-family: var(--display); font-size: .9rem; line-height: 1.3; }
.mega-links span { color: var(--ink-soft); font-size: .78rem; }
.mega-links a:hover span { color: white; }

.mobile-menu { position: fixed; z-index: 95; inset: var(--header-h) 0 0; padding: 24px; overflow-y: auto; color: white; background: var(--ink); }
.mobile-menu:not([hidden]) { display: flex; flex-direction: column; animation: menuIn .25s ease-out both; }
.mobile-menu a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-family: var(--display); font-size: 1rem; }
.mobile-menu .mobile-menu-cta { margin-top: 24px; padding: 18px; border: 0; color: var(--ink); background: var(--yellow); text-align: center; }

.hero { position: relative; min-height: max(780px, 100svh); padding: calc(var(--header-h) + 58px) 4vw 0; background-color: var(--paper-bright); background-image: linear-gradient(90deg, transparent calc(25% - 1px), rgba(17,20,22,.07) 25%, transparent calc(25% + 1px)), linear-gradient(90deg, transparent calc(50% - 1px), rgba(17,20,22,.07) 50%, transparent calc(50% + 1px)), linear-gradient(90deg, transparent calc(75% - 1px), rgba(17,20,22,.07) 75%, transparent calc(75% + 1px)); overflow: hidden; }
.hero-copy { position: relative; z-index: 3; width: 52%; max-width: 860px; padding-bottom: 210px; }
.hero-index { display: flex; gap: 22px; margin: 0 0 clamp(42px, 7vh, 76px); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-index span:last-child { color: var(--red); }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--display); font-size: clamp(2.85rem, 5.1vw, 5rem); font-weight: 600; line-height: 1.01; letter-spacing: -.045em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 640px; margin: 34px 0 0; padding-left: clamp(0px, 5vw, 82px); font-size: clamp(1.02rem, 1.2vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; padding-left: clamp(0px, 5vw, 82px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 58px; padding: 0 24px; border: 0; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease; }
.button-primary { color: white; background: var(--navy); }
.button-primary:hover { background: #234b67; }
.button span { font-size: 1.3em; }
.text-link { padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: .84rem; font-weight: 700; }

.machine-stage { position: absolute; z-index: 2; top: calc(var(--header-h) + 34px); right: 1vw; width: min(51vw, 760px); height: calc(100% - var(--header-h) - 144px); min-height: 600px; }
.machine-code { position: absolute; top: 20px; right: 4vw; font-size: .64rem; font-weight: 700; letter-spacing: .12em; }
.machine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.machine path, .machine ellipse, .machine rect, .machine circle { vector-effect: non-scaling-stroke; }
.machine-dimension { fill: none; stroke: rgba(17,20,22,.4); stroke-width: 1; }
.machine-dimension text { fill: var(--ink); stroke: none; font: 600 12px var(--body); letter-spacing: .08em; text-anchor: middle; }
.machine-body { fill: rgba(242,240,233,.7); stroke: var(--ink); stroke-width: 2; }
.machine-body .machine-inner { fill: none; stroke: rgba(17,20,22,.35); stroke-width: 1; stroke-dasharray: 5 5; }
.machine-nodes { fill: var(--red); stroke: var(--paper-bright); stroke-width: 4; }
.machine-label { position: absolute; padding: 10px 14px; color: white; background: var(--ink); font-size: .7rem; font-weight: 600; line-height: 1.25; }
.machine-label span { color: var(--yellow); }
.label-a { top: 31%; left: 3%; }
.label-b { right: 2%; bottom: 27%; }
.load-stamp { position: absolute; right: 9%; bottom: 3%; display: flex; align-items: flex-end; gap: 10px; width: 150px; padding-top: 8px; border-top: 4px solid var(--red); }
.load-stamp strong { font-family: var(--display); font-size: 2.5rem; line-height: .9; }
.load-stamp span { font-size: .66rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.route-line { position: absolute; z-index: 4; pointer-events: none; }
.route-line-a { top: 30%; right: 0; left: 46%; height: 160px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: scaleX(0); transform-origin: left; animation: routeDraw .8s .35s cubic-bezier(.19,1,.22,1) forwards; }
.route-line i, .contact-route i { position: absolute; width: 11px; height: 11px; border: 3px solid var(--red); background: var(--paper-bright); }
.route-line i:first-child { top: -7px; left: 0; }
.route-line i:nth-child(2) { top: -7px; right: -7px; }
.route-line i:last-child { right: -7px; bottom: -7px; }
.hero-facts { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr; min-height: 125px; margin: 0 4vw; border-top: 1px solid var(--ink); background: var(--paper-bright); }
.hero-facts > * { display: flex; align-items: flex-end; gap: 11px; padding: 24px 22px; border-right: 1px solid var(--line); }
.hero-facts strong { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2.4rem); line-height: 1; }
.hero-facts span { max-width: 90px; font-size: .65rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.hero-facts a { align-items: center; justify-content: space-between; border-right: 0; color: white; background: var(--navy); font-weight: 600; }
.hero-facts a span { font-size: 1.6rem; }

.catalog { padding: clamp(90px, 11vw, 170px) 4vw; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.45fr .55fr; gap: 8vw; align-items: end; margin-bottom: 90px; }
.section-heading h2, .process h2, .capacity h2, .industries h2, .proof h2, .contact h2, .production-proof h2 { margin: 0; font-family: var(--display); font-size: clamp(1.95rem, 3.7vw, 3.85rem); font-weight: 600; line-height: 1.06; letter-spacing: -.045em; }
.section-heading p, .process-head p, .capacity-title-wrap p, .proof-title p, .contact-copy p { max-width: 560px; margin: 0; font-size: 1rem; line-height: 1.65; }
.catalog-system { display: grid; grid-template-columns: 1.05fr .95fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.catalog-list { border-right: 1px solid var(--ink); }
.catalog-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; width: 100%; min-height: 88px; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease; }
.catalog-item:last-child { border-bottom: 0; }
.catalog-item span { color: var(--red); font-size: .64rem; font-weight: 700; }
.catalog-item strong { max-width: 520px; font-family: var(--display); font-size: clamp(.85rem, 1.25vw, 1.15rem); line-height: 1.3; }
.catalog-item i { font-size: 1.35rem; font-style: normal; opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .2s ease; }
.catalog-item:hover, .catalog-item.is-active { color: white; background: var(--navy); }
.catalog-item:hover span, .catalog-item.is-active span { color: var(--yellow); }
.catalog-item:hover i, .catalog-item.is-active i { opacity: 1; transform: none; }
.product-display { position: relative; min-height: 528px; overflow: hidden; background: var(--paper-bright); }
.product-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.product-symbol { position: absolute; top: 0; right: -4%; width: 78%; height: 78%; }
.symbol-lines { fill: none; stroke: rgba(17,20,22,.18); stroke-width: 1; }
.symbol-shape { fill: rgba(24,54,77,.06); stroke: var(--navy); stroke-width: 2; transform-origin: center; transition: transform .35s ease-out; }
.product-display.is-changing .symbol-shape { transform: rotate(18deg) scale(.85); }
.product-display-copy { position: absolute; right: 34px; bottom: 30px; left: 34px; max-width: 500px; padding: 22px; color: white; background: var(--navy-deep); }
.product-display-copy > span { color: var(--yellow); font-size: .64rem; font-weight: 700; letter-spacing: .12em; }
.product-display-copy h3 { margin: 12px 0 8px; font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.15; }
.product-display-copy p { margin: 0 0 20px; color: #c8ccce; font-size: .86rem; }
.product-display-copy a { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-weight: 700; }
.catalog-more { display: grid; grid-template-columns: .7fr repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.catalog-more > * { padding: 18px 20px; border-right: 1px solid var(--line); font-size: .74rem; }
.catalog-more > *:last-child { border-right: 0; }
.catalog-more span { color: var(--ink-soft); }
.catalog-more a { font-weight: 600; transition: color .2s ease, background .2s ease; }
.catalog-more a:hover { color: white; background: var(--navy); }

.process { position: relative; padding: clamp(90px, 11vw, 170px) 4vw; color: white; background: var(--navy-deep); overflow: hidden; }
.process::after { content: ""; position: absolute; top: 0; right: 12%; width: 22%; height: 100%; background: rgba(255,255,255,.025); pointer-events: none; }
.process-head { display: grid; grid-template-columns: 1.2fr .55fr; gap: 8vw; align-items: end; }
.process-head p { color: #b7bdc0; }
.process-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 110px; border-top: 2px solid #4d5255; }
.track-progress { position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.19,1,.22,1); }
.process-track.is-visible .track-progress { transform: scaleX(1); }
.process-track article { position: relative; min-height: 240px; padding: 30px 28px 20px 0; border-right: 1px solid #3b4043; }
.process-track article::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border: 2px solid var(--red); background: var(--navy-deep); }
.process-track span { color: var(--yellow); font-size: .7rem; font-weight: 700; }
.process-track h3 { margin: 48px 0 12px; font-family: var(--display); font-size: 1rem; text-transform: uppercase; }
.process-track p { max-width: 210px; margin: 0; color: #9fa5a8; font-size: .82rem; }
.process-cta { display: flex; justify-content: space-between; width: min(410px, 100%); margin: 45px 0 0 auto; padding: 18px 0; border-top: 1px solid #72777a; font-weight: 700; }

.capacity { padding: clamp(90px, 11vw, 170px) 4vw; background: #dbe5ea; }
.capacity-title-wrap { display: grid; grid-template-columns: 1.2fr .5fr; gap: 8vw; align-items: end; }
.capacity-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); margin-top: 90px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.capacity-grid article { min-height: 300px; padding: 34px 26px; border-right: 1px solid rgba(17,20,22,.35); }
.capacity-grid article:last-child { border-right: 0; }
.capacity-grid strong { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 4rem); line-height: .95; letter-spacing: -.04em; }
.capacity-grid span { display: block; margin-top: 8px; font-family: var(--display); font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.capacity-grid p { max-width: 220px; margin: 110px 0 0; font-size: .78rem; font-weight: 600; }
.capacity-main { color: white; background: var(--navy); }
.capacity-main strong { font-size: clamp(2.8rem, 5.5vw, 6rem); }
.capacity-note { max-width: 730px; margin: 28px 0 0 auto; font-size: .72rem; }

.production-proof { position: relative; padding: clamp(90px, 10vw, 150px) 4vw; background: var(--paper-bright); }
.production-proof-head { display: grid; grid-template-columns: 1.05fr .65fr; gap: 7vw; align-items: end; margin-bottom: 64px; }
.production-proof-head p { max-width: 520px; margin: 0; color: var(--ink-soft); }
.production-proof-head .text-link { grid-column: 2; justify-self: start; }
.production-gallery { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1px; background: #bac5cb; border: 1px solid #bac5cb; }
.production-photo { position: relative; min-width: 0; margin: 0; background: var(--paper); overflow: hidden; }
.production-photo img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; image-rendering: auto; filter: saturate(.68) contrast(1.03); transition: filter .25s ease; }
.production-photo:hover img { filter: saturate(.9) contrast(1.03); }
.production-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 18px; padding: 16px 18px; color: white; background: rgba(17,39,53,.9); font-size: .76rem; font-weight: 600; }
.production-photo figcaption span { color: #d4b39f; }
.production-cta { display: flex; justify-content: space-between; width: min(430px, 100%); margin: 34px 0 0 auto; padding: 17px 20px; color: white; background: var(--navy); font-weight: 600; }
.production-cta:hover { background: #234b67; }

.industries { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 900px; color: white; background: var(--navy-deep); }
.industries-sticky { position: sticky; top: var(--header-h); align-self: start; min-height: calc(100vh - var(--header-h)); padding: 8vw 4vw; overflow: hidden; }
.industries h2 { position: relative; z-index: 2; font-size: clamp(2.25rem, 4.3vw, 4.7rem); }
.industry-visual { position: absolute; right: -10%; bottom: -8%; width: min(42vw, 520px); aspect-ratio: 1; border: 1px solid #454a4d; border-radius: 50%; animation: slowRotate 30s linear infinite; }
.industry-visual span { position: absolute; inset: 13%; border: 1px solid #454a4d; border-radius: 50%; }
.industry-visual span:nth-child(2) { inset: 26%; }
.industry-visual span:nth-child(3) { inset: 39%; border-color: var(--red); }
.industry-visual span:nth-child(4) { top: 50%; right: 0; bottom: auto; left: 0; border: 0; border-top: 1px solid var(--red); border-radius: 0; }
.industry-visual b { position: absolute; top: 50%; left: 50%; font-family: var(--display); font-size: 1rem; transform: translate(-50%, -50%); }
.industry-list { border-left: 1px solid #3e4346; }
.industry-list a { display: grid; grid-template-columns: 1fr 50px; gap: 20px; min-height: 180px; padding: 45px 4vw; border-bottom: 1px solid #3e4346; transition: color .25s ease, background .25s ease; }
.industry-list a:hover { color: var(--ink); background: #dbe5ea; }
.industry-list span { font-family: var(--display); font-size: clamp(1rem, 1.65vw, 1.5rem); }
.industry-list b { color: #d29a75; font-size: .7rem; }
.industry-list i { grid-column: 1; max-width: 520px; color: #989fa3; font-size: .82rem; font-style: normal; }
.industry-list a:hover i { color: var(--ink-soft); }

.proof { padding: clamp(90px, 11vw, 170px) 4vw; background: var(--paper-bright); }
.proof-title { display: grid; grid-template-columns: 1.2fr .55fr; gap: 8vw; align-items: end; margin-bottom: 80px; }
.proof-links { border-top: 1px solid var(--ink); }
.proof-links a { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; min-height: 112px; padding: 16px 10px; border-bottom: 1px solid var(--line); transition: color .22s ease, background .22s ease; }
.proof-links a:hover { color: white; background: var(--navy); }
.proof-links span { color: var(--red); font-size: .68rem; font-weight: 700; }
.proof-links a:hover span { color: var(--yellow); }
.proof-links strong { font-family: var(--display); font-size: clamp(1rem, 1.8vw, 1.65rem); text-transform: uppercase; }
.proof-links i { font-size: 1.5rem; font-style: normal; }

.contact { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; padding: clamp(90px, 11vw, 160px) 4vw 100px; background: var(--navy); overflow: hidden; }
.contact-copy { position: relative; z-index: 2; color: white; }
.contact-copy p { max-width: 440px; margin-top: 38px; }
.contact-form { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 38px; background: var(--paper-bright); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 3px 0 var(--yellow); }
.form-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.form-bottom p { max-width: 290px; margin: 0; color: #666b6e; font-size: .67rem; }
.button-dark { color: white; background: var(--navy-deep); }
.button-dark:hover { color: white; background: #285573; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; margin: 0; color: var(--green); font-weight: 700; }
.contact-direct { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 2fr; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.55); color: white; font-weight: 700; }
.contact-route { position: absolute; left: 0; bottom: 14%; width: 46%; height: 32%; border-right: 4px solid rgba(255,255,255,.28); border-bottom: 4px solid rgba(255,255,255,.28); }
.contact-route i { border-color: #d9e4e9; background: var(--navy); }
.contact-route i:first-child { right: -7px; top: -6px; }
.contact-route i:nth-child(2) { right: -7px; bottom: -7px; }
.contact-route i:last-child { left: 12%; bottom: -7px; }

.site-footer { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 5vw; padding: 70px 4vw 24px; color: white; background: #0e1c25; }
.footer-brand p { color: #92999c; font-size: .78rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column strong { margin-bottom: 12px; color: var(--yellow); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-column a { color: #bec3c5; font-size: .79rem; }
.footer-column a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact a { color: white; font-weight: 700; }
.footer-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; margin-top: 45px; padding-top: 20px; border-top: 1px solid #3b4043; color: #7f878a; font-size: .65rem; }
.footer-bottom span:last-child { text-align: right; }

.reveal { opacity: 1; transform: none; }
@keyframes routeDraw { to { transform: scaleX(1); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
@keyframes slowRotate { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a:nth-of-type(4) { display: none; }
  .header-phone { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .hero-copy { width: 59%; }
  .machine-stage { right: -7vw; width: 56vw; }
  .capacity-grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .capacity-grid article:last-child { grid-column: 2 / 4; min-height: 190px; border-top: 1px solid rgba(17,20,22,.35); }
  .capacity-grid article:last-child p { margin-top: 55px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .brand-caption { display: none; }
  .hero { min-height: 980px; padding: calc(var(--header-h) + 44px) 24px 0; background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(17,20,22,.07) 50%, transparent calc(50% + 1px)); }
  .hero-copy { width: 100%; padding-bottom: 0; }
  .hero-index { margin-bottom: 38px; }
  .hero h1 { font-size: clamp(2.7rem, 9.7vw, 5rem); }
  .hero-lead, .hero-actions { max-width: 580px; padding-left: 0; }
  .machine-stage { top: 430px; right: 0; left: auto; width: 72vw; height: 470px; min-height: 0; }
  .machine-code { display: none; }
  .route-line-a { top: 48%; left: 18%; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); margin: 0 24px; }
  .hero-facts a { grid-column: 1 / -1; min-height: 74px; }
  .section-heading, .process-head, .capacity-title-wrap, .proof-title { grid-template-columns: 1fr; gap: 32px; }
  .catalog-system { grid-template-columns: 1fr; }
  .catalog-list { border-right: 0; border-bottom: 1px solid var(--ink); }
  .catalog-more { grid-template-columns: 1fr 1fr; }
  .catalog-more > * { border-bottom: 1px solid var(--line); }
  .catalog-item { min-height: 74px; }
  .process-track { grid-template-columns: 1fr; margin-top: 70px; border-top: 0; border-left: 2px solid #4d5255; }
  .track-progress { top: 0; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .process-track.is-visible .track-progress { transform: scaleY(1); }
  .process-track article { min-height: 150px; padding: 25px 20px 25px 42px; border-right: 0; border-bottom: 1px solid #3b4043; }
  .process-track article::before { top: 30px; left: -7px; }
  .process-track h3 { margin: 16px 0 8px; }
  .capacity-grid { grid-template-columns: 1fr 1fr; }
  .capacity-main { grid-column: 1 / -1; }
  .capacity-grid article { min-height: 230px; }
  .capacity-grid article:last-child { grid-column: 1 / -1; }
  .capacity-grid p { margin-top: 65px; }
  .production-proof-head { grid-template-columns: 1fr; gap: 26px; }
  .production-proof-head .text-link { grid-column: auto; }
  .production-gallery { grid-template-columns: 1.2fr 1fr; }
  .production-photo-main { grid-row: span 2; }
  .production-photo img { min-height: 230px; }
  .production-photo-main img { min-height: 461px; }
  .industries { grid-template-columns: 1fr; }
  .industries-sticky { position: relative; top: 0; min-height: 570px; }
  .industry-visual { width: 440px; }
  .industry-list { border-top: 1px solid #3e4346; border-left: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy p { margin-bottom: 20px; }
  .contact-direct { grid-template-columns: 1fr; gap: 14px; }
  .contact-route { display: none; }
  .site-footer { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 2 / 4; }
}

@media (max-width: 620px) {
  .hero { min-height: 930px; padding-right: 18px; padding-left: 18px; }
  .hero-index { gap: 12px; font-size: .54rem; }
  .hero h1 { font-size: clamp(2.08rem, 10vw, 3.55rem); line-height: 1.03; }
  .hero-lead { margin-top: 24px; font-size: .94rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 25px; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .machine-stage { top: 465px; right: -23vw; width: 112vw; height: 400px; opacity: .92; }
  .machine-label { display: none; }
  .load-stamp { right: 21%; }
  .route-line-a { top: 55%; left: 6%; height: 110px; }
  .hero-facts { grid-template-columns: 1fr 1fr; margin: 0 18px; min-height: 122px; }
  .hero-facts > * { min-height: 70px; padding: 14px 12px; }
  .hero-facts > div:nth-child(3) { display: none; }
  .hero-facts strong { font-size: 1.35rem; }
  .hero-facts span { font-size: .55rem; }
  .catalog, .process, .capacity, .proof { padding: 84px 18px; }
  .section-heading { margin-bottom: 54px; }
  .section-heading h2, .process h2, .capacity h2, .industries h2, .proof h2, .contact h2, .production-proof h2 { font-size: clamp(1.85rem, 8.7vw, 2.75rem); }
  .catalog-item { grid-template-columns: 34px 1fr auto; padding: 14px 8px; }
  .catalog-more { grid-template-columns: 1fr; }
  .catalog-more > * { padding: 14px 8px; border-right: 0; }
  .product-display { min-height: 480px; }
  .product-symbol { width: 110%; height: 75%; right: -28%; }
  .product-display-copy { right: 14px; bottom: 14px; left: 14px; padding: 18px; }
  .capacity-grid { grid-template-columns: 1fr; }
  .capacity-main, .capacity-grid article:last-child { grid-column: auto; }
  .capacity-grid article { min-height: 190px; border-right: 0; border-bottom: 1px solid rgba(17,20,22,.35); }
  .capacity-grid p, .capacity-grid article:last-child p { margin-top: 45px; }
  .production-proof { padding: 84px 18px; }
  .production-gallery { grid-template-columns: 1fr 1fr; }
  .production-photo-main { grid-column: 1 / -1; grid-row: auto; }
  .production-photo img, .production-photo-main img { min-height: 190px; }
  .production-photo figcaption { min-height: 56px; padding: 12px; font-size: .7rem; }
  .production-cta { margin-top: 22px; }
  .industries-sticky { min-height: 510px; padding: 84px 18px; }
  .industry-visual { right: -31%; width: 410px; }
  .industry-list a { min-height: 150px; padding: 34px 18px; }
  .proof-links a { grid-template-columns: 42px 1fr auto; min-height: 92px; }
  .proof-links strong { font-size: .88rem; }
  .contact { padding: 84px 18px 70px; }
  .contact-form { grid-template-columns: 1fr; gap: 22px; padding: 24px 18px; }
  .field-wide, .form-bottom, .form-status { grid-column: auto; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 58px 18px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; margin-top: 20px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom span:last-child { text-align: left; }
  .hero-index, .catalog-item span, .product-display-copy > span, .process-track span,
  .capacity-note, .proof-links span, .field label, .footer-bottom { font-size: .72rem; }
  .machine-label, .form-bottom p, .footer-column strong { font-size: .7rem; }
}

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