/* SmartHome ID: оформление «Сумерки и свет». Токены - в :root, правится в одном месте. */

@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-cyrillic.woff2") format("woff2"); font-weight: 300 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 600; 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, U+20BD; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-cyrillic.woff2") format("woff2"); font-weight: 400 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin.woff2") format("woff2"); font-weight: 400 600; 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, U+20BD; }
@font-face { font-family: "Literata"; font-style: italic; src: url("/assets/fonts/literata-cyrillic-italic.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; src: url("/assets/fonts/literata-latin-italic.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

:root {
  --dusk: #1D2630;        /* сумерки: тёмная основа */
  --dusk-2: #27323D;
  --lime: #EEF0EC;        /* известь: светлый фон */
  --paper: #F8F9F7;
  --graphite: #23292E;    /* текст */
  --muted: #5A6268;
  --pine: #4F6354;        /* хвоя */
  --pine-deep: #34443A;
  --lamp: #F2B266;        /* свет 2700 K: единственный акцент */
  --lamp-deep: #D9913F;
  --brass: #B08A55;       /* латунь: линии скрытой техники */
  --line: rgba(35, 41, 46, .14);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 14px;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--lime); color: var(--graphite); font: 400 1.0625rem/1.68 var(--serif); font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 300; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lamp-deep); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lamp); color: var(--dusk); padding: 8px 14px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 40em; }

/* кнопки и ссылки */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--lamp); color: var(--dusk); border: 1px solid var(--lamp);
  font: 500 .98rem/1 var(--sans); padding: .95em 1.5em; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--lamp-deep); border-color: var(--lamp-deep); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(127, 127, 127, .1); border-color: currentColor; }
.btn--light { background: var(--lamp); }
.more { font-family: var(--sans); font-weight: 500; }

