/* ---------- Шрифты (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Nunito Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/nunito-sans-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/nunito-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* ---------- Токены ---------- */
:root {
  --c-ink: #17233a;
  --c-text: #2b364a;
  --c-muted: #5f6b7e;
  --c-line: #dfe6ef;
  --c-bg: #f3f6fa;
  --c-panel: #e6edf5;
  --c-white: #fff;
  --c-orange: #f07a1c;
  --c-orange-600: #dc650b;
  --c-orange-50: #fff1e5;
  --c-green: #19824b;

  --font-head: 'Montserrat Variable', 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans Variable', 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(23, 35, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 35, 58, 0.16);

  --header-h: 72px;
  --container: 1240px;
  --gutter: 20px;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid rgba(240, 122, 28, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite .fill { fill: currentColor; stroke: none; }

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Калькулятор работает только с JS: без скрипта прайс остаётся обычной таблицей */
html:not(.js) .calc-only,
html:not(.js) .calc-col { display: none !important; }

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 800 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.3em; height: 1.3em; }

.btn--primary {
  background: linear-gradient(180deg, #f6862a, var(--c-orange-600));
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(220, 101, 11, 0.28);
}
.btn--primary:hover { background: var(--c-orange-600); box-shadow: 0 10px 24px rgba(220, 101, 11, 0.36); }

.btn--outline { border-color: var(--c-line); background: var(--c-white); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-orange); color: var(--c-orange-600); }

.btn--ghost { background: transparent; color: var(--c-muted); min-height: 40px; font-weight: 700; }
.btn--ghost:hover { color: var(--c-ink); }

.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 1.125rem; }
.btn--block { width: 100%; }

