/* ============ DagRemont — стили ============ */

/* ============ Шрифты (свои, без Google) ============ */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); 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: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); 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: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); 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: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); 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: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }


:root {
  /* Нейтральная база */
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --ink: #1f1c19;
  --ink-soft: #5d574f;
  --line: #e6ded3;
  --dark: #211d1a;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(40, 30, 20, .35);
  --shadow-soft: 0 10px 30px -18px rgba(40, 30, 20, .4);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wa: #25d366;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* Акцент — терракот (по умолчанию) */
[data-theme="terracotta"] {
  --accent: #c0573b;
  --accent-deep: #9c4026;
  --accent-soft: #f6e7df;
  --accent-tint: #fbf2ec;
}
/* Акцент — тёмно-зелёный */
[data-theme="green"] {
  --accent: #2f5d50;
  --accent-deep: #224439;
  --accent-soft: #e0ebe6;
  --accent-tint: #eef4f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); margin-bottom: 18px;
}
.eyebrow--light { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Переключатель темы ---------- */
.theme-switch {
  position: fixed; right: 16px; bottom: 92px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 999px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.theme-switch__label { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--dot);
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, border-color .2s;
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.is-active { border-color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.logo__text strong { color: var(--accent); }
.logo--light { color: #fff; }
.logo--light .logo__text strong { color: #fff; }

.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .2s; position: relative; }
.nav a:hover { color: var(--accent); }

.header__contacts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone { font-weight: 700; font-size: 15px; }
.header__socials { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: all .2s;
}
.icon-btn--wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.icon-btn--tg:hover { background: #29a9eb; color: #fff; border-color: #29a9eb; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero: видео на заднем плане ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); padding: 56px 0;
  background: #1d2a25 url("../img/hero-desktop-poster.jpg") center / cover no-repeat; color: #fff;
}
.hero__video {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,18,15,.70) 0%, rgba(10,18,15,.50) 50%, rgba(10,18,15,.14) 100%),
    linear-gradient(180deg, rgba(10,18,15,.18) 0%, rgba(10,18,15,.34) 100%);
}
.hero__inner { width: 100%; }
.hero__content { max-width: 680px; animation: heroIn .8s var(--ease) both; }
.hero__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #fff; }
.hero__title em { color: #d3ecdf; }
.hero__line { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #eef3f0; max-width: 540px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hero .eyebrow { margin-bottom: 20px; }
.img-fallback { background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt)); }

/* ---------- Вводный блок под hero ---------- */
.intro { padding: 56px 0 8px; }
.intro__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.intro__lead { font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }
.stat b { display: block; font-size: 20px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 4px; }

/* ---------- Полоса доверия ---------- */
.trust { padding: 8px 0 8px; }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft);
}
.trust__item { text-align: center; }
.trust__item b { display: block; font-size: 20px; color: var(--accent); }
.trust__item span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.section__sub { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { font-size: 28px; font-weight: 800; color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent); }
[data-theme] .step__num { color: var(--accent); opacity: .8; }
.step h3 { font-size: 17px; margin: 12px 0 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Калькулятор ---------- */
.calc {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.calc__controls { padding: 36px; }
.field { margin-bottom: 24px; }
.field > label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.field > label b { color: var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1; min-width: 64px; padding: 11px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: all .2s;
}
.seg button:hover { border-color: var(--accent); }
.seg button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: var(--accent-soft); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 4px solid #fff; box-shadow: var(--shadow-soft);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid #fff;
}

.check { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; font-size: 15px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check span { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 14px; }

.calc__result { background: var(--bg-alt); padding: 28px; display: flex; align-items: center; justify-content: center; }
.receipt-wrap { width: 100%; max-width: 420px; transform: rotate(-.7deg); filter: drop-shadow(0 14px 14px rgba(60, 45, 30, .22)); }
.receipt {
  --tooth: 12px; position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 40px; color: #2a2621;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: linear-gradient(180deg, #fffdf8, #faf5e9);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.calc__result-label { order: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px dashed #b9b09f; }
.rcpt { order: 1; list-style: none; margin: 0; padding: 6px 0; }
.rcpt li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: 13px; line-height: 1.35; border-bottom: 1px dashed #d9d1c1; color: #2a2621; }
.rcpt li:last-child { border-bottom: 0; }
.rcpt li span { flex: 1 1 auto; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rcpt li span::after { content: ""; flex: 1 1 12px; border-bottom: 2px dotted #b4aa97; transform: translateY(-3px); min-width: 12px; }
.rcpt li b { flex: none; font-weight: 700; white-space: nowrap; color: #1f1c19; }
.calc__meta { order: 2; display: grid; gap: 4px; margin: 0; padding: 12px 0 14px; border-top: 1px dashed #b9b09f; border-bottom: 1px dashed #b9b09f; }
.calc__meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.calc__meta span { display: inline; font-size: 13px; opacity: .8; }
.calc__meta b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.calc__price { order: 3; margin: 16px 0 20px; font-family: inherit; font-weight: 700; font-size: clamp(28px, 7.5vw, 38px); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; color: #1f1c19; }
.calc__price::before { content: "ИТОГО"; display: block; font-size: 12px; letter-spacing: .16em; font-weight: 700; margin-bottom: 4px; color: #6b6355; }
.calc__price #priceVal { color: inherit; }
.receipt .btn { order: 4; }
.calc__note { order: 5; font-size: 11px; opacity: .65; margin: 14px 0 0; text-align: center; }

/* ---------- Пакеты ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pack {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pack--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.pack.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.pack__tag {
  position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.pack__name { font-size: 22px; font-weight: 800; }
.pack__from { color: var(--ink-soft); margin: 6px 0 20px; }
.pack__from b { color: var(--accent); font-size: 20px; }
.pack__list { list-style: none; margin-bottom: 24px; }
.pack__list li { padding: 9px 0 9px 28px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.pack__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- Портфолио ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; box-shadow: var(--shadow-soft); background: var(--bg-alt);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card .card__after { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__after { opacity: 1; }
.card:hover .card__before { transform: scale(1.05); }
.card__label {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card__hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 2; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .3s;
}
.card:hover .card__hint { opacity: 1; }
.card.is-hidden { display: none; }

/* ---------- Почему мы ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.review blockquote { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.review blockquote::before { content: "“"; font-size: 50px; color: var(--accent-soft); line-height: 0; display: block; height: 24px; }
.review figcaption b { display: block; }
.review figcaption span { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; margin-bottom: 12px;
}
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 30px 16px 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent);
  transition: transform .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Форма заявки ---------- */
.lead { background: var(--dark); color: #fff; padding: 84px 0; }
.lead__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.lead__sub { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 28px; }
.lead__contacts { display: flex; gap: 14px; flex-wrap: wrap; }
.lead__contact { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: background .2s; }
.lead__contact:hover { background: rgba(255,255,255,.16); }

.lead__form { background: var(--surface); border-radius: var(--radius); padding: 32px; color: var(--ink); }
.lead__form .field { margin-bottom: 16px; }
.lead__form input, .lead__form select, .lead__form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: 15px; font-family: inherit; background: var(--bg); transition: border-color .2s;
}
.lead__form input:focus, .lead__form select:focus, .lead__form textarea:focus { outline: none; border-color: var(--accent); }
.lead__form input.invalid { border-color: #d6453d; background: #fdf1f0; }
.lead__policy { font-size: 12px; color: var(--ink-soft); margin-top: 14px; text-align: center; }

/* ---------- Подвал ---------- */
.footer { background: #161311; color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__col h2, .footer__col h3, .footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; color: rgba(255,255,255,.7); transition: color .2s; font-size: 15px; }
.footer__col a:hover { color: #fff; }
.footer__col--brand p { margin-top: 16px; font-size: 14px; max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 55;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.7);
  transition: transform .25s var(--ease);
  animation: pulse 2.4s infinite;
}
.fab:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 30px -8px rgba(37,211,102,.7);} 50% { box-shadow: 0 10px 30px -2px rgba(37,211,102,.9);} }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,12,10,.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 22px; right: 28px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer;
}

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ ВНУТРЕННИЕ СТРАНИЦЫ ============ */

/* Хлебные крошки + хедер страницы */
.page-hero {
  background: var(--bg-alt); padding: 56px 0 60px; border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.page-hero p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; max-width: 640px; }

/* Сетка проектов на отдельной странице */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s; display: block;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__cat {
  position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.work__body { padding: 20px 22px 24px; }
.work__body h3 { font-size: 18px; margin-bottom: 6px; }
.work__meta { display: flex; gap: 16px; color: var(--ink-soft); font-size: 14px; }
.work__meta b { color: var(--accent); }

/* Страница одного проекта */
.project { padding: 64px 0; }
.project__layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
.ba {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 3/2; user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; cursor: ew-resize; z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.ba__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-weight: 800; color: var(--accent);
}
.ba__tag { position: absolute; top: 14px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__hint { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 12px; }

.project__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.project__thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; box-shadow: var(--shadow-soft); }

.project__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft);
  position: sticky; top: 96px;
}
.project__card h2 { font-size: 24px; margin-bottom: 18px; }
.spec { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec span { color: var(--ink-soft); }
.spec b { color: var(--ink); }
.project__quote { background: var(--accent-tint); border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; font-size: 15px; }
.project__quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--accent); }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.service ul { list-style: none; }
.service li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; }
.service li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* О компании */
.about-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-lead img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-lead h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; margin-bottom: 16px; }
.about-lead p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.values { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value { text-align: center; padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value b { display: block; font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.value span { font-size: 14px; color: #5d574f; }
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.member { text-align: center; }
.member img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.member b { display: block; }
.member span { font-size: 14px; color: var(--ink-soft); }

/* CTA-полоса для внутренних страниц */
.cta-band { background: var(--dark); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 980px) {
  .work-grid, .services-grid, .values, .team { grid-template-columns: 1fr 1fr; }
  .project__layout, .about-lead { grid-template-columns: 1fr; }
  .project__card { position: static; }
}
@media (max-width: 720px) {
  .work-grid, .services-grid, .values, .team { grid-template-columns: 1fr; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .intro__inner { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .packages, .features, .reviews { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .lead__inner, .footer__inner { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .header__contacts .header__phone, .header__contacts .btn { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .gallery, .packages, .features, .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px 20px; }
  .section { padding: 60px 0; }
  .theme-switch { bottom: 88px; right: 12px; }
}


/* ---------- Главное УТП: камеры на объекте ---------- */
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.55); } 70% { box-shadow: 0 0 0 9px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.cam { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.cam__text .section__title { text-align: left; }
.cam__text .section__sub { margin-bottom: 26px; }
.cam__list { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.cam__list li { display: flex; gap: 16px; align-items: flex-start; }
.cam__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cam__list b { display: block; font-size: 17px; }
.cam__list span:not(.cam__ico) { color: var(--ink-soft); font-size: 15px; }
.cam__view { position: relative; }
@media (max-width: 900px) { .cam { grid-template-columns: 1fr; gap: 36px; } .cam__view { order: -1; } }



/* ---------- Типографика: заголовки с засечками ---------- */
.hero__title, .section__title, .lead__title, .page-hero h1, .about-lead h2, .cta-band h2,
.stat b, .value b, .pack__name, .trust__item b, .step__num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em;
}
.hero__title { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; font-weight: 600; }
.hero__title em { font-style: italic; font-weight: 500; }
.section__title { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; font-weight: 600; }
.lead__title { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.05; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; }
.about-lead h2, .cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.stat b, .trust__item b { font-size: 26px; }
.pack__name { font-size: 30px; }
.value b { font-size: 28px; }
.step__num { font-size: 40px; }
.section__sub, .intro__lead { font-weight: 450; }

/* ---------- Макет телефона (видеонаблюдение) ---------- */
.cam__view { display: flex; justify-content: center; }
.phone { position: relative; width: min(330px, 100%); border-radius: 44px; padding: 10px; background: #14110f; box-shadow: var(--shadow), inset 0 0 0 2px #2b2724; }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; border-radius: 14px; background: #14110f; transform: translateX(-50%); z-index: 3; }
.phone__screen { position: relative; border-radius: 34px; overflow: hidden; background: #16231f; aspect-ratio: 9 / 17; display: flex; flex-direction: column; }
.phone__live { display: inline-flex; align-items: center; gap: 7px; }
.phone__live i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: livepulse 1.8s infinite; }
@media (prefers-reduced-motion: reduce) { .phone__live i { animation: none; } }

/* ---------- Страница 404 ---------- */
.nf { text-align: center; padding: 90px 0 110px; }
.nf .nf__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 22vw, 220px); line-height: .9; color: #5f8a7e; -webkit-text-stroke: 2px var(--accent); margin-bottom: 8px; }
.nf p:not(.nf__code) { max-width: 520px; margin: 14px auto 0; color: var(--ink-soft); }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- Правки: цифры, калькулятор, мобильная версия ---------- */
.hero__title, .section__title, .lead__title, .page-hero h1, .about-lead h2, .cta-band h2,
.stat b, .value b, .pack__name, .trust__item b { font-variant-numeric: lining-nums; }
.step__num { font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; }
.step__num { font-size: 30px; }

.field > .check { display: flex; align-items: center; gap: 12px; font-weight: 500; margin-bottom: 12px; line-height: 1.35; }
.field > .check input { flex: none; margin: 0; }
.field > .check span { flex: none; margin-left: auto; white-space: nowrap; }
.seg button { flex: 1 1 auto; min-width: 0; }

@media (max-width: 720px) {
  .calc__controls { padding: 24px 18px; }
  .seg button { padding: 11px 8px; font-size: 13.5px; }
  .seg[data-calc="type"] { display: grid; grid-template-columns: 1fr; }
}

/* ---------- Удобные зоны нажатия на телефоне (44 px) ---------- */
@media (max-width: 900px) {
  .icon-btn { width: 44px; height: 44px; }
  .burger { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; }
  .seg button, .filter { min-height: 44px; }
  .footer__col a { display: block; padding: 10px 0; }
  }
@media (max-width: 900px) {
  .nav.is-open a { padding: 10px 0; font-size: 17px; }
  .nav.is-open { gap: 4px; }
}

/* ============ Раздел «Советы» ============ */
.tipchip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.tipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tipcard { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tipcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.tipcard.is-hidden { display: none; }
.tipcard__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.tipcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.15; letter-spacing: -.005em; }
.tipcard p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.tipcard__more { color: var(--accent); font-weight: 700; font-size: 14px; }
.tipcard:hover .tipcard__more { text-decoration: underline; }

.tip-hero h1 { max-width: 780px; }
.tip-hero p { max-width: 720px; }
.tipmeta { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--ink-soft); font-size: 14px; }

.prose { font-size: 18px; line-height: 1.75; color: #2b2723; }
.prose > p { margin: 0 0 22px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 46px 0 16px; color: var(--ink); }
.prose h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.prose > ul li, .prose > ol li { position: relative; padding-left: 38px; margin-bottom: 14px; }
.prose > ul li::before { content: ""; position: absolute; left: 10px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose > ol { counter-reset: st; }
.prose > ol li { counter-increment: st; }
.prose > ol li::before { content: counter(st); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

.tipbox { border-radius: var(--radius); padding: 24px 26px; margin: 0 0 24px; border: 1px solid; }
.tipbox ul { margin: 0; }
.tipbox li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 16.5px; line-height: 1.55; }
.tipbox li:last-child { margin-bottom: 0; }
.tipbox--no { background: #fbefec; border-color: #f0cfc8; }
.tipbox--no h3 { color: #a3321f; }
.tipbox--no li::before { content: "×"; position: absolute; left: 4px; top: -.05em; font-size: 24px; font-weight: 700; color: #c0432e; }
.tipbox--yes { background: var(--accent-tint); border-color: var(--accent-soft); }
.tipbox--yes h3 { color: var(--accent-deep); }
.tipbox--yes li::before { content: "✓"; position: absolute; left: 3px; top: 0; font-weight: 800; color: var(--accent); }
.tippair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.tippair .tipbox { margin: 0; }

.tipnote { background: var(--dark); color: #f3ede3; border-radius: var(--radius); padding: 26px 30px; margin: 30px 0 6px; }
.tipnote b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.tipnote p { color: #d9d2c6; margin: 0; font-size: 17px; line-height: 1.65; }

.ckhead { position: sticky; top: 72px; z-index: 5; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 26px; box-shadow: var(--shadow-soft); }
.ckhead__row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 10px; }
.ckhead__reset { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
.ckhead__bar { height: 6px; border-radius: 6px; background: var(--accent-soft); overflow: hidden; }
.ckhead__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .4s var(--ease); }
.ckgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; }
.ckgroup h2, .ckgroup h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-bottom: 14px; }
.cklist { margin: 0; }
.cklist li { border-top: 1px solid var(--line); }
.cklist li:first-child { border-top: 0; }
.cklist label { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; cursor: pointer; font-size: 16.5px; line-height: 1.5; }
.cklist input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.cklist input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: #b7b0a5; }

.tipnav__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tipnav__a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .25s, transform .25s var(--ease); }
.tipnav__a:hover { border-color: var(--accent); transform: translateY(-3px); }
.tipnav__a--r { text-align: right; }
.tipnav__a small { display: block; color: var(--ink-soft); font-size: 13px; margin-bottom: 4px; }
.tipnav__a b { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.tipnav__all { text-align: center; margin-top: 22px; }
.tipnav__all a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) { .tipgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .tipgrid { grid-template-columns: 1fr; }
  .tippair, .tipnav__row { grid-template-columns: 1fr; }
  .tipnav__a--r { text-align: left; }
  .prose { font-size: 17px; }
  .tipbox, .ckgroup { padding: 20px 18px; }
  .ckhead { top: 66px; }
}

.nb { white-space: nowrap; }
.tips-more { text-align: center; margin-top: 34px; }
.nav a.nav__hl { color: var(--accent); font-weight: 700; position: relative; }
.nav a.nav__hl::after { content: "новое"; position: absolute; top: -10px; right: -14px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 5px; line-height: 1.2; }
@media (max-width: 900px) { .nav a.nav__hl::after { position: static; margin-left: 8px; padding: 3px 6px; vertical-align: 2px; } }



/* ---------- Промежуточные призывы к действию ---------- */
.midcta { padding: 8px 0 56px; }
.midcta__box { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--dark); color: #fff; border-radius: 24px; padding: 30px 36px; }
.midcta__box b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin-bottom: 6px; }
.midcta__box span { color: #cfc8bc; font-size: 16px; }
.midcta__box .btn { flex: none; }
.section--alt + .midcta { background: var(--bg-alt); padding-top: 0; }
@media (max-width: 720px) { .midcta { padding-bottom: 40px; } .midcta__box { flex-direction: column; align-items: stretch; text-align: left; padding: 24px 20px; } .midcta__box .btn { width: 100%; } }

/* ---------- Блок «Кто ведёт ваш ремонт» ---------- */
.expert { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.expert__photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.expert__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 2px dashed #9fb8ae; background: #dce8e3; }
.expert__sil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.expert__tag { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; background: rgba(255,255,255,.92); color: var(--accent-deep); font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-soft); }
.expert__badge { position: absolute; right: -22px; top: 36px; background: var(--surface); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); text-align: center; }
.expert__badge b { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); }
.expert__badge span { font-size: 13px; color: var(--ink-soft); }
.expert__text .section__title { text-align: left; margin: 14px 0 4px; font-size: clamp(36px, 4.6vw, 58px); }
.expert__role { color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; }
.expert__lead { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 500; color: var(--ink); margin-bottom: 18px; }
.expert__text p:not(.expert__role):not(.expert__lead) { color: var(--ink-soft); font-size: 17px; margin-bottom: 26px; max-width: 560px; }
.expert__facts { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 0 0 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expert__facts b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.05; color: var(--accent-deep); }
.expert__facts span { font-size: 14px; color: var(--ink-soft); }
.expert__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .expert { grid-template-columns: 1fr; gap: 40px; }
  .expert__photo { max-width: 360px; }
  .expert__badge { right: -8px; top: 20px; }
}
@media (max-width: 720px) { .expert__facts { grid-template-columns: 1fr 1fr; gap: 18px 24px; } .expert__cta .btn { flex: 1 1 100%; } }
.expert__badge b, .expert__facts b, .midcta__box b, .tipcard h3, .tipnav__a b { font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }

/* ---------- Видео-визуализация проекта ---------- */
.tour { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.tour__text .section__title { text-align: left; }
.tour__text .section__sub { margin-bottom: 26px; }
.tour__view { display: flex; justify-content: center; }
.phone--video .phone__screen { background: #14110f; aspect-ratio: 9 / 17; }
.tour__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #14110f; }
.tour__chip { position: absolute; left: 14px; bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(20,18,16,.6); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
@media (max-width: 900px) { .tour { grid-template-columns: 1fr; gap: 36px; } .tour__view { order: -1; } }


/* ---------- Доступность и первый экран ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #1f7a5c; outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .filter:focus-visible, .seg button:focus-visible { outline-offset: 2px; }
.hero--in { animation: heroIn .8s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero--in { animation: none; } }
.lead__error { color: #ffb4a8; font-size: 14px; margin-top: 12px; }
.lead__form .lead__error { color: #b3261e; }
input.invalid, textarea.invalid { border-color: #b3261e !important; background: #fdf1ef; }


/* ---------- Планировка: картинка с выносками ---------- */
.planimg { --pad: clamp(8px, 1.6vw, 18px); max-width: 960px; margin: 0 auto; }
.planimg__stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: var(--pad); overflow: hidden; }
.planimg__img { display: block; width: 100%; height: auto; border-radius: 16px; }
.planimg__pins { position: absolute; inset: var(--pad); list-style: none; margin: 0; padding: 0; pointer-events: none; }
.planimg__pins li {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(250, 247, 242, .95); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px;
  font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-soft);
}
.planimg__pins li::before, .planimg__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.planimg__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.planimg__list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.planimg__cap { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }
@media (min-width: 768px) {
  .planimg__list { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 767px) {
  .planimg__pins { display: none; }
  .planimg__stage { border-radius: 20px; }
  .hero { min-height: max(560px, calc(100svh - 66px)); padding: 40px 0; background-image: url("../img/hero-mobile-poster.jpg"); }
  .hero__shade { background: linear-gradient(180deg, rgba(10,18,15,.52) 0%, rgba(10,18,15,.64) 100%); }
  .calc__result { padding: 20px 14px; }
  .receipt { padding: 24px 18px 36px; }
}

/* ---------- Форма: ловушка для ботов, согласие, результат ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.lead__form .consent input { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; margin: 0; accent-color: #1f7a5c; }
.consent label { cursor: pointer; }
.consent a { color: var(--accent); text-decoration: underline; }
.lead__form .consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.lead__result { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #f3f8f5; }
.lead__result.is-fail { background: #fdf5f3; border-color: #e7b9b2; }
.lead__result-text { font-size: 15px; margin-bottom: 12px; }
.lead__result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lead__result-actions .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }

/* ---------- Подвал: политика и реквизиты ---------- */
.footer__bottom-inner a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; text-decoration: underline; text-underline-offset: 3px; color: rgba(255,255,255,.8); }
.footer__bottom-inner a:hover { color: #fff; }
.footer__req { width: 100%; color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------- Шапка: телефон в одну строку, на узких десктопах скрываем ---------- */
.header__phone { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1239px) { .header__phone { display: none; } }

/* ---------- Области нажатия ≥44px (вид прежний) ---------- */
input[type="range"] { height: 44px; background: transparent; border-radius: 0; margin: -19px 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--accent-soft); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--accent-soft); }
input[type="range"]::-webkit-slider-thumb { margin-top: -9px; }
.field > .check { min-height: 44px; padding-block: 12px; margin-block: -6px; box-sizing: border-box; }
.field > .check input { width: 20px; height: 20px; }

/* ---------- Видеонаблюдение: экран приложения камеры ---------- */
.cam__view { flex-direction: column; align-items: center; gap: 14px; }
.cam__note { font-size: 13px; color: var(--ink-soft); text-align: center; }
.phone--cam .phone__screen { aspect-ratio: 9 / 13; background: #0f1a17; }
.camscr__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 52px 16px 12px; background: #0f1a17; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.camscr__video { position: relative; aspect-ratio: 16 / 9; background: #14110f; overflow: hidden; }
.camscr__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.camscr__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(8,12,11,.5) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
.camscr__stamp { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(8,12,11,.62); color: #fff; font: 600 12px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.camscr__foot { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 18px 18px 26px; color: #cdd8d4; }
.camscr__cap { text-align: center; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.camscr__timeline { position: relative; padding-top: 22px; }
.camscr__now { position: absolute; top: 0; right: 0; transform: translateX(8px); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.camscr__track { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 12.5%); background-size: 100% 12px; background-repeat: no-repeat; background-position: 0 -8px; }
.camscr__track b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: var(--accent); }
.camscr__track i { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
