/* ==========================================================================
   Подсветка домов — podsvetka-domov.ru
   Дизайн-система: «ночной участок + тёплый свет 2700K»
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Цвет */
  --night: #0A0E16;       /* фон — ночное небо */
  --dusk: #111826;        /* поверхности */
  --dusk-2: #172031;      /* приподнятые поверхности */
  --line: #253048;        /* линии и рамки */
  --text: #EEE8DC;        /* тёплый белый текст */
  --muted: #98A2B6;       /* вторичный текст */
  --warm: #F4C274;        /* акцент — 2700K */
  --warm-deep: #E3A04A;   /* ховер акцента */
  --warm-glow: rgba(244, 194, 116, .18);
  --cool: #BFD6FF;        /* 6500K — только в переключателе температуры */
  --ok: #7FD1A4;

  /* Типографика */
  --f-display: "Tenor Sans", "Didot", "Georgia", serif;
  --f-body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  --fs-hero: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem);

  /* Сетка */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(64px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px 2px var(--warm-glow), 0 0 4px var(--warm); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--muted); max-width: 62ch; }
.spec { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s;
  white-space: nowrap;
}
.btn--warm { background: var(--warm); color: #1B1409; box-shadow: 0 0 0 0 var(--warm-glow); }
.btn--warm:hover { background: var(--warm-deep); box-shadow: 0 0 34px 4px var(--warm-glow); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--warm); color: var(--warm); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Верхняя плашка сезона ---------- */
.season {
  background: linear-gradient(90deg, rgba(244,194,116,.12), rgba(244,194,116,.03));
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--muted);
}
.season .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; flex-wrap: wrap; }
.season b { color: var(--warm); font-weight: 500; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 14, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: grid; line-height: 1.1; }
.logo__name { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase; }
.logo__sub { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav__dropdown { position: relative; }
.nav__submenu { display: none; position: absolute; top: calc(100% + 10px); left: -18px; width: 310px; padding: 10px 18px; background: rgba(10,14,22,.98); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.nav__submenu a { display: block; padding: 8px 0; white-space: normal; }
.nav__dropdown:hover .nav__submenu, .nav__dropdown:focus-within .nav__submenu { display: block; }
.header__contacts { display: flex; align-items: center; gap: 10px; }
.header__phone { font-family: var(--f-mono); font-size: .92rem; text-decoration: none; white-space: nowrap; }
.header__phone small { display: block; font-family: var(--f-body); font-size: .68rem; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; text-decoration: none; transition: border-color .2s, background .2s; flex: none;
}
.icon-btn:hover { border-color: var(--warm); background: var(--warm-glow); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; cursor: pointer; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.5px; background: var(--text); margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -5px; } .burger span::after { position: absolute; top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 100px); }
.hero::before { /* звёздное небо */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #fff6 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 6%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 30%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, #fff4 50%, transparent 51%);
}
.hero::after { content: ""; position: absolute; left: 50%; bottom: -35%; width: 90%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(244,194,116,.13), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--warm); text-shadow: 0 0 28px rgba(244,194,116,.45); }
.hero__lead { color: var(--muted); font-size: var(--fs-lg); max-width: 34ch; line-height: 1.5; }
.hero__facts { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; grid-template-columns: repeat(3, auto); gap: 12px 28px; justify-content: start; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--text); }
.hero__facts span { font-size: var(--fs-xs); color: var(--muted); max-width: 18ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); }

