/* Інженери Поділля — MVP головної сторінки
   Палітра: kvadro-alians.com (червоний, графіт, теплий світлий) */

:root {
  --red: #c81212;
  --red-dark: #af1515;
  --red-deep: #871515;
  --red-tint: #fbe9ea;
  --ink: #2a2f33;
  --muted: #5d656c;
  --sand: #f2efe9;
  --mist: #f7f8fa;
  --white: #fff;
  --line: #e3dfd7;

  /* кольори систем на схемі */
  --sys-1: #c81212;
  --sys-2: #d9650f;
  --sys-3: #14857c;
  --sys-4: #2f7fb5;
  --sys-5: #1f5aa6;
  --sys-6: #8a5a3c;
  --sys-7: #b98500;
  --sys-8: #2a2f33;

  --font-head: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px -24px rgba(42, 47, 51, .35);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--red); }
h2 { font-size: clamp(29px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -.01em; }

.container { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 1.5px solid transparent; border-radius: 12px;
  font: 600 16px/1.2 var(--font-head); letter-spacing: -.005em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 12px 20px; font-size: 15px; }
.btn--full { width: 100%; }

/* Підписи */
.eyebrow { margin-bottom: 14px; font: 500 13px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.pulse-label { display: inline-flex; align-items: center; gap: 14px; font: 500 14px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--red); }
.pulse-label--light { color: #fff; }
.pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.4); opacity: 0; } }

