/* Стили главной страницы. Вынесены из moodboard.html: на сайте нет встроенных стилей (строгая CSP). */
/* Manrope — свой файл, без Google Fonts: нет сторонних запросов, IP посетителей не уходит за границу (лицензия OFL) */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic.woff2?v=e58febde") format("woff2"); font-weight: 300 600; 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 600; 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 600; 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; }

/* Резиновая вёрстка: ширина — на весь экран, отступы и размеры — через clamp() от ширины окна */
:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --line: #1c2028;
  --text: #f4efe7;
  --muted: #8b8f98;
  --neon-core: #fff3dd;
  --neon: #ffc070;
  --neon-deep: #ff9a2e;
  --glow: 0 0 2px var(--neon-core), 0 0 8px var(--neon), 0 0 22px rgba(255,154,46,.55), 0 0 48px rgba(255,154,46,.25);
  --display: "Akony", "Manrope", sans-serif;
  --radius: clamp(18px, 1.6vw, 32px); /* единое скругление: карточки, фото, плашки */
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.7,.2,1);
  --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);
}
h1, h2, h3, .slogan, .logo, .card .num { font-synthesis: none; }
/* страховка: слишком длинное слово в широком Akony переносится, а не вылезает за экран */
h2, h3, .slogan { overflow-wrap: break-word; }

* { box-sizing: border-box; margin: 0; padding: 0; }
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); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; padding-inline: var(--gutter); }

