/* ЗЭОТЭК — эскиз сайта 2026 · спецайти.рф
   GOV-MODERN-engineering на бренде завода: светлый «бумажный» фон,
   зелёный #188b30 как signal, золотая штриховка из логотипа, mono-цифры. */

:root {
  --paper: #f2f4f3;
  --card: #ffffff;
  --ink: #0f1a14;
  --ink-soft: #586660;
  --hairline: #d7ddd8;
  --ground: #e4e8e5;
  --green: #188b30;
  --green-deep: #0c4518;
  --green-bright: #1eae3c;
  --gold: #f8a132;
  --gold-light: #ffe40e;
  --alert: #dc130d;
  --wrap: 1180px;
  --r: 3px;
  --shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 8px 28px rgba(15, 26, 20, 0.06);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--green-deep);
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: "Golos Text", Inter, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.16s ease;
  font-family: inherit;
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-deep);
}
.btn-line {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--green);
  color: var(--green-deep);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* ---------- Топбар ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  height: 34px;
  width: auto;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--green-deep);
}
.topbar-phone {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}
.topbar .btn {
  flex: none;
}

/* ---------- Эскиз-бейдж ---------- */
.sketch-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.sketch-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: 54px 24px 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
}
.hero .lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 20px 0 26px;
  max-width: 36ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Паспорт */
.passport {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.passport-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #fbfcfb;
}
.passport-head img {
  height: 20px;
}
.passport table {
  width: 100%;
  border-collapse: collapse;
}
.passport td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 14px;
}
.passport tr:last-child td {
  border-bottom: 0;
}
.passport td:first-child {
  color: var(--ink-soft);
  width: 38%;
}
.passport b {
  font-weight: 700;
}
.passport .big {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  color: var(--green-deep);
}
.psrc {
  display: block;
  font-size: 11.5px;
  color: #9aa49e;
  font-weight: 400;
  margin-top: 2px;
}

/* ---------- Секции ---------- */
.sec {
  padding: 60px 24px;
  border-top: 1px solid var(--hairline);
}
.stamp {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #9aa49e;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-block;
  margin-bottom: 12px;
}
.sec-head {
  max-width: 60ch;
  margin-bottom: 34px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}
.sec-head .lead {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 14px;
}

/* ---------- Конфигуратор (фишка) ---------- */
.cfg {
  background: linear-gradient(180deg, #fff, #fbfcfb);
}
.cfg-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}
.cfg-panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
}
.cfg-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ctl label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.ctl select,
.ctl input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.ctl select:focus,
.ctl input:focus {
  outline: none;
  border-color: var(--green);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.seg label {
  margin: 0;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.14s;
}
.seg input:checked + span {
  border-color: var(--green);
  background: rgba(24, 139, 48, 0.07);
  color: var(--green-deep);
}
.range-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.range-val {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--green-deep);
}
.range-size {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--ink-soft);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 6px;
}

/* Сцена резервуара */
.cfg-vis {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cfg-vis-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #fbfcfb;
  display: flex;
  justify-content: space-between;
}
.cfg-stage {
  flex: 1;
  padding: 14px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      #eef1ef 23px,
      #eef1ef 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      #eef1ef 23px,
      #eef1ef 24px
    );
}
.cfg-stage svg {
  width: 100%;
  height: auto;
}
.cfg-doc-wrap {
  border-top: 1px solid var(--hairline);
}
.cfg-doc {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0;
  padding: 16px 18px;
  color: var(--ink);
  background: #fbfcfb;
  max-height: 230px;
  overflow: auto;
}
.cfg-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

/* ---------- Продукция ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 22px;
  transition: 0.16s;
}
.prod:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.prod-ic {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 14px;
}
.prod-ic svg {
  width: 100%;
  height: 100%;
}
.prod h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.prod p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.prod .tag {
  display: inline-block;
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--green-deep);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ---------- Объекты (ведомость) ---------- */
.obj-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
}
.obj-table th {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 13px 18px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--hairline);
}
.obj-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.obj-table tr:last-child td {
  border-bottom: 0;
}
.obj-table td.num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--green-deep);
  font-weight: 600;
  white-space: nowrap;
}
.obj-table tr:hover td {
  background: rgba(24, 139, 48, 0.03);
}

/* ---------- Производство (паспорт-цифры) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 22px;
}
.fact .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1;
}
.fact .l {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Услуги ---------- */
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: s;
}
.svc-row {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
}
.svc-row .si {
  counter-increment: s;
  font-family: "IBM Plex Mono", monospace;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.svc-row .si::before {
  content: "0" counter(s);
}
.svc-row b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 3px;
}
.svc-row span.d {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Доверие / клиенты ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.client {
  flex: 1 1 200px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}
.client .ci {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(24, 139, 48, 0.08);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  flex: none;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.trust .t {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px;
}
.trust .t .ic {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: 12px;
}
.trust .t b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 5px;
}
.trust .t p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Аннотации спецайти ---------- */
.anno {
  margin-top: 22px;
  background: #fffdf5;
  border: 1px solid #f0e3c4;
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  color: #6b5a2a;
}
.anno b {
  color: #8a6d1f;
}
body.anno-off .anno {
  display: none;
}

/* ---------- Studio + Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rm {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 22px;
}
.rm .rn {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.rm h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.rm p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.studio {
  padding: 54px 24px;
  background: var(--ink);
  color: #e9eeea;
}
.studio-in {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}
.studio .eyebrow {
  color: var(--green-bright);
}
.studio h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
}
.studio p {
  color: #aab8b0;
  margin-top: 14px;
}
.studio-card {
  background: #16241c;
  border: 1px solid #2a3b32;
  border-radius: var(--r);
  padding: 26px;
}
.studio-card .src {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7f9389;
  margin-bottom: 12px;
}
.studio-card a {
  color: var(--green-bright);
}
.studio-card .btn-green {
  margin-top: 10px;
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 26px 24px;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-brand img {
  height: 26px;
}
.footer .src {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #9aa49e;
}

/* ---------- Тоггл аннотаций ---------- */
.anno-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 10px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.anno-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Reveal (прогрессивное улучшение: контент виден всегда) ----------
   Анимация включается ТОЛЬКО при наличии JS (класс js-anim на <html>),
   и только пока элемент ещё не показан. Без JS / при печати — всё видимо. */
.js-anim .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}
.js-anim .reveal {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Печать опросного листа ---------- */
@media print {
  body.print-doc {
    background: #fff;
  }
  body.print-doc * {
    visibility: hidden;
  }
  body.print-doc .cfg-doc,
  body.print-doc .cfg-doc * {
    visibility: visible;
  }
  body.print-doc .cfg-doc {
    position: absolute;
    left: 0;
    top: 0;
    max-height: none;
    width: 100%;
    font-size: 13px;
    border: 0;
    background: #fff;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .cfg-grid,
  .geo-grid,
  .studio-in {
    grid-template-columns: 1fr;
  }
  .prod-grid,
  .svc,
  .facts,
  .trust,
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .prod-grid,
  .svc,
  .facts,
  .trust,
  .roadmap {
    grid-template-columns: 1fr;
  }
  .topbar-phone {
    display: none;
  }
  .obj-table th:nth-child(3),
  .obj-table td:nth-child(3) {
    display: none;
  }
}
