/* ==========================================================================
   Сайт завода стальных зданий. Лист рабочих чертежей, на котором здание
   собирается само: оцинковка, тушь, жёлтый крана.
   ========================================================================== */

/* ---------- шрифты (Sofia Sans, OFL, файлы на сайте) ---------- */
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("../fonts/sofia-sans-extra-condensed-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("../fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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 {
  --zinc: #E6E9EA;        /* оцинковка: фон */
  --zinc-2: #DADFE1;
  --sheet: #F4F5F5;       /* лист: поля, подложки */
  --ink: #121C25;         /* тушь: текст и линии */
  --steel: #4F5C65;       /* сталь: второстепенный текст */
  --rule: #C3CACE;
  --rule-strong: #959FA6;
  --signal: #FFC21A;      /* кран: действия */
  --signal-deep: #E2A200;
  --panel: #8EA3B3;       /* сэндвич-панель */
  --night: #16232D;       /* синька: тёмный блок */
  --night-2: #1D2D39;
  --night-rule: #30465A;
  --night-text: #C9D3D9;
  --primer: #A3402B;      /* грунт: ошибки, нагрузки */

  --font-text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Sofia Sans", "Arial Narrow", system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 3px;
  --header-h: 68px;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--zinc);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  max-width: 16ch;
  text-wrap: balance;
}
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-lead { font-size: 1.22rem; line-height: 1.5; max-width: 58ch; margin: 0; }
.lead { font-size: clamp(1.18rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 52ch; }
.note { font-size: 0.95rem; line-height: 1.5; color: var(--steel); max-width: 76ch; margin-top: 16px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 48px; }
}

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; line-height: 1; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--signal); border-color: var(--signal); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--signal); }
.btn-ghost:hover { background: var(--ink); color: var(--zinc); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-strong {
  font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; line-height: 1.1;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-strong:hover { text-decoration-color: var(--signal-deep); }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(230, 233, 234, 0.98);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(230, 233, 234, 0.93); backdrop-filter: blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo { width: 40px; height: 32px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 850; font-size: 1.75rem; letter-spacing: 0.01em; }
.brand-desc { font-size: 0.8rem; color: var(--steel); margin-top: 3px; }
.site-nav ul { display: flex; gap: clamp(14px, 1.8vw, 28px); list-style: none; }
.site-nav a { display: block; padding: 8px 0; text-decoration: none; font-weight: 560; font-size: 1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--signal-deep); }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
  font-weight: 650;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: "";
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--zinc); border-bottom: 2px solid var(--ink);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 600px);
  display: grid; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-model { position: absolute; inset: 0 0 0 30%; }
.hero-model::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--zinc) 0, rgba(230, 233, 234, 0) 22%);
}
.hero-model .frame-canvas { width: 100%; height: 100%; }
.hero-inner { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 56px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-title {
  font-family: var(--font-display); font-weight: 850;
  font-size: clamp(3.6rem, 8.4vw, 8.8rem); line-height: 0.85; letter-spacing: -0.012em;
  max-width: 7ch;
}
.hero-lead { margin: 24px 0 0; max-width: 36ch; font-size: clamp(1.15rem, 1.5vw, 1.33rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 28px; }
.hero-caption { margin: 28px 0 0; font-size: 0.92rem; color: var(--steel); }

@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; }
  .hero-model { position: relative; inset: auto; height: clamp(250px, 58vw, 520px); }
  .hero-model::after { background: linear-gradient(0deg, var(--zinc) 0, rgba(230, 233, 234, 0) 18%); }
  .hero-inner { padding-block: 8px 48px; }
  .hero-title { font-size: clamp(3.3rem, 15.5vw, 6rem); max-width: 8ch; }
  .hero-caption { margin-top: 28px; }
}

/* ---------- модель (цвета линий для движка) ---------- */
.frame-canvas {
  width: 100%; height: 100%;
  --frame-line: #121C25;
  --frame-accent: #F0A800;
  --frame-panel: #8EA3B3;
  --frame-glass: #3C5466;
  --frame-text: #4F5C65;
  --frame-crane: #E8A300;
}
.frame-canvas[tabindex] { cursor: grab; }
.frame-canvas.is-dragging { cursor: grabbing; }

