/* ==========================================================================
   РемонтДом — стили лендинга.
   Светлая база + синий акцент, системные шрифты, только локальные ресурсы.
   ========================================================================== */

/* ------------------------------- переменные ----------------------------- */
:root {
  --c-bg: #f6f9fd;
  --c-surface: #ffffff;
  --c-surface-2: #f1f5fb;
  --c-text: #0d1a2b;
  --c-muted: #5a6b82;
  --c-muted-2: #8394ab;
  --c-accent: #1256d6;
  --c-accent-dark: #0d3f9e;
  --c-accent-light: #4a86f5;
  --c-accent-soft: #e8f0ff;
  --c-green: #2fbf8f;
  --c-green-soft: #e6f8f1;
  --c-danger: #d93a3a;
  --c-danger-soft: #fdecec;
  --c-border: #e3eaf4;
  --c-border-strong: #cdd9ea;
  --c-dark: #0b1b33;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(13, 26, 43, .06);
  --shadow-sm: 0 4px 14px rgba(13, 26, 43, .06);
  --shadow-md: 0 12px 32px rgba(13, 26, 43, .08);
  --shadow-lg: 0 22px 54px rgba(13, 26, 43, .14);
  --shadow-accent: 0 14px 30px rgba(18, 86, 214, .28);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* --------------------------------- база --------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked,
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 750;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

::selection { background: var(--c-accent); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------- контейнер ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 900px; }

/* -------------------------------- секции -------------------------------- */
.section { padding: 88px 0; }
.section--tight { padding: 48px 0 24px; }
.section--alt { background: var(--c-surface-2); }
.section--calc {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(18, 86, 214, .10), transparent 70%),
    linear-gradient(180deg, #f4f8ff 0%, #eef4fd 100%);
}

.section__head { max-width: 760px; margin: 0 0 44px; }
.section__title { font-size: clamp(28px, 3.4vw, 42px); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--c-muted); }

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

/* -------------------------------- кнопки -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark)); color: #fff; }

.btn--outline {
  border-color: var(--c-border-strong);
  background: #fff;
  color: var(--c-accent-dark);
}
.btn--outline:hover { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-accent-dark); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: var(--c-text);
}
.btn--ghost:hover { background: #fff; }

.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* -------------------------------- шапка --------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 6px 24px rgba(13, 26, 43, .07);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--c-accent); }
.logo__mark { display: block; flex: 0 0 auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { color: var(--c-text); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.logo__text small { color: var(--c-muted-2); font-size: 11.5px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 550;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: var(--c-surface-2); color: var(--c-accent-dark); }
.nav__link.is-active { background: var(--c-accent-soft); color: var(--c-accent-dark); font-weight: 700; }
.nav__footer { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone a { color: var(--c-text); font-size: 16px; font-weight: 750; white-space: nowrap; }
.header__phone a:hover { color: var(--c-accent); }
.header__phone span { color: var(--c-muted-2); font-size: 11.5px; white-space: nowrap; }

.burger {
  display: none;
  order: 3;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
}
.burger__box { display: block; position: relative; width: 20px; height: 14px; margin: 0 auto; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------- hero --------------------------------- */
.hero {
  position: relative;
  padding: 56px 0 76px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 86, 214, .16), rgba(18, 86, 214, 0) 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: start;
}
.hero__title { font-size: clamp(32px, 4.4vw, 56px); }
.hero__lead { margin-top: 20px; max-width: 620px; font-size: 19px; color: var(--c-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 550;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px var(--c-green-soft);
}

.hero__list { display: grid; gap: 12px; margin-top: 26px; }
.hero__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 16.5px; }
.tick {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-green-soft);
  color: #199a6f;
}
.tick--light { background: rgba(255, 255, 255, .18); color: #b9ffdf; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.hero__proof p { font-size: 14.5px; color: var(--c-muted); }
.hero__proof strong { color: var(--c-text); }
.avatars { display: flex; }
.avatars__i {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-left: -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.avatars__i:first-child { margin-left: 0; }

.hero__aside { display: grid; gap: 22px; }
.hero__art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e9f0fa;
}
.hero__art svg { width: 100%; height: auto; }

/* --------------------------- карточка быстрой заявки -------------------- */
.quick-card {
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.quick-card__title { font-size: 23px; }
.quick-card__sub { margin-top: 8px; color: var(--c-muted); font-size: 14.5px; }
.quick-card__note { margin-top: 14px; color: var(--c-muted-2); font-size: 12.5px; text-align: center; }
.quick-card .field { margin-top: 16px; }

/* --------------------------------- поля --------------------------------- */
.field { margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 0; }
.field__label {
  display: block;
  margin-bottom: 7px;
  color: var(--c-text);
  font-size: 14.5px;
  font-weight: 650;
}
.req { color: var(--c-danger); }

.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
  font-size: 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.field__input::placeholder { color: var(--c-muted-2); }
.field__input:hover { border-color: #b9c8dd; }
.field__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-soft);
}
.field__input--area { min-height: 112px; resize: vertical; line-height: 1.55; }

.field__select { position: relative; }
.field__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.field__caret {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

.field__error {
  margin-top: 6px;
  color: var(--c-danger);
  font-size: 13px;
  font-weight: 550;
}
.field--error .field__input {
  border-color: var(--c-danger);
  background: var(--c-danger-soft);
}

/* ------------------------------- чекбоксы ------------------------------- */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}
.check input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.check__box {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 7px;
  background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(.4);
  opacity: 0;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.check input:checked + .check__box {
  border-color: var(--c-accent);
  background: var(--c-accent);
}
.check input:checked + .check__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--c-accent-soft); }
.check__text { font-size: 14.5px; color: var(--c-muted); }
.check__text strong { display: block; color: var(--c-text); font-size: 15.5px; font-weight: 650; }
.check__text em { display: block; font-style: normal; font-size: 13px; color: var(--c-muted-2); }
.check--consent { margin-top: 14px; }
.check--consent .check__text { font-size: 13.5px; line-height: 1.5; }

