/* Светлая версия неонового лендинга: та же сетка, шрифты Akony + Manrope, резиновая вёрстка через clamp().
   Палитра: тёплый «известняк» вместо стерильного белого, графит, один акцент — глубокий петрольный (вода, стекло).
   Фирменный приём (аналог неонового контура) — «протирка»: грязный слой смывается полосой с бликом. */
/* Manrope — свой файл, без Google Fonts: нет сторонних запросов, IP посетителей не уходит за границу (лицензия OFL) */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic.woff2?v=e58febde") format("woff2"); font-weight: 300 700; 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: "Manrope"; src: url("../fonts/manrope-latin.woff2?v=938c6e80") format("woff2"); font-weight: 300 700; 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: "Manrope"; src: url("../fonts/manrope-latin-ext.woff2?v=6d36d5bd") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }   /* здесь знак ₽ */
@font-face { font-family: "Akony"; src: url("../fonts/AKONY.woff2?v=7ddb511f") format("woff2"), url("../fonts/AKONY.woff?v=ad728d18") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@property --w { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --bg: #f3f1ec;
  --bg-2: #ebe7df;
  --paper: #fbfaf7;
  --ink: #14171b;
  --text: #1d2126;
  --muted: #6b6f74;
  --line: #dcd7cd;
  --line-2: #c4beb2;
  --accent: #1d5b70;
  --accent-2: #2f86a0;
  --accent-soft: rgba(29,91,112,.09);
  --sheen: 0 0 10px 2px rgba(255,255,255,.8), 0 0 36px 8px rgba(255,255,255,.4);
  --display: "Akony", "Manrope", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.7,.2,1);
  --radius: clamp(18px, 1.6vw, 32px);
  --gutter: clamp(16px, 4.5vw, 120px);
  --section: clamp(72px, 10vw, 220px);
  --gap: clamp(14px, 1.4vw, 32px);
  --fs-body: clamp(15px, .95vw, 19px);
  --fs-small: clamp(12px, .78vw, 15px);
  --shadow: 0 1px 2px rgba(20,23,27,.04), 0 14px 44px -14px rgba(20,23,27,.16);
}
h1, h2, h3, .slogan, .logo, .total, .hero-facts b, .spec b, .dot { font-synthesis: none; }
h2, h3, .slogan { overflow-wrap: break-word; }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* атрибут hidden сильнее любых display в классах */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: 100%; padding-inline: var(--gutter); }

/* метки-пробелы: факты, которые даёт клиент */
.ph { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 .3em; font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: max(.62em, 12px); vertical-align: .12em; white-space: nowrap; }
p .ph, li .ph, .a .ph, figcaption .ph, footer .ph, .fine .ph, .tagp .ph, .demo-badge .ph { font-size: inherit; vertical-align: baseline; }

/* ---------- заглушки картинок (пока нет файлов из Gemini) ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.empty { background: repeating-linear-gradient(135deg, #ebe7df 0 14px, #e6e2d9 14px 28px); }
.media.empty::after { content: "Gemini → " attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90%; text-align: center;
  padding: 8px 14px; border-radius: 999px; background: rgba(251,250,247,.9); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-media.empty::after { top: 38%; left: 72%; }

/* ---------- кнопки ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: clamp(50px, 3.4vw, 64px); padding-inline: clamp(22px, 2vw, 40px);
  border-radius: 999px; font-weight: 600; font-size: clamp(14px, .95vw, 18px); cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background .3s, border-color .3s, color .3s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: rgba(251,250,247,.55); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }
/* блик скребка по кнопке */
.btn::after { content: ""; position: absolute; inset: -20% auto -20% 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5) 45%, rgba(255,255,255,.8) 50%, transparent 56%); transform: translateX(-160%) skewX(-12deg); }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(47,134,160,.12) 45%, rgba(47,134,160,.22) 50%, transparent 56%); }
.btn:hover::after, .btn:focus-visible::after { transition: transform .75s var(--ease); transform: translateX(330%) skewX(-12deg); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: var(--hero-h, 100svh); display: flex; flex-direction: column; overflow: hidden; --p: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; }
.hero-media img { object-position: 40% 50%; }
.hero-media .before { clip-path: inset(calc(var(--p) * 1%) 0 0 0); }
.hero-media .wline { position: absolute; left: 0; right: 0; top: calc(var(--p) * 1%); height: 2px; background: #fff; box-shadow: var(--sheen); pointer-events: none; opacity: 0; }
.hero.washing .wline { opacity: 1; }
.hero-media.no-before .before, .hero-media.no-before .wline { display: none; }
/* светлая вуаль слева и снизу — под тёмный текст */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(243,241,236,.94) 0%, rgba(243,241,236,.78) 28%, rgba(243,241,236,0) 58%),
              linear-gradient(0deg, var(--bg) 0%, rgba(243,241,236,0) 22%),
              linear-gradient(180deg, rgba(243,241,236,.7) 0%, rgba(243,241,236,0) 14%); }