/* ---------- что строим ---------- */
.types-row {
  list-style: none;
  display: grid; grid-template-columns: var(--cols, repeat(5, 1fr));
  border-top: 2px solid var(--ink);
}
.type-card { display: grid; grid-template-rows: auto auto 1fr auto; padding-bottom: 8px; border-right: 1px solid var(--rule); }
.type-card:last-child { border-right: 0; }
.type-link { display: grid; text-decoration: none; color: inherit; }
.type-figure { display: block; padding-top: 28px; }
.type-name {
  display: block; padding: 18px 14px 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.1vw, 2.15rem); line-height: 1;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: transparent;
  transition: text-decoration-color .15s ease;
}
.type-link:hover .type-name { text-decoration-color: var(--signal-deep); }
.type-short { padding: 10px 14px 0; margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.type-sizes { padding: 6px 14px 0; margin: 0; color: var(--steel); font-size: 0.95rem; line-height: 1.4; }
.type-try { justify-self: start; margin: 14px 14px 0; font-size: 0.95rem; font-weight: 600; }

/* ---------- что делаем: под ключ главное, дальше бюро, по чертежам, обработка ---------- */
.dirs { padding-block: clamp(48px, 6vw, 88px); }
.dirs-title { margin-bottom: clamp(24px, 3vw, 36px); }
.dirs-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dir {
  position: relative; display: grid; align-content: start; gap: 10px;
  padding: 24px 26px; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background-color .15s ease;
}
.dir:hover { background: var(--sheet); }
.dir-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1; }
.dir-link { text-decoration: none; color: inherit; }
.dir-link::after { content: ""; position: absolute; inset: 0; } /* вся карточка - ссылка */
.dir-text { margin: 0; max-width: 70ch; }
.dir-main {
  grid-column: 1 / -1; gap: 16px; padding: clamp(28px, 4vw, 48px);
  background: var(--night); border-color: var(--night); color: var(--night-text);
}
.dir-main:hover { background: var(--night-2); }
.dir-main .dir-name { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.dir-main .dir-text { font-size: clamp(1.1rem, 1.4vw, 1.25rem); }
.dir-chain { list-style: none; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 0; color: #FFFFFF; font-weight: 700; }
.dir-chain li:not(:last-child)::after { content: "→"; margin-inline: 12px; color: var(--signal); }

@media (max-width: 900px) {
  .dirs-list { grid-template-columns: 1fr; }
  .types-row { grid-template-columns: 1fr; border-top: 0; }
  .type-card { border-right: 0; border-top: 1px solid var(--rule); padding-bottom: 28px; }
  .type-figure .section-svg { width: var(--vbp, 100%); }
  .type-name, .type-short, .type-sizes { padding-inline: 0; }
  .type-try { margin-inline: 0; }
}

/* чертежи разрезов */
.section-svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-text); }
.section-svg text, .snow-svg text { font-size: 1.22px; fill: var(--steel); font-weight: 600; }
.section-svg .member, .snow-svg .member { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.section-svg .member.thin { stroke-width: 1.4; }
.section-svg .skin, .snow-svg .skin { fill: none; stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.section-svg .glass { fill: var(--panel); }
.section-svg .purlin { fill: var(--ink); }
.section-svg .ground, .snow-svg .ground { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.section-svg .hatch, .snow-svg .hatch { fill: none; stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.section-svg .found { fill: var(--zinc-2); stroke: var(--steel); stroke-width: 1; vector-effect: non-scaling-stroke; }
.section-svg .crane { fill: var(--signal); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.section-svg .rope, .section-svg .hook { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.section-svg .axis { stroke: var(--steel); stroke-width: 0.09; stroke-dasharray: 0.55 0.16 0.1 0.16; }
.section-svg .bubble { fill: var(--zinc); stroke: var(--steel); stroke-width: 1; vector-effect: non-scaling-stroke; }
.section-svg .bubble-t { fill: var(--ink); font-weight: 700; }
.dim line, .level path, .level line { fill: none; stroke: var(--steel); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dim .tick { stroke-width: 1.8; }
.level .lead { stroke-dasharray: 0.25 0.3; }

/* ---------- этапы (тёмный блок) ---------- */
.story { background: var(--night); color: var(--night-text); }
.section.story, .section.story + .section { border-top: 0; }
.story h2, .story h3, .dir-main h3 { color: #FFFFFF; }
.story .section-lead { color: var(--night-text); }
.story :focus-visible, .dir-main :focus-visible { outline-color: var(--signal); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.story-stage { position: relative; }
.story-sticky {
  position: sticky; top: calc(var(--header-h) + 2vh);
  height: calc(100svh - var(--header-h) - 4vh); max-height: 860px;
}
.story-sticky .frame-canvas {
  height: calc(100% - 40px);
  --frame-line: #E8ECEE;
  --frame-accent: #FFC21A;
  --frame-panel: #9DB2C2;
  --frame-glass: #0D161D;
  --frame-text: #A9BAC6;
  --frame-crane: #FFC21A;
}
.story-status { margin: 0; padding-top: 10px; border-top: 1px solid var(--night-rule); font-weight: 600; color: #FFFFFF; font-size: 1rem; }
.steps { list-style: none; margin-top: 48px; }
.step {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); align-content: start;
  min-height: 64vh; padding: 28px 0 40px;
  border-top: 1px solid var(--night-rule);
  opacity: 0.42; transition: opacity .35s ease;
}
.step.is-active, .no-js .step { opacity: 1; }
.step-num { grid-row: 1 / span 3; font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; line-height: 0.9; color: var(--signal); }
.step-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; }
.step-time { margin: 10px 0 14px; color: var(--signal); font-weight: 650; font-size: 1.05rem; }
.step-text { margin: 0; max-width: 46ch; }
.totals { padding-top: 36px; border-top: 1px solid var(--night-rule); }
.totals-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; }
.totals-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0; background: var(--night-rule); border: 1px solid var(--night-rule); }
.totals-list > div { background: var(--night); padding: 14px 16px; }
.totals-list dt { font-size: 0.92rem; color: var(--night-text); }
.totals-list dd { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; color: #FFFFFF; }
.totals-note { margin-bottom: 10px; }
.story .dash-list li::before { background: var(--signal); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage {
    order: -1; position: sticky; top: var(--header-h); z-index: 2;
    height: 46vh; min-height: 260px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    background: var(--night); border-bottom: 1px solid var(--night-rule);
  }
  .story-sticky { position: static; height: 100%; max-height: none; }
  .story-sticky .frame-canvas { height: calc(100% - 38px); }
  .story-text { padding-top: 36px; }
  .step { min-height: 52vh; }
  .totals-list { grid-template-columns: 1fr; }
}

/* ---------- цена ---------- */
.ladder { border-top: 2px solid var(--ink); }
.ladder-head, .ladder-row {
  display: grid; grid-template-columns: minmax(150px, 2.1fr) minmax(240px, 5fr) minmax(220px, 4fr);
  gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.ladder-head { padding: 10px 0; font-size: 0.9rem; color: var(--steel); }
.ladder-row { transition: background-color .15s ease; }
.ladder-row:hover { background: var(--sheet); }
.ladder-name { font-weight: 650; line-height: 1.3; }
.ladder-bar { display: grid; grid-template-columns: minmax(0, 1fr) 12.5ch; align-items: center; gap: 14px; }
.ladder-track {
  position: relative; height: 12px;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 19.2308% 100%;
}
.ladder-range { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 4px; }
.ladder-range.is-open { border-radius: 4px 0 0 4px; background: linear-gradient(90deg, var(--ink) 62%, rgba(18, 28, 37, 0)); }
.ladder-row:hover .ladder-range { background: var(--signal-deep); }
.ladder-row:hover .ladder-range.is-open { background: linear-gradient(90deg, var(--signal-deep) 62%, rgba(226, 162, 0, 0)); }
.ladder-val { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; font-size: 1rem; }
.ladder-what { color: var(--steel); font-size: 0.98rem; line-height: 1.4; }
.ladder-axis-row { border-bottom: 0; padding-top: 6px; }
.ladder-axis-row:hover { background: none; }
.ladder-axis { position: relative; height: 18px; font-size: 0.8rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.ladder-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.ladder-axis span:first-child { transform: none; }
.ladder-note { margin-top: 8px; }

.price-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); }
.price-cols h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.4vw, 2.3rem); line-height: 1; margin-bottom: 18px; }
.excluded h3 + ul + h3 { margin-top: 36px; }

@media (max-width: 900px) {
  .ladder-head { display: none; }
  .ladder-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .ladder-axis-row { display: none; }
  .price-cols { grid-template-columns: 1fr; }
}

/* ---------- таблицы и списки ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-size: 0.9rem; font-weight: 600; color: var(--steel); border-bottom: 2px solid var(--ink); }
.table tbody th { font-weight: 650; }
.table .num { text-align: left; }

.box-list, .dash-list { list-style: none; display: grid; gap: 10px; }
.box-list li, .dash-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.box-list li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 1px;
}
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--ink); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- конфигуратор ---------- */
.config-grid {
  display: grid;
  grid-template-columns: minmax(270px, 4fr) minmax(0, 8fr);
  grid-template-areas: "controls stage" "controls block";
  gap: 22px clamp(28px, 4vw, 56px);
  align-items: start;
}
.config-controls { grid-area: controls; display: grid; gap: 22px; }
.cfg-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.cfg-group legend { padding: 0; margin-bottom: 10px; font-weight: 650; }
.cfg-group.is-disabled { opacity: 0.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 12px; min-height: 40px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--sheet); font-size: 0.98rem; line-height: 1.3;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--zinc); }
.chip input:focus-visible + span { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: 0.5; }
.cfg-range { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.cfg-range label { font-weight: 650; }
.cfg-range output { font-family: var(--font-display); font-weight: 750; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cfg-range input { grid-column: 1 / -1; }
.cfg-switches { display: grid; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 560; }
.switch input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) 0 var(--fill), var(--rule-strong) var(--fill) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  background: var(--signal); border: 2px solid var(--ink); border-radius: 2px;
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rule-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--signal); border: 2px solid var(--ink); border-radius: 2px; }
input[type="range"]:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 4px; }

.config-stage {
  grid-area: stage; position: relative;
  aspect-ratio: 16 / 9; min-height: 300px;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  outline: 2px solid var(--ink); outline-offset: -10px;
}
.config-stage .frame-canvas { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.config-stage .frame-canvas:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: -3px; }
.stage-hint { position: absolute; left: 22px; bottom: 16px; margin: 0; font-size: 0.85rem; color: var(--steel); pointer-events: none; }

.titleblock { grid-area: block; }
.tb {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense;
  gap: 1px; background: var(--ink); border: 2px solid var(--ink);
}
.tb-cell { background: var(--zinc); padding: 8px 12px 10px; min-width: 0; }
.tb-dims { grid-column: span 2; }
.tb-key { grid-column: span 3; }
.tb dt { font-size: 0.8rem; line-height: 1.25; color: var(--steel); }
.tb dd {
  margin-top: 4px; font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.05; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tb-key { background: #FFF6D6; }
.tb-key dd { font-size: clamp(1.5rem, 2.2vw, 2.05rem); }
.formula { margin-top: 14px; border-bottom: 1px solid var(--rule); }
.formula summary { cursor: pointer; padding: 10px 0; font-weight: 650; list-style: none; }
.formula summary::-webkit-details-marker { display: none; }
.formula summary::after { content: "+"; margin-left: 10px; font-weight: 700; }
.formula[open] summary::after { content: "\2212"; }
.formula p { font-size: 0.98rem; color: var(--steel); max-width: 80ch; }
.config-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.config-msg { margin: 0; font-size: 0.95rem; color: var(--steel); }

@media (max-width: 960px) {
  .config-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "controls" "block"; }
  .config-stage { aspect-ratio: 4 / 3; min-height: 240px; min-width: 0; }
}
@media (max-width: 560px) {
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-dims, .tb-key { grid-column: 1 / -1; }
  .config-actions .btn { width: 100%; }
}

/* ---------- технологии ---------- */
.tech-table { min-width: 760px; }
.tech-table thead th { vertical-align: bottom; color: var(--ink); }
.th-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.th-note { display: block; margin-top: 6px; font-size: 0.88rem; font-weight: 400; color: var(--steel); line-height: 1.35; }
.tech-table tbody th { width: 15%; color: var(--steel); font-weight: 600; }
.tech-table td { width: 28.3%; }
.tech-cards { display: none; }
.tech-card { padding: 22px 0; border-top: 2px solid var(--ink); }
.tech-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.tech-card dl { margin-top: 12px; display: grid; gap: 10px; }
.tech-card dt { font-size: 0.88rem; color: var(--steel); }
@media (max-width: 760px) {
  .tech-wide { display: none; }
  .tech-cards { display: block; }
}

/* ---------- снег ---------- */
.snow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.snow-text .section-lead { margin-top: 20px; }
.snow-points { display: grid; gap: 18px; margin-top: 32px; }
.snow-points > div { padding-top: 14px; border-top: 1px solid var(--rule); }
.snow-points dt { font-weight: 700; }
.snow-points dd { margin-top: 4px; }
.snow-ask { margin-top: 28px; padding-left: 16px; border-left: 4px solid var(--signal); font-weight: 600; max-width: 52ch; }
.snow-figure { margin: 0; }
.snow-svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-text); }
.snow-svg text { font-size: 0.95px; }
.snow-svg .load { fill: rgba(163, 64, 43, 0.12); stroke: var(--primer); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.snow-svg .load.drift { fill: rgba(163, 64, 43, 0.26); }
.snow-svg .arrow { fill: none; stroke: var(--primer); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.snow-svg .note { fill: var(--steel); }
.snow-svg .note.strong { fill: var(--primer); font-weight: 750; }
.snow-figure figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--steel); max-width: 60ch; }
@media (max-width: 900px) { .snow-grid { grid-template-columns: 1fr; } }

