/* Шрифты со своего сервера (с 14.09.2026, вместо fonts.googleapis.com — IP посетителей не уходит Google).
   Файлы — public_html/fonts/, взяты с fonts.gstatic.com, лицензия SIL Open Font License 1.1.
   Наборы только cyrillic и latin: остальных символов в текстах сайта нет. */

/* IBM Plex Mono 400, cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono 400, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 500, cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono 500, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Sans 400, cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Sans 400, latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Sans 500, cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Sans 500, latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Sans 600, cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Sans 600, latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 400, cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 400, latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 500, cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 500, latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 600, cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 600, latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald 700, cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 700, latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0C0E;
  --bg-panel: #17181C;
  --bg-panel-2: #1F2024;
  --line: #2A2C31;
  --line-soft: rgba(255,255,255,0.08);

  --paper: #F2F1EE;
  --ink: #16171A;
  --steel: #9AA0A6;
  --steel-dark: #8A9096;

  --blue: #26438A;
  --blue-light: #3A5CB8;
  --blue-text: #6B86D0;   /* тот же тон, но читаемый в мелком кегле: 5.02 на панели */
  --red: #E42D24;
  --red-dark: #B8221A;

  --font-display: "Oswald", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* липкая шапка высотой 72px — резервируем место под неё при переходе по якорю */
section[id], main[id] { scroll-margin-top: 84px; }
/* группы и карточки каталога — цель для якорей из подменю «Продукция»,
   без отступа липкая шапка накрыла бы заголовок */
.group[id], .product-card[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--bg);
  line-height: 1.55;
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11,12,14,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  margin-right: auto;
}

.brand-logo { width: 44px; height: 44px; object-fit: contain; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
}

.main-nav { display: flex; gap: 30px; }

.main-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--steel);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--paper); border-color: var(--red); }

.main-nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2.5px auto;
  background: var(--paper);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav-cta {
    display: block;
    color: var(--red) !important;
    font-weight: 600;
  }
  .header-row { position: relative; flex-wrap: wrap; }
  .btn.btn-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline { background: transparent; color: var(--paper); border-color: rgba(242,241,238,0.35); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--paper); background: rgba(242,241,238,0.06); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(38,67,138,0.35), transparent 60%),
    var(--bg);
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -120px;
  width: 560px;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.18;
  pointer-events: none;
}

.hero-stripe {
  position: absolute;
  top: 0;
  right: 64px;
  width: 6px;
  height: 100%;
  background: linear-gradient(var(--red), var(--blue));
  opacity: 0.7;
}

@media (max-width: 820px) {
  .hero-stripe { display: none; }
  .hero-watermark { opacity: 0.14; width: 380px; }
}

.hero-inner { padding: 100px 24px 64px; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--red);
  margin: 0 0 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
}
.hero-title .hl { color: var(--blue-light); }

.hero-h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.4;
  color: var(--paper);
  max-width: 46ch;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 17px;
  color: var(--steel);
  max-width: 54ch;
  margin: 0 0 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.badge-row {
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
}
.badge-row-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.badge {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
}
.badge:last-child { border-right: none; }
.badge-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-label { font-size: 14px; color: var(--steel); }

/* ---------- Section basics ---------- */
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--red);
  margin: 0 0 14px;
}
.kicker--light { color: rgba(228,45,36,0.9); }

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  line-height: 1.1;
}
.section-title--light { color: var(--paper); }
.section-lead { color: var(--steel); max-width: 62ch; margin: 0 0 44px; }

/* ---------- About (light section) ---------- */
.about {
  background: var(--paper);
  color: var(--ink);
  padding: 96px 0;
}
.about .kicker { color: var(--red-dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.about .section-title { color: var(--ink); }
.about-text { color: #3A3D40; font-size: 16px; max-width: 56ch; }
.about-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 56ch;
}
.about-points li {
  font-size: 15px;
  color: #4A4E52;
  padding-left: 20px;
  position: relative;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 3px;
  background: var(--red);
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Catalog ---------- */
.catalog { padding: 96px 0; background: var(--bg); }

.catalog-grid {
  display: grid;
  /* 280px, а не 250: в карточках теперь списки пределов, в узкую колонку не влезают */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
}

/* Полоса основных характеристик над сеткой */
.tu-strip {
  background: linear-gradient(120deg, var(--blue) 0%, #1D3466 100%);
  padding: 26px 28px;
  margin-bottom: 44px;
}
.tu-strip h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
  color: var(--paper);
  text-align: center;
}
.tu-limits {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 44px;
}
.tu-limits > div { text-align: center; }
.tu-limits dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(242,241,238,0.72);
  margin: 0 0 5px;
}
.tu-limits dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.15;
}
/* Перечень сред длиннее остальных значений — отдельной строкой во всю ширину */
.tu-limits .lim-wide {
  flex-basis: 100%;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(242,241,238,0.18);
}
.tu-limits .lim-wide dd { font-size: 17px; letter-spacing: 0.02em; }

/* Заголовок группы карточек: своё производство / поставка */
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.group-head h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 0;
}
.group-head p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-dark);
  margin: 0;
}
.group + .group { margin-top: 56px; }

