/* ==========================================================================
   УЗДТ — Строгий промышленный стиль (Северсталь / ТМК / uzdt.su)
   Без неона, без пилюль, без кибер-сетки. Чёткая сетка и линии 1px.
   ========================================================================== */

:root {
  --ink: #121b2b;
  --ink-2: #1f2b40;
  --muted: #5a6372;
  --muted-light: #8d97a6;
  --line: #e7ebf0;
  --line-strong: #d3dbe6;
  --paper: #f5f7fa;
  --white: #ffffff;
  --yellow: #ffc944;
  --yellow-hover: #f4bb32;

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Strict Industrial Buttons (zero glow, 3px radius) ---------- */
.btn,
.btn-uzdt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius) !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn--yellow,
.btn-yellow {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border-color: var(--yellow) !important;
  box-shadow: none !important;
}

.btn--yellow:hover,
.btn-yellow:hover {
  background: var(--yellow-hover) !important;
  border-color: var(--yellow-hover) !important;
  box-shadow: none !important;
}

.btn-outline {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
}

.btn-outline:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* ---------- Header (Light, Clean, 1px hairline) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.brand__sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-phone__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.header-phone__num:hover {
  color: var(--muted);
}

.header-phone__note {
  font-size: 11px;
  color: var(--muted);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero (Light Architectural Split on #f5f7fa) ---------- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 44px;
  align-items: stretch;
  padding-bottom: 48px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 32px;
  padding-left: 16px;
  border-left: 3px solid var(--yellow);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Right: Full-bleed Factory Photo + Clean 3D Switcher */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 410px;
}

.hero-stage__toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.hero-stage__tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero-stage__tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero-stage__viewport {
  position: relative;
  flex: 1;
  min-height: 360px;
  background: #e9edf3;
}

.hero-stage__photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-stage__3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #eef1f5;
  display: none;
}

.hero-stage.is-3d .hero-stage__photo {
  display: none;
}

.hero-stage.is-3d .hero-stage__3d {
  display: block;
}

.hero-stage__3d model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.hero-stage__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.hero-stage__spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
}

/* Hero Bottom KPI Strip with 1px Vertical Hairlines */
.hero-kpi {
  border-top: 1px solid var(--line-strong);
  background: var(--white);
}

.hero-kpi__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-kpi__item {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line);
}

.hero-kpi__item:not(:first-child) {
  padding-left: 24px;
}

.hero-kpi__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-kpi__val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-kpi__label {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section--light {
  background: var(--white);
}

.section--paper {
  background: var(--paper);
}

.section--compact {
  padding: 56px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__desc {
  margin: 0;
  max-width: 500px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Production Editorial Photo Gallery + Strict Grid ---------- */
.factory-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.factory-gallery__main {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.factory-gallery__main img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.factory-gallery__main figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.factory-gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.factory-photo {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.factory-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.factory-photo figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.factory-photo__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.about-card {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.about-card:last-child {
  border-right: 0;
}

.about-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.about-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.about-card__text {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Footer (Strict Dark Industrial) ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.15fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}

.footer-about {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.footer-list a:hover {
  color: var(--yellow);
}

.footer-contact-val {
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .site-header.is-open .site-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line-strong);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-kpi__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-kpi__item {
    border-bottom: 1px solid var(--line);
    padding: 18px 16px !important;
  }
  .factory-gallery__row {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-card {
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-phone {
    display: none;
  }
  .section {
    padding: 52px 0;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-kpi__grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-kpi__item,
  .about-card {
    border-right: 0;
  }
  .factory-gallery__main img {
    height: 240px;
  }
}