/* ---------- проверка подрядчика ---------- */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.check-item { position: relative; padding: 22px 0 22px 36px; border-top: 1px solid var(--rule); }
.check-item::before {
  content: ""; position: absolute; left: 0; top: 27px;
  width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 2px;
}
.check-item h3 { font-size: 1.25rem; }
.check-item p { margin: 8px 0 0; max-width: 56ch; }
.check-item h3 + p { color: var(--ink); }
.accept-list .check-item p { margin-top: 0; }
.check-more { margin-top: 32px; }
@media (max-width: 800px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- производство ---------- */
.plant-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.plant-ops .section-lead { margin-top: 20px; }
.ops { list-style: none; margin-top: 36px; border-top: 2px solid var(--ink); }
.ops li { display: grid; grid-template-columns: 48px minmax(0, 15ch) minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.op-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--steel); }
.op-name { font-weight: 650; }
.op-text { color: var(--steel); }
.plant-facts h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.4vw, 2.3rem); line-height: 1; margin-bottom: 18px; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts .is-slot dd {
  color: var(--steel); font-size: 0.95rem;
  border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); padding: 2px 8px;
}
.slot-note { margin-top: 14px; font-size: 0.9rem; color: var(--steel); }
@media (max-width: 900px) {
  .plant-grid { grid-template-columns: 1fr; }
  .ops li { grid-template-columns: 40px minmax(0, 1fr); }
  .op-text { grid-column: 2; }
}