/* Верхня смуга */
.topbar { background: var(--ink); color: #dfe1e3; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { color: #ff7a7a; width: 16px; height: 16px; }
.topbar__tag { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: #a9afb5; }
.topbar__phone { font-weight: 600; color: #fff; }
.topbar__phone:hover { color: #ffb3b3; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(42, 47, 51, .5); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.header__logo { flex: none; margin-right: auto; }
.header__logo img { width: 188px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 15.5px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__phone { display: none; }
.burger { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: none; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sand) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 6vw, 88px); }
.hero__copy h1 { margin-top: 22px; }
.hero__lead { margin-top: 24px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__visual { position: relative; padding: 0 0 26px 26px; }
.hero__photo { position: relative; z-index: 1; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 5 / 4.6; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__gear { position: absolute; z-index: 2; width: clamp(150px, 19vw, 260px); right: clamp(-90px, -5vw, -40px); top: clamp(-90px, -5vw, -40px); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__badge { position: absolute; z-index: 3; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.hero__badge--count { left: 0; bottom: 0; padding: 16px 24px; }
.hero__badge--count strong { display: block; font: 700 40px/1 var(--font-head); color: var(--red); letter-spacing: -.03em; }
.hero__badge--count span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.hero__badge--scan { right: 20px; bottom: 52px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-weight: 600; font-size: 14px; }
.hero__badge--scan .icon { color: var(--red); }

.ticker { overflow: hidden; background: var(--red); color: #fff; }
.ticker__track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker span { display: inline-flex; align-items: center; padding: 15px 0; font: 500 15px/1 var(--font-head); white-space: nowrap; }
.ticker span::after { content: ""; width: 5px; height: 5px; margin-inline: 26px; border-radius: 50%; background: #ffb3b3; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Секції */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--sand { background: var(--sand); }
.section--blueprint { position: relative; background: var(--mist) url("../res/images/photo/blueprint.webp") center / cover no-repeat; }
.section--blueprint::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 248, 250, .94), rgba(247, 248, 250, .82)); }
.section--blueprint > .container { position: relative; }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section__head--row h2 { max-width: 760px; }
.section__note { flex: none; font: 500 13px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.section__lead { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: 18px; }

/* Послуги */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:not(.service--intro):hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.service__icon { width: 34px; height: 34px; margin-bottom: 34px; color: var(--red); stroke-width: 1.5; }
.service p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.service--intro { background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%); border: 0; color: #fff; }
.service__statement { margin-top: 18px; font: 500 20px/1.3 var(--font-head) !important; letter-spacing: -.01em; color: #fff !important; }
.service__gear { position: absolute; width: 190px; right: -64px; bottom: -64px; filter: brightness(0) invert(1); opacity: .1; animation: spin 30s linear infinite; }
.link-arrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font: 600 15px/1.2 var(--font-head); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Схема */
.schema { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 2vw, 26px); box-shadow: var(--shadow); }
.schema__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.schema__hint { font-size: 15px; color: var(--muted); }
.season { display: inline-flex; padding: 4px; background: var(--sand); border-radius: 999px; }
.season__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: 600 14.5px/1.2 var(--font-head); color: var(--muted); transition: background-color .2s, color .2s; }
.season__btn.is-active { background: var(--red); color: #fff; }
.schema__stage { display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 1fr) minmax(0, 248px); gap: 14px; }
.schema__col { display: grid; gap: 10px; align-content: center; }
.schema__drawing {
  align-self: center; min-width: 0; border-radius: var(--radius-sm);
  background-image: linear-gradient(rgba(42, 47, 51, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 47, 51, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}
#house-svg { width: 100%; height: auto; }

.sys-card { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; width: 100%; padding: 11px 12px; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, background-color .2s, opacity .2s; }
.sys-card:hover { border-color: var(--c); }
.sys-card__num { grid-row: span 3; width: 26px; height: 26px; border: 1.5px solid var(--c); border-radius: 50%; font: 600 13px/23px var(--font-head); text-align: center; color: var(--c); }
.sys-card__title { font: 600 15px/1.25 var(--font-head); letter-spacing: -.01em; }
.sys-card__sub { margin-top: 1px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.sys-card__fact { margin-top: 5px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.sys-card__fact b { font: 600 15px/1.2 var(--font-head); color: var(--c); }
.sys-card.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.sys-card.is-active .sys-card__num { background: var(--c); color: #fff; }
.sys-card.is-off { opacity: .45; }

.s-hatch { stroke: #d8d2c6; stroke-width: 1.2; }
.s-ground { stroke: var(--ink); stroke-width: 2; }
.s-house { fill: rgba(255, 255, 255, .7); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.s-roof { fill: rgba(242, 239, 233, .6); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.s-floor, .s-wall { stroke: #8e9499; stroke-width: 2; }
.s-win { fill: #eef2f5; stroke: #a7adb2; stroke-width: 1.5; }
.s-win-x { fill: none; stroke: #c6cbcf; stroke-width: 1.5; }
.s-label { font: 500 10px var(--font-mono); fill: var(--muted); letter-spacing: .08em; }

.sys { color: var(--c); opacity: .5; transition: opacity .25s; }
.sys .flow { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; stroke-linejoin: round; }
.sys .flow--thin { stroke-width: 1.8; stroke-dasharray: 3 5; }
.sys .unit { fill: #fff; stroke: currentColor; stroke-width: 2; }
.sys .unit-x, .sys .arc { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.sys .tick { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.sys .dot { fill: currentColor; }
.sys .bolt { fill: currentColor; }
.sys .fan { transform-box: fill-box; transform-origin: center; }
.schema[data-active] .sys { opacity: .24; }
.schema[data-active] .sys.is-active { opacity: 1; }
.sys.is-active .flow { stroke-width: 3.2; stroke-dasharray: 9 7; animation: flow .7s linear infinite; }
.sys.is-active .fan { animation: spin 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.sys.is-off .flow { animation: none; stroke-dasharray: 2 7; }

.pin { cursor: pointer; outline: none; }
.pin circle { fill: #fff; stroke: var(--c); stroke-width: 2; transition: fill .2s; }
.pin text { font: 600 13px var(--font-head); fill: var(--c); text-anchor: middle; transition: fill .2s; pointer-events: none; }
.pin:hover circle, .pin:focus-visible circle, .pin.is-active circle { fill: var(--c); }
.pin:hover text, .pin:focus-visible text, .pin.is-active text { fill: #fff; }

.schema__detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 18px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius-sm); }
.schema__detail-title { margin-bottom: 8px; font: 500 12.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--red); }
.schema__detail-title--muted { color: var(--muted); }
.schema__detail-where p:last-child { font-size: 15px; line-height: 1.4; }
.ticks { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; line-height: 1.4; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Діагностика */
.diag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.audit li { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.audit li:last-child { border-bottom: 1px solid var(--line); }
.audit .icon { margin-top: 1px; color: var(--red); }
.thermal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 1 / 1; }
.thermal figure { overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); }
.thermal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.thermal figure:hover img { transform: scale(1.04); }
.thermal__a { grid-column: span 3; }
.thermal__b { grid-column: span 3; }
.thermal__c { grid-column: span 2; }
.thermal__d { grid-column: span 4; }

/* Переваги */
.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv { padding: 26px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius); }
.adv .icon { width: 30px; height: 30px; margin-bottom: 18px; color: var(--red); stroke-width: 1.5; }
.adv__num { display: block; margin-bottom: 14px; font: 700 34px/30px var(--font-head); letter-spacing: -.03em; color: var(--red); }
.adv p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* Етапи */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 23px; top: 16px; bottom: 40px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 23px; top: 16px; bottom: 40px; width: 2px; background: var(--red); transform: scaleY(var(--progress, 0)); transform-origin: top; }
.steps li { position: relative; z-index: 1; counter-increment: step; padding: 2px 0 28px 72px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border: 1.5px solid var(--red); border-radius: 50%; background: #fff; font: 600 14px/45px var(--font-head); text-align: center; color: var(--red); }
.steps h3 { padding-top: 3px; }
.steps p { margin-top: 5px; color: var(--muted); font-size: 16px; line-height: 1.45; }

.support { position: sticky; top: 104px; overflow: hidden; border-radius: 24px; display: flex; min-height: 620px; padding: 16px; align-items: flex-end; }
.support__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.support__panel { position: relative; width: 100%; padding: 24px; background: rgba(255, 255, 255, .95); border-radius: var(--radius); }
.support__panel h3 { margin-bottom: 8px; font-size: 24px; }
.support__item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.support__item .icon { width: 26px; height: 26px; color: var(--red); }
.support__item h4 { font-size: 17px; letter-spacing: -.01em; }
.support__item p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Об'єкти */
.objects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.objects li { display: flex; flex-direction: column; gap: 22px; padding: 22px; background: #fff; border-radius: var(--radius-sm); font: 600 16.5px/1.2 var(--font-head); letter-spacing: -.01em; hyphens: manual; }
.objects .icon { width: 32px; height: 32px; color: var(--red); stroke-width: 1.5; }

/* Контакти */
.contact { position: relative; overflow: hidden; padding-bottom: 0; background: linear-gradient(180deg, #fff 0%, var(--sand) 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.contact__visual { align-self: end; }
.contact__img { width: 100%; }
.contact__form { padding-bottom: var(--section); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.field label span { color: var(--red); }
.field input { width: 100%; padding: 15px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--red); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__err { margin-top: 6px; font-size: 14px; color: var(--red-dark); }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--red); }
#f-consent-err, .form .btn, .form__ok { grid-column: 1 / -1; }
#f-consent-err { margin-top: -8px; }
.form__ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--red-tint); border-radius: 12px; font-weight: 500; }
.form__ok[hidden] { display: none; }
.form__ok .icon { color: var(--red); }
.contact__list { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-weight: 500; font-size: 16px; }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: 9px; }
.contact__list a:hover { color: var(--red); }
.contact__list .icon { color: var(--red); }

/* Футер */
.footer { position: relative; overflow: hidden; padding-top: 64px; background: var(--ink); color: #c9cdd1; font-size: 15.5px; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 48px; }
.footer__brand img { width: 240px; }
.footer__title { margin-bottom: 14px; font: 500 12.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.footer li { padding: 3px 0; }
.footer a:hover { color: #ff9c9c; }
.footer__bottom { position: relative; z-index: 1; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #9aa1a7; }
.footer__gear { position: absolute; width: 340px; right: -110px; bottom: -150px; opacity: .22; animation: spin 40s linear infinite; }

/* Поява під час прокрутки */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1180px) {
  .header__inner { gap: 16px; }
  .nav { gap: 18px; font-size: 15px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service--intro { grid-column: span 3; min-height: 200px; }
  .schema__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schema__drawing { grid-column: 1 / -1; grid-row: 1; }
  .schema__detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schema__detail .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 960px) {
  .topbar__tag { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 24px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(42, 47, 51, .4);
    font-size: 19px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__phone { display: block; margin-top: 16px; font-weight: 600; color: var(--red); }
  .hero__grid, .diag, .steps-wrap, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support { position: relative; top: 0; min-height: 520px; }
  .contact__form { order: -1; padding-bottom: 0; }
  .contact__visual { max-width: 540px; margin-inline: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar address { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { min-height: 66px; }
  .header__logo img { width: 158px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { padding: 0 0 22px 0; }
  .hero__gear { width: 118px; right: -30px; top: -34px; }
  .hero__badge--count { left: 12px; padding: 12px 18px; }
  .hero__badge--count strong { font-size: 32px; }
  .hero__badge--scan { display: none; }
  .section__head--row { display: block; }
  .section__note { margin-top: 12px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service--intro { grid-column: auto; }
  .service { min-height: 0; }
  .service__icon { margin-bottom: 14px; }
  .schema__bar { flex-direction: column-reverse; align-items: flex-start; }
  .schema__stage { grid-template-columns: minmax(0, 1fr); }
  .schema__detail { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .schema__detail .btn { justify-self: stretch; }
  .advantages, .form { grid-template-columns: minmax(0, 1fr); }
  .objects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thermal { aspect-ratio: 1 / 1.1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
