/* Общий стиль сайта СК Сиэрди. Собирается build-final.js из стилей главной, подвала и extra.css (папка «2 Исходники») */
:root {
  --bg: #f3f1ec;          /* тёплая бумага: спокойнее белого, фото на нём выглядят дороже */
  --bg-2: #ebe8e1;
  --surface: #fbfaf7;
  --ink: #16181a;         /* почти чёрный: главный цвет кнопок и заголовков */
  --text: #16181a;
  --muted: #5c6066;
  --accent: #e85a1c;      /* оранжевый в тон гофре на фото, единственный акцент */
  --accent-text: #b8440f; /* акцент для мелкого текста: темнее, чтобы читался */
  --line: rgba(22,24,26,.1);
  --line-strong: rgba(22,24,26,.22);
  --bg-rgb: 243,241,236;
  --pad-x: clamp(16px, 5vw, 72px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(.32,.72,0,1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
  /* слои: 1 блоки, 10 шапка, 20 панель звонка, 30 меню, 40 зерно */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--text); background-color: var(--bg);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5;
}
main { position: relative; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1320px; margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }

/* поверхности браузера в цветах сайта: выделение, каретка, полоса прокрутки, элементы форм */
::selection { background: rgba(232,90,28,.22); color: var(--ink); }
html { scrollbar-color: #b9b4aa var(--bg); accent-color: var(--accent); caret-color: var(--accent); }

/* ---------- Маркировка разделов, как подписи автоматов в щите ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.tag b {
  font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; letter-spacing: .04em;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); order: -1; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16px; white-space: nowrap;
  border: 0; border-radius: 999px; padding: 8px 8px 8px 26px; min-height: 56px;
  transition: transform .5s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d31; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-light:hover { background: #fff; }
/* стрелка в своём кружке, при наведении уходит вправо-вверх */
.btn .knob {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--accent); color: var(--ink);
  transition: transform .5s var(--ease);
}
.btn:hover .knob { transform: translate(3px, -1px) scale(1.05); }
.knob svg { width: 18px; height: 18px; }
.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link:hover { border-color: var(--accent); color: var(--accent-text); }
.link i { font-size: 18px; }
@media (max-width: 760px) { .link { padding-block: 12px 9px; } }

/* ---------- Шапка: плавающая панель ---------- */
.header {
  position: fixed; z-index: 10; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1320px, calc(100% - 2 * var(--pad-x)));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(251,250,247,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 10px 30px -12px rgba(60,48,30,.18);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-size: 17px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(22,24,26,.05); }
.nav a[aria-current] { color: var(--ink); background: rgba(22,24,26,.07); }
.nav a { white-space: nowrap; }
/* на средних экранах телефон в шапке уступает место меню: он есть в кнопке Telegram, форме и подвале */
@media (max-width: 1320px) { .phone { display: none; } }
.head-right { display: flex; align-items: center; gap: 8px; }
.phone { font-weight: 700; font-size: 16px; padding: 0 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.head-right .btn { min-height: 46px; padding: 5px 5px 5px 20px; font-size: 15px; gap: 10px; }
.head-right .btn .knob { width: 36px; height: 36px; }
.round {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; font-size: 20px; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .3s var(--ease);
}
.round:hover { background: #fff; }
.burger { display: none; position: relative; }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .5s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

/* меню на телефоне: на весь экран, пункты выезжают по очереди */
.menu {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad-x) 40px; gap: 8px;
  background: rgba(243,241,236,.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu a { font-size: clamp(30px, 8vw, 44px); font-weight: 700; letter-spacing: -.02em; padding: 6px 0;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu .menu-phone { margin-top: 28px; font-size: 22px; font-weight: 600; color: var(--muted); }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu a:nth-child(6) { transition-delay: .25s; }
.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open { overflow: hidden; }
.header { z-index: 31; }

/* ---------- Первый экран: заголовок слева, фото работ справа ---------- */
.hero { position: relative; overflow: hidden; padding: 128px var(--pad-x) clamp(48px, 7vw, 96px); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
h1 {
  font-size: clamp(40px, 5.4vw, 84px); line-height: .98; font-weight: 800; letter-spacing: -.035em;
  margin: 26px 0 28px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 33em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 52px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fact b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 14px; color: var(--muted); }

/* рамка фото: внешняя подложка и внутренний снимок, скругления концентрические */
.bezel {
  padding: 8px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 30px 60px -30px rgba(70,52,30,.35);
}
.bezel > img, .bezel > .bezel-in { border-radius: calc(var(--r-lg) - 8px); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 55%; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(251,250,247,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 16px 32px -16px rgba(60,48,30,.35);
  font-size: 14px; line-height: 1.35;
}
.chip b { display: block; font-size: 15px; }
.chip span { color: var(--muted); }
.chip .mark { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 9px; }
.chip-a { left: -28px; bottom: 56px; }
.chip-b { right: 24px; top: 24px; }
.chip-b .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fae5b; box-shadow: 0 0 0 4px rgba(63,174,91,.18); }

/* ---------- Общие блоки ---------- */
.section { padding: clamp(80px, 10vw, 140px) var(--pad-x); }
.section-alt { background: var(--bg-2); }
/* два светлых раздела подряд разделяет тонкая линия */
.section:not(.section-alt) + .section:not(.section-alt) { box-shadow: inset 0 1px 0 var(--line); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head .tag { grid-column: 1 / -1; }
h2 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.head p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 32em; text-wrap: pretty; }

/* ---------- Услуги: плитки разного размера ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-md); min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(60,48,30,.45); }
.card h3 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.card .go {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  transition: transform .5s var(--ease), background .3s;
}
.card .go svg { width: 18px; height: 18px; }
.card:hover .go { transform: rotate(-45deg); background: var(--accent); color: var(--ink); }
/* плитки с фото: снимок на всю плитку, текст на затемнении снизу */
.card-photo { color: #fff; box-shadow: none; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-photo:hover img { transform: scale(1.04); }
.card-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,15,16,.15) 0%, rgba(14,15,16,0) 25%, rgba(14,15,16,.55) 55%, rgba(14,15,16,.9) 100%); }
.card-photo > :not(img) { position: relative; z-index: 2; }
.card-photo .go { position: absolute; background: rgba(255,255,255,.92); color: var(--ink); }
.card-photo p { color: rgba(255,255,255,.82); }
.c-flat { grid-column: span 7; grid-row: span 2; min-height: 580px; }
.c-flat h3 { font-size: clamp(28px, 2.6vw, 38px); }
.c-house { grid-column: span 5; }
.c-shield { grid-column: span 5; }
.c-project { grid-column: span 4; }
.c-smart { grid-column: span 4; }
.c-wiring { grid-column: span 4; }
/* плитка «Проект»: чертёж сверху, текст снизу */
.c-project { justify-content: space-between; padding-top: 64px; }
.plan { width: 100%; height: auto; margin-bottom: 22px; border-radius: 12px; background: var(--bg); }
.plan .walls path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.plan .doors path { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 3 3; }
.plan .runs path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .board { fill: var(--ink); }
.plan .sock circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.plan .lamp circle, .plan .lamp path { fill: none; stroke: var(--ink); stroke-width: 2; }
.plan text { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .plan .runs path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
  .c-project.in .plan .runs path { stroke-dashoffset: 0; }
  .c-project.in .plan .runs path:nth-child(2) { transition-delay: .15s; }
  .c-project.in .plan .runs path:nth-child(3) { transition-delay: .3s; }
  .c-project.in .plan .runs path:nth-child(4) { transition-delay: .45s; }
  .c-project.in .plan .runs path:nth-child(5) { transition-delay: .6s; }
}
.not-taken {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: baseline;
  padding: 22px 28px; border-radius: var(--r-md); border: 1px dashed var(--line-strong);
}
.not-taken b { font-weight: 700; }
.not-taken span { color: var(--muted); font-size: 15px; }

/* ---------- Работы ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.work figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 18px 6px 0; }
.work h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.work p { font-size: 15px; color: var(--muted); max-width: 46ch; margin-top: 4px; }
.work .kind { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.work .bezel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.collage { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 8px; }
.collage img { width: 100%; height: clamp(180px, 22vw, 320px); object-fit: cover; border-radius: calc(var(--r-lg) - 8px); }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.why .head { display: block; margin: 0; position: sticky; top: 120px; }
.why .head h2 { margin: 22px 0 20px; }
.reasons { list-style: none; counter-reset: r; }
.reasons li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons li::before {
  counter-increment: r; content: "L" counter(r);
  grid-row: span 2; align-self: start; justify-self: start;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 9px;
}
.reasons b { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.reasons span { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 52ch; }

/* ---------- Умный дом ---------- */
.smart { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smart .bezel-in { background: var(--surface); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.smart h2 { margin: 22px 0 20px; }
.smart .bezel-in > p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.smart .bezel-in > p b { color: var(--ink); font-weight: 600; }
.smart .bezel-in > p + p { margin-top: 12px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 36px 0 40px; }
.feature { padding: 16px 0; border-top: 1px solid var(--line); }
.feature b { display: block; font-size: 16px; margin-bottom: 2px; }
.feature span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.smart .btn { margin-top: auto; align-self: flex-start; }
.smart .smart-photo { position: relative; overflow: hidden; padding: 0; }
.smart-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 40%; }

/* ---------- Как работаем: линия, как кабель от щита ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent) var(--run, 0%), var(--line-strong) var(--run, 0%));
  transition: --run 1.6s var(--ease);
}
.steps li { position: relative; padding-top: 68px; }
.steps li::before {
  content: attr(data-n); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 6px var(--bg-2);
}
.steps li.on::before { background: var(--ink); color: #fff; box-shadow: 0 0 0 6px var(--bg-2); transition: background .4s, color .4s; }
.steps b { display: block; font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.steps span { font-size: 15px; line-height: 1.55; color: var(--muted); }
@property --run { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

/* ---------- Гарантия: условия слева, комплект документов при сдаче справа ---------- */
.guar { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.guar h2 { margin: 22px 0 20px; }
.guar-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.guar-lead b { color: var(--ink); font-weight: 600; }
.terms { margin-top: 36px; }
.terms div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms div:last-child { border-bottom: 1px solid var(--line); }
.terms b { display: block; font-size: 16px; margin-bottom: 4px; }
.terms span { font-size: 15px; line-height: 1.55; color: var(--muted); }
/* лист как паспорт щита: шапка со сроком-печатью, ниже то, что остаётся у заказчика */
.sheet { background: var(--surface); padding: clamp(24px, 3.4vw, 44px); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.sheet-top .cap { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet-top .cap b { display: block; color: var(--ink); font-family: 'Onest', system-ui, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-transform: none; margin-top: 6px; }
.stamp {
  flex: none; display: grid; place-items: center; text-align: center; width: 112px; height: 112px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent-text); transform: rotate(-8deg);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(232,90,28,.45);
}
.stamp b { display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.stamp span { max-width: 76px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kit { list-style: none; }
.kit li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.kit li:last-child { border-bottom: 0; padding-bottom: 0; }
.kit svg { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.kit b { font-size: 18px; letter-spacing: -.01em; }
.kit span { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

/* ---------- Контакты и форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact h2 { margin: 22px 0 20px; }
.contact > div > p { font-size: 18px; color: var(--muted); max-width: 30em; }
.big-phone {
  display: block; width: fit-content; margin-top: 40px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: color .3s var(--ease);
}
.big-phone:hover { color: var(--accent-text); }
.contact .link { margin-top: 18px; }
.form { background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form h3 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: var(--bg); border: 1px solid transparent; border-radius: var(--r-sm); padding: 15px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c6066' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form input::placeholder { color: #8a8d92; }
.form input:hover, .form select:hover { border-color: var(--line-strong); }
.form input:focus-visible, .form select:focus-visible { outline: none; border-color: var(--ink); background: #fff; }
.field-error { font-size: 14px; color: var(--accent-text); }
.field.invalid input { border-color: var(--accent); }
.btn[disabled] { opacity: .7; cursor: progress; }
.form .btn { justify-content: space-between; width: 100%; }
.form small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-msg { font-size: 15px; font-weight: 500; }

/* подвал: общие стили из css/footer.css, здесь только светлые поправки */
.site-footer { background: var(--bg-2); }
.site-footer .logo-mark { color: var(--ink); }
.footer-tg:hover { background: rgba(232,90,28,.1); }

.callbar { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .steps::before { transition: none; } }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
  .work figcaption { flex-direction: column; gap: 6px; }
  .work .kind { order: -1; padding-top: 0; }
  .nav, .phone, .head-right .btn { display: none; }
  .burger { display: grid; }
  .hero-grid, .why, .contact, .smart, .guar { grid-template-columns: 1fr; }
  .hero-photo { max-width: 640px; }
  .chip-a { left: 16px; }
  .why .head { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-flat { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .c-house, .c-shield, .c-project, .c-smart, .c-wiring { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--accent) var(--run, 0%), var(--line-strong) var(--run, 0%)); }
  .steps li { padding: 8px 0 32px 72px; }
  .smart-photo img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .header { top: 10px; width: calc(100% - 20px); }
  .hero { padding-top: 104px; }
  .head { grid-template-columns: 1fr; }
  .head p { font-size: 16px; }
  .cta .btn { width: 100%; justify-content: space-between; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
  .fact b { font-size: 22px; }
  .fact span { font-size: 13px; }
  .chip-a { left: 12px; right: 12px; bottom: 12px; }
  .chip-b { display: none; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .c-flat, .c-house, .c-shield, .c-project, .c-smart, .c-wiring { grid-column: span 1; min-height: 300px; }
  .c-flat { min-height: 420px; }
  .card { padding: 22px; }
  .c-project { padding-top: 76px; }
  .card h3 { font-size: 22px; }
  .not-taken { grid-template-columns: 1fr; padding: 20px; }
  .works { grid-template-columns: 1fr; gap: 32px; }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage img { height: 160px; }
  .features { grid-template-columns: 1fr; }
  .reasons li { grid-template-columns: 1fr; padding: 26px 0; }
  .sheet-top { align-items: flex-start; }
  .stamp { width: 92px; height: 92px; }
  .stamp b { font-size: 30px; }
  .kit li { grid-template-columns: 40px 1fr; gap: 4px 14px; }
  .kit svg { width: 40px; height: 40px; padding: 9px; }
  .reasons li::before { grid-row: auto; margin-bottom: 10px; }
  .row2 { grid-template-columns: 1fr; }

  /* закреплённая панель: звонок и Telegram всегда под пальцем */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 999px;
    background: rgba(251,250,247,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 12px 30px -10px rgba(60,48,30,.35);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px;
    font-weight: 600; font-size: 15px;
  }
  .callbar a:first-child { background: var(--ink); color: #fff; }
  .callbar i { font-size: 18px; }
  .site-footer { padding-bottom: 90px; }
}

/* ---------- Подвал ---------- */
/* Подвал: общий для главной и страниц услуг. Цвета берёт из токенов страницы */
.site-footer {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) var(--pad-x) 0;
  color: var(--muted); font-size: 15px;
}
.footer-top {
  max-width: 1320px; margin-inline: auto;
  display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 48px clamp(32px, 5vw, 80px);
}
.footer-brand .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--text); }
.footer-brand p { margin: 18px 0 28px; max-width: 34ch; line-height: 1.6; }
.footer-phone {
  display: block; width: fit-content; color: var(--text); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .2s;
}
.footer-phone:hover { color: var(--accent-text); }
.footer-tg {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-strong);
  color: var(--text); font-weight: 700; transition: border-color .2s, background .2s;
}
.footer-tg:hover { border-color: var(--accent); background: rgba(255,106,43,.1); }
.footer-tg i { font-size: 18px; color: var(--accent-text); }
.footer-col h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); margin: 6px 0 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--text); }
/* крупное название внизу: тонкий контур, не спорит со ссылками */
.footer-word {
  max-width: 1320px; margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: clamp(64px, 17vw, 260px); font-weight: 800; line-height: 1; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none; white-space: nowrap; text-align: center;
  padding-bottom: .14em;
}
.footer-bottom {
  position: relative; max-width: 1320px; margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: 14px;
  background: var(--bg-2);
}
.footer-bottom a { color: var(--text); transition: color .2s; }
.footer-bottom a:hover { color: var(--accent-text); }

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  /* снизу закреплена панель звонка */
  .site-footer { padding-bottom: 76px; }
}

/* =====================================================================
   Движение (по правилам Эмиля Ковальски): сильный ease-out, отклик кнопок
   до 200 мс, наведение только для мыши, только transform и opacity.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
.btn { transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }
.btn .knob { transition: transform .2s var(--ease-out); }
.link, .nav a, .round, .big-phone, .footer-tg, .footer-phone, .footer-col a { transition-duration: .2s; transition-timing-function: ease; }
.round:active { transform: scale(.95); }
.burger span { transition: transform .3s var(--ease-in-out); }
.menu { transition: opacity .25s var(--ease-out), visibility .25s; }
.menu a { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.menu-open .menu a:nth-child(2) { transition-delay: .04s; }
.menu-open .menu a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu a:nth-child(4) { transition-delay: .12s; }
.menu-open .menu a:nth-child(5) { transition-delay: .16s; }
.menu-open .menu a:nth-child(6) { transition-delay: .2s; }
.card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.card .go { transition: transform .25s var(--ease-out), background-color .2s ease; }
.card-photo img { transition: transform .6s var(--ease-out); }
.form input, .form select { transition: border-color .2s ease, background-color .2s ease; }
/* наведение двигает элементы только у мыши: на телефоне тап не оставляет «залипший» ховер */
.btn:hover .knob, .card:hover, .card:hover .go, .card-photo:hover img { transform: none; }
.card:hover { box-shadow: inset 0 0 0 1px var(--line); }
.card-photo:hover { box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .knob { transform: translate(3px, -1px) scale(1.05); }
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(60,48,30,.45); }
  .card-photo:hover { box-shadow: 0 24px 48px -28px rgba(60,48,30,.45); }
  .card:hover .go { transform: rotate(-45deg); }
  .card-photo:hover img { transform: scale(1.04); }
}

/* появление при прокрутке: прячем только если скрипт работает, иначе контент виден сразу */
.reveal { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(24px); filter: none; }
  .hero .stagger > * { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
  .hero-photo { animation: rise .9s var(--ease-out) both .2s; }
  .chip-a { animation: rise .7s var(--ease-out) both .6s; }
  .chip-b { animation: rise .7s var(--ease-out) both .75s; }
  /* фото первого экрана медленно «дышит»: живая картинка без отвлечения */
  .shot > img { animation: drift 24s linear infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
/* снимок первого экрана в своей скруглённой «шторке»: дрейф не вылезает на светлый ободок рамки */
.shot { overflow: hidden; border-radius: calc(var(--r-lg) - 8px); }
.shot > img, .shot > .plan-hero { display: block; border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { transition: opacity .3s ease; }
  .js-reveal .reveal:not(.in) { opacity: 0; }
}

/* =====================================================================
   Страницы услуг: те же блоки, что на главной, плюс свои разделы
   ===================================================================== */
.crumbs { flex-wrap: wrap; }
.crumbs a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--ink); border-color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 64px); }
/* заголовки в узких колонках (липкая шапка раздела) чуть меньше, чтобы не тянуться в четыре строки */
.why .head h2, .faq .head h2, .media-text h2 { font-size: clamp(30px, 3.1vw, 46px); }
/* подпись на чертеже — в верхнем углу, чтобы не закрывать щит ЩР */
.chip-plan { left: auto; right: 20px; top: 20px; bottom: auto; }

/* план квартиры как картинка первого экрана на странице «Проект электрики» */
.plan-hero { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--bg); border-radius: calc(var(--r-lg) - 8px); }
.plan-hero .walls path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.plan-hero .doors path { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.4; stroke-dasharray: 4 4; }
.plan-hero .runs path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-hero .board { fill: var(--ink); }
.plan-hero .sock circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; }
.plan-hero .lamp circle, .plan-hero .lamp path { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.plan-hero text { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .plan-hero .runs path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lay 1.4s var(--ease-out) forwards; }
  .plan-hero .runs path:nth-child(2) { animation-delay: .5s; }
  .plan-hero .runs path:nth-child(3) { animation-delay: .65s; }
  .plan-hero .runs path:nth-child(4) { animation-delay: .8s; }
  .plan-hero .runs path:nth-child(5) { animation-delay: .95s; }
  .plan-hero .runs path:nth-child(6) { animation-delay: 1.1s; }
  .plan-hero .runs path:nth-child(1) { animation-delay: .35s; }
}
@keyframes lay { to { stroke-dashoffset: 0; } }

/* состав работ: пункты с маркировкой линий L1…L6 в две колонки */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); list-style: none; counter-reset: r; }
.scope li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.scope li::before {
  counter-increment: r; content: "L" counter(r);
  grid-row: span 2; align-self: start; justify-self: start;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 9px;
}
.scope b { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.scope span { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

/* фото и пояснение рядом */
.media { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.media-photo { position: relative; }
.media-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media-photo .chip { left: 20px; bottom: 20px; }
.media-text h2 { margin: 22px 0 22px; }
.media-text p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.media-text p + p { margin-top: 14px; }
.media-text p b { color: var(--ink); font-weight: 600; }
.checklist { list-style: none; margin-top: 32px; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.checklist li::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px; background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e85a1c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* вопросы: заголовок слева, ответы справа */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq .head { display: block; margin: 0; position: sticky; top: 120px; }
.faq .head h2 { margin: 22px 0 20px; }
.faq .head .link { margin-top: 26px; }
.qa { display: grid; }
.qa > div { padding: 28px 0; border-top: 1px solid var(--line); }
.qa > div:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.qa p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* другие услуги: строки-ссылки со стрелкой */
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.others .card { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.others .card b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.others .card .go { position: static; flex: none; }

@media (max-width: 1100px) {
  .others { grid-template-columns: repeat(2, 1fr); }
  .media, .faq { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .media-photo { max-width: 560px; }
}
@media (max-width: 760px) {
  .scope { grid-template-columns: 1fr; }
  .scope li { grid-template-columns: 1fr; padding: 24px 0; }
  .scope li::before { grid-row: auto; margin-bottom: 10px; }
  .media-text p { font-size: 16px; }
  .plan-hero { aspect-ratio: 4 / 5; }
  .others { grid-template-columns: 1fr; }
  .chip-plan { left: auto; right: 12px; top: 12px; bottom: auto; }
  h2 { font-size: clamp(28px, 7.6vw, 40px); }
}

/* подсказки в полях: контраст не ниже 4,5:1 на фоне поля */
.form input::placeholder { color: #686c72; }

/* мелкие подписи не меньше 13px: маркировка QF, метки на фото и в карточках работ */
.tag, .chip .mark, .work .kind { font-size: 13px; }

/* ссылка на политику в подписи формы */
.form small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.form small a:hover { color: var(--accent-text); text-decoration-color: currentColor; }

/* политика конфиденциальности: спокойная колонка текста */
.legal { padding-top: clamp(120px, 12vw, 160px); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 20px 0 10px; }
.legal-date { color: var(--muted); font-size: 15px; margin-bottom: clamp(32px, 4vw, 48px); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.legal h2 span { color: var(--accent-text); font-family: var(--mono); font-size: .8em; margin-right: 4px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; list-style: disc; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.legal a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.legal mark.todo { background: #ffe1d1; color: #8a2f08; border-radius: 4px; padding: 0 4px; }
@media (max-width: 760px) { .legal p, .legal li { font-size: 16px; } }

/* галочка согласия на обработку ПД: своя отрисовка поверх общих стилей полей формы */
.consent .check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.form .consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface) center / 14px no-repeat;
  cursor: pointer; transition: background-color .16s ease-out, border-color .16s ease-out;
}
.form .consent input[type="checkbox"]:hover { border-color: var(--ink); }
.form .consent input[type="checkbox"]:checked {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l2.6 2.5L11 4.5'/%3E%3C/svg%3E");
}
.form .consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.invalid input[type="checkbox"] { border-color: var(--accent); }
.consent .check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.consent .check a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.consent .field-error { padding-left: 34px; }
@media (prefers-reduced-motion: reduce) { .form .consent input[type="checkbox"] { transition: none; } }

/* баннер cookie: над панелью звонка, не перекрывает весь экран */
.cookie-bar {
  position: fixed; z-index: 25; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 720px;
  display: flex; align-items: center; gap: 16px 24px; padding: 16px 16px 16px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(22,24,26,.14); animation: cookie-in .3s var(--ease) both;
}
.cookie-bar p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-bar a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-bar .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.cookie-no { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cookie-no:hover { border-color: var(--ink); }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; transition: color .2s; }
.cookie-settings:hover { color: var(--accent-text); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 84px; left: 12px; right: 12px; padding: 16px; }
  .cookie-actions > * { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }

/* заглушки на месте ещё не заполненных данных: видно сразу, выкладывать так нельзя */
mark.todo { background: #ffe1d1; color: #8a2f08; border-radius: 4px; padding: 0 4px; }

/* отзывы: карточки на бумаге, цитата крупно, подпись внизу */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.review {
  display: flex; flex-direction: column; gap: 20px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 36px);
}
.review-q { width: 32px; height: 24px; color: var(--accent); flex: none; }
.review blockquote { margin: 0; flex: 1; display: grid; gap: 12px; }
.review blockquote p { font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.review figcaption { display: grid; gap: 2px; align-content: start; min-height: 96px; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption b { font-size: 16px; font-weight: 700; color: var(--ink); }
.review figcaption span { font-size: 14px; color: var(--muted); }
.review .review-src { margin-top: 8px; justify-self: start; font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.review a.review-src { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; }
.review a.review-src:hover { color: var(--ink); }
.review-stub { border-style: dashed; border-color: var(--line-strong); }
@media (max-width: 1100px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } .review figcaption { min-height: 0; } .review blockquote p { font-size: 16px; } }

/* контакты: левая колонка во всю высоту формы — заголовок на уровне верха формы, телефон на уровне низа,
   между ними «что будет после заявки»; раньше колонка висела по центру и не совпадала ни с чем */
.contact { align-items: stretch; grid-template-columns: 1.08fr 1fr; gap: clamp(40px, 5vw, 64px); }
.contact-info { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 2vw, 32px); padding-top: 0; }
.contact > .bezel { align-self: start; }
.contact-head h2 { margin: 22px 0 0; }
.contact-head p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.next { display: grid; gap: clamp(14px, 1.4vw, 20px); max-width: 30em; padding: 0; list-style: none; }
.next li { display: grid; grid-template-columns: 10px 1fr; column-gap: 18px; row-gap: 4px; }
.next li::before { content: ""; grid-row: 1 / 3; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; background: var(--accent); }
.next b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.next span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.contact-direct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.contact-direct .link { margin-top: 0; }
.contact-direct .big-phone { margin-top: 0; }
/* на ноутбуках 1101–1439 px заголовок контактов держим в две строки, иначе колонка выше формы */
@media (min-width: 1101px) and (max-width: 1439px) { .contact-head h2 { font-size: 3.5vw; } }
@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; }
  .contact-info { padding-top: 0; }
  .contact-direct { margin-top: 0; }
}

/* форма: «Объект» и «Проект» друг под другом — рядом длинные варианты («Квартира, замена проводки»)
   не помещались на ноутбуках и обрезались */
.row2 { grid-template-columns: 1fr; gap: 18px; }

/* ---------- финальная полировка 2026-11-07 ---------- */
/* «Почему мы» и «Гарантия»: заголовкам шире колонка — было по 4 строки в узкой левой части */
@media (min-width: 1101px) {
  .why, .guar { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
}
/* надпись в печати гарантии: было 10px — не читалось */
.stamp span { font-size: 12px; letter-spacing: .04em; max-width: 90px; line-height: 1.2; }
/* карточки услуг на фото: затемнение начинается раньше, заголовок читается и на пёстром снимке щита */
.card-photo::before { background: linear-gradient(180deg, rgba(14,15,16,.18) 0%, rgba(14,15,16,0) 22%, rgba(14,15,16,.62) 50%, rgba(14,15,16,.92) 100%); }
/* цифры на первом экране телефона: подписи не рвём на «в / электромонтаже» */
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .fact span { white-space: nowrap; font-size: 12.5px; }
  .stamp span { font-size: 11px; max-width: 72px; }
}
/* главный заголовок на широких экранах: колонка упирается в 1320px, а шрифт рос дальше — «квартир» отрывалось в отдельную строку */
.hero:not(.page-hero) h1 { font-size: clamp(40px, 5.4vw, 78px); }

/* название «СК Сиэрди» длиннее прежнего: крупное слово в подвале уменьшено, чтобы не вылезало за экран */
.footer-word { font-size: clamp(44px, 11.5vw, 176px); }
.logo { white-space: nowrap; }

/* ---------- Альбомы объектов (внизу главной, данные — «2 Исходники/альбомы.js») ---------- */
.albums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 16px; }
.album { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; cursor: pointer; }
/* обложка — стопка снимков: два листа под фото показывают, что это альбом, а не одна картинка */
.album-cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); }
.album-cover::before, .album-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 10px 24px -14px rgba(70,52,30,.35); transition: transform .5s var(--ease); }
.album-cover::before { background: #ded8cc; transform: translateY(-16px) scaleX(.86); }
.album-cover::after { background: #e9e4da; transform: translateY(-8px) scaleX(.93); }
.album-cover img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 24px 48px -26px rgba(70,52,30,.5); transition: transform .5s var(--ease); }
.album-count { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(22,24,26,.78); color: #fff; font-size: 13px; font-weight: 600; }
.album-meta { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.album-meta b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.album-note { font-size: 15px; line-height: 1.45; color: var(--muted); }
.album .kind { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) {
  .album:hover .album-cover img { transform: translateY(-4px); }
  .album:hover .album-cover::before { transform: translateY(-24px) scaleX(.86); }
  .album:hover .album-cover::after { transform: translateY(-13px) scaleX(.93); }
}
.album:focus-visible .album-cover img { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1100px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 520px) { .albums { gap: 30px 16px; } .album-meta b { font-size: 17px; } .album-note { display: none; } .album-count { left: 8px; bottom: 8px; font-size: 12px; padding: 5px 9px; } }

/* просмотр фото альбома: на весь экран, тёмный фон, листание */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f1012; color: #fff; flex-direction: column; }
.lb[open] { display: flex; }
.lb::backdrop { background: rgba(10,10,12,.9); }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad-x); }
.lb-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-title b { font-size: 18px; font-weight: 700; }
.lb-title span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.lb-close, .lb-nav { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s; }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 var(--pad-x); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 156px); width: auto; height: auto; object-fit: contain; border-radius: 14px; user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-prev svg { transform: scaleX(-1); }
.lb-next { right: 16px; }
.lb-count { padding: 14px; text-align: center; font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .lb-stage { padding: 0 8px; }
  .lb-stage img { max-height: calc(100dvh - 210px); }
  .lb-nav { top: auto; bottom: 8px; transform: none; }
  .lb-count { padding: 26px 14px; }
  .lb-stage { margin-bottom: 0; }
}
body.lb-lock { overflow: hidden; }