/* ---------- объекты ---------- */
.projects-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.project h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin: 16px 0 12px; }
.project-photo { width: 100%; height: auto; aspect-ratio: 40 / 26; object-fit: cover; }
.project-facts { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.project-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }
.project-facts dt { color: var(--steel); }
.project.is-slot { color: var(--steel); }
.project.is-slot h3 { color: var(--steel); }
.slot-photo { display: block; aspect-ratio: 40 / 26; border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); background: var(--sheet); }
@media (max-width: 900px) { .projects-list { grid-template-columns: 1fr; } }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: baseline;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.18rem; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.8rem; line-height: 0.7; text-align: right; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--steel); }
.faq-item p { margin: 0 0 20px; max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- контакты и форма ---------- */
.contacts { background: var(--zinc-2); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); }
.contacts-main .section-lead { margin-top: 20px; }
.kp-offer { margin: 18px 0 0; padding-left: 16px; border-left: 4px solid var(--signal); font-weight: 600; max-width: 56ch; }
.lead-form { display: grid; gap: 18px; margin-top: 32px; max-width: 760px; }
.lf-kind { border: 0; padding: 0; margin: 0; min-width: 0; }
.lf-kind legend { padding: 0; margin-bottom: 10px; font-weight: 650; }
.lf-field { display: grid; gap: 6px; align-content: start; }
.lf-field label { font-weight: 600; }
.lf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--sheet); border: 1.5px solid var(--rule-strong); border-radius: var(--radius);
}
.lead-form textarea { resize: vertical; min-height: 64px; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(18, 28, 37, 0.18); }
.lead-form input[type="file"] { padding: 6px 0; font-size: 0.98rem; }
.lead-form input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 10px 16px; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--sheet); color: var(--ink);
  font: inherit; font-weight: 600;
}
.lead-form input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--zinc); }
.lead-form [aria-invalid="true"] { border-color: var(--primer) !important; }
.lf-hint { margin: 0; font-size: 0.9rem; color: var(--steel); }
.lf-hint.is-error, .lf-error { color: var(--primer); font-weight: 600; }
.lf-error { margin: 0; font-size: 0.9rem; min-height: 0; }
.lf-error:empty { display: none; }
.lf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lf-consent label { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.lf-consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.lf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.lf-status { margin: 0; font-weight: 600; }
.lf-status.is-error { color: var(--primer); }
.lf-done { padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sheet); max-width: 760px; margin-top: 32px; }
.lf-done h3 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.contacts-info { align-self: start; padding-top: 6px; }
.contact-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-list > div { padding: 12px 0; border-bottom: 1px solid var(--rule-strong); }
.contact-list dt { font-size: 0.88rem; color: var(--steel); }
.contact-list dd { margin-top: 2px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .lf-cols { grid-template-columns: 1fr; }
}