.nav { position: relative; z-index: 3; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 56px); padding-block: clamp(16px, 2.2vw, 44px); }
/* логотип DECORPITER: знак и надпись — контуры из фирменного PDF (source/brand), менять только цвет и размер */
.logo { display: inline-flex; align-items: center; gap: .6em; font-size: clamp(13px, 1.1vw, 22px); line-height: 1; color: #606161; white-space: nowrap; }
.logo svg, .foot-logo svg { display: block; flex: none; fill: currentColor; }
.logo .logo-mark, .foot-logo .logo-mark { height: 1.95em; width: auto; aspect-ratio: 60.83 / 37.35; fill: #DA7747; }
.logo-word { height: .82em; width: auto; aspect-ratio: 151.79 / 16.40; }
.logo-sub { margin-left: .2em; padding-left: .85em; border-left: 1px solid var(--line-2); font-family: var(--body); font-weight: 600; font-size: .68em; letter-spacing: .26em; text-transform: uppercase; line-height: 1.7; color: var(--accent); }
/* переключатель направлений DECORPITER (без JS работает на <details>; закрытие по клику мимо — main.js) */
.brand { position: relative; display: inline-flex; align-items: center; gap: .6em; font-size: clamp(13px, 1.1vw, 22px); }
.brand .logo { font-size: inherit; }
.brand-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55em; margin-left: 0; user-select: none; }
.brand-switch summary::-webkit-details-marker { display: none; }
.brand-switch summary::after { content: ""; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-30%) rotate(45deg); transition: transform .25s; }
.brand-switch[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.brand-switch summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.bs-list { position: absolute; top: calc(100% + 12px); left: 0; z-index: 60; width: max-content; min-width: 260px; max-width: calc(100vw - 32px); list-style: none; margin: 0; padding: 6px; border-radius: 16px; font-size: 15px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.bs-list a { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 11px; transition: background .2s; }
.bs-list b { font-weight: 600; }
.bs-list span { font-size: 13px; }
.bs-list a[aria-current] b::after { content: "  ✓"; }
.bs-soon { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; opacity: .55; }
.bs-list { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20,23,27,.14); }
.bs-list b { color: var(--ink); }
.bs-list span { color: var(--muted); }
.bs-list a:hover, .bs-list a:focus-visible { outline: none; background: var(--accent-soft); }
.bs-list a[aria-current] b::after { color: var(--accent); }
.foot-logo { display: inline-flex; align-items: center; gap: .6em; font-size: 15px; color: #606161; }
footer.site .foot-brand { margin-bottom: 6px; }
.foot-tag { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 52px); font-size: clamp(14px, .9vw, 17px); color: var(--muted); margin-left: auto; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-phone { font-weight: 600; font-size: clamp(14px, .95vw, 18px); color: var(--ink); white-space: nowrap; }
.hero-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, calc(var(--hero-h, 100vh) * .08), 120px); }
.eyebrow { font-weight: 600; line-height: 1.5; font-size: clamp(12px, .85vw, 16px); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(16px, 1.6vw, 32px); }
.slogan { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.3vw, 92px); line-height: 1.04; color: var(--ink); }
.slogan em, h2 em { font-style: normal; color: var(--accent); }
.lead { margin-top: clamp(18px, 1.8vw, 36px); max-width: clamp(300px, 34vw, 680px); font-size: clamp(16px, 1.2vw, 23px); color: #3f444a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.4vw, 48px); }
.hero-facts { margin-top: clamp(24px, 2.4vw, 44px); display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 64px); list-style: none; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.4vw, 32px); color: var(--ink); line-height: 1.1; }
.hero-facts li > span { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
/* появление текста первого экрана */
.js .hero-body > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.ready .hero-body > * { opacity: 1; transform: none; }
.js .hero.ready .hero-body > :nth-child(2) { transition-delay: .08s; }
.js .hero.ready .hero-body > :nth-child(3) { transition-delay: .16s; }
.js .hero.ready .hero-body > :nth-child(4) { transition-delay: .24s; }
.js .hero.ready .hero-body > :nth-child(5) { transition-delay: .32s; }

/* ---------- секции ---------- */
section { padding-top: var(--section); scroll-margin-top: 10px; }
.kicker { font-size: var(--fs-small); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(12px, 1vw, 20px); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.5vw, 64px); line-height: 1.12; letter-spacing: 0; max-width: 20ch; color: var(--ink); }
.sub { margin-top: clamp(14px, 1.2vw, 24px); max-width: 40em; color: var(--muted); }
h3 { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.15vw, 26px); line-height: 1.2; color: var(--ink); }
.demo-badge { display: inline-block; margin-top: 18px; font-size: var(--fs-small); padding: 5px 12px; border-radius: 999px; background: #f6ead2; color: #8a5a12; }
.demo-badge .ph { background: none; color: inherit; padding: 0; }

/* «протирка» заголовков: из мутного в чёткое */
.js .wipe { -webkit-mask-image: linear-gradient(90deg, #000 var(--w), rgba(0,0,0,.14) calc(var(--w) + 10%)); mask-image: linear-gradient(90deg, #000 var(--w), rgba(0,0,0,.14) calc(var(--w) + 10%)); --w: -10%; }
.js .wipe.in { --w: 110%; transition: --w 1.3s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- услуги ---------- */
.cards { margin-top: clamp(32px, 3.4vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; }
.card-media img { transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: clamp(20px, 1.8vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.card-body p { color: var(--muted); font-size: clamp(14px, .92vw, 17px); }
.card .num { font-size: var(--fs-small); color: var(--accent); font-weight: 600; letter-spacing: .12em; }
.also { margin-top: var(--gap); padding: clamp(18px, 1.6vw, 30px) clamp(20px, 1.8vw, 36px); border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: clamp(14px, .92vw, 17px); }
.also b { color: var(--ink); font-weight: 600; }

/* ---------- до / после ---------- */
.works { margin-top: clamp(32px, 3.4vw, 72px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--gap); }
.work:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.work:first-child .ba { flex: 1; aspect-ratio: auto; min-height: 360px; }
.work figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: clamp(14px, .9vw, 17px); color: var(--muted); }
.work figcaption b { color: var(--ink); font-weight: 600; }
.ba { position: relative; border-radius: var(--radius); aspect-ratio: 4 / 3; cursor: ew-resize; touch-action: pan-y; user-select: none; --x: 50; }
.ba img { position: absolute; inset: 0; pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--x) * 1%) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 2px; margin-left: -1px; background: #fff; box-shadow: var(--sheen); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: calc(var(--x) * 1%); transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: var(--paper); box-shadow: 0 6px 20px rgba(20,23,27,.25); display: grid; place-items: center; color: var(--ink); border: 0; cursor: ew-resize; }
.ba-knob svg { width: 24px; height: 24px; }
.ba-lab { position: absolute; top: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(251,250,247,.88); color: var(--muted); pointer-events: none; }
.ba-lab.l { left: 14px; } .ba-lab.r { right: 14px; }
.ba.empty .ba-line, .ba.empty .ba-knob, .ba.empty .ba-lab { display: none; }

/* ---------- цены и калькулятор ---------- */
.calc { margin-top: clamp(20px, 2vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 72px); padding: clamp(24px, 3vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.calc h3 { font-size: clamp(18px, 1.5vw, 34px); margin-bottom: clamp(22px, 2vw, 40px); }
.field { margin-bottom: clamp(20px, 1.8vw, 34px); }
.field > label, .field > .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; font-size: clamp(14px, .95vw, 18px); }
.field output { font-family: var(--display); font-weight: 700; color: var(--accent); white-space: nowrap; font-size: clamp(15px, 1.1vw, 24px); }
.seg-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-ctl label { position: relative; cursor: pointer; }
.seg-ctl input { position: absolute; opacity: 0; pointer-events: none; }
.seg-ctl span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 42px; padding-inline: 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: clamp(13px, .85vw, 16px); font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.seg-ctl input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --f: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--f), var(--line) var(--f)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--f), var(--line) var(--f)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(20,23,27,.18); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.checks { display: grid; gap: 12px; }
.checks label { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: clamp(14px, .92vw, 17px); }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.calc-out { display: flex; flex-direction: column; }
/* схема дома: выбранные части «отмыты» — заливка акцентом */
.house { width: 100%; max-height: 260px; margin-bottom: clamp(16px, 1.6vw, 30px); }
.house path, .house rect { fill: transparent; stroke: var(--line-2); stroke-width: 1.5; stroke-linejoin: round; transition: fill .6s var(--ease), stroke .6s var(--ease); }
.house .ground { stroke: var(--line-2); stroke-width: 1.5; }
.house .on, .house .on rect { fill: rgba(47,134,160,.13); stroke: var(--accent); }
.house .p-win.on rect { fill: rgba(47,134,160,.28); }
.house .p-wall.on.hydro { fill: rgba(47,134,160,.26); stroke-width: 3.5; }   /* + гидрофобное покрытие */
.out-lab { font-size: var(--fs-small); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.total { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 72px); line-height: 1.05; color: var(--ink); white-space: nowrap; margin-top: 6px; }
.lines { list-style: none; margin: clamp(16px, 1.6vw, 28px) 0; border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: clamp(13px, .85vw, 16px); color: var(--muted); }
.lines li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out .btn { align-self: flex-start; }
.fine { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; max-width: 36em; }
.factors { margin-top: clamp(20px, 2vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.factor { padding: clamp(18px, 1.6vw, 32px) 0; border-top: 1px solid var(--line); }
.factor b { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: clamp(15px, 1.05vw, 20px); }
.factor span { color: var(--muted); font-size: clamp(14px, .92vw, 17px); }

/* ---------- процесс ---------- */
.steps { position: relative; list-style: none; margin-top: clamp(32px, 3.4vw, 72px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); --prog: 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 15px; left: 16px; right: 0; height: 2px; background: var(--line); }
.steps::after { right: auto; width: calc((100% - 16px) * var(--prog)); background: var(--accent); }
.step { position: relative; z-index: 1; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--muted); transition: border-color .4s, color .4s, background .4s; }
.step.on .dot { border-color: var(--accent); color: var(--paper); background: var(--accent); }
.step h3 { margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: clamp(14px, .9vw, 17px); }
.tagp { display: inline-block; margin-top: 12px; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- бережно ---------- */
.care { margin-top: clamp(32px, 3.4vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 1.8vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.spec b { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.8vw, 40px); line-height: 1.1; color: var(--ink); }
.spec > span { color: var(--muted); font-size: clamp(13px, .85vw, 16px); }
.checklist { list-style: none; margin-top: clamp(20px, 2vw, 36px); display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.care-photo { border-radius: var(--radius); min-height: 420px; }
.care-photo img { position: absolute; inset: 0; object-position: 50% 100%; } /* рабочие внизу кадра — подпись сверху */
.care-photo figcaption { position: absolute; left: clamp(14px, 1.4vw, 28px); right: clamp(14px, 1.4vw, 28px); top: clamp(14px, 1.4vw, 28px); max-width: 460px; padding: clamp(18px, 1.6vw, 30px); border-radius: calc(var(--radius) * .8); background: rgba(251,250,247,.9); backdrop-filter: blur(10px); }
.care-photo figcaption b { display: block; font-family: var(--display); font-size: clamp(15px, 1.1vw, 24px); color: var(--ink); margin-bottom: 6px; }
.care-photo figcaption span { color: var(--muted); font-size: clamp(14px, .9vw, 17px); }

/* ---------- отзывы ---------- */
.reviews { margin-top: clamp(28px, 3vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.review { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(22px, 2vw, 40px); color: var(--muted); display: flex; flex-direction: column; gap: 16px; }
.review q { font-size: clamp(16px, 1.1vw, 21px); color: var(--text); quotes: "«" "»"; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 96px); align-items: start; }
.faq-wrap > div:first-child { position: sticky; top: 40px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: clamp(18px, 1.5vw, 28px); font-weight: 600; font-size: clamp(16px, 1.15vw, 22px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq .a { padding: 0 0 clamp(20px, 1.8vw, 32px); color: var(--muted); max-width: 46em; }

/* ---------- CTA ---------- */
.cta-box { position: relative; border-radius: var(--radius); overflow: hidden; min-height: clamp(520px, 44vw, 880px); display: flex; align-items: flex-end; }
.cta-box .ba { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.cta-card { position: relative; z-index: 3; margin: clamp(16px, 2.4vw, 56px); max-width: 600px; background: rgba(251,250,247,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 52px); box-shadow: var(--shadow); }
.cta-card p { color: var(--muted); margin-top: 14px; }
.cta-card .or { font-size: var(--fs-small); margin-top: 16px; }
.cta-card .or a { color: var(--ink); font-weight: 600; }

footer.site { padding: clamp(48px, 5vw, 100px) var(--gutter) clamp(28px, 3vw, 60px); margin-top: var(--section); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); color: var(--muted); font-size: clamp(14px, .9vw, 17px); }
footer.site b { color: var(--ink); display: block; margin-bottom: 8px; }
footer.site .copy { grid-column: 1 / -1; font-size: var(--fs-small); margin-top: 24px; }

/* ---------- заявка ---------- */
dialog.lead-modal { margin: auto; border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); background: var(--paper); color: var(--text); box-shadow: 0 30px 80px -20px rgba(20,23,27,.35); }
dialog.lead-modal::backdrop { background: rgba(20,23,27,.38); backdrop-filter: blur(4px); }
.lm { padding: clamp(24px, 3vw, 44px); position: relative; }
.lm-title { font-family: var(--display); font-size: clamp(18px, 1.5vw, 26px); color: var(--ink); line-height: 1.15; padding-right: 44px; }
.lm-sub { color: var(--muted); margin: 8px 0 22px; font-size: clamp(14px, .9vw, 16px); }
.lm-close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 22px; line-height: 1; }
.lm label.inp { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lm label.inp input { display: block; width: 100%; margin-top: 6px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; padding-inline: 16px; font-weight: 400; }
.lm label.inp input[type=file] { padding-top: 13px; }
.lm label.inp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lm .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.lm .consent a { text-decoration: underline; }
.lm .consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.lm .calc-note { font-size: 13px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.lm .btn { width: 100%; }
.lm .msg { margin-top: 12px; font-size: 14px; color: var(--accent); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.to-top { position: fixed; z-index: 40; right: clamp(16px, 2vw, 40px); bottom: clamp(16px, 2vw, 40px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-2); background: rgba(251,250,247,.85); backdrop-filter: blur(8px); color: var(--ink); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- адаптив ---------- */
.burger, .mnav, .mbar { display: none; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-phone { margin-left: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .cards .card:last-child .card-media { aspect-ratio: 21 / 9; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { top: 16px; bottom: 16px; left: 15px; right: auto; width: 2px; height: auto; }
  .steps::after { height: calc((100% - 32px) * var(--prog)); bottom: auto; }
  .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 20px; }
  .step h3 { margin: 6px 0 6px; }
  .step p, .step .tagp { grid-column: 2; justify-self: start; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .calc, .care, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap > div:first-child { position: static; }
  .works { grid-template-columns: 1fr; }
  .work:first-child .ba { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
}
@media (max-width: 760px) {
  .nav-phone { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(251,250,247,.85); backdrop-filter: blur(6px); cursor: pointer; }
  .burger svg { width: 20px; height: 20px; }
  /* телефон: фото дома сверху, текст ниже на фоне — как на неоне */
  .hero { min-height: 0; }
  .hero-media { position: relative; inset: auto; height: min(62svh, 120vw); order: 0; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(243,241,236,0) 40%) top / 100% min(62svh, 120vw) no-repeat, linear-gradient(180deg, rgba(243,241,236,.75) 0%, rgba(243,241,236,0) 90px) top / 100% min(62svh, 120vw) no-repeat; }
  .nav { position: absolute; top: 0; left: 0; right: 0; }
  .hero-body { margin-top: -40px; padding-bottom: 8px; }
  .slogan { font-size: 7vw; }
  .lead { max-width: none; }
  /* цифры доверия на телефоне — компактной строкой под кнопками */
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
  .hero-facts b { font-size: 15px; }
  .hero-facts li > span { font-size: 11px; line-height: 1.35; }
  .hero-cta .btn { flex: 1 1 auto; }
  .media.empty::after, .hero-media.empty::after { white-space: normal; left: 50%; top: 50%; width: max-content; }
  .mnav { display: flex; position: fixed; inset: 0; z-index: 60; background: var(--bg); flex-direction: column; padding: 90px var(--gutter) 32px; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .mnav.open { opacity: 1; pointer-events: auto; }
  .mnav a.l { font-family: var(--display); font-size: 20px; padding-block: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mnav .btn { margin-top: 20px; }
  .mnav .x { position: absolute; right: var(--gutter); top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); font-size: 24px; cursor: pointer; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; z-index: 45; left: 10px; right: 10px; bottom: 10px; padding: 8px; border-radius: 999px; background: rgba(251,250,247,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow); border: 1px solid var(--line); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mbar.show { transform: none; }
  .mbar a, .mbar button { height: 46px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); background: none; cursor: pointer; }
  .mbar button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .to-top { bottom: 84px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child .card-media { aspect-ratio: 4 / 3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .care-photo { min-height: 0; aspect-ratio: 4 / 5; }
  footer.site { grid-template-columns: 1fr; padding-bottom: 100px; }
  .cta-box { flex-direction: column; min-height: 0; }
  .cta-box .ba { position: relative; aspect-ratio: 4 / 3; width: 100%; }
  .cta-card { margin: 0; border-radius: 0; background: var(--paper); backdrop-filter: none; box-shadow: none; padding-inline: 20px; }
}
@media (max-width: 760px) {
  /* калькулятор: больше места под контролы, заголовок не рвётся посреди слова */
  .calc { padding: 22px 18px; gap: 28px; }
  .calc h3 { font-size: 16px; overflow-wrap: normal; }
  .calc-out .btn { align-self: stretch; }
  .house { max-height: 170px; }
  /* «Бережно»: подпись под фото, а не поверх */
  .care-photo { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
  .care-photo img { position: relative; inset: auto; aspect-ratio: 4 / 5; height: auto; object-position: 50% 100%; }
  .care-photo figcaption { position: static; background: none; backdrop-filter: none; border-radius: 0; max-width: none; }
  /* плашки с цифрами — по две в ряд */
  .specs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spec { padding: 16px; border-radius: 16px; }
  .spec b { font-size: 18px; }
  .spec > span { font-size: 13px; line-height: 1.4; }
  /* финальный блок: дом стоит справа в кадре — сдвигаем фото, чтобы он попал на телефон */
  .cta-box .ba img { object-position: 78% 50%; }
}
@media (max-width: 340px) { .specs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
/* пара без «до» — показываем только чистое фото, без ползунка */
.ba.no-before .ba-line, .ba.no-before .ba-knob, .ba.no-before .ba-lab { display: none; }
.ba.no-before { cursor: default; }

/* ---------- SEO-блок «О мойке фасадов» ---------- */
.about-lead { margin-top: clamp(16px, 1.4vw, 28px); max-width: 52em; font-size: clamp(16px, 1.15vw, 22px); color: #3f444a; }
.about-cards { margin-top: clamp(28px, 3vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.about-card { padding: clamp(20px, 1.8vw, 36px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.about-card h3 { margin-bottom: 12px; }
.about-card p { color: var(--muted); font-size: clamp(14px, .92vw, 17px); }
.geo { margin-top: var(--gap); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: clamp(13px, .85vw, 16px); }
.geo b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.geo > span { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 900px) { .about-cards { grid-template-columns: 1fr; } }

/* ---------- форма: способ связи, безопасность; вход в квиз ---------- */
.lm-chips { border: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.lm-chips legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.lm-chips label { position: relative; cursor: pointer; }
.lm-chips input { position: absolute; opacity: 0; pointer-events: none; }
.lm-chips span { display: inline-flex; align-items: center; height: 38px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.lm-chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lm-chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.lm .lm-safe { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lm label.inp input[aria-invalid="true"] { border-color: #b4483c; }
.quiz-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: clamp(14px, .9vw, 16px); transition: border-color .25s, background .25s; }
.quiz-cta b { color: var(--accent); font-weight: 600; }
.quiz-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.cta-card .or a[href="quiz.html"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ссылки на посадочные страницы: карточка услуги кликается целиком, меню разделов в подвале */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.also a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent-2); color: var(--accent); }
.also a:hover { background: var(--accent-soft); }
footer.site .foot-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--line); }
footer.site .foot-nav a { color: var(--text); }
footer.site .foot-nav a:hover { color: var(--accent); }
footer.site .foot-sister { padding-top: 0; border-top: 0; color: var(--muted); }
footer.site .foot-sister b { display: inline; margin: 0 4px 0 0; font-weight: 600; color: var(--ink); }