/* ---------- Метка мудборда ---------- */
/* кнопка «наверх»: появляется после первого экрана, поднимает и заново запускает видео */
.to-top { position: fixed; z-index: 50; right: clamp(16px, 2vw, 40px); bottom: clamp(16px, 2vw, 40px); width: clamp(48px, 3.4vw, 60px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(7,8,11,.78); backdrop-filter: blur(8px); border: 1px solid rgba(255,233,201,.45); color: #ffe9c9; box-shadow: 0 0 14px rgba(255,170,80,.16);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { outline: none; border-color: var(--neon); color: var(--neon-core); box-shadow: var(--glow); }
.to-top svg { width: 40%; height: 40%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: var(--hero-h, 100svh); display: flex; flex-direction: column; overflow: hidden; background: #060912; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
.hero-media [hidden] { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,8,11,.88) 0%, rgba(7,8,11,.6) 32%, rgba(7,8,11,0) 64%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,8,11,0) 20%); }
.nav { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; 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: var(--text); 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; filter: drop-shadow(0 0 7px rgba(255,154,46,.38)); }
.logo-word { height: .82em; width: auto; aspect-ratio: 151.79 / 16.40; }
.logo-sub { margin-left: .2em; padding-left: .85em; border-left: 1px solid rgba(255,255,255,.2); font-family: var(--body); font-weight: 600; font-size: .68em; letter-spacing: .26em; text-transform: uppercase; line-height: 1.7; color: var(--neon); text-shadow: 0 0 10px rgba(255,154,46,.45); }
/* переключатель направлений 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: rgba(13,15,20,.97); border: 1px solid #2a2f39; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.bs-list b { color: var(--text); }
.bs-list span { color: var(--muted); }
.bs-list a:hover, .bs-list a:focus-visible { outline: none; background: rgba(255,192,112,.08); }
.bs-list a[aria-current] b::after { color: var(--neon); }
.foot-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.foot-logo { display: inline-flex; align-items: center; gap: .6em; font-size: 15px; color: var(--text); }
.foot-brand > span:last-child { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 56px); font-size: clamp(14px, .95vw, 18px); color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.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-family: var(--body); font-weight: 500; line-height: 1.5; font-size: clamp(12px, .9vw, 17px); letter-spacing: .22em; text-transform: uppercase; color: var(--neon); 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; letter-spacing: 0; }
/* «встречает вас» — мягкое тёплое свечение, не прожектор */
.slogan em { font-style: normal; color: #ffe9c9; text-shadow: 0 0 1px rgba(255,233,201,.6), 0 0 14px rgba(255,170,80,.28), 0 0 38px rgba(255,154,46,.12); }
.lead { margin-top: clamp(20px, 2vw, 40px); max-width: clamp(300px, 36vw, 720px); font-size: clamp(16px, 1.35vw, 26px); font-weight: 300; color: #c9c4bb; }
/* на широких экранах подзаголовок уходит вправо вниз, на уровень фактов: левая колонка чище */
@media (min-width: 1100px) {
  .hero .lead { position: absolute; right: var(--gutter); bottom: clamp(40px, calc(var(--hero-h, 100vh) * .08), 120px); margin: 0;
    max-width: clamp(280px, 25vw, 480px); padding-top: 18px; font-size: clamp(15px, 1.1vw, 22px); color: #d6d1c8; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
  .hero .lead::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 1.5px; border-radius: 2px; background: rgba(255,233,201,.75); box-shadow: 0 0 8px rgba(255,170,80,.45); }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(55% 45% at 100% 100%, rgba(7,8,11,.78), rgba(7,8,11,0) 70%); }
}
.actions { margin-top: clamp(28px, 2.8vw, 56px); display: flex; flex-wrap: wrap; gap: var(--gap); }

/* появление текста после того, как загорелся свет */
.js .reveal-h { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero.on .reveal-h { opacity: 1; transform: none; }
.hero.on .reveal-h:nth-child(2) { transition-delay: .08s; }
.hero.on .reveal-h:nth-child(3) { transition-delay: .16s; }
.hero.on .reveal-h:nth-child(4) { transition-delay: .24s; }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .6em; padding: 1.1em 1.8em; border-radius: 999px; font-size: clamp(15px, 1.05vw, 20px); font-weight: 500; cursor: pointer; border: 0; font-family: var(--body); transition: box-shadow .5s var(--ease), background .5s, color .5s, border-color .5s; }
/* главная кнопка — как «Смотреть работы», но в тёплом цвете «встречает вас»: тёплый текст, обводка и мягкое свечение */
.btn-primary { background: transparent; color: #ffe9c9; border: 1px solid rgba(255,233,201,.7); text-shadow: 0 0 14px rgba(255,170,80,.28); box-shadow: 0 0 14px rgba(255,170,80,.18), inset 0 0 10px rgba(255,170,80,.08); }
.btn-primary:hover { border-color: var(--neon); color: var(--neon-core); box-shadow: var(--glow), inset 0 0 12px rgba(255,154,46,.2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon-core); box-shadow: var(--glow), inset 0 0 12px rgba(255,154,46,.2); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Секции ---------- */
section.block { padding-block: var(--section); }
section.block.pt0 { padding-top: 0; }   /* было style="padding-top:0" — строгая CSP запрещает style-атрибуты */
.kicker { font-size: var(--fs-small); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(14px, 1.3vw, 28px); }
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; }
.note { margin-top: clamp(12px, 1.2vw, 24px); color: var(--muted); max-width: 52ch; font-size: clamp(15px, 1.1vw, 21px); }

/* неоновый разделитель: рисуется от центра */
.divider { height: 2px; margin-inline: var(--gutter); background: rgba(255,233,201,.7); border-radius: 2px; box-shadow: 0 0 6px rgba(255,170,80,.3), 0 0 18px rgba(255,154,46,.12); transform: scaleX(0); opacity: .9; transition: transform .9s var(--ease); }
.divider.lit { transform: scaleX(1); }

/* карточки с контурной подсветкой */
.cards { margin-top: clamp(36px, 4vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; padding: clamp(28px, 2.6vw, 60px); border-radius: var(--radius); background: linear-gradient(180deg, #0f1117, #0a0b0f); min-height: clamp(260px, 22vw, 480px); display: flex; flex-direction: column; }
/* фоновая картинка карточки: объект вверху/справа, низ уходит в тень под текст */
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 20%; border-radius: inherit; }
.card-shade { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(0deg, #0a0b0f 0%, rgba(10,11,15,.9) 30%, rgba(10,11,15,.35) 62%, rgba(10,11,15,.15) 100%),
              linear-gradient(90deg, rgba(10,11,15,.55) 0%, rgba(10,11,15,0) 55%); }
.card > .num, .card > h3, .card > p { position: relative; z-index: 1; }
.card .num { font-family: var(--display); font-size: var(--fs-small); color: var(--muted); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.3vw, 30px); line-height: 1.2; margin: auto 0 clamp(10px, 1vw, 20px); }
.card p { color: #a7a39c; font-size: clamp(15px, 1vw, 19px); }
.card .glow-in { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 50% 0%, rgba(255,170,80,.12), transparent 60%); opacity: 0; transition: opacity .8s var(--ease) .6s; }
.card.lit .glow-in { opacity: 1; }
/* контур — одна линия по скруглённому периметру, бежит как неоновая лента (гибкий неон углов не делает) */
.contour { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(255,233,201,.5)) drop-shadow(0 0 6px rgba(255,170,80,.28)) drop-shadow(0 0 16px rgba(255,154,46,.12)); }
/* контур приглушён: тёплая линия без «прожектора», чтобы не била в глаза на больших карточках */
.contour rect { fill: none; stroke: rgba(255,233,201,.62); stroke-width: 1.5; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset .8s linear, opacity .15s linear; }
.card.lit .contour rect { stroke-dashoffset: 0; opacity: 1; }

/* ---------- Цены ---------- */
.demo-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(14px, 1.2vw, 24px); padding: 6px 12px; border: 1px dashed rgba(255,192,112,.5); border-radius: 999px; font-size: var(--fs-small); color: var(--neon); }
.plans { margin-top: clamp(36px, 4vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); align-items: stretch; }
.plan { min-height: 0; }
.plan h3 { margin: 0 0 clamp(6px, .6vw, 12px); }
.plan .for { color: var(--muted); font-size: clamp(14px, .95vw, 18px); }
.plan .price { margin: clamp(22px, 2vw, 40px) 0 clamp(4px, .4vw, 8px); font-family: var(--display); font-size: clamp(22px, 1.9vw, 46px); line-height: 1.05; color: var(--text); white-space: nowrap; }
.plan .price small { font-family: var(--body); font-size: .36em; color: var(--muted); letter-spacing: 0; margin-right: .3em; vertical-align: .4em; }
.plan .unit { color: var(--muted); font-size: var(--fs-small); }
.plan ul { list-style: none; margin: clamp(20px, 1.8vw, 36px) 0 clamp(24px, 2.2vw, 44px); display: grid; gap: .55em; font-size: clamp(14px, .95vw, 18px); color: #bdb8af; }
.plan li { position: relative; padding-left: 1.4em; }
.plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7em; height: 2px; border-radius: 2px; background: var(--neon-core); box-shadow: 0 0 6px var(--neon); }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: rgba(255,255,255,.2); box-shadow: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .tagline { align-self: flex-start; margin-bottom: clamp(12px, 1vw, 20px); padding: 4px 12px; border: 1px solid rgba(255,192,112,.5); border-radius: 999px; font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: var(--neon); }
/* комплекс горит всегда и чуть ярче */
.plan.featured { background: linear-gradient(180deg, #16130f, #0c0b0a); }
.plan.featured .contour rect { stroke-dashoffset: 0; opacity: 1; stroke: rgba(255,233,201,.8); }
.plan.featured .glow-in { opacity: 1; }

/* калькулятор */
.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(--bg-2); }
.calc h3 { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.5vw, 34px); line-height: 1.15; }
.field { margin-top: clamp(24px, 2.4vw, 48px); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; color: #c9c4bb; font-size: clamp(14px, 1vw, 19px); }
/* место под число зарезервировано под «200 м» — подпись слева не переносится туда-сюда */
.field-row output { flex-shrink: 0; width: 6.8em; white-space: nowrap; text-align: right; font-family: var(--display); font-size: clamp(16px, 1.4vw, 30px); color: var(--text); }
/* ползунок — неоновая лента: светится заполненная часть */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--neon-core) var(--p), rgba(255,255,255,.12) var(--p)); box-shadow: 0 0 10px rgba(255,170,80,.35); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); }
.range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--neon-core); box-shadow: 0 0 10px rgba(255,170,80,.5); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--neon-core); box-shadow: var(--glow); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--neon-core); box-shadow: var(--glow); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--neon); outline-offset: 3px; }
.calc-out { display: flex; flex-direction: column; }
.schema { width: 100%; height: auto; }
.schema .base { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; stroke-linejoin: round; }
.schema .roof-neon { fill: none; stroke: var(--neon-core); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 10px rgba(255,154,46,.6)); transition: stroke-dashoffset .35s var(--ease); }
.path-mode { margin-top: clamp(24px, 2.4vw, 48px); }
.schema .path-neon { transition: stroke-dashoffset .35s var(--ease), opacity .3s; }
.schema .hide { opacity: 0; }
.schema .bol { fill: rgba(255,255,255,.14); transition: fill .25s, filter .25s; }
.schema .bol.on { fill: var(--neon-core); filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 10px rgba(255,154,46,.6)); }
.sum-label { margin-top: clamp(16px, 1.6vw, 32px); color: var(--muted); font-size: var(--fs-small); letter-spacing: .18em; text-transform: uppercase; }
.sum { font-family: var(--display); font-size: clamp(21px, 2.6vw, 62px); line-height: 1.05; color: #ffe9c9; text-shadow: 0 0 1px rgba(255,233,201,.6), 0 0 14px rgba(255,170,80,.28), 0 0 38px rgba(255,154,46,.12); white-space: nowrap; }
.num-cells .d { display: inline-block; width: 1.36em; text-align: center; }
.num-cells .sp { display: inline-block; width: .5em; }
.sum-note { margin: 10px 0 clamp(20px, 2vw, 36px); color: var(--muted); font-size: clamp(13px, .9vw, 16px); max-width: 44ch; }

/* блок «О подсветке»: ввод, факты, фото, карточки с плашками */
.seo-text h2 { max-width: 32ch; font-size: clamp(20px, 1.9vw, 42px); }
.about-grid { margin-top: clamp(28px, 3vw, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 96px); align-items: center; }
.about-lead { font-size: clamp(19px, 1.6vw, 32px) !important; line-height: 1.35; color: var(--text) !important; font-weight: 400; }
.about-lead::first-line { color: #ffe9c9; }
.about-main p { color: #a7a39c; font-size: clamp(15px, 1.05vw, 19px); max-width: 60ch; }
.about-main p + p { margin-top: 1em; }
.about-facts { list-style: none; margin-top: clamp(24px, 2.4vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.about-facts li { padding: 18px 16px 0 0; }
.about-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.about-facts b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(15px, 1.05vw, 24px); line-height: 1.15; color: #ffe9c9;
  text-shadow: 0 0 14px rgba(255,170,80,.28); }
.about-facts span { display: block; margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px rgba(255,233,201,.35), 0 0 30px rgba(255,170,80,.12), 0 30px 70px rgba(0,0,0,.5); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; display: block; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,11,.55), rgba(7,8,11,0) 45%); }
.about-cards { margin-top: clamp(28px, 3vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.about-card { padding: clamp(22px, 2.2vw, 40px); border-radius: var(--radius); background: linear-gradient(180deg, #0f1117, #0a0b0f); border: 1px solid var(--line); }
.about-card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 1.1vw, 22px); }
.about-card p { margin-top: 10px; color: var(--muted); font-size: clamp(14px, .95vw, 17px); }
.pills { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,233,201,.22); background: rgba(255,233,201,.04); color: #d6d1c8; font-size: clamp(13px, .9vw, 16px); }
@media (max-width: 1100px) { .about-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .about-grid, .about-cards { grid-template-columns: minmax(0, 1fr); }
  .about-photo { order: -1; aspect-ratio: 16 / 10; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* вход в квиз под калькулятором */
.quiz-cta { margin-top: var(--gap); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(20px, 2.2vw, 40px); border-radius: var(--radius); border: 1px dashed rgba(255,233,201,.35); }
.quiz-cta b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.3vw, 28px); }
.quiz-cta span { display: block; margin-top: 4px; color: #a7a39c; }

/* что влияет на цену */
.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(20px, 1.8vw, 36px); border-top: 1px solid var(--line); }
.factor b { display: block; font-weight: 600; margin-bottom: 6px; font-size: clamp(15px, 1.05vw, 20px); }
.factor span { color: var(--muted); font-size: clamp(14px, .95vw, 18px); }

/* ---------- Окно заявки ---------- */
.lead-modal { padding: 0; border: 0; background: transparent; color: var(--text); width: min(640px, 100% - 24px); max-width: none; max-height: none; margin: auto; overflow: visible; }
.lead-modal::backdrop { background: rgba(4,5,8,.74); backdrop-filter: blur(6px); }
.lead-modal[open] { animation: leadIn .35s var(--ease); }
@keyframes leadIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lead-panel { position: relative; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 48px); border-radius: var(--radius); border: 1px solid rgba(255,233,201,.32); background: linear-gradient(180deg, #11131a, #0a0b0f); box-shadow: 0 0 30px rgba(255,170,80,.1), 0 30px 80px rgba(0,0,0,.6); }
.lead-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: color .25s, border-color .25s; }
.lead-close:hover { color: var(--text); border-color: rgba(255,233,201,.5); }
.lead-title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 34px); line-height: 1.12; margin-right: 44px; }
.lead-sub { margin-top: 10px; color: #bdb8af; font-size: clamp(14px, .95vw, 17px); }
.lead-calc { margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(255,192,112,.45); color: #ffe9c9; font-size: clamp(14px, .95vw, 16px); }
.lead-grid { margin-top: clamp(20px, 2vw, 28px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld.wide { grid-column: 1 / -1; }
.fld > span, .chips legend { display: block; margin-bottom: 6px; font-size: var(--fs-small); color: var(--muted); }
.fld input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #07080b; color: var(--text); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.fld input::placeholder { color: #565a63; }
.fld input:focus { outline: none; border-color: rgba(255,233,201,.7); box-shadow: 0 0 0 3px rgba(255,170,80,.14), 0 0 16px rgba(255,170,80,.16); }
.fld input[aria-invalid="true"] { border-color: #ff8a7a; }
.chips { border: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #cfcac2; font-size: clamp(14px, .9vw, 16px); transition: border-color .25s, color .25s, box-shadow .25s; }
.chip input:checked + span { border-color: rgba(255,233,201,.75); color: #ffe9c9; box-shadow: 0 0 12px rgba(255,170,80,.2), inset 0 0 8px rgba(255,170,80,.08); }
.chip input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.file { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn { padding: 9px 16px; border-radius: 999px; border: 1px dashed rgba(255,233,201,.45); color: #ffe9c9; font-size: clamp(14px, .9vw, 16px); }
.file input:focus-visible + .file-btn { outline: 2px solid var(--neon); outline-offset: 2px; }
.file-info { color: var(--muted); font-size: var(--fs-small); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; color: #a7a39c; font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #ffc070; }
.consent a { color: #ffe9c9; text-decoration: underline; text-underline-offset: 3px; }
.lead-error { margin-top: 14px; color: #ff9a8b; font-size: clamp(14px, .9vw, 16px); }
.lead-submit { margin-top: 22px; width: 100%; justify-content: center; }
.lead-submit[disabled] { opacity: .6; cursor: progress; }
.lead-safe { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); text-align: center; }
.lead-done { text-align: center; padding-block: clamp(12px, 2vw, 32px); }
.lead-done .lead-title { margin: 0 auto; }
.lead-done .btn { margin-top: 24px; }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

/* ---------- Мобильное меню ---------- */
.burger, .mnav { display: none; }
@media (max-width: 760px) {
  .nav { padding-block: 22px; }
  /* бургер закреплён: шапка не липкая, а меню нужно и после прокрутки */
  .burger { display: grid; place-items: center; position: fixed; z-index: 60; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
    background: rgba(7,8,11,.62); backdrop-filter: blur(8px); border: 1px solid rgba(255,233,201,.38); box-shadow: 0 0 12px rgba(255,170,80,.12); }
  .burger span { position: absolute; width: 18px; height: 1.5px; border-radius: 2px; background: #ffe9c9; transition: transform .3s var(--ease); }
  .burger span:first-child { transform: translateY(-3.5px); }
  .burger span:last-child { transform: translateY(3.5px); }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .burger:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

  .mnav { display: flex; flex-direction: column; justify-content: flex-end; position: fixed; inset: 0; z-index: 55; overflow-y: auto;
    padding: 88px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: rgba(6,7,10,.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
  .mnav.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .mnav ul { list-style: none; }
  .mnav li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .mnav.open li { opacity: 1; transform: none; }
  .mnav.open li:nth-child(2) { transition-delay: .05s; }
  .mnav.open li:nth-child(3) { transition-delay: .1s; }
  .mnav.open li:nth-child(4) { transition-delay: .15s; }
  .mnav.open li:nth-child(5) { transition-delay: .2s; }
  .mnav.open li:nth-child(6) { transition-delay: .25s; }
  .mnav.open li:nth-child(7) { transition-delay: .3s; }
  .mnav li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-weight: 700; font-size: clamp(18px, 5.6vw, 30px); transition: color .25s, border-color .25s; }
  .mnav li a::after { content: "→"; font-family: var(--body); font-weight: 400; font-size: .7em; color: var(--muted); }
  .mnav li a:active, .mnav li a:focus-visible { outline: none; color: #ffe9c9; border-color: rgba(255,233,201,.6); }
  .mnav .btn { margin-top: 28px; justify-content: center; }
  .mnav-contacts { margin-top: 18px; color: var(--muted); font-size: var(--fs-small); text-align: center; }
}

/* ---------- Факты под первым экраном ---------- */
.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: #ffe9c9; line-height: 1.1; }
.hero-facts span { display: block; margin-top: 4px; color: #a7a39c; font-size: var(--fs-small); }
.hero.on .reveal-h:nth-child(5) { transition-delay: .32s; }

/* ---------- Как мы работаем ---------- */
.steps { --prog: 0; position: relative; margin-top: clamp(40px, 4.4vw, 96px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.steps-line { position: absolute; left: 0; right: 0; top: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.steps-line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,233,201,.75); box-shadow: 0 0 8px rgba(255,170,80,.4), 0 0 20px rgba(255,154,46,.15); transform: scaleX(var(--prog)); transform-origin: left; }
.step { position: relative; padding-top: clamp(52px, 4vw, 72px); }
.step-dot { position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid rgba(255,255,255,.22); color: var(--muted); font-family: var(--display); font-size: 11px; transition: border-color .4s, color .4s, box-shadow .4s; }
.step.on .step-dot { border-color: #ffe9c9; color: #ffe9c9; box-shadow: 0 0 10px rgba(255,170,80,.35); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.05vw, 24px); line-height: 1.2; overflow-wrap: anywhere; }
.step p { margin-top: 10px; color: #a7a39c; font-size: clamp(14px, .95vw, 18px); }
.step-time { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: #cfcac2; font-size: var(--fs-small); }
.steps-cta { margin-top: clamp(32px, 3vw, 64px); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps-line { left: 14px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps-line::after { transform: scaleY(var(--prog)); transform-origin: top; }
  .step { padding: 0 0 32px 54px; }
}

/* ---------- Надёжность и управление ---------- */
.reliab { margin-top: clamp(36px, 4vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 72px); align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.spec { min-width: 0; }
/* на узком экране широкий Akony («−40 °C») не помещается в два столбца — ставим в один */
@media (max-width: 560px) { .specs { grid-template-columns: minmax(0, 1fr); } }
.spec { container-type: inline-size; padding: clamp(20px, 2vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
/* размер — от ширины самой плитки (cqi): крупная цифра никогда не вылезает за рамку; длинное — переносится по словам */
.spec b { display: block; font-family: var(--display); font-weight: 700; font-size: min(clamp(22px, 2.2vw, 52px), 8.5cqi);   /* без JS — безопасный размер; main.js подбирает максимальный */ line-height: 1.08; color: #ffe9c9; overflow-wrap: normal; }
.spec span { display: block; margin-top: 8px; color: #a7a39c; font-size: clamp(14px, .95vw, 18px); }
.checks { margin-top: clamp(20px, 2vw, 40px); list-style: none; display: grid; gap: .7em; color: #c9c4bb; font-size: clamp(15px, 1vw, 19px); }
.checks li { position: relative; padding-left: 1.6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75em; height: .4em; border-left: 2px solid #ffe9c9; border-bottom: 2px solid #ffe9c9; transform: rotate(-45deg); filter: drop-shadow(0 0 4px rgba(255,170,80,.5)); }
.control { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #060912; aspect-ratio: 4 / 3.4; }
.control img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: opacity .7s var(--ease); }
.control .on-img { opacity: 0; }
.control.is-on .on-img { opacity: 1; }
.control .off-img { filter: brightness(1.35); }   /* выключенный дом виден силуэтом, а не «пропадает» */
.control-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,11,.94) 0%, rgba(7,8,11,.6) 34%, rgba(7,8,11,0) 62%); }
.control-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.2vw, 40px); }
.control-ui h3 { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.4vw, 30px); line-height: 1.15; }
.modes { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.modes li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,8,11,.5); color: #cfcac2; font-size: clamp(13px, .85vw, 16px); }
.switch-row { margin-top: 18px; display: flex; align-items: center; gap: 14px; color: #cfcac2; font-size: clamp(14px, .95vw, 17px); }
/* выключатель: дорожка-неон, при включении загорается */
.switch { position: relative; width: 64px; height: 34px; flex-shrink: 0; border-radius: 999px; cursor: pointer; background: #07080b; border: 1.5px solid rgba(255,255,255,.25); transition: border-color .3s, box-shadow .3s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 23px; height: 23px; border-radius: 50%; background: #5b5f68; transition: transform .35s var(--ease), background .3s, box-shadow .3s; }
.switch[aria-checked="true"] { border-color: #ffe9c9; box-shadow: 0 0 12px rgba(255,170,80,.3); }
.switch[aria-checked="true"]::after { transform: translateX(30px); background: #ffe9c9; box-shadow: 0 0 10px rgba(255,170,80,.7); }
.switch:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
@media (max-width: 900px) { .reliab { grid-template-columns: minmax(0, 1fr); } .control { aspect-ratio: 4 / 4.4; } }

/* ---------- Отзывы ---------- */
.reviews { margin-top: clamp(36px, 4vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.review { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.review .q { font-family: var(--display); font-size: clamp(40px, 3vw, 64px); line-height: .6; color: #ffe9c9; text-shadow: 0 0 14px rgba(255,170,80,.35); }
.review p { margin-top: 18px; color: #c9c4bb; font-size: clamp(15px, 1vw, 19px); }
.review .by { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-small); }
.review .by b { display: block; color: var(--text); font-weight: 600; font-size: clamp(14px, .95vw, 17px); }
.review .ava { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,233,201,.4); color: #ffe9c9; font-family: var(--display); font-size: 14px; }
.review a { color: #ffe9c9; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Вопросы и ответы ---------- */
.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: clamp(24px, 4vw, 80px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: clamp(18px, 1.6vw, 28px) 48px clamp(18px, 1.6vw, 28px) 0; font-weight: 600; font-size: clamp(16px, 1.15vw, 22px); line-height: 1.35; transition: color .25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary { color: #ffe9c9; }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; border-radius: 6px; }
.faq-item p { padding: 0 48px clamp(18px, 1.6vw, 28px) 0; color: #a7a39c; font-size: clamp(15px, 1vw, 19px); }
.faq-item[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-item a { color: #ffe9c9; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq-wrap > div:first-child { position: static; } }

/* ---------- Липкая панель связи на телефоне ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .hero-facts { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,8,11,.9); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease); }
  .mbar.show { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: var(--text); font-size: 15px; font-weight: 500; }
  .mbar a.primary { color: #ffe9c9; border-color: rgba(255,233,201,.7); box-shadow: 0 0 12px rgba(255,170,80,.18); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Телефон: виден всегда ---------- */
.tel { display: inline-flex; align-items: center; gap: .5em; color: #ffe9c9; font-weight: 600; font-size: clamp(15px, 1vw, 19px); white-space: nowrap; transition: text-shadow .3s, color .3s; }
.tel svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.tel:hover, .tel:focus-visible { outline: none; color: var(--neon-core); text-shadow: 0 0 12px rgba(255,170,80,.5); }
.nav-phone { margin-left: clamp(16px, 2vw, 40px); }
.nav { gap: 0; }
.nav-links { margin-left: auto; }
/* закреплённая полоса после первого экрана (компьютер и планшет) */
.topbar { position: fixed; z-index: 48; top: 0; left: 0; right: 0; background: rgba(7,8,11,.84); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transform: translateY(-105%); transition: transform .35s var(--ease); }
.topbar.show { transform: none; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.topbar-r { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.btn-sm { padding: .75em 1.4em; font-size: clamp(14px, .95vw, 17px); }
.cta-call { margin-top: 18px; color: #a7a39c; font-size: clamp(15px, 1vw, 19px); }
.cta-call .tel { pointer-events: auto; margin-left: .3em; }
.mnav-contacts .tel { font-size: 18px; }
.mnav-contacts { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mnav-tg { color: #cfcac2; text-decoration: underline; text-underline-offset: 3px; }
footer a[href^="https://t.me"], footer a[href^="mailto"] { color: #cfcac2; text-decoration: underline; text-underline-offset: 3px; }
.call-fab { display: none; }
@media (max-width: 760px) {
  .nav-phone, .topbar { display: none; }
  /* кнопка-трубка рядом с бургером: видна всегда, даже на первом экране */
  .call-fab { display: grid; place-items: center; position: fixed; z-index: 60; top: max(10px, env(safe-area-inset-top)); right: 64px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(7,8,11,.62); backdrop-filter: blur(8px); border: 1px solid rgba(255,233,201,.38); color: #ffe9c9; box-shadow: 0 0 12px rgba(255,170,80,.12); }
  .call-fab svg { width: 19px; height: 19px; }
  .call-fab:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
}

/* портфолио */
.gallery { margin-top: clamp(36px, 4vw, 88px); display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 20vw, 480px)); gap: var(--gap); }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.shot:first-child { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.95); transform: scale(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .6s, box-shadow .6s; border-radius: inherit; }
.shot:hover img { filter: brightness(1) saturate(1.05); transform: scale(1.06); }
.shot:hover::after { border-color: var(--neon-core); box-shadow: var(--glow), inset 0 0 30px rgba(255,154,46,.25); }
.shot figcaption { position: absolute; left: clamp(14px, 1.4vw, 28px); bottom: clamp(12px, 1.2vw, 24px); z-index: 1; font-size: var(--fs-small); color: #ddd6cb; text-shadow: 0 1px 8px #000; }

/* ---------- Финальный призыв: до/после на весь экран ---------- */
.cta-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(560px, 56vw, 1080px); background: #060912; --x: 100%; }
.ba, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba img { object-fit: cover; object-position: 60% 50%; display: block; }
.ba-after { clip-path: inset(0 0 0 var(--x)); }
/* разделитель — неоновая линия; тянется мышью или пальцем */
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; z-index: 3; background: var(--neon-core); box-shadow: var(--glow); cursor: ew-resize; touch-action: none; outline: none; }
.ba-line::before { content: ""; position: absolute; inset: 0 -18px; }
.ba-knob { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); width: clamp(40px, 3vw, 56px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(7,8,11,.78); border: 1.5px solid var(--neon-core); box-shadow: var(--glow); color: var(--neon-core); font-size: clamp(14px, 1vw, 18px); backdrop-filter: blur(6px); }
.ba-line:focus-visible .ba-knob { outline: 2px solid var(--neon); outline-offset: 4px; }
.ba-chip { position: absolute; z-index: 3; top: clamp(16px, 2vw, 40px); padding: 6px 14px; border-radius: 999px; background: rgba(7,8,11,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: #cfcac2; }
.ba-chip.l { left: var(--gutter); }
.ba-chip.r { right: var(--gutter); color: var(--neon); border-color: rgba(255,192,112,.45); }
.cta-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,8,11,.95) 0%, rgba(7,8,11,.7) 26%, rgba(7,8,11,0) 58%),
              linear-gradient(90deg, rgba(7,8,11,.75) 0%, rgba(7,8,11,0) 50%),
              linear-gradient(180deg, var(--bg) 0%, rgba(7,8,11,0) 12%); }
.cta-body { position: relative; z-index: 4; padding-block: var(--section) clamp(48px, 5vw, 110px); pointer-events: none; }
.cta-body a { pointer-events: auto; }

footer p + p { margin-top: 6px; }
footer { border-top: 1px solid var(--line); padding-block: clamp(24px, 2.4vw, 48px) 90px; color: var(--muted); font-size: var(--fs-small); }

/* появление блоков при прокрутке */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rise.lit { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .cta-hero { min-height: calc(var(--hero-h, 100vh) * .9); }
  .ba img { object-position: 58% 40%; }
  .ba-knob { top: 30%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(240px, 60vw, 420px) repeat(2, clamp(160px, 38vw, 300px)); }
  .shot:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  /* Дом целиком в верхней части экрана: края видео растворяются в ночном небе (цвет фона = цвет неба в кадре),
     заголовок и кнопки ниже — на тёмной «земле» */
  .hero { background: linear-gradient(180deg, #142131 0%, #142131 12%, #0b0e12 42%, #07080b 60%); }
  .hero-media { inset: auto 0; top: calc(56px + env(safe-area-inset-top)); aspect-ratio: 720 / 648;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 72%, transparent 100%); }
  .hero-media video, .hero-media img { object-position: 50% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(7,8,11,.9) 0%, rgba(7,8,11,.5) 30%, rgba(7,8,11,0) 46%); }
  .hero-body { justify-content: flex-end; padding-bottom: calc(var(--hero-h, 100vh) * .04 + 8px); }
  .slogan { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
  .slogan em { text-shadow: 0 0 14px rgba(255,170,80,.28), 0 2px 18px rgba(0,0,0,.6); }
  .hero .lead { display: none; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; padding-block: 1em; }
  .slogan { font-size: clamp(22px, 7vw, 44px); }
  .lead { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* ссылки на посадочные страницы: карточка услуги кликается целиком, меню разделов в подвале */
/* слой-ссылка на всю карточку (заголовок поднят над затемнением, поэтому растянуть ссылку из него нельзя) */
.card > .card-cover { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--neon); outline-offset: 4px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-size: clamp(13px, .9vw, 16px); }
.foot-nav a { color: #cfcac2; }
.foot-nav a:hover { color: #ffe9c9; }

/* кнопка «Подробнее» на карточках услуг: видимый сигнал, что карточка ведёт на страницу */
.card > .card-more { position: relative; z-index: 3; align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; margin-top: clamp(14px, 1.4vw, 24px); padding: .6em 1.2em; border-radius: 999px; border: 1px solid rgba(255,233,201,.45); color: #ffe9c9; font-size: clamp(13px, .9vw, 16px); font-weight: 500; transition: border-color .3s, box-shadow .3s; }
.card:hover > .card-more, .card:has(.card-link:focus-visible) > .card-more { border-color: var(--neon); box-shadow: 0 0 14px rgba(255,170,80,.25); }
.card:hover > .card-more .arr { transform: translateX(4px); }
.card > .card-more .arr { transition: transform .4s var(--ease); }
.card:not(:has(.card-link)) > .card-more { display: none; }   /* без ссылки (локальный просмотр) кнопку не показываем */

/* «Надёжность»: 3 плитки — последняя на всю ширину */
.specs > .spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* кнопка «Позвонить» на первом экране */
.actions .btn.tel svg { width: 1.05em; height: 1.05em; }
/* калькулятор: добавленные столбики (цена не названа) — строкой под суммой, видно, что количество учтено */
.sum .sum-extra { display: block; margin-top: 6px; font-family: var(--body); font-size: clamp(14px, 1vw, 18px); font-weight: 500; letter-spacing: 0; color: var(--neon); }
/* заголовки карточек услуг: слово не рвётся; размер подбирает main.js (fitAll), без JS — безопасный по ширине карточки */
#services .card { container-type: inline-size; }
#services .card h3 { overflow-wrap: normal; font-size: min(clamp(17px, 1.3vw, 30px), 6.4cqi); }