/* ---------- страницы типов и металлоконструкций ---------- */
.page-hero { border-bottom: 1px solid var(--rule); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 850;
  font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: 0.9; letter-spacing: -0.01em;
  max-width: 13ch; text-wrap: balance;
}
.page-hero .lead { margin-top: 24px; }
.page-hero-sizes { font-weight: 650; }
.page-hero-model { height: clamp(280px, 38vw, 520px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 0.95rem; color: var(--steel); }
.crumbs a { color: var(--steel); }
.type-body-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.points { list-style: none; margin-top: 32px; border-top: 2px solid var(--ink); }
.points li { padding: 18px 0 18px 30px; border-bottom: 1px solid var(--rule); position: relative; max-width: 64ch; }
.points li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 14px; height: 2px; background: var(--ink); }
.type-section { margin: 0 0 24px; }
.type-section figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--steel); }
.next-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.next-list a { display: grid; gap: 6px; height: 100%; padding: 18px 18px 22px 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
.next-list a:hover .next-name { text-decoration-color: var(--signal-deep); }
.next-name { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: transparent; }
.next-text { color: var(--steel); }
.other-title { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(2rem, 3.4vw, 3rem); }
.other-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-weight: 600; font-size: 1.15rem; }
.metal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.metal-grid h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); margin-bottom: 26px; }
.metal-grid .section-lead { margin-bottom: 24px; }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 2px solid var(--ink); }
.parts > div { background: var(--zinc); padding: 12px 14px; }
.parts dt { font-size: 0.9rem; color: var(--steel); }
.parts dd { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1.05; }
.metal-price-note { align-self: end; }
.big-note { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; max-width: 26ch; }
.coat-table { min-width: 560px; }
@media (max-width: 640px) { .coat-table { min-width: 0; } }
@media (max-width: 900px) {
  .page-hero-grid, .type-body-grid, .metal-grid { grid-template-columns: 1fr; }
  .page-hero-model { order: -1; height: clamp(240px, 64vw, 420px); }
  .next-list { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr; }
}

