/* Кессон — витрина. Цвета взяты из материалов: бетон, графит, вода, грунт, янтарная смола. */
:root {
  --paper: #E4E3DF;      /* светлый бетон, фон */
  --paper-2: #EDECE8;    /* помещения на чертеже, карточки */
  --line: #C9C7C0;
  --ink: #1F2328;        /* графит */
  --ink-2: #4A4F56;
  --water: #2F6F95;      /* вода — проблема */
  --soil: #9C7F55;       /* суглинок */
  --amber: #D4921C;      /* смола — сделанная работа и кнопки */
  --amber-d: #B97B0F;
  --dark: #1F2328;
  --dark-2: #2A2F35;
  --top-h: 64px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 4px;
  --ease: cubic-bezier(.65, 0, .25, 1);
  --out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* атрибут hidden сильнее любых display в классах: иначе пустые блоки видны */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 'Geologica', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--r);
  background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s var(--out); }
.btn:hover { background: #E2A12C; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.btn-wide { width: 100%; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: rgba(228, 227, 223, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 21px; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; }
.lm-house { fill: none; stroke: currentColor; stroke-width: 2; }
.lm-fix { stroke: var(--amber); stroke-width: 3.2; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--amber); }
.top-phone { margin-left: auto; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s var(--out); }
.burger span + span { margin-top: 8px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- сцена: путь воды ---------- */
.scene { display: grid; grid-template-columns: minmax(400px, 6fr) 6fr; border-bottom: 1px solid var(--line); }
.scene-draw { grid-column: 2; grid-row: 1; position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); overflow: hidden; border-left: 1px solid var(--line); }
.steps { grid-column: 1; grid-row: 1; }
.step { min-height: calc(100svh - var(--top-h)); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px 48px 56px max(var(--gut), calc((100vw - 1240px) / 2 + var(--gut))); max-width: 640px; box-sizing: content-box; }
/* колонка текста широкая, а размер заголовка подогнан под неё: «Гидроизоляция» занимает строку целиком и не заходит на чертёж */
.step { container-type: inline-size; }
.step h1 { font-size: min(78px, 12.4cqi); }
.step h2 { font-size: min(48px, 9cqi); }
.step p { max-width: 34em; }
.lead { font-size: 19px; color: var(--ink-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.hero-note { font-size: 15px; color: var(--ink-2); }
.act { font-weight: 600; color: var(--water); font-size: 16px; display: flex; align-items: center; gap: 10px; }
.act::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.symptom { font-size: 19px; line-height: 1.45; }
.step-hero .chips { display: none; }
.price-line { font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); max-width: 34em; }
.price-line:empty { display: none; }
.price-line span { font-weight: 400; color: var(--ink-2); }

/* слои: в начале шага сложены, затем раздвигаются */
.layers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; max-width: 34em; }
.layers li { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 14px; font-size: 15px; line-height: 1.3;
  transform: translateY(calc(var(--i) * -7px)); transition: transform .6s var(--out); }