/* черновик */
.draftbar { background: #F6E27A; color: #3A2E00; font: 500 .82rem/1.4 var(--sans); padding: .5em var(--gutter); text-align: center; }
mark.todo { background: #FFE58A; color: #3A2E00; padding: 0 .3em; border-radius: 4px; font: 500 .85em var(--sans); }
.photo-code { position: absolute; z-index: 30; background: #F6E27A; color: #3A2E00; border: 0; border-radius: 4px; font: 600 12px/1 var(--sans); padding: 4px 6px; cursor: copy; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--dusk); color: #EEF0EC; border-bottom: 1px solid var(--line-light); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo__mark { width: 30px; height: 30px; color: currentColor; flex: none; }
.logo__name { font: 400 1.25rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav__list > li > a, .nav__btn { display: block; color: inherit; text-decoration: none; font: 400 .98rem/1 var(--sans); padding: .7em .8em; border-radius: 8px;
  background: none; border: 0; cursor: pointer; }
.nav__list > li > a:hover, .nav__btn:hover, .nav__list > li > a[aria-current] { color: var(--lamp); }
.nav__btn::after { content: ""; display: inline-block; width: .42em; height: .42em; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.2em) rotate(45deg); margin-left: .5em; }
.nav__drop { position: relative; }
.nav__sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: -10px; width: 520px; background: var(--dusk-2);
  border: 1px solid var(--line-light); border-radius: var(--radius); display: none; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); }
.nav__drop.is-open .nav__sub { display: grid; }
.nav__sub a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; font: 400 .95rem/1.2 var(--sans); color: #E9ECEF; }
.nav__sub a:hover { background: rgba(255, 255, 255, .06); color: var(--lamp); }
.nav__sub .ico { width: 20px; height: 20px; color: var(--lamp); flex: none; }
.hdr__cta { padding: .75em 1.25em; }
.burger { display: none; margin-left: 4px; width: 44px; height: 44px; border: 1px solid var(--line-light); background: none; border-radius: 10px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: #EEF0EC; margin: 5px auto; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* значки */
.ico { width: 26px; height: 26px; }

/* секции */
.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.prose { max-width: 44em; }
.prose p { margin-bottom: 1.1em; }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .4em; }

/* первый экран главной: сцены */
.hero { background: var(--dusk); color: #EEF0EC; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { color: #F6F4EF; }
.hero .lead { color: #C9CFD4; }
.hero__entries { display: grid; gap: 10px; margin-top: 28px; }
.entry { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; border: 1px solid var(--line-light); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
.entry .ico { grid-row: span 2; color: var(--lamp); width: 28px; height: 28px; margin-top: 2px; }
.entry__t { font: 500 1.05rem/1.3 var(--sans); color: #F6F4EF; }
.entry__d { font-size: .93rem; color: #AEB6BD; line-height: 1.5; }
.entry:hover { border-color: var(--lamp); background: rgba(242, 178, 102, .06); }
.hero__vis { min-width: 0; }
.hero__stage { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #0E1318; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  --close: 1; --glow: 1; --day: 0; --spots: 0; --ac: 0; --guard: 0; --fade: .8s ease; --slide: 1.1s cubic-bezier(.4, 0, .2, 1); --lap: 1px; }
/* кадры и шторы - один слой: цвет сцены ложится на них одинаково, штора не выглядит наклейкой */
.hero__scene { position: absolute; inset: 0; transition: filter var(--fade); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--day { opacity: var(--day); transition: opacity var(--fade); }
.hero__tint { position: absolute; inset: 0; transition: background var(--fade); pointer-events: none; }
.glow { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 120, .55) 0, rgba(255, 170, 90, .2) 38%, transparent 70%); mix-blend-mode: screen;
  opacity: var(--glow); transition: opacity var(--fade); pointer-events: none; }
/* шторы: полотно по перспективе окна, от карниза до пола; две половины выдвигаются из стопок тюля у стен
   и скользят вместе с кромкой (--close: 0 открыты, 1 закрыты); половины заходят друг на друга на 2 * --lap, чтобы в центре не было шва. Вечером - тёплое плотное, днём - лёгкий тюль */
.curtain { position: absolute; pointer-events: none; -webkit-mask: url("/assets/img/scene/hero-curtain-mask.webp") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/img/scene/hero-curtain-mask.webp") 0 0 / 100% 100% no-repeat; }
.curtain__side { position: absolute; top: 0; bottom: 0; width: calc(50% + var(--lap)); overflow: hidden; transition: clip-path var(--slide); }
.curtain__side--l { left: 0; clip-path: inset(0 calc(100% - 100% * var(--close)) 0 0); }
.curtain__side--r { right: 0; clip-path: inset(0 0 0 calc(100% - 100% * var(--close))); }
.curtain__cloth { position: absolute; top: 0; bottom: 0; width: calc(200% - 2 * var(--lap)); transition: transform var(--slide); }
.curtain__side--l .curtain__cloth { left: 0; transform: translateX(calc(-50% * (1 - var(--close)))); }
.curtain__side--r .curtain__cloth { left: calc(-100% + 2 * var(--lap)); transform: translateX(calc(50% * (1 - var(--close)))); }
.curtain__cloth::before, .curtain__cloth::after { content: ""; position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; transition: opacity var(--fade); }
.curtain__cloth::before { background-image: url("/assets/img/scene/hero-curtain-eve.webp"); opacity: calc(1 - var(--day)); }
.curtain__cloth::after { background-image: url("/assets/img/scene/hero-curtain-day.webp"); opacity: calc(.74 * var(--day)); }
.curtain__side::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; transition: left var(--slide), right var(--slide); }
.curtain__side--l::after { left: calc(100% * var(--close) - 8px); background: linear-gradient(90deg, transparent, rgba(40, 28, 16, .12)); }
.curtain__side--r::after { right: calc(100% * var(--close) - 8px); background: linear-gradient(270deg, transparent, rgba(40, 28, 16, .12)); }
/* сцены: утро - свет из окна прохладный, шторы раскрываются; день - свет с улицы, торшер погашен; вечер - шторы закрыты, свет включён */
.hero__stage[data-scene="morning"] { --close: .3; --glow: .22; --day: 1; --spots: .4; }
.hero__stage[data-scene="morning"] .hero__scene { filter: brightness(.95) saturate(.88) contrast(1.03) hue-rotate(-5deg); }
.hero__stage[data-scene="morning"] .hero__tint { background: linear-gradient(180deg, rgba(190, 210, 236, .2), rgba(255, 255, 255, 0) 70%); }
.hero__stage[data-scene="day"] { --close: 0; --glow: 0; --day: 1; --ac: 1; }
.hero__stage[data-scene="day"] .hero__scene { filter: brightness(1.02); }
.hero__stage[data-scene="day"] .hero__tint { background: rgba(255, 255, 255, .04); }
.hero__stage[data-scene="evening"] { --close: 1; --glow: 1; --spots: .7; }
.hero__stage[data-scene="evening"] .hero__scene { filter: brightness(.95) saturate(1.06) sepia(.08); }
.hero__stage[data-scene="evening"] .hero__tint { background: radial-gradient(120% 90% at 55% 40%, rgba(242, 178, 102, .14), rgba(29, 38, 48, .18)); }
.hero__stage[data-scene="cinema"] { --close: 1; --glow: .16; --spots: .05; --ac: .4; }
.hero__stage[data-scene="cinema"] .hero__scene { filter: brightness(.36) saturate(.7) contrast(1.08); }
.hero__stage[data-scene="cinema"] .hero__tint { background: radial-gradient(60% 40% at 50% 100%, rgba(242, 178, 102, .18), rgba(10, 16, 28, .35)); }
.hero__stage[data-scene="night"] { --close: 1; --glow: 0; --guard: 1; }
.hero__stage[data-scene="night"] .hero__scene { filter: brightness(.34) saturate(.45) hue-rotate(10deg); }
.hero__stage[data-scene="night"] .hero__tint { background: radial-gradient(36% 16% at 34% 100%, rgba(242, 178, 102, .34), transparent 100%), linear-gradient(180deg, rgba(40, 60, 100, .28), rgba(10, 14, 28, .3)); }
.hero__stage[data-scene="away"] { --close: 1; --glow: 0; --guard: 1; }
.hero__stage[data-scene="away"] .hero__scene { filter: brightness(.45) grayscale(.75); }
.hero__stage[data-scene="away"] .hero__tint { background: rgba(29, 38, 48, .4); }
/* приборы сцен: сами приборы - в слое .fixtures внутри .hero__scene (цвет сцены ложится и на них), свет и огоньки - в .lights поверх;
   включает их сцена (--spots, --ac, --guard), анимации стоят на паузе, пока прибор не нужен */
.fx-spot, .fx-pir { fill: #ECE7DD; stroke: rgba(70, 58, 44, .35); stroke-width: 1px; }
.fx-ac { fill: url(#fx-acg); stroke: rgba(60, 50, 40, .28); stroke-width: 1px; }
.fx-lens { fill: #3D3B38; }
.fx-ac-lip { fill: #BEB8AC; }
.fx-slit { fill: #55524D; }
.fx-shadow { fill: rgba(0, 0, 0, .32); }
.lights > * { transition: opacity var(--fade); }
.lt-spots { opacity: var(--spots); }
.lt-halo { fill: url(#lt-halo); }
.lt-core { fill: #FFF6E4; }
.lt-air { opacity: calc(var(--ac) * .8); filter: url(#lt-soft); }
.lt-air path { fill: none; stroke: rgba(236, 246, 255, .5); stroke-width: 5px; stroke-linecap: round; stroke-dasharray: 28 42; }
.lt-ac-led { fill: #7BEBC8; opacity: var(--ac); }
.lt-guard { opacity: var(--guard); }
.lt-pir-glow { fill: url(#lt-red); }
.lt-pir-led { fill: #FF4A3D; }
.lt-pir-glow, .lt-pir-led { animation: 1.6s ease-in-out infinite pir-blink; animation-play-state: paused; }
.lt-air path { animation: 2.6s linear infinite air-flow; animation-play-state: paused; }
.lt-air path:nth-child(2) { animation-delay: -.9s; }
.lt-air path:nth-child(3) { animation-delay: -1.8s; }
.hero__stage:is([data-scene="day"], [data-scene="cinema"]) .lt-air path,
.hero__stage:is([data-scene="night"], [data-scene="away"]) :is(.lt-pir-glow, .lt-pir-led) { animation-play-state: running; }
@keyframes air-flow { to { stroke-dashoffset: -70; } }
@keyframes pir-blink { 0%, 55%, 100% { opacity: .1; } 10%, 28% { opacity: 1; } }
/* взгляд дизайнера: скрытая техника */
.xray, .fixtures, .lights, .xr-labels { position: absolute; inset: 0; pointer-events: none; }
.xray, .fixtures, .lights { width: 100%; height: 100%; }
.xray, .xr-labels { opacity: 0; transition: opacity .5s; }
.xray path, .fixtures :is(path, ellipse) { vector-effect: non-scaling-stroke; }
.xr-line, .xr-pipe { fill: none; stroke: var(--lamp); stroke-width: 2px; stroke-linecap: round; }
.xr-line--dash { stroke-dasharray: 7 6; stroke: #E8C48E; stroke-linecap: butt; }
.xr-pipe { stroke-linejoin: round; }
.xr-mark { fill: rgba(242, 178, 102, .3); stroke: var(--lamp); stroke-width: 1.5px; stroke-linejoin: round; }
.xr-zone { fill: rgba(242, 178, 102, .14); }
.xr-lead { fill: none; stroke: rgba(242, 178, 102, .75); stroke-width: 1px; }
.xr-labels { list-style: none; margin: 0; padding: 0; }
.xr-label { position: absolute; font: 500 12.5px/1.2 var(--sans); color: #FBEAD2; background: rgba(18, 24, 31, .84); border: 1px solid rgba(242, 178, 102, .55);
  padding: 5px 9px; border-radius: 999px; white-space: nowrap; transform: translate(-50%, -50%); }
.xr-label--l { transform: translate(0, -50%); }
.xr-label--r { transform: translate(-100%, -50%); }
.hero__stage.is-xray .hero__scene { filter: grayscale(.9) brightness(.42) contrast(1.15); }
.hero__stage.is-xray .hero__tint { background: rgba(14, 20, 28, .35); }
.hero__stage.is-xray { --glow: 0; --close: 0; }
.hero__stage.is-xray .lights { opacity: 0; }
.hero__stage.is-xray .xray, .hero__stage.is-xray .xr-labels { opacity: 1; }
.hero__panel { margin-top: 16px; }
.scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.scene { display: grid; gap: 2px; text-align: left; background: transparent; color: #DDE2E6; border: 1px solid var(--line-light); border-radius: 12px; padding: 9px 14px;
  font: 500 .98rem/1.1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.scene__time { font-size: .74rem; font-weight: 400; color: #9AA4AC; }
.scene:hover { border-color: rgba(242, 178, 102, .6); }
.scene[aria-selected="true"] { background: var(--lamp); color: var(--dusk); border-color: var(--lamp); }
.scene[aria-selected="true"] .scene__time { color: #5B4320; }
.states { margin-top: 14px; min-height: 8.5em; }
.state__title { font: 500 1rem/1.3 var(--sans); color: var(--lamp); margin: 0 0 .5em; }
.state ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.state li { font: 400 .93rem/1.4 var(--sans); color: #C9CFD4; display: flex; gap: 10px; align-items: baseline; }
.st__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px rgba(242, 178, 102, .8); flex: none; transform: translateY(-1px); }
.hero__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.hero__hint { font: 400 .86rem/1.4 var(--sans); color: #8E98A1; margin: 0; max-width: 30em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pause-btn { background: none; color: #AEB6BD; border: 1px solid var(--line-light); border-radius: 999px; padding: 9px 14px; font: 400 .85rem/1 var(--sans);
  cursor: pointer; white-space: nowrap; }
.pause-btn:hover { color: #EEF0EC; }
.kp__label { font-weight: 400; color: var(--muted); font-size: .85rem; }
/* кнопка «Показать скрытое» лежит на самой картинке, в правом нижнем углу */
.xray-btn { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; color: #FBEAD2;
  background: rgba(14, 20, 28, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(242, 178, 102, .85);
  border-radius: 999px; padding: 10px 17px 10px 13px; font: 500 .92rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45); transition: background .2s, color .2s; }
.xray-btn .ico { width: 19px; height: 19px; color: var(--lamp); }
.xray-btn:hover { background: rgba(32, 40, 50, .9); }
.xray-btn[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--dusk); }
.xray-btn[aria-pressed="true"] .ico { color: var(--dusk); }

/* шапка страниц */
.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); }
.phero__in { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.phero--pic .phero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.phero__pic img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.phero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { display: inline-flex; align-items: baseline; gap: .6em; font: 500 1.05rem/1.2 var(--sans); background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .6em 1.1em; margin: 8px 0 0; }
.chip span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font: 400 .88rem/1.3 var(--sans); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--graphite); text-decoration: underline; }

/* ответ, списки определений */
.answer { background: var(--paper); border-left: 3px solid var(--lamp); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 52em; font-size: 1.08rem; }
.answer p:last-child { margin: 0; }
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.defs__item { padding: 22px 0; border-top: 1px solid var(--line); }
.defs__item h3 { margin-bottom: .45em; }
.defs__text p:last-child { margin: 0; }
.defs--compact .defs__item { padding: 16px 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 6px; border: solid var(--pine); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* таблицы */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font: 400 .98rem/1.45 var(--serif); min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.tbl thead th { font: 500 .88rem/1.3 var(--sans); color: var(--muted); border-top: 0; padding-top: 0; }
.tbl tbody th { font: 500 1rem/1.35 var(--sans); width: 28%; }
.tbl--prices td { font: 500 1.02rem/1.35 var(--sans); white-space: nowrap; text-align: right; }
.tbl--levels td { font: 500 1.02rem/1.35 var(--sans); font-variant-numeric: tabular-nums; }
.tbl__note { display: block; font: 400 .85rem/1.4 var(--serif); color: var(--muted); margin-top: 3px; }

/* шаги */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.steps__item { counter-increment: s; padding: 22px 0 18px; border-top: 1px solid var(--line); position: relative; }
.steps__item::before { content: counter(s); font: 300 2.2rem/1 var(--sans); color: var(--brass); display: block; margin-bottom: 12px; }
.steps__time { font: 500 .85rem/1.3 var(--sans); color: var(--pine); margin: -.3em 0 .5em; }

/* общие блоки */
.sec--shared { background: var(--paper); padding: var(--sec) 0; }
.sec + .sec--shared { padding-top: var(--sec); }
.shared-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.shared h2 { font-size: 1.45rem; font-weight: 400; }

/* вопросы */
.faq { max-width: 860px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; font: 500 1.08rem/1.4 var(--sans); padding: 18px 40px 18px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border: solid var(--brass); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 18px; max-width: 46em; }
.faq__a p:last-child { margin: 0; }

/* ссылки на страницы */
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.links a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.links__name { font: 500 1.08rem/1.3 var(--sans); }
.links a:hover .links__name { color: var(--pine); text-decoration: underline; text-decoration-color: var(--brass); }
.links__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.badge { font: 500 .72rem/1 var(--sans); background: #F6E27A; color: #3A2E00; padding: 3px 6px; border-radius: 4px; vertical-align: middle; }

/* панель клавиш */
.keypad-wrap { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.keypad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: #DFE3DE; padding: 14px; border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 30px 60px -36px rgba(29, 38, 48, .45); position: sticky; top: 92px; }
.key { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 92px; text-align: left; padding: 14px;
  background: linear-gradient(180deg, #FBFBF9, #EDF0EB); border: 1px solid rgba(35, 41, 46, .08); border-radius: 13px; color: var(--graphite);
  font: 500 .95rem/1.15 var(--sans); cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(29, 38, 48, .07); transition: background .2s, color .2s; }
.key .ico { color: var(--pine); width: 24px; height: 24px; }
.key::after { content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: rgba(35, 41, 46, .16); }
.key:hover { background: #fff; }
.key[aria-selected="true"] { background: var(--dusk); color: #F3F1EA; border-color: var(--dusk); }
.key[aria-selected="true"] .ico { color: var(--lamp); }
.key[aria-selected="true"]::after { background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.kp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.kp__img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.kp__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 300; margin-bottom: .4em; }
.kp__price { font: 500 1.1rem/1.3 var(--sans); color: var(--pine); }

/* четыре правила */
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.point { border-top: 2px solid var(--pine); padding-top: 18px; }
.point h3 { font-size: 1.25rem; }
.point p { color: var(--muted); font-size: .98rem; margin: 0; }

/* этапы ремонта */
.sec--stages { background: var(--paper); padding: var(--sec) 0; }
.sec + .sec--stages { padding-top: var(--sec); }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line); }
.stage { position: relative; padding: 0 14px 0 0; }
.stage__n { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line);
  font: 500 .95rem/1 var(--sans); color: var(--muted); margin-bottom: 14px; }
.stage--we .stage__n { background: var(--lamp); border-color: var(--lamp); color: var(--dusk); box-shadow: 0 0 0 6px rgba(242, 178, 102, .22); }
.stage h3 { font-size: 1rem; }
.stage p { font-size: .9rem; line-height: 1.5; color: var(--muted); margin-bottom: .6em; }
.stage__we { font: 500 .85rem/1.3 var(--sans) !important; color: var(--lamp-deep) !important; }

/* полосы: дизайнерам, Рублёвка */
.band { padding: var(--sec) 0; color: #EEF0EC; }
.sec + .band { padding-top: var(--sec); }
.band--dusk { background: var(--dusk); }
.band--pine { background: var(--pine-deep); }
.band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band h2 { color: #F6F4EF; }
.band__copy p { color: #CDD3D0; }
.band__img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.nums { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.nums li { border-top: 1px solid var(--line-light); padding-top: 16px; display: grid; gap: 6px; }
.big { font: 300 clamp(1.9rem, 3vw, 2.6rem)/1.05 var(--sans); color: var(--lamp); letter-spacing: -.02em; }
.nums li > span:last-child { color: #B9C1C7; font: 400 .95rem/1.4 var(--sans); }
.villages { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.villages li { font: 400 .9rem/1 var(--sans); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 8px 12px; }

/* дизайнерам */
.terms { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 0 32px; }
.term { border-top: 1px solid var(--line); padding: 22px 0; }
.term__v { display: block; font: 300 clamp(2rem, 3.4vw, 2.8rem)/1 var(--sans); color: var(--pine); margin-bottom: 12px; letter-spacing: -.02em; }
.term p { color: var(--muted); margin: 0; font-size: .97rem; }
.flow { list-style: none; counter-reset: f; padding: 0; margin: 28px 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.flow li { counter-increment: f; border-top: 2px solid var(--brass); padding-top: 14px; }
.flow li::before { content: counter(f); font: 300 1.8rem/1 var(--sans); color: var(--brass); display: block; margin-bottom: 8px; }
.flow h3 { font-size: 1.02rem; }
.flow p { color: var(--muted); font-size: .93rem; }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 32px; }
.idea__img { border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 14px; }
.idea h3 { margin-bottom: .35em; }
.idea p { font-size: .97rem; margin-bottom: .5em; }
.idea__how { color: var(--pine); font: 400 .9rem/1.45 var(--sans) !important; }
.sec--lab { background: var(--paper); padding: var(--sec) 0; }
.sec + .sec--lab { padding-top: var(--sec); }

/* расчёт */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 48px; background: var(--paper); border-radius: 20px; padding: clamp(20px, 3vw, 40px); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; grid-column: 1; min-width: 0; }
.calc legend { font: 500 .9rem/1 var(--sans); color: var(--muted); margin-bottom: 10px; padding: 0; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input, .tick input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 500 .98rem/1.15 var(--sans); cursor: pointer; background: #fff; }
.seg small { font-weight: 400; font-size: .78rem; color: var(--muted); }
.seg input:checked + span { background: var(--dusk); color: #F3F1EA; border-color: var(--dusk); }
.seg input:checked + span small { color: #B9C1C7; }
.seg input:focus-visible + span, .tick input:focus-visible + span { outline: 2px solid var(--lamp-deep); outline-offset: 2px; }
.area { display: flex; align-items: center; gap: 16px; }
.area input { flex: 1; accent-color: var(--pine); min-width: 0; }
.area output { font: 500 1.4rem/1 var(--sans); min-width: 3.2em; text-align: right; }
.ticks { display: grid; gap: 8px; }
.tick span { display: block; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; cursor: pointer; font: 400 .95rem/1.3 var(--sans); }
.tick span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 4px; transform: translateY(-50%); }
.tick input:checked + span { border-color: var(--pine); }
.tick input:checked + span::before { background: var(--pine); border-color: var(--pine); box-shadow: inset 0 0 0 2px #fff; }
.calc__out { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: 92px; background: var(--dusk); color: #EEF0EC; border-radius: 16px; padding: 26px; }
.calc__label { font: 400 .9rem/1 var(--sans); color: #9AA4AC; margin-bottom: 10px; }
.calc__sum { font: 300 clamp(2rem, 3.4vw, 2.8rem)/1.05 var(--sans); color: var(--lamp); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.calc__proj { font: 400 .95rem/1.4 var(--sans); color: #C9CFD4; }
.calc__out .muted { color: #8E98A1; font-size: .82rem; }
.calc__out .btn { margin-top: 18px; }
.calc__tel { margin-top: 14px; font: 400 .92rem/1.5 var(--sans); color: #C9CFD4; overflow-wrap: anywhere; }
.calc__tel a { color: var(--lamp); text-decoration: underline; text-underline-offset: 3px; }
.calc__ask { margin-top: 24px; }
.calc__what { margin: 0; }

/* Рублёвка: посёлки */
.vgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.vg h3 { font-size: 1.05rem; }
.vg .villages li { border-color: var(--line); color: var(--graphite); }
.vg .villages { margin-top: 10px; }

/* форма */
.sec--form { background: var(--dusk); color: #EEF0EC; padding: var(--sec) 0; }
.sec + .sec--form { padding-top: var(--sec); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form__copy h2 { color: #F6F4EF; }
.form__lead { color: #C9CFD4; }
.form { background: var(--paper); color: var(--graphite); border-radius: 20px; padding: clamp(20px, 3vw, 36px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 500 .88rem/1.2 var(--sans); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--graphite); background: #fff; border: 1px solid rgba(35, 41, 46, .2);
  border-radius: 10px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lamp); outline-offset: 0; border-color: var(--lamp-deep); }
.field--wide { grid-column: 1 / -1; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font: 400 .92rem/1.4 var(--sans); color: var(--graphite); }
.field--check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pine); flex: none; }
.field--consent { margin: 18px 0 16px; }
.field.is-bad input, .field.is-bad select { border-color: #B3402B; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: #9E2F1C; font: 500 .95rem/1.4 var(--sans); }
.form__ok { color: var(--pine); font: 500 1rem/1.4 var(--sans); margin-top: 14px; }

/* подвал */
.ftr { background: #151C24; color: #B9C1C7; padding: 56px 0 28px; font: 400 .95rem/1.55 var(--sans); }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px; }
.ftr .logo { color: #EEF0EC; margin-bottom: 14px; }
.ftr__h { font: 500 .9rem/1 var(--sans); color: #EEF0EC; margin: 0 0 14px; letter-spacing: 0; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--lamp); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: .85rem; color: #8E98A1; }

/* страница кодов фото */
.karts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.kart img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.kart p { margin: 6px 0 0; font: 400 .9rem/1.3 var(--sans); }

/* документы */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal td, .legal th { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }

/* ширины */
@media (max-width: 1100px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .stages::before { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .nav__list > li > a, .nav__btn { padding: .7em .55em; font-size: .94rem; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--dusk); padding: 12px var(--gutter) 40px; overflow-y: auto; display: none; margin: 0; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li > a, .nav__btn { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line-light); border-radius: 0; width: 100%; text-align: left; }
  .nav__sub { position: static; width: auto; display: grid; grid-template-columns: 1fr; background: none; border: 0; box-shadow: none; padding: 4px 0 10px; }
  .nav__btn::after { display: none; }
  .hdr__cta { margin-left: auto; }
  .hero__in, .band__in, .form-wrap, .keypad-wrap, .phero--pic .phero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy h1 { order: 1; margin-bottom: 18px; }
  .hero__vis { order: 2; }
  .hero__copy .lead { order: 3; margin-top: 26px; }
  .hero__entries { order: 4; }
  .keypad { position: static; grid-template-columns: repeat(4, 1fr); }
  .key { min-height: 0; padding: 12px 10px; gap: 10px; font-size: .85rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__out { grid-column: 1; grid-row: auto; position: static; }
  .band__pic { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo { min-width: 0; }
  .logo__name { font-size: .95rem; line-height: 1.1; white-space: normal; }
  .hdr__cta { padding: .7em 1em; font-size: .9rem; }
  .points, .nums { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .stage__n { grid-row: span 3; margin: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .keypad { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; border-radius: 14px; }
  .key { font-size: .72rem; padding: 10px 6px; align-items: center; text-align: center; }
  .key::after { top: 7px; right: 7px; width: 5px; height: 5px; }
  .state ul { grid-template-columns: minmax(0, 1fr); }
  .xr-label { font-size: 9.5px; padding: 2px 6px; }
  .xray-btn { right: 8px; bottom: 8px; padding: 8px 13px 8px 10px; font-size: .8rem; }
  .xray-btn .ico { width: 16px; height: 16px; }
  .xr-wide { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); }
  .tbl { min-width: 0; }
  .tbl--levels { min-width: 520px; }
  .tbl--prices td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  .lt-air { display: none; }
}

/* cookie: баннер согласия на Яндекс Метрику (только если в site.json задан номер счётчика) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  background: var(--dusk); color: #EEF0EC; border: 1px solid var(--line-light); border-radius: 12px; padding: 16px 18px; font-size: .9rem; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; margin: 0; }
.cookie a { color: var(--lamp); }
.cookie__btns { display: flex; gap: 10px; }
.ftr__btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ftr__btn:hover { color: var(--lamp); }
