/* ==========================================================================
   Металлика Плюс — стили сайта
   Шрифт: Geologica (OFL), фирменный цвет: #FF9200
   ========================================================================== */

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geologica-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 {
  --steel-900: #1b2126;
  --steel-800: #232b31;
  --steel-700: #2f3940;
  --steel-600: #414d55;
  --primer: #68747a;
  --zinc-300: #c1c8cb;
  --zinc-200: #d5dadc;
  --paper: #edefec;
  --paper-2: #e2e6e3;
  --white: #ffffff;
  --ink: #14191d;
  --ink-2: #3a454b;
  --signal: #ff9200;
  --signal-600: #e68200;
  --signal-ink: #8f4c00;
  --line: #9aa5aa;
  --ok: #1f7a4d;
  --err: #b3261e;

  --font: "Geologica", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --radius: 2px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "SHRP" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--signal); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 720; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.1vw, 4.4rem); font-weight: 780; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: "SHRP" 55; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-variation-settings: "SHRP" 45; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 660; line-height: 1.2; font-variation-settings: "SHRP" 20; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
::selection { background: var(--signal); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--signal); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 1rem; font-weight: 640; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-600); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-line, .btn-line.on-dark { border-color: rgba(255,255,255,.55); color: var(--white); }
.on-dark .btn-line:hover, .btn-line.on-dark:hover { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: var(--steel-900); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }
.nav > ul { display: flex; list-style: none; gap: 2px; align-items: stretch; }
.nav-item { position: static; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: var(--header-h);
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item.open > .nav-link, .nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .15s; opacity: .8; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.header-contacts { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: none; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.header-phone strong { font-weight: 640; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.header-phone span { font-size: .78rem; color: rgba(255,255,255,.6); }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.menu-toggle, .header-call { display: none; }

/* Dropdown panels */
.dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--steel-800); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(0,0,0,.3);
  display: none; padding: 32px 0 36px;
}
.nav-item.open > .dropdown { display: block; }
.dropdown-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; list-style: none; }
.dropdown-grid > li > a { color: var(--white); font-weight: 620; text-decoration: none; font-size: 1.02rem; }
.dropdown-grid > li > a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.dropdown-grid p { margin: 6px 0 8px; color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.45; }
.dropdown-sub { list-style: none; display: grid; gap: 4px; }
.dropdown-sub a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .92rem; }
.dropdown-sub a::before { content: ""; display: inline-block; width: 10px; height: 1px; background: var(--signal); vertical-align: middle; margin-right: 8px; }
.dropdown-sub a:hover { color: var(--white); }
.dropdown-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 24px; align-items: center; color: rgba(255,255,255,.7); font-size: .92rem; }
.dropdown-footer a { color: var(--white); }
.dropdown--small .dropdown-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--zinc-200); overflow: hidden; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px); padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(44px, 6vw, 80px);
}
.axes { position: absolute; inset: 0; pointer-events: none; }
.axes .axis-line { position: absolute; top: 44px; bottom: 0; width: 0; border-left: 1px dashed rgba(104,116,122,.35); }
.axes .axis-mark {
  position: absolute; top: 14px; width: 28px; height: 28px; margin-left: -14px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--primer); background: var(--paper);
}
.hero-copy { position: relative; align-self: center; }
.hero-copy h1 { font-size: clamp(1.9rem, 4.1vw, 3.6rem); }
.hero-lead { margin: 26px 0 0; max-width: 34em; font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin: 16px 0 0; font-size: .9rem; color: var(--primer); }
.hero-figure { position: relative; margin: 0; align-self: stretch; min-height: 420px; }
.hero-figure .photo { position: absolute; inset: 0 0 56px 0; overflow: hidden; background: var(--steel-800); }
.hero-figure .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .tblock { position: absolute; left: -32px; bottom: 0; width: min(420px, 92%); }

/* Title block (штамп) */
.tblock { background: var(--white); border: 1.5px solid var(--ink); border-collapse: collapse; font-size: .9rem; }
.tblock th, .tblock td { border: 1px solid var(--ink); padding: 9px 12px; text-align: left; vertical-align: top; }
.tblock th { width: 34%; font-weight: 500; color: var(--primer); font-size: .8rem; line-height: 1.35; }
.tblock td { font-weight: 620; line-height: 1.35; }
.tblock caption { caption-side: top; text-align: left; font-size: .8rem; color: var(--primer); padding: 0 0 6px; }