.product-card {
  background: var(--bg-panel);
  box-shadow: 0 0 0 1px var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: background .15s ease;
}
.product-card:hover { background: var(--bg-panel-2); }

.product-media {
  padding: 32px 24px 8px;
  color: var(--blue-light);
}
.product-media svg { width: 72px; height: 72px; }

.product-body { padding: 8px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.product-card h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.product-card p { font-size: 14px; color: var(--steel); margin: 0; }

/* Буквенное обозначение типа детали по ТУ (ОКШ, ТШС и т.д.) */
.product-card .product-type {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--blue-text);
  margin: -4px 0 0;
}

/* Пределы изготовления — то, по чему сверяются в тендерах */
.product-limits {
  list-style: none;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.product-limits li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  padding-left: 14px;
  position: relative;
}
.product-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 2px;
  background: var(--red);
}
.product-limits b { font-weight: 500; }

.product-card .product-gost {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--steel-dark);
  margin: 0;
}
.product-card .product-gost .own-tu { color: var(--steel); }

.catalog-foot {
  margin: 40px 0 0;
  font-size: 14px;
  color: var(--steel);
  max-width: 74ch;
}
.catalog-foot a { color: var(--paper); }

.product-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.product-link:hover, .product-link:focus-visible { color: #fff; }

/* ---------- Stock ---------- */
.stock {
  background: linear-gradient(120deg, var(--blue) 0%, #1D3466 100%);
  padding: 88px 0;
}
.stock-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.stock-text { color: rgba(242,241,238,0.85); max-width: 52ch; margin: 0; }
.stock-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stock-updated { font-family: var(--font-mono); font-size: 13px; color: rgba(242,241,238,0.7); margin: 0; }

@media (max-width: 760px) {
  .stock-inner { grid-template-columns: 1fr; }
  .stock-cta { align-items: flex-start; }
}

/* ---------- Contacts ---------- */
.contacts { padding: 96px 0; background: var(--bg); }
.contacts-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.contacts-grid > * { min-width: 0; }

.contact-list { margin: 24px 0 0; padding: 0; }
.contact-list > div { margin-bottom: 22px; }
.contact-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-dark);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; font-size: 16px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--red); }

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--steel); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--paper);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--steel-dark); }
.contact-form input.is-invalid { border-color: #E0503F; }
.field-error {
  display: none;
  font-size: 12px;
  color: #F0A79D;
}
.field-error.is-visible { display: block; }
.form-note { font-size: 13px; min-height: 18px; color: #8FD19E; margin: 0; }
.form-note--error { color: #F0A79D; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--bg); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-nav { display: flex; gap: 24px; margin-right: auto; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--steel); font-size: 14px; }
.footer-nav a:hover { color: var(--paper); }
.footer-contacts { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 14px; }
.footer-contacts a { text-decoration: none; color: var(--steel); }
.footer-contacts a:hover { color: var(--paper); }

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: var(--steel-dark);
}

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-right: 0; }
}


/* ---------- Номер ТУ под характеристиками ---------- */
.tu-doc {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(242,241,238,0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242,241,238,0.72);
  text-align: center;
}
.tu-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 6px;
}

/* ---------- Документы ---------- */
.docs { padding: 96px 0; background: var(--bg); }
.docs .section-title { margin-bottom: 40px; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1px;
}

.doc-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon body" "get get";
  gap: 0 20px;
  padding: 26px 24px;
  background: var(--bg-panel);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, box-shadow .15s ease;
}
.doc-card:hover,
.doc-card:focus-visible {
  background: var(--bg-panel-2);
  box-shadow: 0 0 0 1px var(--blue-light);
  z-index: 1;   /* иначе соседняя плитка перекроет подсветку в зазоре */
}

.doc-icon { grid-area: icon; color: var(--blue-light); }
.doc-icon svg { width: 34px; height: 41px; display: block; }

.doc-body { grid-area: body; display: flex; flex-direction: column; gap: 7px; }

.doc-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.doc-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--blue-text);
}
.doc-get {
  grid-area: get;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}
.doc-card:hover .doc-get { color: #fff; }

.doc-size {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--steel-dark);
}

.doc-note {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--steel-dark);
  max-width: 72ch;
}

@media (max-width: 420px) {
  .doc-card { grid-template-columns: 1fr; grid-template-areas: "icon" "body" "get"; }
  .doc-icon { margin-bottom: 14px; }
}

/* ---------- Поле «прикрепить файл» ---------- */
.file-label .file-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--steel-dark);
}

.contact-form input[type="file"] {
  min-width: 0;          /* иначе поле не даёт колонке сжаться на узком экране */
  max-width: 100%;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--steel);
  cursor: pointer;
}

.contact-form input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 12px;
  margin-right: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.contact-form input[type="file"]::file-selector-button:hover {
  border-color: var(--red);
  background: var(--bg);
}