/* --------------------------------- цифры -------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; border-right: 1px solid var(--c-border); }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat__num {
  color: var(--c-accent);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label { color: var(--c-muted); font-size: 14.5px; }

/* -------------------------------- карточки ------------------------------ */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }

.card--accent { border-color: var(--c-accent); box-shadow: 0 18px 40px rgba(18, 86, 214, .14); }
.card__tag {
  position: absolute;
  top: -12px; left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.card--mini .card__icon { width: 46px; height: 46px; border-radius: 13px; }
.card__title { font-size: 21px; }
.card--mini .card__title { font-size: 18.5px; }
.card__price { margin-top: 8px; color: var(--c-muted); font-size: 15px; }
.card__price strong { color: var(--c-text); font-size: 20px; font-weight: 800; }
.card__text { margin-top: 12px; color: var(--c-muted); font-size: 15px; }
.card__list { display: grid; gap: 8px; margin-top: 16px; }
.card__list li { position: relative; padding-left: 22px; color: var(--c-muted); font-size: 14.5px; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
}
.card__list--tight li { font-size: 13.5px; }
.card__meta { margin-top: 16px; color: var(--c-muted-2); font-size: 13.5px; }
.card--service .btn { margin-top: auto; }
.card--service .card__meta + .btn { margin-top: 18px; }

/* ------------------------------ примеры работ --------------------------- */
.card--work { padding: 0; overflow: hidden; }
.card__media { position: relative; background: #e9f0fa; }
.card__media svg { width: 100%; height: auto; }
.card__chip {
  position: absolute;
  left: 16px; top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--c-accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}
.card--work .card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card--work .card__title { font-size: 19px; }
.card__place { margin-top: 6px; color: var(--c-muted-2); font-size: 13.5px; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.card__sum { color: var(--c-text); font-size: 19px; font-weight: 800; }
.card__term {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-green-soft);
  color: #12805c;
  font-size: 13px;
  font-weight: 650;
}
.works__more { margin-top: 34px; text-align: center; }

/* ------------------------------- калькулятор ---------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 28px;
  align-items: start;
}
.calc__controls { display: grid; gap: 22px; }

.fs {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.fs__legend {
  padding: 0 10px;
  margin-left: -10px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 750;
}
.fs__hint { margin-top: 12px; color: var(--c-muted-2); font-size: 13px; }

.choice-grid { display: grid; gap: 12px; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.choice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.choice:hover .choice__body { border-color: #b9c8dd; }
.choice input:focus-visible + .choice__body { box-shadow: 0 0 0 4px var(--c-accent-soft); }
.choice input:checked + .choice__body {
  border-color: var(--c-accent);
  background: linear-gradient(180deg, #f4f8ff, #eaf1ff);
  box-shadow: 0 8px 20px rgba(18, 86, 214, .12);
}
.choice__title { color: var(--c-text); font-size: 16px; font-weight: 700; }
.choice__meta { color: var(--c-accent); font-size: 14px; font-weight: 700; }
.choice__desc { color: var(--c-muted-2); font-size: 13px; }

.area { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 22px; align-items: center; }
.area__value { position: relative; }
.area__input {
  width: 100%;
  padding: 13px 42px 13px 15px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
  font-size: 19px;
  font-weight: 750;
  text-align: center;
}
.area__input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.area__unit {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted-2);
  font-size: 14px;
  pointer-events: none;
}

.area__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
}
.area__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 86, 214, .18);
}
.area__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  margin-top: -11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 4px 12px rgba(18, 86, 214, .4);
}
.area__range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
}
.area__range::-moz-range-thumb {
  width: 24px; height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 4px 12px rgba(18, 86, 214, .4);
}
.area__range:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; border-radius: 999px; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks .check {
  padding: 16px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.checks .check:hover { border-color: #b9c8dd; }
.checks .check:has(input:checked) { border-color: var(--c-accent); background: #f5f9ff; }

.calc__summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.calc__summary-head { padding-bottom: 20px; border-bottom: 1px dashed var(--c-border-strong); }
.calc__summary-label { color: var(--c-muted); font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.calc__price { margin-top: 10px; }
.calc__price-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--c-accent);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.calc__dash { color: var(--c-muted-2); font-weight: 500; }
.calc__per { margin-top: 8px; color: var(--c-muted); font-size: 14px; }
.calc__per strong { color: var(--c-text); }

.calc__rows { display: grid; gap: 10px; margin: 20px 0; }
.calc__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.calc__row dt { color: var(--c-muted-2); flex: 0 0 auto; }
.calc__row dd { margin: 0; color: var(--c-text); font-weight: 600; text-align: right; }

.calc__term {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--c-green-soft);
  color: #0f6b4d;
  font-size: 13.5px;
  line-height: 1.4;
}
.calc__term strong { font-size: 16px; }
.calc__term-icon { color: #199a6f; flex: 0 0 auto; }
.calc__note { margin-top: 14px; color: var(--c-muted-2); font-size: 12.5px; }
.calc__flash {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-size: 13.5px;
  font-weight: 650;
  text-align: center;
}

/* ------------------------------- до / после ----------------------------- */
.ba__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #dfe7f2;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; }
.ba__img svg { width: 100%; height: 100%; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); }

.ba__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(9, 20, 36, .45);
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--ba, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  padding: 0;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--c-accent);
  cursor: ew-resize;
  box-shadow: 0 10px 26px rgba(9, 20, 36, .32);
  touch-action: none;
  transition: transform .16s var(--ease);
}
.ba__handle:hover { transform: translate(-50%, -50%) scale(1.06); }
.ba__handle:active { transform: translate(-50%, -50%) scale(.98); }
.ba__grip { display: grid; place-items: center; }