/* Facts strip */
.facts { background: var(--white); border-bottom: 1px solid var(--zinc-200); }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.facts-list li { padding: 26px 24px 26px 0; }
.facts-list li + li { padding-left: 24px; border-left: 1px solid var(--zinc-200); }
.facts-list strong { display: block; font-size: 1.12rem; font-weight: 680; line-height: 1.25; font-variation-settings: "SHRP" 30; }
.facts-list span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--white { background: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--steel-900); color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 36em; }
.section--dark .section-head p { color: rgba(255,255,255,.72); }
.section-head--single { grid-template-columns: minmax(0, 1fr); }
.link-more { font-weight: 600; }

/* ---------- Catalog (specification list) ---------- */
.spec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.spec-preview { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--steel-800); }
.spec-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.spec-preview img.is-swapping { opacity: .25; }
.spec-preview figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); padding: 8px 14px; font-size: .85rem; font-weight: 600; }
.spec-list { list-style: none; border-top: 1.5px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--zinc-300); position: relative; }
.spec-row h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; font-variation-settings: "SHRP" 35; }
.spec-row h3 a { text-decoration: none; }
.spec-row h3 a::after { content: ""; position: absolute; inset: 0; }
.spec-row p { margin: 0; color: var(--ink-2); max-width: 40em; }
.spec-row:hover h3 a, .spec-row.is-active h3 a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.spec-row.is-active { box-shadow: inset 4px 0 0 var(--signal); padding-left: 18px; transition: padding-left .15s ease; }
.spec-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; position: relative; z-index: 1; }
.spec-sub a { display: inline-block; padding: 4px 10px; border: 1px solid var(--zinc-300); border-radius: var(--radius); font-size: .88rem; text-decoration: none; background: var(--white); }
.spec-sub a:hover { border-color: var(--ink); }
.spec-thumb { display: none; }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; counter-reset: step; }
.step { position: relative; }
.step figure { margin: 0 0 18px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--steel-800); }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step-n { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 700; color: var(--signal-ink); font-size: .95rem; }
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--zinc-300); }
.section--dark .step-n { color: var(--signal); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.process--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; }
.process--compact .step p { font-size: .95rem; }

/* ---------- Project ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.project-photo { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--steel-800); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-info h2 { margin-bottom: 18px; }
.project-info > p { color: var(--ink-2); max-width: 32em; }
.project-info .tblock { width: 100%; max-width: 520px; margin-top: 26px; }

/* ---------- Works gallery ---------- */
.works { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.works figure { margin: 0; }
.works .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--steel-800); }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.works a:hover img, .works a:focus-visible img { transform: scale(1.03); }
.works figcaption { margin-top: 8px; font-size: .92rem; color: var(--ink-2); line-height: 1.35; }
.works a { text-decoration: none; display: block; }
.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(48px, 6vw, 80px) 0 22px; }
.works-head h3 { font-size: 1.4rem; }

/* ---------- Plant (dark) ---------- */
.plant { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plant-copy p { color: rgba(255,255,255,.78); }
.plant-copy h2 { margin-bottom: 22px; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.16); }
.principles li { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.principles li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
.principles strong { display: block; font-weight: 650; }
.principles span { font-size: .92rem; color: rgba(255,255,255,.66); }
.plant-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plant-photos figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--steel-700); }
.plant-photos figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.plant-photos img { width: 100%; height: 100%; object-fit: cover; }
.plant-address { margin-top: 8px; font-size: .95rem; color: rgba(255,255,255,.7); }

/* ---------- Request form ---------- */
.request-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.request-intro h2 { margin-bottom: 18px; }
.request-intro > p { color: var(--ink-2); }
.next-steps { list-style: none; counter-reset: ns; margin: 26px 0 30px; border-top: 1px solid var(--zinc-300); }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--zinc-300); }
.next-steps li::before { content: counter(ns); width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.contact-lines { list-style: none; display: grid; gap: 10px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 560; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--primer); }
.contact-lines small { font-weight: 400; color: var(--primer); }

.form { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 36px); position: relative; }
.form-title { font-size: 1.3rem; font-weight: 680; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .88rem; font-weight: 560; color: var(--ink-2); }
.field .req { color: var(--signal-ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--zinc-300); border-radius: var(--radius); background: var(--white);
  font-size: 1rem; line-height: 1.35; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,146,0,.35); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-error { font-size: .84rem; color: var(--err); min-height: 0; }