.field {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: 1.0625rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field::placeholder { color: #8a95a6; }
.field:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 4px rgba(240, 122, 28, 0.15); }
.field[aria-invalid='true'] { border-color: #d64545; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 35, 58, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.header__logo { flex: none; }
.header__logo img { width: auto; height: 40px; }

.nav { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header__city,
.header__cta { display: none; }

.header__city {
  align-items: center;
  gap: 6px;
  color: var(--c-ink);
  font-weight: 700;
}
.header__city .icon { color: var(--c-orange); }

.header__icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  cursor: pointer;
}
.header__icon-btn:hover { border-color: var(--c-orange); color: var(--c-orange-600); }

.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* Мобильное меню */
.nav-open .nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  display: grid;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: var(--c-white);
  box-shadow: 0 24px 40px rgba(23, 35, 58, 0.14);
}

.nav__link,
.nav__phone {
  padding: 12px 4px;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}
.nav__link:hover { color: var(--c-orange-600); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
}
.nav__phone .icon { color: var(--c-orange); }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; min-height: 44px; padding: 10px 22px; }
  .header__logo img { height: 44px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .header__inner { gap: 32px; }
  .header__logo img { height: 48px; }

  .nav,
  .nav-open .nav {
    position: static;
    display: flex;
    gap: clamp(16px, 2.6vw, 44px);
    margin-left: auto;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .nav__link { padding: 8px 0; font-size: 1.125rem; }
  .nav__phone { display: none; }

  .header__actions { gap: 24px; margin-left: clamp(16px, 3vw, 64px); }
  .header__city { display: inline-flex; }
  .header__cta { min-height: 48px; padding: 12px 28px; font-size: 1.0625rem; }
  .header__icon-btn { display: none; }
}

/* ---------- Подвал ---------- */
.footer {
  padding: 56px 0 24px;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

.footer__brand img { width: auto; height: 40px; margin-bottom: 14px; }
.footer__brand p { max-width: 280px; color: var(--c-muted); }

.footer__title {
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.footer__phone {
  display: block;
  margin-bottom: 8px;
  color: var(--c-ink);
  font: 800 1.375rem/1.3 var(--font-head);
  text-decoration: none;
}
.footer__phone:hover { color: var(--c-orange-600); }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
}
.footer__link .icon { color: var(--c-orange); }
.footer__link:hover { color: var(--c-orange-600); }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 240px;
  padding: 4px 0;
}
.hours li span:first-child { color: var(--c-muted); }
.hours li span:last-child { color: var(--c-ink); font-weight: 700; }


.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.mobile-bar__buttons {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.mobile-bar .btn { min-height: 46px; padding: 10px 14px; }

.estimate-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.estimate-pill[hidden] { display: none; }

body { padding-bottom: 84px; }

@media (min-width: 768px) {
  .mobile-bar__buttons { display: none; }
  .mobile-bar { inset: auto auto 20px 50%; transform: translateX(-50%); padding: 0; }
  body { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
}

/* ---------- Первый экран ---------- */
.hero { padding: 8px 12px 0; }

.hero__wrap {
  position: relative;
  max-width: 1480px;
  margin-inline: auto;
}

.hero__panel {
  padding: 32px 22px 28px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(160deg, #eef3f9 0%, var(--c-panel) 100%);
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2rem, 8.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero__lead {
  max-width: 30ch;
  margin: 16px 0 24px;
  color: var(--c-text);
  font-size: clamp(1.0625rem, 4vw, 1.25rem);
  line-height: 1.45;
}

.hero__panel .btn { width: 100%; padding-inline: 16px; font-size: 1.0625rem; }

.hero__media { position: relative; }
.hero picture { display: block; }

.hero__img {
  width: 100%;
  height: auto;
  max-height: 460px;
  aspect-ratio: 556 / 516;
  object-fit: cover;
  object-position: 70% 30%;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.callback {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: -64px 12px 0;
  padding: 24px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-lg);
}

.callback__title { font-size: 1.5rem; font-weight: 800; }

.callback__error {
  color: #c43a3a;
  font-size: 0.875rem;
  font-weight: 700;
}

.callback__hint {
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 640px) {
  .hero { padding-inline: var(--gutter); }
  .hero__panel .btn { width: auto; }
}

/* Планшет: текст и фото рядом, форма звонка — полосой снизу.
   Исходник фото небольшой, поэтому не растягиваем его на всю ширину. */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .hero__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--c-panel);
  }
  .hero__media { display: contents; }
  .hero picture { height: 100%; min-height: 380px; }
  .hero__panel { padding: 40px 28px 36px 32px; border-radius: 0; }
  .hero__title { font-size: 2.125rem; }
  .hero__img {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-position: 62% 30%;
    border-radius: 0;
  }
  .callback {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 16px;
    margin: 0;
    padding: 20px 32px;
    border-radius: 0;
    box-shadow: none;
  }
  .callback__title { font-size: 1.25rem; }
  .callback .btn { width: auto; }
  .callback__error,
  .callback__hint { grid-column: 1 / -1; text-align: left; }
}

/*
  Широкий экран. Фото держит пропорции исходника 948×516, поэтому карточка
  «Заказать звонок» в процентах всегда закрывает одну и ту же область снимка
  (там на макете была нарисована карточка — она заретуширована и закрыта).
*/
@media (min-width: 1100px) {
  .hero { padding: 12px 16px 0; }

  .hero__wrap {
    height: clamp(500px, 38vw, 580px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--c-panel);
  }

  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    height: 100%;
    aspect-ratio: 948 / 516;
  }

  .hero__img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .hero__panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: clamp(480px, 46%, 680px);
    height: 100%;
    padding: 48px 11% 48px clamp(40px, 4vw, 64px);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  }

  .hero__title { max-width: none; font-size: clamp(2.25rem, 3.15vw, 3.375rem); }
  .hero__panel .btn { white-space: nowrap; }
  .hero__lead { max-width: 26ch; font-size: clamp(1.125rem, 1.4vw, 1.375rem); }

  .callback {
    position: absolute;
    top: 29%;
    right: 0.6%;
    width: 35.8%;
    min-height: 53%;
    max-width: none;
    margin: 0;
    padding: clamp(20px, 2vw, 30px);
    align-content: center;
  }
  .callback__title { font-size: clamp(1.375rem, 1.7vw, 1.75rem); }
}

/* ---------- Преимущества ---------- */
.perks { padding: 28px 0 8px; }

.perks__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.perk b { display: block; color: var(--c-ink); font-size: 1rem; }
.perk .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--c-orange-50);
  color: var(--c-orange-600);
}

@media (max-width: 639.98px) {
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: 0.875rem; }
  .perk b { font-size: 0.9375rem; }
}