.layers li:nth-child(1) { --i: 0; } .layers li:nth-child(2) { --i: 1; } .layers li:nth-child(3) { --i: 2; }
.layers li:nth-child(4) { --i: 3; } .layers li:nth-child(5) { --i: 4; } .layers li:nth-child(6) { --i: 5; }
.layers li::before { content: ''; height: var(--h); border-radius: 1px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(31, 35, 40, .35); }
.layers li span, .layers li b { opacity: 0; transition: opacity .4s; }
.layers b { font-weight: 600; white-space: nowrap; }
.step.is-on .layers li { transform: none; transition-delay: calc(.5s + var(--i) * 70ms); }
.step.is-on .layers li span, .step.is-on .layers li b { opacity: 1; transition-delay: calc(.75s + var(--i) * 70ms); }
.m-slate::before { background: radial-gradient(circle at 30% 40%, #8E9196 1px, transparent 1.4px) 0 0 / 5px 5px, #55595E !important; }
.m-bit::before { background: #24262A !important; box-shadow: inset 0 0 0 1px var(--amber) !important; }
.m-primer::before { background: var(--amber) !important; box-shadow: none !important; }
.m-coat::before { background: var(--amber) !important; box-shadow: none !important; }
.m-screed::before { background: #C3BEB3 !important; }
.m-concrete::before { background: radial-gradient(circle, #6E6A62 1px, transparent 1.3px) 0 0 / 9px 9px, #D3D0C8 !important; }
.m-tile::before { background: repeating-linear-gradient(90deg, #F2F0EB 0 26px, #9E9A91 26px 27px) !important; }
.m-glue::before { background: #A9A59C !important; }
.m-sand::before { background: radial-gradient(circle, #9C7F55 1px, transparent 1.3px) 0 0 / 6px 6px, #E3D7BF !important; }
.m-dimple::before { background: repeating-linear-gradient(90deg, #2B2E33 0 6px, #4C5057 6px 9px) !important; }
.m-xps::before { background: repeating-linear-gradient(135deg, #C9D8DF 0 5px, #AFC4CE 5px 6px) !important; }
.m-gravel::before { background: radial-gradient(circle, #8C877D 2px, transparent 2.4px) 0 0 / 8px 7px, #C8C3B8 !important; }
/* наши слои отмечены янтарной чертой у названия */
.m-slate span, .m-bit span, .m-primer span, .m-coat span, .m-dimple span { box-shadow: inset 3px 0 0 var(--amber); padding-left: 10px; }

.inject { margin: 0; padding: 0; list-style: none; counter-reset: inj; display: grid; gap: 10px; max-width: 34em; }
.inject li { counter-increment: inj; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.inject li::before { content: counter(inj); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--amber); display: grid; place-items: center; font-size: 13px; font-weight: 600; }

/* ---------- чертёж ---------- */
/* камера двигает весь чертёж целиком; без will-change, чтобы после приближения браузер перерисовал его чётко */
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.house { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
/* дождь — отдельный слой под чертежом: двигается без перерисовки, грунт и дом его закрывают */
.rain { position: absolute; left: -150%; right: -150%; top: -150%; bottom: 0; overflow: hidden; pointer-events: none; }
.rain::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--rh, 90px) * -1); bottom: 0; opacity: .5; will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='90'%3E%3Cpath d='M30 4l-5 18M12 49l-5 18M40 62l-4 14' stroke='%232F6F95' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / var(--rw, 46px) var(--rh, 90px);
  animation: fall .5s linear infinite paused; }
/* дождь виден всегда, а падает, только пока страницу прокручивают */
.scene-draw.raining .rain::before { animation-play-state: running; }
@keyframes fall { to { transform: translateY(var(--rh, 90px)); } }
.pbg-c { fill: #D6D3CB; } .pbg-b { fill: #DCD7CC; }
#p-concrete circle { fill: #5D5A54; } #p-concrete .tri { fill: none; stroke: #5D5A54; stroke-width: .9; }
.hatch { stroke: #6F6A60; stroke-width: 1.1; }
.struct path { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.struct .c { fill: url(#p-concrete); }
.struct .b { fill: url(#p-brick); }
.room { fill: var(--paper-2); }
.thin path, .thin rect { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.soil { fill: #DCD2BF; }
.soil-l { stroke: var(--soil); stroke-width: 1.2; fill: none; opacity: .75; }
.soil-d { fill: var(--soil); opacity: .7; }
.grav { fill: none; stroke: #6F6A60; stroke-width: 1; }
.gravel { stroke: none; }
.gw { fill: var(--water); opacity: .17; }
.gw-line { stroke: var(--water); stroke-width: 1.6; stroke-dasharray: 14 7; }
.ground { stroke: var(--ink); stroke-width: 2.4; fill: none; }
.grass { stroke: #5F6B4A; stroke-width: 1.4; fill: none; }
.press path { stroke: var(--water); stroke-width: 2.6; fill: none; animation: press 2.6s ease-in-out infinite; }
.arr-head { fill: var(--water); }
@keyframes press { 50% { opacity: .35; } }
.marks path { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.marks text { font-size: 19px; fill: var(--ink); font-variation-settings: 'slnt' -12; font-style: oblique 12deg; }
.marks .gw-mark path { stroke: var(--water); } .marks .gw-mark text { fill: var(--water); }

.leak { transition: opacity .6s; }
.flow { fill: none; stroke: var(--water); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.stain { fill: var(--water); opacity: .35; }
.puddle { fill: var(--water); opacity: .6; }
.crack { fill: none; stroke: var(--ink); stroke-width: 2; }
.drip { fill: var(--water); animation: drip 1.5s cubic-bezier(.55, 0, 1, .45) infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }

.fix { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
g.fix { stroke: none; stroke-dasharray: none; opacity: 0; transition: opacity .8s; }
.fix-cracks .resin { fill: none; stroke: var(--amber); stroke-width: 4; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.fix-cracks circle { fill: var(--ink); }
.drain { fill: var(--paper-2); stroke: var(--amber); stroke-width: 3.5; }
.runoff { opacity: 0; transition: opacity .8s; }
.runoff .flow { stroke-width: 2.4; }

/* состояние: какие места уже закрыты, какое в фокусе */
.house[data-focus] .leak { opacity: .2; }
.house[data-focus="all"] .leak { opacity: 1; }
.house[data-focus="roof"] .leak-roof, .house[data-focus="balcony"] .leak-balcony, .house[data-focus="bath"] .leak-bath,
.house[data-focus="cracks"] .leak-cracks, .house[data-focus="walls"] .leak-walls, .house[data-focus="floor"] .leak-floor { opacity: 1; }
.house.f-roof .leak-roof, .house.f-balcony .leak-balcony, .house.f-bath .leak-bath,
.house.f-cracks .leak-cracks, .house.f-walls .leak-walls, .house.f-floor .leak-floor { opacity: 0; transition-delay: 2.2s; }
.house.f-roof .fix-roof, .house.f-balcony .fix-balcony, .house.f-bath .fix-bath, .house.f-walls .fix-walls, .house.f-floor .fix-floor,
.house.f-cracks .fix-cracks .resin { stroke-dashoffset: 0; transition-delay: 1.2s; }
.house.f-cracks .fix-cracks, .house.f-floor .fix-floor-drain { opacity: 1; transition-delay: 1.2s; }
.house.done .runoff { opacity: 1; transition-delay: 1s; }
.house.done .press path { opacity: .3; animation: none; }

.spots { transition: opacity .4s; }

/* счёт мест на чертеже: синяя точка — течёт, янтарная — закрыто */
.status { position: absolute; left: 16px; top: 16px; z-index: 2; max-width: 300px; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(237, 236, 232, .95); font-size: 14px; }
.status-t { font-weight: 600; margin-bottom: 8px; }
/* шесть мест полосой: подписи читает экранный диктор, глазами видно по цвету */
.status-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.status-l li { height: 6px; border-radius: 3px; background: rgba(47, 111, 149, .3); font-size: 0; color: transparent; transition: background-color .4s; }
.status-l li.cur { box-shadow: 0 0 0 1.5px var(--water); }
.status-l li.fixed { background: var(--amber); box-shadow: none; }
.house:not(.overview) .spots { opacity: 0; pointer-events: none; }
.spot { cursor: pointer; outline: none; }
.spot circle { fill: var(--paper-2); stroke: var(--water); stroke-width: 3; transition: fill .15s; }
.spot text { font-size: 21px; font-weight: 600; fill: var(--ink); font-variation-settings: 'slnt' -12; font-style: oblique 12deg; paint-order: stroke; stroke: var(--paper-2); stroke-width: 6px; stroke-linejoin: round; }
.spot:hover circle, .spot:focus-visible circle { fill: var(--water); }
.spot:focus-visible text { text-decoration: underline; }

/* ---------- разделы ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(32px, 4vw, 52px); }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.sec-head p { color: var(--ink-2); max-width: 36em; }

/* цены */
.price-table { display: grid; }
.pt-zone { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; padding: 26px 0; border-top: 1.5px solid var(--ink); }
.pt-zone:last-child { border-bottom: 1.5px solid var(--ink); }
.pt-zone h3 { font-size: 22px; }
.pt-zone h3 button { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.pt-zone h3 button:hover { text-decoration-color: var(--amber); }
.pt-rows { display: grid; gap: 20px; }
.pt-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 28px; }
.pt-row b { font-weight: 600; }
.pt-row p { grid-column: 1; color: var(--ink-2); font-size: 15px; max-width: 40em; }
.pt-price { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 650; font-size: 20px; white-space: nowrap; }
.pt-price small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }

/* калькулятор */
.sec-calc { background: var(--paper-2); }
.calc { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 48px; align-items: start; }
.calc-text p { margin-top: 18px; color: var(--ink-2); max-width: 30em; }
.calc-form { display: grid; grid-template-columns: 1fr 200px; gap: 18px 20px; padding: 28px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.calc-form .tog, .calc-out, .calc-form .btn { grid-column: 1 / -1; }
.f { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.f input, .f select, .f textarea, .qty { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #A9A69E; border-radius: var(--r); background: var(--paper-2); color: var(--ink); font-size: 17px; font-weight: 400; transition: border-color .15s; }
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f select:focus, .f textarea:focus, .qty:focus-within { outline: none; border-color: var(--amber); }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.qty { display: flex; align-items: center; padding: 0 14px 0 0; }
.qty input { border: 0; min-height: 46px; background: none; flex: 1; min-width: 0; }
.qty input:focus { outline: none; }
.qty span { color: var(--ink-2); }
.tog { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.tog input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.tog i { font-style: normal; color: var(--ink-2); }
.calc-out { padding-top: 18px; border-top: 1px solid var(--line); }
.calc-sum { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.02em; }
.calc-facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 10px 0 0; }
.calc-facts div { display: flex; gap: 8px; }
.calc-facts dt { color: var(--ink-2); }
.calc-facts dd { margin: 0; font-weight: 600; }
.calc-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* объекты */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.case { display: grid; gap: 16px; align-content: start; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: #CFCCC4; touch-action: pan-y; user-select: none; -webkit-user-select: none; --x: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba-line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--paper);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 2px 14px; background-position: 15px 14px, 23px 14px; background-repeat: no-repeat; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.ba-tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 3px; background: rgba(31, 35, 40, .78); color: var(--paper); font-size: 13px; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--ink-2); }
.case h3 { font-size: 24px; }
.case-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.case-facts b { font-weight: 600; }
.case p { max-width: 36em; }
.case blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--amber); }
.case blockquote footer { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* как работаем */
.how { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.how li { counter-increment: how; padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.how li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.how li::before { content: counter(how); font-size: 15px; font-weight: 600; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; }
.how h3 { font-size: 21px; }
.how p { color: var(--ink-2); font-size: 16px; }

/* география */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 48px; align-items: center; }
.area-text { display: grid; gap: 18px; }
.area-text p { max-width: 32em; }
.area-pick { font-weight: 600; min-height: 1.6em; }
.map { width: 100%; max-width: 680px; justify-self: center; overflow: visible; outline: none; }
.map .ring { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 6 10; opacity: .45; }
.map .ring-t { font-size: 22px; fill: var(--ink-2); }
.map .reach { fill: var(--amber); fill-opacity: .08; stroke: var(--amber); stroke-width: 4; }
.map .city { cursor: default; outline: none; }
.map .city circle { fill: var(--ink); transition: r .15s; }
.map .city text { font-size: 24px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.map .city:hover circle, .map .city:focus-visible circle { fill: var(--amber); }
.map .city:focus-visible text { text-decoration: underline; }
.map .hq circle { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.map .hq text { font-weight: 650; font-size: 30px; }
.map .spoke { stroke: var(--amber); stroke-width: 2.5; opacity: 0; transition: opacity .2s; }
.map .spoke.on { opacity: 1; }

/* вопросы */
.faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .25s var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 40em; }

/* заявка */
.sec-dark { background: var(--dark); color: var(--paper); border-bottom: 0; }
.req { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 48px; align-items: start; }
.req-text { display: grid; gap: 16px; }
.req-text p { color: #B9BCC0; max-width: 30em; }
.contacts { margin: 12px 0 0; display: grid; gap: 12px; }
.contacts div { display: grid; gap: 2px; }
.contacts dt { font-size: 14px; color: #8E9399; }
.contacts dd { margin: 0; font-size: 18px; }
.contacts a { text-decoration: none; border-bottom: 1px solid #5A6068; }
.contacts a:hover { border-color: var(--amber); }
.req-form .fields, .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.wide { grid-column: 1 / -1; }
.sec-dark .f { color: #B9BCC0; }
.sec-dark .f input, .sec-dark .f select, .sec-dark .f textarea { background: var(--dark-2); border-color: #4A5058; color: var(--paper); }
.sec-dark .f input::placeholder, .sec-dark .f textarea::placeholder { color: #737980; }
.sec-dark .f.bad input, .sec-dark .f.bad select { border-color: #E2735A; }
.f .err-t { color: #F09A86; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a { color: inherit; }
.consent.bad span { color: #F09A86; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.ph { position: relative; width: 88px; height: 88px; border-radius: var(--r); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.ph-add { width: 88px; height: 88px; display: grid; place-items: center; text-align: center; border: 1.5px dashed #5A6068; border-radius: var(--r); font-size: 13px; padding: 8px; cursor: pointer; color: #B9BCC0; }
.ph-add:hover, .ph-add:focus-within { border-color: var(--amber); color: var(--paper); }
.ph-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.calc-attached { font-size: 15px; padding: 12px 14px; border-left: 3px solid var(--amber); background: var(--dark-2); color: var(--paper); display: flex; justify-content: space-between; gap: 12px; }
.calc-attached button { border: 0; background: none; color: #B9BCC0; cursor: pointer; text-decoration: underline; padding: 0; flex: none; }
.form-err { color: #F09A86; min-height: 1.5em; margin: 14px 0 8px; font-size: 15px; }
.form-ok { padding: 28px; border: 1.5px solid var(--amber); border-radius: var(--r); display: grid; gap: 10px; }
.form-ok h3 { font-size: 26px; }
.req-form.sent .fields, .req-form.sent > .btn, .req-form.sent .form-err { display: none; }

/* подвал */
.foot { background: #17191C; color: #9AA0A6; padding: 44px 0 52px; font-size: 15px; }
.foot-in { display: grid; gap: 12px; }
.foot .logo { color: var(--paper); }
.foot a { color: #C9CCD0; }
.foot .demo { margin-top: 10px; font-size: 14px; }

/* ---------- телефон и планшет ---------- */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .top-phone { display: none; }
  .top-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  body { font-size: 16px; }
  .burger { display: block; margin-right: -10px; }
  .top-cta { margin-left: auto; }
  .nav { position: fixed; top: var(--top-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--out), visibility 0s .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s var(--out); }
  .nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.on { border-bottom-color: var(--line); color: var(--amber-d); }

  .scene { grid-template-columns: 1fr; }
  .scene-draw { grid-column: 1; position: sticky; top: var(--top-h); height: 44svh; z-index: 2; background: var(--paper); border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-column: 1; grid-row: 2; }
  .step { min-height: 76svh; max-width: none; padding: 40px var(--gut) 56px; justify-content: flex-start; }
  .step-hero { min-height: 0; }
  /* при переходе к шагу заголовок не прячется под прилипшим чертежом */
  .step { scroll-margin-top: calc(var(--top-h) + 44svh); }
  .step-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .chips button { border: 1.5px solid var(--water); background: none; border-radius: 40px; padding: 7px 14px; font-size: 15px; cursor: pointer; }
  .spot text { display: none; }
  .status { left: 8px; right: 8px; top: 8px; max-width: none; padding: 7px 10px; font-size: 13px; }
  .status-t { margin: 0; }
  .status-l { display: none; }
  .marks { display: none; }
  .layers li { grid-template-columns: 76px 1fr auto; gap: 10px; }

  .sec-head, .calc, .area, .faq-wrap, .req, .pt-zone { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; padding: 20px; }
  .cases { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how li, .how li:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; }
  .req-form .fields, .fields { grid-template-columns: 1fr; }
  .pt-row { grid-template-columns: 1fr; }
  .pt-price { grid-column: 1; grid-row: auto; text-align: left; }
}
@media (max-width: 420px) {
  .top-cta { padding: 0 12px; font-size: 14px; }
  .logo span { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rain::before, .flow, .drip, .press path { animation: none !important; }
  .cam, .fix, .leak, .layers li, .layers li span, .layers li b { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* политика */
.policy { max-width: 760px; display: grid; gap: 16px; }
.policy h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.policy h2 { font-size: 22px; margin-top: 18px; }