.dropzone {
  position: relative; display: grid; gap: 4px; justify-items: start; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: #f6f7f5; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone strong { font-weight: 620; display: inline-flex; align-items: center; gap: 8px; }
.dropzone strong svg { width: 20px; height: 20px; }
.dropzone span { font-size: .86rem; color: var(--primer); }
.file-list { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 8px 10px; background: var(--paper); border-radius: var(--radius); }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fsize { color: var(--primer); flex: none; font-variant-numeric: tabular-nums; }
.file-list button { flex: none; border: 0; background: none; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.file-list button:hover { background: var(--zinc-200); }
.file-total { font-size: .84rem; color: var(--primer); margin-top: 6px; }
.file-total.is-over { color: var(--err); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-actions .btn { min-width: 220px; }
.form-hint { font-size: .85rem; color: var(--primer); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; font-size: .95rem; border-left: 4px solid; display: none; }
.form-status.is-ok { display: block; border-color: var(--ok); background: #eaf5ef; }
.form-status.is-err { display: block; border-color: var(--err); background: #fbeceb; }
.progress { height: 4px; background: var(--zinc-200); margin-top: 12px; display: none; }
.progress.is-on { display: block; }
.progress span { display: block; height: 100%; width: 0; background: var(--signal); transition: width .2s ease; }
.form-done { text-align: left; padding: 8px 0; }
.form-done h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* ---------- Articles ---------- */
.posts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-card a { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; text-decoration: none; align-items: start; }
.post-card .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--steel-800); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card time { display: block; font-size: .85rem; color: var(--primer); margin-bottom: 6px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--zinc-200); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(1.85rem, 4vw, 3.4rem); margin-top: 22px; }
.page-hero .lead { margin: 20px 0 0; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--ink-2); max-width: 36em; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero-figure { margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--steel-800); }
.page-hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-figure .corner { position: absolute; width: 22px; height: 22px; border-color: var(--ink); border-style: solid; }
.page-hero-figure .c1 { top: -10px; left: -10px; border-width: 1.5px 0 0 1.5px; }
.page-hero-figure .c2 { bottom: -10px; right: -10px; border-width: 0 1.5px 1.5px 0; }
.page-hero--text .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--text h1 { max-width: 20ch; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--primer); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--zinc-300); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Cards (types / children) ---------- */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--zinc-200); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-800); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.card-body h3 { font-size: 1.18rem; }
.card-body p { margin: 0; color: var(--ink-2); font-size: .98rem; }
a.card { text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--ink); }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); }
.cards--text .card { border-top: 3px solid var(--ink); }
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.schemes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.scheme figure { margin: 0; height: 100%; background: var(--white); border-top: 3px solid var(--ink); padding: 22px 20px 24px; }
.scheme svg { display: block; width: 100%; height: auto; color: var(--ink); margin-bottom: 18px; }
.scheme .chord { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.scheme .web { stroke: var(--signal); stroke-width: 1.6; }
.scheme .sup { fill: none; stroke: currentColor; stroke-width: 1.6; }
.scheme figcaption strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.scheme figcaption span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.cards--children .card-body ul { list-style: none; display: grid; gap: 4px; margin-top: 4px; }
.cards--children .card-body li { font-size: .92rem; color: var(--ink-2); }
.cards--children .card-body li::before { content: ""; display: inline-block; width: 10px; height: 1px; background: var(--signal); vertical-align: middle; margin-right: 8px; }

.child-links { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.child-links a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--zinc-300); text-decoration: none; font-weight: 620; font-size: 1.08rem; }
.child-links li + li a { padding-left: 18px; }
.child-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.child-links span { font-weight: 400; color: var(--primer); font-size: .9rem; }

/* Facts (inner) */
.fact-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.fact-grid li { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--zinc-300); }
.fact-grid li + li { padding-left: 22px; border-left: 1px solid var(--zinc-300); }
.fact-grid strong { display: block; font-weight: 680; font-size: 1.08rem; margin-bottom: 6px; font-variation-settings: "SHRP" 30; }
.fact-grid span { color: var(--ink-2); font-size: .96rem; }

/* Areas list */
.areas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.areas li { padding: 16px 0; border-bottom: 1px solid var(--zinc-300); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; }
.areas strong { font-weight: 640; }
.areas span { color: var(--ink-2); }