@media (min-width: 1100px) {
  .perks { padding-top: 36px; }
  .perks__list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ---------- Секции ---------- */
.section { padding: 56px 0; }
.section--tinted { background: linear-gradient(180deg, #eaf0f6 0%, var(--c-bg) 100%); }

.section__head { margin-bottom: 28px; }
.section__title {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}
.section__head .section__title { margin-bottom: 12px; }
.section__lead { max-width: 64ch; color: var(--c-muted); font-size: 1.0625rem; }

@media (min-width: 1024px) {
  .section { padding: 80px 0; }
}

/* ---------- Услуги ---------- */
.services {
  display: grid;
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(23, 35, 58, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-card__img {
  width: 100%;
  aspect-ratio: 333 / 195;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 12px;
}

.service-card__title { font-size: 1.25rem; font-weight: 800; }
.service-card__text { flex: 1; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.45; }

.service-card__price {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-orange-50);
  color: var(--c-orange-600);
  font-weight: 800;
}

.extras {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.extra-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.extra-card:hover { border-color: var(--c-orange); box-shadow: var(--shadow); }

.extra-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-panel);
  color: var(--c-ink);
}
.extra-card__icon .icon { width: 26px; height: 26px; }

.extra-card__body { display: grid; flex: 1; gap: 2px; }
.extra-card__title { color: var(--c-ink); font: 800 1.0625rem/1.25 var(--font-head); }
.extra-card__text { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.4; }
.extra-card__price { color: var(--c-orange-600); font-weight: 800; }
.extra-card__arrow { color: var(--c-muted); }

@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .extras { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
}

/* ---------- Как работаем ---------- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
}

.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6862a, var(--c-orange-600));
  color: var(--c-white);
  font: 800 1.25rem/1 var(--font-head);
}

.step__title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 800; }
.step__text { color: var(--c-muted); }

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 47px;
    left: 84px;
    right: -12px;
    border-top: 2px dashed #f3b98a;
  }
}

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 12px; }

.faq__item {
  border-radius: var(--radius);
  background: var(--c-white);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--c-ink);
  font: 700 1.0625rem/1.35 var(--font-head);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--c-orange); transition: transform 0.2s; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__a { padding: 0 22px 20px; color: var(--c-text); }

/* ---------- Призыв ---------- */
.cta { padding: 0 0 56px; }

.cta__inner {
  display: grid;
  gap: 24px;
  padding-block: 36px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(240, 122, 28, 0.22), transparent 55%),
    var(--c-ink);
  color: #c9d3e1;
}

.cta__title { margin-bottom: 10px; color: var(--c-white); font-size: clamp(1.625rem, 4vw, 2.25rem); font-weight: 800; }
.cta__actions { display: grid; gap: 12px; }
.cta .btn--outline { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: var(--c-white); }
.cta .btn--outline:hover { border-color: var(--c-white); }

@media (min-width: 1024px) {
  .cta { padding-bottom: 80px; }
  .cta__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 40px;
    padding: 48px 56px;
  }
  .cta__text p { max-width: 56ch; }
}

@media (max-width: 1023.98px) {
  .cta__inner { width: calc(100% - var(--gutter) * 2); }
}

/* ---------- 404 ---------- */
.not-found { padding-bottom: 0; }
.not-found__inner {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 640px;
  padding-block: 12vh;
}
.not-found__inner h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.not-found__inner p { color: var(--c-muted); font-size: 1.125rem; }

/* ---------- Прайс ---------- */
.prices {
  display: grid;
  gap: 24px;
  align-items: start;
}

.prices__main { min-width: 0; }

/* Вкладки */
.price-tabs {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 16px;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.price-tabs::-webkit-scrollbar { display: none; }
html:not(.js) .price-tabs { display: none; }

.price-tabs__tab {
  flex: none;
  padding: 10px 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.price-tabs__tab:hover { border-color: var(--c-orange); }
.price-tabs__tab[aria-selected='true'] {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-white);
}

/* Панели */
.price-panel + .price-panel { margin-top: 24px; }
.js .price-panel + .price-panel { margin-top: 0; }
.price-panel[hidden] { display: none; }

.price-panel__title { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
.js .price-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.price-panel__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 0.9375rem;
}
.price-panel__note .icon { color: var(--c-orange); }

.prices__visit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-muted);
}
.prices__visit b { color: var(--c-ink); }
.prices__visit .icon { width: 28px; height: 28px; color: var(--c-orange); }