/* ---------- текстовые страницы ---------- */
.text-page { min-height: 50vh; }
.text-wrap { max-width: calc(68ch + var(--gutter) * 2); }
.text-page h1 { font-family: var(--font-display); font-weight: 850; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.92; margin-bottom: 24px; }
.text-page h2 { font-family: var(--font-text); font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin: 32px 0 8px; max-width: none; }
.text-page .lead { margin-bottom: 20px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: 56px 28px; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 2fr)); gap: 28px; }
.brand-footer { color: #FFFFFF; }
.brand-footer .brand-desc { color: var(--night-text); }
.footer-h { font-family: var(--font-text); font-size: 0.88rem; font-weight: 600; color: var(--night-text); margin-bottom: 12px; max-width: none; line-height: 1.3; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contacts p { margin: 0 0 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--night-rule); font-size: 0.9rem; }
.footer-legal p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .step { opacity: 1; }
}

/* ---------- Айди Металл: логотип, проектное бюро, обзор зданий, страницы размеров ---------- */
.brand-logo { display: block; width: auto; height: 44px; }
.brand .brand-desc { max-width: 15ch; font-size: 0.8rem; line-height: 1.2; color: var(--steel); margin: 0; }
.brand-footer .brand-logo { height: 52px; }
.footer-desc { margin: 12px 0 0; color: var(--night-text); max-width: 26ch; }
@media (max-width: 1240px) { .site-header .brand-desc { display: none; } }
@media (max-width: 1060px) { .site-header .brand-desc { display: block; } }
@media (max-width: 480px) { .site-header .brand-desc { display: none; } .brand-logo { height: 38px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kb { background: var(--sheet); }
.kb-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.kb-head .section-lead { margin: 20px 0 24px; }
.kb-list { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.kb-list li { display: grid; grid-template-columns: minmax(0, 11ch) minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.kb-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.kb-text { color: var(--ink); }
.kb-page .kb-list { max-width: 980px; }
@media (max-width: 900px) { .kb-grid { grid-template-columns: 1fr; } .kb-list li { grid-template-columns: 1fr; } }

.page-hero-plain .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(8px, 2vw, 24px); }
.page-hero-plain .lead { margin-top: 20px; }
.type-lf { list-style: none; display: grid; gap: 4px; padding: 10px 14px 0; font-size: 0.95rem; }
@media (max-width: 900px) { .type-lf { padding-inline: 0; } }

.tb-static { margin-bottom: 32px; }
.lf-levels .table { min-width: 560px; }
.lf-caption { caption-side: top; text-align: left; padding-bottom: 10px; color: var(--steel); font-size: 0.95rem; }
@media (max-width: 640px) { .lf-levels .table { min-width: 0; } }

.projects-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-photo { border-radius: var(--radius); }
.project > p { margin-top: 12px; max-width: 60ch; }
@media (max-width: 900px) { .projects-list { grid-template-columns: 1fr; } }

/* главный заголовок с ключевыми словами: длиннее прежнего, поэтому мельче и шире */
.hero-title { font-size: clamp(3.2rem, 6vw, 6.4rem); line-height: 0.88; max-width: 10ch; }
@media (max-width: 1100px) { .hero-title { font-size: clamp(2.6rem, 10.5vw, 5.6rem); max-width: 11ch; } }

/* обработка металла */
.svc-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.svc-params { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.svc-params .tb-cell { grid-column: auto; }
.svc-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.svc-item { padding: 22px 0; border-top: 1px solid var(--rule); }
.svc-link { text-decoration: none; }
.svc-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: transparent; }
.svc-link:hover .svc-name { text-decoration-color: var(--signal-deep); }
.svc-lead { margin: 10px 0 0; max-width: 60ch; color: var(--steel); }
@media (max-width: 900px) { .svc-hero, .svc-list { grid-template-columns: 1fr; } }

/* НЧ-страницы (nch/): метки черновика, блоки полей, этапы. На тех же переменных, что остальной сайт. */
.fill { display: inline; padding: 1px 6px; background: var(--signal); color: var(--ink); font-size: .92em; font-weight: 650; }
.nch-draft { display: inline-block; margin-left: 6px; padding: 0 6px; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 700; vertical-align: middle; }
.nch-block .wrap > p { max-width: 70ch; }
.nch-steps { list-style: none; counter-reset: nch-step; padding: 0; margin: 0; max-width: 70ch; }
.nch-steps li { counter-increment: nch-step; padding: 14px 0 14px 44px; position: relative; border-top: 1px solid var(--line, rgba(18, 28, 37, .2)); }
.nch-steps li::before { content: counter(nch-step); position: absolute; left: 0; top: 14px; width: 30px; font-weight: 700; color: var(--signal-deep); }
.nch-steps .step-name { font-weight: 650; display: block; }
.nch-steps .step-time { display: block; color: var(--steel); }
.nch-steps p { margin: 6px 0 0; }

/* форма и контакты рядом с расчётом: итог называем оценкой, под ним телефон и кнопка «Получить точный расчёт» */
.calc-ask { margin-top: 24px; padding: 20px clamp(16px, 2.4vw, 28px) 22px; border: 2px solid var(--ink); background: var(--zinc-2); display: grid; gap: 16px; }
.calc-ask-head { display: grid; gap: 6px; }
.calc-ask-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.calc-ask-text, .calc-ask-note { margin: 0; color: var(--steel); max-width: 66ch; }
.calc-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.calc-contacts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.calc-phone { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--ink); text-decoration: none; }
.calc-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--signal-deep); }
.calc-hours { color: var(--steel); font-size: 0.95rem; }
.calc-ask-form summary { list-style: none; width: fit-content; }
.calc-ask-form summary::-webkit-details-marker { display: none; }
.calc-ask-form summary:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 3px; }
.calc-ask-body { display: grid; gap: 12px; margin-top: 18px; }
.calc-ask-body .lead-form { margin-top: 0; }
@media (max-width: 560px) { .calc-ask-form summary { width: 100%; } }
.calc-ask-body textarea[data-params] { min-height: 120px; }