/* Prose */
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(28px, 5vw, 80px); align-items: start; }
.prose { max-width: 44em; }
.prose h2 { margin: 0 0 20px; }
.prose h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--signal-ink); }
.prose strong { color: var(--ink); font-weight: 620; }
.prose a { color: var(--ink); }
.aside-box { position: sticky; top: calc(var(--header-h) + 24px); border: 1.5px solid var(--ink); background: var(--white); padding: 22px; }
.aside-box h3 { font-size: 1.12rem; margin-bottom: 10px; }
.aside-box p { font-size: .95rem; color: var(--ink-2); }
.aside-box .btn { width: 100%; margin-top: 4px; }
.aside-box .contact-lines { margin-top: 16px; font-size: .95rem; }

/* Article (blog) */
.article-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.article-head h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin-top: 20px; max-width: 22ch; }
.article-meta { margin-top: 16px; color: var(--primer); font-size: .92rem; }
.article-cover { margin: 0 0 clamp(28px, 4vw, 48px); aspect-ratio: 21 / 9; overflow: hidden; background: var(--steel-800); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body.prose { font-size: 1.08rem; }
.article-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 44px 0 14px; }
.article-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.article-cta { margin-top: 40px; padding: 24px; background: var(--paper-2); border-left: 4px solid var(--signal); }
.article-cta p { margin: 0 0 14px; color: var(--ink); font-weight: 560; }

/* Legal */
.legal { max-width: 52em; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; }
.legal ol, .legal ul { padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 1em; }
.legal .meta { color: var(--primer); font-size: .92rem; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.contact-cards li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--zinc-300); }
.contact-cards li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--zinc-300); }
.contact-cards .k { display: block; font-size: .85rem; color: var(--primer); margin-bottom: 6px; }
.contact-cards .v { font-weight: 620; font-size: 1.08rem; line-height: 1.35; }
.contact-cards .v a { text-decoration: none; }
.contact-cards .v a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.contact-cards .s { display: block; font-size: .92rem; color: var(--ink-2); margin-top: 4px; }
.map { margin: 0; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--zinc-300); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.entry-photo { margin: 24px 0 0; }
.entry-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.entry-photo figcaption { margin-top: 8px; font-size: .92rem; color: var(--ink-2); }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--zinc-300); }
.person .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--ink-2); display: block; }
.requisites { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.requisites dt { color: var(--primer); font-size: .85rem; }
.requisites dd { margin: 0 0 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); color: rgba(255,255,255,.78); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin: 16px 0 0; max-width: 26em; }
.footer-col h2 { font-size: .95rem; font-weight: 640; color: var(--white); margin-bottom: 14px; font-variation-settings: "SHRP" 0; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); }
.footer-contacts li { line-height: 1.45; }
.footer-contacts .big { font-size: 1.1rem; font-weight: 640; color: var(--white); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.messengers { display: flex; gap: 10px; margin-top: 14px; }
.messengers a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); }
.messengers a:hover { border-color: var(--signal); background: rgba(255,146,0,.12); }
.messengers svg { width: 20px; height: 20px; }