/* ---------- Согласие на обработку персональных данных ---------- */
/* Галочка и подпись — в строку. Общие .contact-form label и .contact-form input (0,1,1)
   рассчитаны на текстовые поля: колонка, отступы, рамка, фон. Здесь селекторы
   сильнее — 0,2,1 и 0,3,1, — поэтому порядок правил в файле не важен. */
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-form .consent input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  accent-color: var(--red);
  cursor: pointer;
}
.contact-form .consent label {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--paper);
  cursor: pointer;
}
.contact-form .consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: -8px 0 0;
  padding-left: 30px;
  font-size: 13px;
  line-height: 1.45;
}
.contact-form .consent-links a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form .consent-links a:hover { color: var(--paper); }

/* ---------- Реквизиты в подвале ---------- */
.footer-legal {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--steel-dark);
}
.footer-legal + .footer-bottom { padding-top: 10px; }
.footer-legal a { color: var(--steel); text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--paper); }

/* ---------- Меню «Продукция» ---------- */
/* Разделов стало больше одной страницы, поэтому «Продукция» раскрывается
   панелью с колонками. Колонки, а не выпадающие вбок подменю: на ноутбуке
   третий уровень упирался бы в край экрана, а мышью по цепочке из двух
   наведений промахиваются. Здесь всё видно сразу и в один клик. */
.nav-drop { position: relative; }

.main-nav .nav-drop-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-drop-arrow { transition: transform .15s ease; }
.nav-drop:hover .nav-drop-arrow,
.nav-drop:focus-within .nav-drop-arrow { transform: rotate(180deg); }

/* мостик через зазор между пунктом и панелью — иначе меню закрывается,
   пока ведёшь мышь вниз */
.nav-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 18px);
  left: -22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 40;
}
.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-mega {
  display: grid;
  /* max-content и width по содержимому: панель позиционирована абсолютно,
     без этого колонки схлопываются в ноль */
  grid-template-columns: repeat(3, max-content);
  width: max-content;
  max-width: calc(100vw - 48px);
  gap: 0 36px;
  padding: 20px 24px 18px;
}
.nav-col { display: grid; align-content: start; }

.main-nav .nav-col-top {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  padding: 0 0 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.main-nav .nav-col-top:hover,
.main-nav .nav-col-top:focus-visible { color: var(--red); border-color: var(--line); }

.main-nav .nav-sub a {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: none;
  white-space: nowrap;
}
.main-nav .nav-sub a:hover,
.main-nav .nav-sub a:focus-visible { color: var(--paper); border-color: transparent; }
.main-nav .nav-sub a[aria-current="page"] { color: var(--paper); }

/* На узком ноутбуке три колонки упираются в правый край — складываем в две */
@media (max-width: 1080px) {
  .nav-mega { grid-template-columns: repeat(2, max-content); gap: 0 30px; }
  .nav-mega .nav-col:last-child { grid-column: 1 / -1; margin-top: 14px; }
}

@media (max-width: 820px) {
  /* В бургере пунктов много: даём меню прокручиваться внутри себя,
     иначе нижние пункты уезжают за край экрана и до них не добраться */
  .main-nav.is-open {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-drop { display: block; }
  .main-nav .nav-drop-top {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
  }
  .nav-drop::after { display: none; }

  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
  }
  .nav-mega { grid-template-columns: 1fr; width: auto; max-width: none; gap: 0; padding: 0; }
  .nav-mega .nav-col:last-child { grid-column: auto; margin-top: 0; }

  .main-nav .nav-col-top {
    padding: 13px 24px;
    margin: 0;
    font-size: 12px;
    color: var(--steel);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.03);
  }
  .main-nav .nav-sub a {
    padding: 12px 24px 12px 40px;
    color: var(--steel-dark);
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
  }
}

/* ---------- Правовые документы: /politika/, /soglasie/ ---------- */
/* Текст вставлен в <main class="wrap"> как есть, поэтому стили — через .dokument и теги внутри */
.dokument {
  max-width: 70ch;
  padding: 48px 0 80px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(242,241,238,0.86);
  overflow-wrap: break-word;
}
.dokument-meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel-dark);
}
.dokument h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--paper);
}
.dokument-lead {
  font-size: 17px;
  color: var(--paper);
}
.dokument h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}
.dokument p { margin: 0 0 14px; }
.dokument ul { margin: 0 0 14px; padding-left: 22px; }
.dokument li { margin-bottom: 6px; }
.dokument b { font-weight: 600; color: var(--paper); }
.dokument a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dokument a:hover { color: var(--red); }
.dokument-rekvizity { margin: 20px 0; }
.dokument-rekvizity > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dokument-rekvizity > div:last-child { border-bottom: 1px solid var(--line); }
.dokument-rekvizity dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dark);
}
.dokument-rekvizity dd { margin: 0; color: var(--paper); }

@media (max-width: 560px) {
  .dokument { padding: 32px 0 56px; }
  .dokument-lead { font-size: 16px; }
  .dokument-rekvizity > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