/* Фото с «проектными» выносками */
.plan { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; max-width: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.plan img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,14,22,.75)); pointer-events: none; }
.callout { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; animation: callout-in .7s ease both; }
.callout__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(244,194,116,.25), 0 0 18px var(--warm); flex: none; }
.callout__line { width: 34px; height: 1px; background: var(--warm); opacity: .7; flex: none; }
.callout__label { background: rgba(10,14,22,.86); border: 1px solid rgba(244,194,116,.4); border-radius: 6px; padding: 6px 10px; font-family: var(--f-mono); font-size: .7rem; line-height: 1.35; white-space: nowrap; }
.callout__label b { display: block; font-family: var(--f-body); font-weight: 500; font-size: .78rem; color: var(--text); }
.callout--l { flex-direction: row-reverse; }
.callout .callout__label { box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.callout:nth-of-type(2) { animation-delay: .25s; } .callout:nth-of-type(3) { animation-delay: .5s; }
@keyframes callout-in { from { transform: translateY(8px); } to { transform: none; } }
.plan__stamp { position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Направления ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 340px; display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease, filter .6s; filter: brightness(.82); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,14,22,0) 30%, rgba(10,14,22,.94) 88%); }
.svc:hover img { transform: scale(1.04); filter: brightness(1); }
.svc__body { padding: 22px; display: grid; gap: 8px; width: 100%; }
.svc__body p { color: var(--muted); font-size: var(--fs-sm); }
.svc__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.svc__price { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--warm); }
.svc__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(238,232,220,.3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.svc:hover .svc__arrow { background: var(--warm); border-color: var(--warm); color: #1B1409; }
.svc--wide { grid-column: span 2; }
.svc--tall { grid-row: span 2; }

/* ---------- Портфолио ---------- */
.works__bar { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: var(--fs-sm); cursor: pointer; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--night); border-color: var(--text); }
.works__grid { columns: 4 240px; column-gap: 14px; }
.work { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--dusk); }
.work img { width: 100%; transition: transform .5s ease; }
.work:hover img { transform: scale(1.03); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10,14,22,.92)); display: grid; gap: 2px; }
.work figcaption b { font-weight: 500; font-size: var(--fs-sm); }
.work[hidden] { display: none !important; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,11,.94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 10px; }
.lightbox__close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox p { margin-top: 12px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Квиз-калькулятор ---------- */
.quiz { background: var(--dusk); border-block: 1px solid var(--line); }
.quiz__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.quiz__aside { display: grid; gap: 20px; position: sticky; top: 110px; }
.quiz__aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: var(--fs-sm); }
.quiz__aside li { display: flex; gap: 10px; align-items: start; }
.quiz__aside li::before { content: ""; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--warm); flex: none; }
.quiz__card { background: var(--dusk-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.quiz__progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); }
.quiz__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: var(--warm); box-shadow: 0 0 10px var(--warm); transition: width .35s ease; }
.quiz__step h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.quiz__step > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 20px; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; font-size: var(--fs-sm); }
.opt label:hover { border-color: var(--muted); }
.opt label::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 50%; flex: none; transition: all .2s; }
.opt input[type="checkbox"] + label::before { border-radius: 5px; }
.opt input:checked + label { border-color: var(--warm); background: var(--warm-glow); }
.opt input:checked + label::before { background: var(--warm); border-color: var(--warm); box-shadow: inset 0 0 0 3px var(--dusk-2); }
.opt input:focus-visible + label { outline: 2px solid var(--warm); outline-offset: 2px; }
.opt small { display: block; color: var(--muted); font-size: .76rem; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz__done { text-align: center; padding-block: 30px; display: grid; gap: 12px; justify-items: center; }
.quiz__done svg { width: 56px; height: 56px; color: var(--ok); }

/* Поля форм */
.fields { display: grid; gap: 12px; }
.fields--2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--warm); outline: none; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: var(--fs-sm); cursor: pointer; color: var(--text); }
.seg input:checked + label { background: var(--text); color: var(--night); border-color: var(--text); }
.seg input:focus-visible + label { outline: 2px solid var(--warm); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: start; font-size: .76rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--warm); }
.consent a { color: var(--text); }
.upload { border: 1px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; transition: border-color .2s; display: block; }
.upload:hover { border-color: var(--warm); color: var(--text); }
.upload input { display: none; }

/* ---------- Температура света ---------- */
.kelvin__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kelvin__photo { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; max-width: 100%; }
.kelvin__photo img { width: 100%; height: 100%; object-fit: cover; }
.kelvin__tint { position: absolute; inset: 0; background: #7FA8FF; mix-blend-mode: color; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.kelvin__temp { position: absolute; top: 16px; left: 16px; font-family: var(--f-mono); font-size: .8rem; background: rgba(10,14,22,.8); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); }
.kelvin__scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 26px 18px; }
.kbtn { border: 1px solid var(--line); background: var(--dusk); border-radius: 12px; padding: 14px 12px; cursor: pointer; text-align: left; display: grid; gap: 4px; transition: border-color .2s, background .2s; }
.kbtn b { font-family: var(--f-mono); font-weight: 500; font-size: 1rem; }
.kbtn span { font-size: .76rem; color: var(--muted); }
.kbtn i { height: 4px; border-radius: 2px; margin-bottom: 6px; }
.kbtn[aria-pressed="true"] { border-color: var(--warm); background: var(--dusk-2); }
.kelvin__desc { color: var(--muted); min-height: 5.5em; }