/* ---------- Modal ---------- */
dialog.modal { width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog.modal::backdrop { background: rgba(20, 25, 29, .72); }
.modal .form { max-height: calc(100vh - 24px); overflow: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; z-index: 2; }
.modal-close:hover { background: var(--paper-2); }
.modal-close svg { width: 22px; height: 22px; }
.modal .form-title { padding-right: 40px; }
.modal-sub { margin: -8px 0 18px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Floating contacts ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.fab-toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--signal); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.fab-toggle svg { width: 26px; height: 26px; }
.fab-toggle:hover { background: var(--signal-600); }
.fab-list { list-style: none; display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab.open .fab-list { display: flex; }
.fab-list a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--white); color: var(--ink); border: 1px solid var(--zinc-300); border-radius: 999px; text-decoration: none; font-weight: 560; font-size: .95rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.fab-list a:hover { border-color: var(--ink); }
.fab-list svg { width: 20px; height: 20px; }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 85; max-width: 520px; background: var(--steel-900); color: rgba(255,255,255,.85); padding: 16px 18px; font-size: .88rem; line-height: 1.45; display: none; gap: 14px; align-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.cookie.show { display: flex; }
.cookie a { color: var(--white); }
.cookie .btn { min-height: 40px; padding: 8px 16px; flex: none; font-size: .9rem; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 10vw, 140px) 0; }
.notfound h1 { max-width: 16ch; }
.notfound p { margin-top: 18px; color: var(--ink-2); max-width: 32em; }
.notfound ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .axes .axis-line { animation: axis-draw 1.1s cubic-bezier(.2,.7,.2,1) both; transform-origin: top; }
  .axes .axis-mark { animation: axis-mark .5s ease both; }
  .axes .axis-line:nth-of-type(2), .axes .axis-mark:nth-of-type(2) { animation-delay: .08s; }
  .axes .axis-line:nth-of-type(3), .axes .axis-mark:nth-of-type(3) { animation-delay: .16s; }
  .axes .axis-line:nth-of-type(4), .axes .axis-mark:nth-of-type(4) { animation-delay: .24s; }
  .hero-figure .tblock { animation: tblock-in .6s .35s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes axis-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes axis-mark { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tblock-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .nav-link { padding: 0 9px; font-size: .92rem; }
  .process--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .nav, .header-contacts .header-phone, .header-cta { display: none; }
  .menu-toggle, .header-call { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: none; color: var(--white); cursor: pointer; }
  .menu-toggle svg, .header-call svg { width: 22px; height: 22px; }
  .header-contacts { gap: 10px; }
  .site-header.menu-open .nav {
    display: block; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0; overflow: auto;
    background: var(--steel-900); padding: 8px var(--gutter) 40px;
  }
  .site-header.menu-open .nav > ul { flex-direction: column; gap: 0; }
  .site-header.menu-open .nav-item { flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header.menu-open .nav-link { min-height: 56px; padding: 0; justify-content: space-between; font-size: 1.1rem; width: 100%; }
  .site-header.menu-open .nav-link[aria-current="page"] { box-shadow: none; color: var(--signal); }
  .site-header.menu-open .dropdown { position: static; padding: 0 0 18px; background: none; border: 0; }
  .site-header.menu-open .dropdown .container { padding: 0; }
  .site-header.menu-open .dropdown-grid, .site-header.menu-open .dropdown--small .dropdown-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-header.menu-open .dropdown-grid p { display: none; }
  .site-header.menu-open .dropdown-footer { display: none; }
  .mobile-extra { display: grid !important; gap: 12px; margin-top: 24px; }
  .hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { min-height: 0; aspect-ratio: 4 / 3.2; }
  .hero-figure .tblock { left: 0; }
  .axes .axis-line:nth-of-type(n+3), .axes .axis-mark:nth-of-type(n+3) { display: none; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec-preview { display: none; }
  .spec-row { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 18px; }
  .spec-row .spec-body { grid-column: 1; }
  .spec-thumb { display: block; grid-column: 2; grid-row: 1; width: 112px; height: 112px; object-fit: cover; background: var(--steel-800); }
  .spec-row.is-active { box-shadow: none; padding-left: 0; }
  .project, .plant, .request-grid, .contact-grid, .prose-wrap { grid-template-columns: minmax(0, 1fr); }
  .aside-box { position: static; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list, .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li:nth-child(3), .fact-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--zinc-200); }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards, .cards--four, .schemes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .child-links { grid-template-columns: minmax(0, 1fr); }
  .child-links li + li a { padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
}
.mobile-extra { display: none; }
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .axes { display: none; }
  .process:not(.process--compact) .step { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .process:not(.process--compact) .step figure { grid-row: 1 / span 3; margin: 4px 0 0; aspect-ratio: 1 / 1; }
  .process:not(.process--compact) .step-n { margin-bottom: 4px; }
  .hero-actions .btn { width: 100%; }
  .hero-figure .tblock { position: relative; width: 100%; margin-top: -1px; }
  .hero-figure { aspect-ratio: auto; }
  .hero-figure .photo { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .process, .process--compact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards, .cards--four, .schemes { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .post-card a { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li:nth-child(even) { padding-left: 0; border-left: 0; }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .areas li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-cards li:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-direction: column; align-items: stretch; }
  .fab { right: 12px; bottom: 12px; }
  .spec-row { grid-template-columns: minmax(0, 1fr) 88px; }
  .spec-thumb { width: 88px; height: 88px; }
  .person { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .facts-list, .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-list li + li, .fact-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--zinc-200); }
  .fact-grid li + li { border-top: 0; }
}

@media print {
  .site-header, .fab, .cookie, .request, dialog { display: none !important; }
  body { background: #fff; }
}
