:root {
  --bg: #000;
  --soft: #111;
  --fg: #fff;
  --fg-2: #9ca3af;
  --muted: #6b7280;
  --accent: #ff9800;
  --line: #2a2a2a;
  --font-h: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-b: "Manrope", "Segoe UI", sans-serif;
  --font-d: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.ridge {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82) 28%, rgba(0, 0, 0, 0.9)),
    url("../assets/urals-mountains.jpg") center 40% / cover no-repeat;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.nav.stuck { background: rgba(0, 0, 0, 0.82); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}
.mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid #fff;
  position: relative;
}
.mark::before, .mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.mark::before { left: 7px; top: 3px; width: 1.5px; height: 10px; }
.mark::after { left: 3px; top: 7px; width: 10px; height: 1.5px; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.nav-links a.is-on, .nav-links a:hover { color: #fff; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(255, 152, 0, 0.28);
}
.nav-cta:hover, .btn:hover { filter: brightness(1.08); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  --parallax: 0px;
  --mx: 0px;
  --my: 0px;
}
.hero-bg, .hero-photo, .hero-shade {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background: url("../assets/urals-mountains.jpg") center 32% / cover no-repeat;
  transform: translate3d(0, var(--parallax), 0) scale(1.08);
}
.hero-photo {
  left: auto;
  width: min(54vw, 860px);
  background: url("../assets/psu-label.jpg") 62% center / cover no-repeat;
  transform: translate3d(var(--mx), var(--my), 0);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
}
.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 22%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 140px var(--pad) 28px;
}
.kicker, .index-label, .aside, .fine, .stamp, .doc-k {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.stamp {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
h1, h2, .boxed {
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}
h1 { font-size: clamp(52px, 6.4vw, 86px); margin: 18px 0 0; }
h1 span, h2 span { display: block; }
.boxed {
  display: inline-block;
  margin-top: 8px;
  padding: 0.04em 0.14em 0.02em;
  border: 1px solid #fff;
}
.lead, .deck {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}
.actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 28px; }
.text-link {
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}
.text-link::after { content: " →"; }
.index {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 22px var(--pad) 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}
.index dt, .sku-head, .rail-head {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.index dd {
  margin: 6px 0 0;
  font-family: var(--font-d);
  font-size: 16px;
}

.panel { padding: 72px var(--pad); background: rgba(0, 0, 0, 0.9); }
.panel-soft { background: rgba(17, 17, 17, 0.94); }
.panel-head, .subhead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}
h2 { font-size: clamp(40px, 4.6vw, 64px); margin: 8px 0 0; }
h3 { font-family: var(--font-h); font-size: 32px; text-transform: uppercase; margin: 0 0 8px; font-weight: 600; }
.aside { margin: 0; text-align: right; }
.subhead { margin-top: 64px; align-items: flex-start; }
.subhead p { max-width: 42ch; color: var(--fg-2); margin: 0; }

.rails, .skus { border-top: 1px solid var(--line); }
.rail, .sku, .rail-head, .sku-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.4fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sku, .sku-head { grid-template-columns: 1.6fr 0.5fr 0.8fr 0.8fr 0.8fr; }
.rail span:first-child, .sku span:first-child { font-family: var(--font-d); }
.rail span:nth-child(2), .rail span:nth-child(3), .sku span:nth-child(2), .sku span:nth-child(4) { font-family: var(--font-d); }
.rail span:last-child, .sku span:nth-child(3) { color: var(--fg-2); }
.rail-head span, .sku-head span { font-family: var(--font-b); }
.rail-sum { background: #161616; padding-left: 12px; padding-right: 12px; }
.sku-on { background: #161616; padding-left: 12px; padding-right: 12px; }
.muted { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.sku-on span:last-child { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.fine { color: var(--fg-2); margin: 18px 0 0; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
tbody th { font-weight: 500; color: var(--fg-2); width: 28%; }
td:last-child { color: #fff; background: rgba(255, 152, 0, 0.05); }

.guards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  margin-top: 28px;
}
.guards article { padding-top: 8px; border-top: 1px solid var(--line); }
.code {
  font-family: var(--font-d);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.guards h3 { font-family: var(--font-b); font-size: 16px; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.guards p { margin: 0; color: var(--fg-2); }

.factory { background: rgba(0, 0, 0, 0.92); }
.factory-copy { padding: 72px var(--pad) 28px; max-width: 760px; }
.factory-copy p { color: var(--fg-2); }
.pfc { color: #fff !important; }
.factory-main img, .factory-strip img { width: 100%; height: 100%; object-fit: cover; }
.factory-main { margin: 0; height: min(62vw, 640px); overflow: hidden; }
.factory-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.factory-strip figure { margin: 0; height: 280px; overflow: hidden; }
.factory-strip img, .factory-main img { transition: transform 0.8s ease; }
.factory-main:hover img, .factory-strip figure:hover img { transform: scale(1.04); }

.deck { margin-top: 12px; }
.docs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.docs a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 20px;
  text-decoration: none;
  background: #111;
  border: 1px solid transparent;
}
.docs a:hover { border-color: var(--accent); }
.docs img { width: 64px; height: 64px; object-fit: contain; }
.docs strong { font-size: 20px; font-family: var(--font-h); text-transform: uppercase; letter-spacing: 0.02em; }
.docs span:last-child { color: var(--fg-2); }

.close {
  position: relative;
  overflow: hidden;
  padding: 96px var(--pad) 72px;
}
.close-bg, .close-shade { position: absolute; inset: 0; }
.close-bg {
  background: url("../assets/urals-mountains.jpg") center 70% / cover no-repeat;
  transform: scale(1.06);
}
.close-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.92));
}
.close-copy { position: relative; max-width: 820px; }
.close h2 { font-size: clamp(52px, 7vw, 92px); }
.close h2 span { display: inline; }
.close .boxed { margin-left: 0.12em; }
.close-copy > p { color: var(--fg-2); max-width: 46ch; }
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 28px 0;
}
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg-2); }
.wide { grid-column: 1 / -1; }
input, textarea {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #3a3a3a;
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
.form-row { display: flex; gap: 16px; align-items: center; }
#form-status { margin: 0; min-height: 1.4em; }
address { font-style: normal; color: var(--fg-2); line-height: 1.7; }
address a { color: #fff; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px var(--pad) 28px;
  background: #000;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot a { color: var(--muted); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
  animation-play-state: paused;
}
[data-reveal].in { animation-play-state: running; }
.guards [data-reveal]:nth-child(2) { animation-delay: 0.05s; }
.guards [data-reveal]:nth-child(3) { animation-delay: 0.1s; }
.guards [data-reveal]:nth-child(4) { animation-delay: 0.15s; }
.guards [data-reveal]:nth-child(5) { animation-delay: 0.2s; }
.guards [data-reveal]:nth-child(6) { animation-delay: 0.25s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto auto; }
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid #333;
    padding: 8px 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #000;
    padding: 8px 0 16px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px var(--pad); }
  .hero-photo { width: 100%; opacity: 0.38; -webkit-mask-image: none; mask-image: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.78)); }
  .index, .guards, .docs, .factory-strip { grid-template-columns: 1fr 1fr; }
  .rail, .sku, .rail-head, .sku-head { grid-template-columns: 1.1fr 0.7fr 0.8fr; }
  .rail span:last-child, .sku span:nth-child(3), .rail-head span:last-child, .sku-head span:nth-child(3) { display: none; }
  .panel-head, .subhead { flex-direction: column; align-items: flex-start; }
  .aside { text-align: left; }
}

@media (max-width: 680px) {
  .index, .guards, .docs, .factory-strip, form { grid-template-columns: 1fr; }
  .factory-strip figure { height: 220px; }
  .hero-copy { padding-top: 120px; }
  h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; animation: none; }
  .hero-bg, .hero-photo, .factory-strip img, .factory-main img { transform: none !important; transition: none; }
}