/* ---------- Материалы ---------- */
.materials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mat { background: var(--night); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.mat svg { width: 44px; height: 44px; color: var(--warm); margin-bottom: 6px; }
.mat p { color: var(--muted); font-size: var(--fs-sm); }
.mat .spec { margin-top: 4px; }

/* ---------- Фото-оффер ---------- */
.photo-offer .wrap > div { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(244,194,116,.35); background: radial-gradient(120% 140% at 100% 0%, rgba(244,194,116,.16), transparent 55%), var(--dusk); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.photo-offer h2 { font-size: var(--fs-2xl); margin-block: 14px 16px; }
.photo-offer p { color: var(--muted); }
.photo-offer__msg { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Этапы ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--warm); letter-spacing: .1em; }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
.steps .spec { color: var(--text); opacity: .7; }

/* ---------- Цены ---------- */
.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--dusk); }
.price--hl { border-color: var(--warm); background: linear-gradient(180deg, rgba(244,194,116,.08), transparent 60%), var(--dusk); }
.price__tag { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--warm); letter-spacing: .08em; text-transform: uppercase; }
.price__sum { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.price__sum small { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "—"; color: var(--warm); }
.prices__extra { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices__extra div { padding: 18px 20px; display: grid; gap: 4px; }
.prices__extra div + div { border-left: 1px solid var(--line); }
.prices__extra b { font-family: var(--f-mono); font-weight: 500; color: var(--text); }
.prices__extra span { font-size: var(--fs-xs); color: var(--muted); }
.prices__note { margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Гарантии ---------- */
.trust__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.trust__img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; max-width: 100%; }
.trust__img img { width: 100%; height: 100%; object-fit: cover; }
.trust__list { display: grid; gap: 0; margin-top: 28px; }
.trust__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.trust__item svg { width: 28px; height: 28px; color: var(--warm); margin-top: 2px; }
.trust__item p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }

/* ---------- Отзывы ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; min-height: 200px; align-content: start; }
.review__stars { color: var(--warm); letter-spacing: 3px; }
.review p { color: var(--muted); font-size: var(--fs-sm); }
.reviews__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq__layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__layout > .section-head { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: var(--fs-md); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--warm); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 64ch; font-size: var(--fs-sm); }

/* ---------- Финальный CTA ---------- */
.final { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.final__bg { position: absolute; inset: 0; z-index: -1; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.final__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 25%, rgba(10,14,22,.6)); }
.final { isolation: isolate; }
.final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.final__contacts { display: grid; gap: 14px; margin-top: 30px; }
.contact-row { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-row b { font-weight: 500; }
.contact-row span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.form-card { background: rgba(17,24,38,.92); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.form-card h3 { font-size: var(--fs-xl); }
.form-ok { color: var(--ok); font-size: var(--fs-sm); }
.form-error { color: #f3a395; font-size: var(--fs-sm); }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }

/* ---------- Внутренние страницы ---------- */
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--warm); color: #1B1409; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: var(--fs-xs); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.inner-page h1, .page-heading h1, .portfolio-archive h1, .project-head h1 { font-size: var(--fs-hero); margin-top: 12px; }
.page-heading { padding-bottom: clamp(32px, 4vw, 56px); }
.page-heading p { max-width: 62ch; color: var(--muted); margin-top: 18px; }
.content-narrow { max-width: 820px; }
.entry-content { color: var(--muted); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 1.8em; }
.entry-content a { color: var(--warm); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-cover, .project-cover img { border-radius: 18px; border: 1px solid var(--line); margin-block: 28px; width: 100%; }
.post-meta { color: var(--muted); margin-top: 12px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--dusk); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card > div { padding: 22px; display: grid; gap: 10px; }
.post-card a { text-decoration: none; }
.service-hero { padding-bottom: var(--section); }
.service-price { display: inline-block; margin-top: 22px; font-family: var(--f-mono); color: var(--warm); }
.service-hero__photo { aspect-ratio: 4/4.4; }
.service-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid a { text-decoration: none; }
.project-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.project-facts > div { min-width: 140px; display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--dusk); }
.project-cover { margin-top: 4px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
.project-gallery img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.section-more { margin-top: 28px; text-align: center; }
.pagination { margin-top: 36px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { border-color: var(--warm); color: var(--warm); }
.error-page { min-height: 60vh; display: grid; align-items: center; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: var(--fs-sm); color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); }

/* ---------- Мобильная панель ---------- */
.mbar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .burger { display: block; order: 3; margin-left: 0; }
  .header__contacts { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); color: var(--text); }
  .nav__submenu { display: block; position: static; width: auto; padding: 0 0 0 16px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .nav__submenu a { font-size: var(--fs-sm); color: var(--muted); }
  .header__phone small { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc--tall { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__extra { grid-template-columns: repeat(2, 1fr); }
  .prices__extra div:nth-child(3) { border-left: 0; }
  .prices__extra div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .quiz__layout, .kelvin__layout, .photo-offer .wrap > div, .trust__layout, .faq__layout, .final .wrap { grid-template-columns: 1fr; }
  .quiz__aside { position: static; }
  .prices__grid, .reviews__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 24px 20px 26px 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .plan { aspect-ratio: 4/4.4; }
  .trust__img { aspect-ratio: 16/11; }
  .kelvin__photo { aspect-ratio: 4/4; }
  .posts-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header .wrap { min-height: 62px; gap: 10px; }
  .header__contacts { display: none; }
  .burger { margin-left: auto; }
  .faq__layout > .section-head { position: static; }
  .logo__sub { display: none; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .svc--tall { grid-column: auto; min-height: 340px; }
  .svc { min-height: 300px; }
  .options, .fields--2 { grid-template-columns: 1fr; }
  .materials__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .prices__extra { grid-template-columns: 1fr; }
  .prices__extra div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .works__grid { columns: 2; column-gap: 8px; }
  .work { margin-bottom: 8px; }
  .work figcaption { padding: 28px 10px 8px; }
  .work figcaption .spec { display: none; }
  .callout__line { width: 16px; }
  .callout--hide-sm { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(10,14,22,.96); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px;
  }
  .mbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: .7rem; color: var(--muted); padding: 6px; border-radius: 10px; }
  .mbar a:first-child { background: var(--warm); color: #1B1409; }
  .mbar svg { width: 20px; height: 20px; }
  .footer { padding-bottom: 96px; }
  .project-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