.ba__tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 27, 51, .68);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; background: rgba(18, 86, 214, .88); }

.ba__hint { margin-top: 16px; color: var(--c-muted); font-size: 14.5px; text-align: center; }
.ba__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.ba__facts span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-muted);
  font-size: 13.5px;
  text-align: center;
}
.ba__facts strong { color: var(--c-text); font-size: 18px; font-weight: 800; }

/* --------------------------------- этапы -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.step__title { font-size: 18.5px; }
.step__text { margin-top: 10px; color: var(--c-muted); font-size: 14.5px; }
.step__time {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-size: 12.5px;
  font-weight: 700;
}

/* ------------------------------- отзывы --------------------------------- */
.slider { position: relative; }
.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  touch-action: pan-y;
}
.slider__viewport:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; }
.slider__track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.review {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.review__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.review__who { flex: 1 1 220px; }
.review__name { font-size: 18px; font-weight: 750; }
.review__meta { color: var(--c-muted-2); font-size: 13.5px; }
.review__rating { display: flex; gap: 2px; margin: 0; }
.review__star { color: #d8e0ec; font-size: 19px; line-height: 1; }
.review__star.is-on { color: #f5a623; }
.review__text { margin: 0; }
.review__text p { color: var(--c-text); font-size: 17px; line-height: 1.65; }
.review__date { color: var(--c-muted-2); font-size: 13.5px; }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.slider__btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: translateY(-1px); }
.slider__dots { display: flex; align-items: center; gap: 9px; }
.slider__dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d4e4;
  cursor: pointer;
  transition: width .22s var(--ease), background-color .22s var(--ease);
}
.slider__dot:hover { background: var(--c-muted-2); }
.slider__dot.is-active { width: 30px; background: var(--c-accent); }

/* ------------------------------- гарантии ------------------------------- */
.card--mini { padding: 24px; }

/* ---------------------------------- FAQ --------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq__item.is-open { border-color: var(--c-accent); box-shadow: 0 12px 28px rgba(18, 86, 214, .1); }
.faq__head { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--c-text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.faq__btn:hover { color: var(--c-accent-dark); }
.faq__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  transition: transform .28s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--c-accent); color: #fff; }
.faq__panel {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height .34s var(--ease), opacity .28s var(--ease);
}
.faq__inner { padding: 0 22px 22px; }
.faq__inner p { color: var(--c-muted); font-size: 15.5px; }

/* ------------------------------ финальный CTA --------------------------- */
.section--cta {
  padding: 88px 0;
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(74, 134, 245, .35), transparent 65%),
    linear-gradient(135deg, #0d3f9e 0%, #0b1b33 100%);
  color: #fff;
}
.cta { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.cta__lead { margin-top: 18px; color: #c9d8f0; font-size: 18px; }
.cta__list { display: grid; gap: 12px; margin-top: 26px; }
.cta__list li { display: flex; align-items: flex-start; gap: 11px; color: #e4edfb; font-size: 16px; }
.cta__contacts { display: grid; gap: 6px; margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.cta__phone { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.cta__phone:hover { color: #bcd6ff; }
.cta__contacts span { color: #a9bcd8; font-size: 14.5px; }

.lead-form {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
}
.lead-form__title { font-size: 25px; }
.lead-form__sub { margin-top: 8px; margin-bottom: 20px; color: var(--c-muted); font-size: 14.5px; }
.lead-form__note { margin-top: 14px; color: var(--c-muted-2); font-size: 12.5px; text-align: center; }

/* --------------------------------- футер -------------------------------- */
.footer {
  padding: 64px 0 28px;
  background: #0b1b33;
  color: #a9bcd8;
  scroll-margin-top: 100px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.logo--footer { color: var(--c-accent-light); }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small { color: #7f93b3; }
.footer__text { margin-top: 16px; font-size: 14.5px; line-height: 1.65; }
.footer__title { margin-bottom: 16px; color: #fff; font-size: 16px; font-weight: 700; }
.footer__list { display: grid; gap: 10px; font-size: 14.5px; }
.footer__list a { color: #a9bcd8; }
.footer__list a:hover { color: #fff; }
.footer__list--contacts li { color: #a9bcd8; }
.footer__phone { color: #fff !important; font-size: 19px; font-weight: 750; }
.footer__col .btn { margin-top: 20px; }
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #dbe8ff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.footer__socials a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #7f93b3;
  font-size: 13px;
}

/* --------------------------- плавающая панель --------------------------- */
.float-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 24px rgba(13, 26, 43, .08);
  backdrop-filter: blur(10px);
}
.float-bar__btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
}
.float-bar__btn--call { border: 1.5px solid var(--c-border-strong); background: #fff; color: var(--c-text); }
.float-bar__btn--lead { background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent)); color: #fff; box-shadow: var(--shadow-accent); }
.float-bar__btn--lead:hover { color: #fff; }

/* -------------------------------- модалка ------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 36, .58);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.modal__dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  color: var(--c-muted);
  cursor: pointer;
}
.modal__close:hover { background: var(--c-surface-2); color: var(--c-text); }
.modal__icon { display: grid; place-items: center; margin-bottom: 18px; }
.modal__title { font-size: 26px; }
.modal__text { margin-top: 12px; color: var(--c-muted); font-size: 15.5px; }
.modal__hint { margin: 16px 0 22px; color: var(--c-muted-2); font-size: 14px; }

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

/* ============================== адаптивность ============================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { order: 2; }
  .quick-card { order: 1; }
  .hero__aside { gap: 26px; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .calc__summary { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
  .section { padding: 72px 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 76px; }

  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .section__lead { font-size: 16.5px; }

  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 59;
    max-height: 0;
    padding: 0 18px;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: max-height .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  }
  .nav.is-open {
    max-height: calc(100vh - var(--header-h));
    padding: 12px 18px 22px;
    overflow-y: auto;
    border-bottom-color: var(--c-border);
    box-shadow: 0 20px 40px rgba(13, 26, 43, .14);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav__footer { display: grid; gap: 4px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--c-border); }
  .nav__phone { color: var(--c-text); font-size: 19px; font-weight: 750; }
  .nav__hours { color: var(--c-muted-2); font-size: 13px; }

  .hero { padding: 28px 0 48px; }
  .hero__title { font-size: clamp(28px, 7.4vw, 38px); }
  .hero__lead { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__list li { font-size: 15.5px; }

  .quick-card, .lead-form { padding: 22px; }
  .lead-form__title, .quick-card__title { font-size: 21px; }

  .stats { padding: 22px; grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 0; border-right: 0; }
  .stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--c-border); }
  .stat:nth-child(1), .stat:nth-child(2) { padding-bottom: 16px; }

  .cards--3 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card--work { padding: 0; }

  .fs { padding: 18px; }
  .choice-grid--3 { grid-template-columns: 1fr; }
  .choice__body { padding: 14px; }
  .checks { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; gap: 12px; }
  .area__input { font-size: 18px; }
  .calc__summary { padding: 22px; }
  .calc__price-range { font-size: 25px; }

  .ba__frame { aspect-ratio: 4 / 3; }
  .ba__handle { width: 46px; height: 46px; }
  .ba__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba__tag { top: 10px; padding: 5px 11px; font-size: 11.5px; }
  .ba__tag--before { left: 10px; }
  .ba__tag--after { right: 10px; }

  .steps { grid-template-columns: 1fr; }
  .review { padding: 22px; }
  .review__text p { font-size: 16px; }
  .review__head { gap: 12px; }

  .faq__btn { padding: 16px; font-size: 16px; }
  .faq__inner { padding: 0 16px 18px; }

  .cta__phone { font-size: 23px; }
  .footer { padding: 48px 0 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { margin-top: 32px; }

  .float-bar { display: flex; }

  .modal__dialog { padding: 26px 20px; }
  .modal__title { font-size: 22px; }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .section__title { font-size: clamp(24px, 7vw, 30px); }
  .hero__title { font-size: clamp(26px, 8vw, 32px); }
  .logo__text small { display: none; }
  .badge { font-size: 12.5px; padding: 7px 12px; }
  .stats { grid-template-columns: 1fr; padding: 18px; }
  .stat { padding: 0 0 14px; border-right: 0 !important; border-bottom: 1px solid var(--c-border); }
  .stat:last-child { padding-bottom: 0; border-bottom: 0; }
  .btn--lg { padding: 14px 20px; font-size: 16px; }
  .review__avatar { width: 46px; height: 46px; font-size: 15px; }
  .review__rating { order: 3; width: 100%; }
  .slider__nav { gap: 12px; }
  .slider__btn { width: 44px; height: 44px; }
  .card__title { font-size: 19px; }
  .footer__bottom { flex-direction: column; }
}

/* ------------------------ уменьшенная анимация -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .slider__track { transition: none; }
}