/* Таблица. На телефоне строки превращаются в карточки. */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.price-table thead { display: none; }

.price-table tbody { display: grid; gap: 8px; }

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'name name'
    'price qty'
    'unit qty';
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--c-white);
  transition: box-shadow 0.2s;
}
.price-row.is-selected { box-shadow: inset 0 0 0 2px var(--c-orange); }

.price-row__name {
  grid-area: name;
  margin-bottom: 4px;
  color: var(--c-ink);
  font-weight: 700;
  text-align: left;
}

.price-row__unit { grid-area: unit; color: var(--c-muted); font-size: 0.875rem; }
.price-row__unit::before { content: 'за '; }
.price-row__price { grid-area: price; }
.price-row__qty { grid-area: qty; }
html:not(.js) .price-row { grid-template-areas: 'name name' 'price unit'; }

.price__old { margin-right: 6px; color: #8a95a6; font-size: 0.875rem; }
.price__sale { color: var(--c-ink); font-size: 1.0625rem; font-weight: 800; white-space: nowrap; }
.price__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c-orange-50);
  color: var(--c-orange-600);
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: 2px;
}

/* Счётчик количества */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
}
.is-selected .qty { border-color: var(--c-orange); }

.qty__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-ink);
  cursor: pointer;
}
.qty__btn:hover { color: var(--c-orange-600); }
.qty__btn .icon { width: 18px; height: 18px; }

.qty__input {
  width: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-weight: 800;
  text-align: center;
}
.qty__input:focus { outline: none; }
.qty:focus-within { border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(240, 122, 28, 0.15); }

@media (min-width: 720px) {
  .price-table {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-white);
  }
  .price-table thead { display: table-header-group; }
  .price-table tbody { display: table-row-group; }
  .price-row { display: table-row; padding: 0; border-radius: 0; background: none; }
  .price-row.is-selected { box-shadow: none; background: #fff8f2; }

  .price-table th,
  .price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-line);
    vertical-align: middle;
  }
  .price-table tbody tr:last-child > * { border-bottom: 0; }
  .price-table thead th {
    padding-block: 14px;
    background: #f7f9fc;
    color: var(--c-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }
  .price-row__name { margin: 0; font-weight: 600; }
  .price-row__unit { width: 64px; font-size: 0.9375rem; }
  .price-row__unit::before { content: none; }
  .price-row__price { width: 1%; white-space: nowrap; text-align: right; }
  .price-table thead .price-row__price { text-align: right; }
  .price-row__qty { width: 1%; text-align: right; }
  .price-table thead .calc-col { text-align: center; }
}

/* Смета */
.estimate {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow);
}

.estimate__title { margin-bottom: 12px; font-size: 1.375rem; font-weight: 800; }
.estimate__empty { color: var(--c-muted); }
.estimate__body { display: grid; gap: 16px; }
.estimate__body[hidden] { display: none; }

.estimate__lines {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.estimate__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.estimate__line-name { color: var(--c-ink); font-weight: 600; }
.estimate__line-calc { grid-column: 1; color: var(--c-muted); font-size: 0.875rem; }
.estimate__line-sum { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--c-ink); font-weight: 800; white-space: nowrap; }

.estimate__totals { display: grid; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid var(--c-line); }
.estimate__totals div { display: flex; justify-content: space-between; gap: 12px; }
.estimate__totals dt { color: var(--c-muted); }
.estimate__totals dd { margin: 0; color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.estimate__total dt { color: var(--c-ink); font-weight: 800; }
.estimate__total dd { font: 800 1.5rem/1.2 var(--font-head); }
.estimate__saving dt,
.estimate__saving dd { color: var(--c-green); }

.estimate__note { margin-top: 14px; color: var(--c-muted); font-size: 0.8125rem; line-height: 1.45; }

@media (min-width: 1024px) {
  .prices { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .price-tabs { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .estimate { position: sticky; top: calc(var(--header-h) + 20px); }
}
