@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-lat.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: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-lat.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;
}

:root {
  /* Тёмные поверхности: фон страницы, секции, приподнятые панели */
  --navy: #070B12;
  --ink: #0C1119;
  --ink-2: #131A24;
  --ink-3: #1C2430;

  /* Светлые поверхности */
  --paper: #F2F4F8;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --surface-tint: #F6F8FC;
  --tint-1: #EFF3F9;

  /* Текст */
  --text: #101722;
  --text-2: #3A4452;
  --muted: #5E6A79;
  --placeholder: #949EAC;

  /* Линии */
  --line: #DCE1EA;
  --line-strong: #C4CBD8;
  --edge: #E7EBF2;

  /* Акцент. Один синий на весь сайт: базовый для светлого,
     --accent-bright — его осветлённый вариант для тёмных поверхностей */
  --accent: #1668D6;
  --accent-rgb: 22, 104, 214;
  --accent-deep: #0F4FA8;
  --accent-ink: #0D3F86;
  --accent-soft: #E7EFFC;
  --accent-line: #C8DBF6;
  --accent-bright: #7FA9F0;
  --accent-bright-rgb: 127, 169, 240;
  --accent-bright-2: #A9C6F5;

  /* Текст и линии на тёмном */
  --on-dark: #ECF1F7;
  --on-dark-2: #C0C9D6;
  --on-dark-muted: #94A0B1;
  --line-dark: rgba(255, 255, 255, 0.10);

  /* Статусы */
  --star: #E3A93C;
  --ok: #12803C;
  --ok-soft: #E6F5EA;
  --danger: #C4322A;
  --warn-soft: #FFF6E6;
  --warn-line: #F2D8A6;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1500px;
  --shadow-s: 0 1px 2px rgba(12, 17, 25, .04), 0 10px 26px -18px rgba(12, 17, 25, .20);
  --shadow-m: 0 2px 4px rgba(12, 17, 25, .05), 0 24px 48px -24px rgba(12, 17, 25, .30);
  --gutter: 24px;
  --section: 112px;

  --header-top: 64px;
  --header-nav: 46px;
  --header-h: calc(var(--header-top) + var(--header-nav));
  --header-real: calc(var(--header-top) + var(--header-nav) + 2px);
  --dock: 60px;

  /* Тонкая чертёжная сетка в шапке: 1px линии 24/96 px + редкий акцентный крест */
  --header-texture:
    radial-gradient(120% 190% at 86% -70%, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), 0) 60%),
    url("../img/header-stars.webp");

  /* Звёздное небо для тёмных панелей (подвал, карта, карточка диагностики) */
  --stars-panel: url("../img/stars-panel.webp");

  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Manrope', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
html.nav-open { overflow: hidden; }

/* Тёмная системная тема красит дорожку скроллбара в чёрный — задаём светлую явно */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f2f4f8; }
::-webkit-scrollbar-thumb {
  border: 3px solid #f2f4f8;
  border-radius: 999px;
  background: #b4bdc9;
}
::-webkit-scrollbar-thumb:hover { background: #8f9aa8; }


body {
  margin: 0;
  padding-bottom: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(33px, 3.7vw, 54px); font-weight: 700; }
h2 { font-size: clamp(27px, 2.8vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a[href^='tel:'] { white-space: nowrap; }
img { max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
svg { flex: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.dark :focus-visible,
.header :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent-bright);
}

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.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;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - var(--gutter) * 2, 1500px); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--tint-1) 0%, var(--surface) 100%); }

.dark {
  background: var(--ink);
  color: var(--on-dark);
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--on-dark-muted); }

/* Звёздное небо для тёмных секций: тот же ассет, что в карточке диагностики */
.section--stars {
  background-color: #080C12;
  background-image: var(--stars-panel);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 52px;
}
.section__head > div { max-width: 780px; }
.section__head h2 { margin-top: 0; }
.section__lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 17.5px;
  line-height: 1.55;
  max-width: 620px;
}
.dark .section__lead { color: var(--on-dark-muted); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }
.dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn--phone { font-variant-numeric: tabular-nums; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}
.link-more svg { flex: none; transition: transform .18s ease; }
.link-more:hover svg { transform: translateX(3px); }
.dark .link-more { color: var(--accent-bright); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.chip--light {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}
.chip b { font-weight: 600; color: #fff; }
.chip--light b { color: var(--text); }
.chip .star { color: var(--star); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(7, 11, 18, 0.97);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
  transition: background-color .45s ease, border-color .45s ease;
}
/* Звёздный слой отдельным псевдоэлементом: background-image не анимируется,
   а opacity — да, поэтому прозрачная шапка переходит в звёздную плавно */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-texture);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.header:not(.header--over)::before,
.header--over.is-scrolled::before,
.header--over.is-open::before { opacity: 1; }
.header__top,
.header__nav { position: relative; z-index: 1; }

.header--over {
  background-color: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.header--over .header__nav {
  background: transparent;
  border-top-color: transparent;
}
.header--over.is-scrolled,
.header--over.is-open {
  background-color: rgba(7, 11, 18, .94);
  border-bottom-color: var(--line-dark);
}
.header--over.is-scrolled .header__nav {
  background: none;
  border-top-color: transparent;
}

.header--over + main > .hero { margin-top: calc(var(--header-real) * -1); }
.header--over + main > .hero .hero__inner { padding-top: calc(var(--header-real) + clamp(48px, 5.4vw, 84px)); }

.header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-top);
}
.header__logo { margin-right: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.logo__mark {
  display: block;
  height: 42px;
  width: auto;
  flex: none;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__name span { font-weight: 400; opacity: .86; }
.logo__sub {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.header__rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--on-dark-muted);
  text-decoration: none;
  white-space: nowrap;
}
.header__rating:hover { color: #fff; }
.header__rating .star { color: #fff; transition: color .2s ease; }
.header__rating:hover .star { color: var(--accent); }
.header__rating b { color: #fff; font-weight: 600; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.header__phone svg { color: #fff; transition: color .2s ease; }
.header__phone:hover svg { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__messengers { display: flex; align-items: center; gap: 8px; }
.header__messenger {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.header__messenger .ico { width: 17px; height: 17px; }
.header__messenger:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .16); }

.header__nav {
  background: none;
  border-top: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--header-nav);
  font-size: 14.5px;
}
.nav > a,
.nav__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: calc(var(--header-nav) - 8px);
  margin-block: 4px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color .18s ease;
}
.nav > a::after,
.nav__toggle::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: background-color .18s ease, opacity .18s ease;
}
.nav > a:hover,
.nav__toggle:hover,
.nav__item.is-open .nav__toggle {
  background: var(--accent);
  color: #fff;
}
.nav > a:hover::after,
.nav__toggle:hover::after,
.nav__item.is-open .nav__toggle::after { opacity: 0; }
.nav > a.is-active {
  background: rgba(var(--accent-rgb), .16);
  color: #fff;
}
.nav__item { position: relative; }
.nav__chevron {
  flex: none;
  width: 15px;
  height: 15px;
  margin-left: -2px;
  opacity: .65;
  transition: transform .18s ease, opacity .18s ease;
}
.nav__toggle:hover .nav__chevron,
.nav__item.is-open .nav__chevron { opacity: 1; }
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -18px;
  z-index: 90;
  width: min(760px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.dropdown__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--on-dark);
}
.dropdown__link:hover { background: rgba(255, 255, 255, 0.07); }
.dropdown__link span { flex: none; color: var(--on-dark-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dropdown__all {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.burger__lines { position: relative; }
.burger__lines::before,
.burger__lines::after { content: ''; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.header.is-open .burger__lines { transform: rotate(45deg); }
.header.is-open .burger__lines::before { transform: translateY(6px) rotate(-90deg); }
.header.is-open .burger__lines::after { opacity: 0; }

.nav__mobile { display: none; }
/* В тёмном мобильном меню светлые кнопки контактов иначе теряют текст */
.header__nav .btn--ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.header__nav .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.header__nav .messenger-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.header__nav .messenger-btn svg { color: var(--accent-bright); }
.header__nav .messenger-btn:hover { border-color: var(--accent-bright); }

/* ------------------------------------------------------------- mobile dock */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
}
.dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--dock);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.dock__btn--accent { background: var(--accent); }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(760px, 100svh, 1120px);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark);
}
/* Фото заканчивается выше низа хиро: под машиной остаётся тёмная полоса под факты */
.hero__art { position: absolute; inset: 0 0 204px 0; z-index: 0; }
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, 0) 52%),
    linear-gradient(180deg, rgba(7, 11, 18, 0) 74%, rgba(7, 11, 18, .7) 92%, var(--navy) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, 0) 65%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 5.4vw, 84px) 0;
}
.hero__copy { max-width: 820px; min-width: 0; }
.hero h1 { color: #fff; max-width: 820px; font-size: clamp(30px, 3.4vw, 52px); }
.hero__brand {
  background: linear-gradient(96deg, #B4CDF8 0%, #4C86EC 48%, #7FA9F0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__brand { -webkit-text-fill-color: currentColor; color: var(--accent-bright); }
}
.hero__lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(15.5px, 1.2vw, 18px);
  color: var(--on-dark-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* -------------------------------------------------------------- trust bar */

.trust {
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  border-bottom: 1px solid var(--line);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__cell {
  padding: 24px 30px;
  border-left: 1px solid var(--line);
}
.trust__cell:first-child { border-left: 0; padding-left: 0; }
.trust__cell:last-child { padding-right: 0; }
.trust__value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.trust__value .ico { width: 22px; height: 22px; color: var(--accent); }
.trust__star { display: inline-flex; color: var(--star); }
.trust__value .trust__star .ico { width: 22px; height: 22px; color: var(--star); }
.trust__label {
  margin-top: 7px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------- services */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #EDF2FB 0%, #F8FAFD 32%, var(--surface) 68%);
  box-shadow: var(--shadow-s);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* Волны в левом верхнем углу карточки — тот же приём, что в первом экране */
.svc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 150px;
  background: url("../img/waves-card.webp") center top / 100% 100% no-repeat;
  opacity: .88;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .4) 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .4) 74%, transparent 100%);
  pointer-events: none;
}
/* Лента не повторяется один в один: у каждой второй карточки она развёрнута */
.svc-card:nth-child(even)::before { transform: scaleX(-1); }
.svc-card:hover {
  border-color: rgba(var(--accent-rgb), .45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.svc-card__top { display: flex; align-items: flex-start; justify-content: flex-end; gap: 12px; min-height: 66px; }
.svc-card__top .badge,
.svc-card__main,
.svc-card__text { position: relative; z-index: 1; }
.svc-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-card__icon .ico { width: 22px; height: 22px; }
.svc-card__icon--3d {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 116px;
  height: 116px;
  border-radius: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}
.svc-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(var(--accent-rgb), .18));
  transition: transform .25s ease;
}
.svc-card:hover .svc-card__icon-img { transform: translateY(-2px) scale(1.05); }
.svc-card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.svc-card__price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.svc-card__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: calc(100% - 92px); }
.svc-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 112px;
  padding-right: 154px;
  min-height: 212px;
  background: linear-gradient(115deg, #F2F6FD 0%, #ffffff 58%);
  border-color: var(--accent-line);
}
.svc-card--wide .svc-card__top { display: none; }
.svc-card--wide .svc-card__icon--3d { right: 26px; bottom: 8px; width: 106px; height: 106px; }
.svc-card--wide .svc-card__main { display: flex; align-items: center; gap: 18px; }
.svc-card--wide .svc-card__text { max-width: 460px; }
.svc-card--wide .svc-card__price { font-size: 20px; }
.svc-card__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: #fff;
  color: var(--accent);
  flex: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.svc-card:hover .svc-card__arrow { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------- price table */

.price-table { width: 100%; }
.price-table__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .15s ease;
}
.price-table__row:hover { background: var(--surface-tint); }
.price-table__row:first-child { border-top: 1px solid var(--line); }
.price-table__name { flex: 1; font-size: 15px; line-height: 1.4; }
.price-table__dots {
  flex: 1 1 40px;
  min-width: 20px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}
.price-table__price {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table__price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.price-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.price-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 20px;
  align-items: start;
}
.price-preview__main {
  padding: 30px 32px 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.price-preview__main .price-table__row { padding: 15px 0; }
.price-preview__main .price-table__name { font-size: 16px; }
.price-preview__main .price-table__price { font-size: 17px; }
.price-preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }

.diag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 30px 32px 28px;
  border-radius: var(--radius);
  background-color: var(--ink);
  background-image: var(--stars-panel), linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  background-size: cover, auto;
  background-position: center, center;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: var(--shadow-m);
  color: var(--on-dark);
}
.diag-card__glow {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .5) 0%, rgba(var(--accent-rgb), 0) 66%);
  pointer-events: none;
}
.diag-card__pic {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 172px;
  height: 172px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5));
  pointer-events: none;
}
/* Карточка без рендера (запись): текст по центру, низ подсвечен волнами */
.diag-card:not(:has(.diag-card__pic)) .diag-card__body { margin-block: auto; }
.diag-card--waves::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: url("../img/waves-dark.webp") center 40% / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(0deg, #000 18%, transparent 88%);
  mask-image: linear-gradient(0deg, #000 18%, transparent 88%);
  pointer-events: none;
}
.diag-card__body { position: relative; margin-block: 0; }
.diag-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7aa2ff;
}
.diag-card h3 { margin-top: 10px; font-size: 21px; line-height: 1.25; color: #fff; max-width: 74%; }
.diag-card__price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.diag-card__price b {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.diag-card__price span { font-size: 12.5px; color: var(--on-dark-muted); }
.diag-card ul { margin-top: 26px; display: grid; gap: 13px; }
@media (min-width: 1181px) {
  .diag-card ul { max-width: calc(100% - 150px); }
}
.diag-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--on-dark-2);
}
.diag-card li .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-bright); }
.diag-card__note { margin-top: 22px; max-width: 62%; font-size: 12.5px; line-height: 1.5; color: var(--on-dark-muted); }

/* ------------------------------------------------ смета из прайса (главная) */

.est {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.est__main { padding: 14px 16px 6px; }
.est__hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.est__list { margin-top: 10px; }
.est__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline: -12px;
  padding: 13px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.est__row + .est__row { box-shadow: inset 0 1px 0 var(--line); }
.est__row--start { background: linear-gradient(90deg, rgba(var(--accent-rgb), .09), rgba(var(--accent-rgb), 0) 72%); }
.est__row:hover { background: var(--surface-tint); }
.est__row:has(.est__check:checked) { background: rgba(var(--accent-rgb), .07); }
.est__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.est__check:hover { border-color: var(--accent); }
.est__check:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.2 3.2L13 5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.est__check:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), .45);
  outline-offset: 2px;
}
.est__ico { flex: none; width: 18px; height: 18px; color: var(--text-2); transition: color .15s ease; }
.est__row:hover .est__ico { color: var(--accent); }
.est__row:has(.est__check:checked) .est__ico { color: var(--accent); }
.est__name { font-size: 15.5px; line-height: 1.35; }
.est__badge { flex: none; font-size: 11.5px; }
.est__dots {
  flex: 1 1 auto;
  min-width: 18px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}
.est__price {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.est__price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.est__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}
.est__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.est__sum-label { font-size: 13px; line-height: 1.4; color: var(--muted); }
.est__total {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.est__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.est .diag-card { border-radius: 18px; }
.lead-estimate {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface-tint);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.lead-estimate b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1099px) {
  .est__bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .est__actions { flex-direction: column; align-items: stretch; }
  .est__actions .btn { width: 100%; }
}
@media (max-width: 899px) {
  .est { grid-template-columns: 1fr; padding: 10px; }
  .est__main { padding: 10px 10px 2px; }
  .est__row { gap: 10px; margin-inline: -6px; padding: 12px 6px; }
  .est__name { font-size: 14.5px; }
  .est__price { font-size: 15px; }
  .est__dots { min-width: 12px; }
  .est__bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .est__actions { flex-direction: column; align-items: stretch; }
  .est__actions .btn { width: 100%; }
  .est .diag-card { border-radius: 16px; }
}
@media (max-width: 767px) {
  .est__badge { display: none; }
}

/* --------------------------------------------------------------- scenarios */

.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.scenario {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 24px 24px 20px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.scenario__pic {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(var(--accent-rgb), .2));
  transition: transform .25s ease;
  pointer-events: none;
}
.scenario:hover .scenario__pic { transform: translateY(-3px) scale(1.05); }
.scenario:hover {
  border-color: rgba(var(--accent-rgb), .45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
/* Реплика клиента: пузырь с хвостиком, рядом — 3D-рендер направления */
.scenario__quote {
  position: relative;
  margin-right: 66px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 16.5px;
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.scenario__quote::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--accent-soft);
  transform: rotate(45deg);
}
.scenario__meta { margin-top: auto; font-size: 13px; line-height: 1.45; color: var(--muted); }
.scenario__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.scenario__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scenario__price small { margin-right: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.scenario__dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
  transition: color .2s ease;
}
.scenario:hover .scenario__dir { color: var(--accent); }
.scenario__dir .ico { flex: none; width: 15px; height: 15px; transition: transform .2s ease; }
.scenario:hover .scenario__dir .ico { transform: translateX(3px); }

/* О сервисе + как проходит визит: одна секция — текст слева, фото справа */
.visit {
  position: relative;
  isolation: isolate;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% 12%, rgba(var(--accent-rgb), .16), transparent 70%),
    var(--stars-panel);
  background-size: auto, cover;
  background-position: center, center;
}
.visit h2, .visit h3 { color: #fff; }
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.visit__copy h2 { margin-top: 0; }
.visit__lead { margin-top: 20px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--on-dark-2); }
.visit__actions { margin-top: 26px; }

.visit__steps { margin-top: clamp(40px, 5vw, 64px); padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .1); }
.visit__steps h3 { font-size: clamp(22px, 2vw, 30px); }
.visit__steps-list { display: grid; margin-top: 30px; }
.visit-step {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.visit-step:first-child { padding-top: 0; }
.visit-step:last-child { padding-bottom: 0; border-bottom: 0; }
.visit-step__num {
  padding-top: 11px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .38);
  font-variant-numeric: tabular-nums;
}
.visit-step__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-bright-rgb), .26);
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent-bright-2);
}
.visit-step__icon .ico { width: 21px; height: 21px; }
.visit-step__body h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: #fff;
}
.visit-step__body p { margin-top: 6px; max-width: 540px; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }
.visit-step__body strong { color: #fff; font-weight: 600; }

.visit__media {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-self: stretch;
  min-width: 0;
}
.visit__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 90px -40px rgba(var(--accent-rgb), .4);
}
.visit__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visit__shot--main { border-radius: 24px; }
.visit__shot--main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 18, .12) 0%, rgba(7, 11, 18, 0) 40%, rgba(7, 11, 18, 0) 62%, rgba(7, 11, 18, .5) 100%);
}
.visit__shot figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
}
.visit__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.visit__thumbs .visit__shot { aspect-ratio: 1; }

/* ------------------------------------------------------------------- about */

/* Факты в первом экране, под машиной */
.hero__facts {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 24px;
  padding-bottom: 30px;
}
.hero-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-content: center;
  padding: 0 30px;
}
.hero-fact:first-child { padding-left: 0; }
.hero-fact:last-child { padding-right: 0; }
.hero-fact__icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  color: var(--accent-bright-2);
}
.hero-fact__icon .ico { width: 26px; height: 26px; }
.hero-fact h3 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.hero-fact p { margin-top: 5px; max-width: 34ch; font-size: 13px; line-height: 1.45; color: var(--on-dark-2); }

/* Что ещё делаем в цеху — три группы смежных работ */
.about-extra__eyebrow {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-extra .section__head { margin-bottom: 32px; }
.about-extra__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-extra__card {
  padding: 24px 26px 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.about-extra__card h3 {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.about-extra__card ul { display: grid; gap: 11px; margin-top: 16px; }
.about-extra__card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.about-extra__card .ico { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }

@media (max-width: 899px) {
  .hero__art { inset: 0 0 104px 0; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 22px; }
  .hero-fact { padding: 0 12px; column-gap: 10px; align-content: start; }
  .hero-fact__icon { grid-row: 1; }
  .hero-fact__icon .ico { width: 18px; height: 18px; }
  .hero-fact h3 { font-size: 12.5px; line-height: 1.3; }
  .hero-fact p { display: none; }
}
@media (max-width: 899px) {
  .about-extra__grid { grid-template-columns: 1fr; }
  .about-extra__card { padding: 20px 22px 22px; }
}
@media (max-width: 1023px) {
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .visit__media { order: -1; grid-template-rows: none; align-self: start; }
  .visit__shot--main { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .visit__steps { margin-top: 36px; padding-top: 26px; }
  .visit-step { grid-template-columns: 30px 36px minmax(0, 1fr); gap: 10px; padding-block: 18px; }
  .visit-step__num { padding-top: 9px; }
  .visit-step__icon { width: 36px; height: 36px; border-radius: 10px; }
  .visit__shot--main { aspect-ratio: 4 / 3; border-radius: 18px; }
  .visit__shot { border-radius: 14px; }
}

/* ----------------------------------------------------------------- reviews */

/* --------------------------------------------------------------- отзывы */

.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.reviews-summary__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-s);
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--muted);
}
.reviews-summary__pill b {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.reviews-summary__stars { display: inline-flex; gap: 2px; color: var(--star); }
.reviews-summary__stars .ico { width: 15px; height: 15px; }
.reviews-summary__topics { font-size: 12px; color: var(--muted); text-align: center; }

.reviews__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.reviews__viewport::-webkit-scrollbar { display: none; }
.reviews__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  align-items: stretch;
}
.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: box-shadow .2s ease, transform .2s ease;
}
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.review__stars { display: flex; gap: 3px; color: var(--star); }
.review__stars .ico { width: 18px; height: 18px; }
.review__text {
  font-size: 15px;
  line-height: 1.62;
  font-style: italic;
  color: var(--text-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}
.review.is-open .review__text { -webkit-line-clamp: unset; display: block; }
.review__actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review__more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.review__actions[hidden] { display: none; }
.review__actions[hidden] + .review__author { margin-top: auto; }
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  flex: none;
}
.review__name { font-weight: 600; font-size: 15px; }
.review__source { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.review__source:hover { color: var(--accent); }

/* Полоса прокрутки и стрелки карусели */
.reviews-nav { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.reviews-nav__track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--edge);
  overflow: hidden;
}
.reviews-nav__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: 2px;
  background: var(--accent);
  transition: left .12s linear, width .12s linear;
}
.reviews-nav__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.reviews-nav__btn:hover { border-color: var(--accent); color: var(--accent); }
.reviews-nav__btn:disabled { opacity: .35; cursor: default; }
.reviews-nav__btn:disabled:hover { border-color: var(--edge); color: var(--text); }
.reviews-nav__btn .ico { width: 18px; height: 18px; }
.reviews-nav__btn--prev .ico { transform: rotate(180deg); }

@media (max-width: 1099px) {
  .reviews__grid { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 767px) {
  .reviews__grid { grid-auto-columns: 100%; }
  .review { padding: 22px; }
  .review__text { -webkit-line-clamp: 5; }
  .reviews-summary__pill { gap: 8px; padding: 9px 14px; font-size: 12.5px; }
  .reviews-summary__pill b { font-size: 16px; }
  .reviews-summary__stars .ico { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------- contacts */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contacts__list { display: grid; gap: 20px; margin-top: 26px; }
.contact-row { display: flex; gap: 16px; }
.contact-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.contact-row__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-row__value { margin-top: 3px; font-size: 15.5px; line-height: 1.45; }
.contact-row__value a { text-decoration: none; }
.contact-row__value a:hover { color: var(--accent); }
.contact-row--phone .contact-row__value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.messenger-btn svg { color: var(--accent); }
.messenger-btn:hover { border-color: var(--accent); }

.map-card {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-m);
  background: var(--ink-2);
  color: var(--on-dark);
  min-height: 300px;
  display: grid;
  place-items: center;
}
.map-card__poster {
  position: absolute;
  inset: 0;
  background-color: var(--ink-2);
  background-image:
    var(--stars-panel),
    radial-gradient(600px 300px at 70% 30%, rgba(var(--accent-rgb), .28), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
}
.map-card__body { position: relative; z-index: 2; padding: 32px 24px; text-align: center; max-width: 420px; }
.map-card__pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .18);
}
.map-card__address { font-size: 19px; font-weight: 600; color: #fff; }
.map-card__note { margin-top: 6px; font-size: 13.5px; color: var(--on-dark-muted); }
.map-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.map-card .btn--ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.map-card .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.map-embed { border: 0; width: 100%; height: 380px; display: block; }
.map-card.is-live { min-height: 0; display: block; background: var(--ink-2); }
.map-card.is-live .map-card__poster,
.map-card.is-live .map-card__body { display: none; }

/* Карта на месте формы в контактах: высокая, на всю правую колонку */
.map-card--tall {
  margin-top: 0;
  width: 100%;
  min-height: 520px;
}
.map-card--tall .map-card__body { padding: 32px 26px; }
.map-card--tall .map-card__address { font-size: 22px; }
.map-card--tall .map-card__note { font-size: 14px; }
.map-card--tall.is-live { min-height: 480px; }
.map-card--tall .map-embed { height: 100%; min-height: 480px; }

.form-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-m);
}
.form-card h2 { font-size: clamp(24px, 2.2vw, 32px); }
.form-card__lead { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.form-card .lead-form { margin-top: 24px; }

/* --------------------------------------------------------------------- cta */

.cta {
  background:
    radial-gradient(700px 380px at 15% 20%, rgba(var(--accent-rgb), .24), transparent 70%),
    var(--ink);
  color: #fff;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 84px;
}
.cta h2 { max-width: 640px; color: #fff; font-size: clamp(30px, 3vw, 44px); }
.cta p { margin-top: 16px; max-width: 540px; color: var(--on-dark-muted); font-size: 16.5px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__line { margin-top: 18px; font-size: 13px; color: var(--on-dark-muted); }

/* ------------------------------------------------------------------ footer */

.footer {
  background-color: var(--navy);
  background-image: var(--stars-panel);
  background-size: cover;
  background-position: center;
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
  gap: 40px;
  padding-block: 64px 44px;
}
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 14px; color: var(--on-dark-muted); }
.footer__col h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 9px; font-size: 14px; }
.footer__list a { color: var(--on-dark-muted); text-decoration: none; }
.footer__list a:hover { color: #fff; }
.footer__contact { display: flex; gap: 10px; color: var(--on-dark-muted); }
.footer__contact svg { color: var(--accent); margin-top: 3px; }
.footer__contact a { color: var(--on-dark); text-decoration: none; }
.footer__messengers { display: flex; gap: 8px; margin-top: 18px; }
.footer__messengers .round-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark);
}
.footer__messengers .round-link:hover { border-color: var(--accent); color: var(--accent-bright); }
.footer__requisites { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-muted); line-height: 1.5; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}
.footer__bottom a { color: var(--on-dark-muted); }

/* ---------------------------------------------------------- внутренние страницы */

/* Полоса внутренних страниц: тёмная, как первый экран главной, но компактная.
   Волновых брейкеров нет — снизу волосяная линия и белая секция. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(var(--accent-rgb), .28), transparent 68%),
    radial-gradient(700px 380px at 6% 112%, rgba(var(--accent-rgb), .16), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/header-stars.webp") center top / cover no-repeat;
  opacity: .55;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-block: 34px 64px;
}
.page-hero--solo .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--solo .page-hero__copy { max-width: 840px; }
.page-hero__copy { min-width: 0; }
.page-hero h1 { margin-top: 16px; color: #fff; max-width: 780px; }
.page-hero__lead { margin-top: 18px; max-width: 640px; font-size: 17px; color: var(--on-dark-2); }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgba(255, 255, 255, .34); }
.breadcrumbs span[aria-current] { color: var(--on-dark-2); }

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}
.includes-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.5;
}
.includes-grid li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.symptom {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
}
.symptom svg { color: var(--accent); margin-top: 2px; }

.note-block {
  padding: 24px 26px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  background: var(--surface-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

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

/* ------------------------------------------------------------- прайс-страница */

.prices-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.prices-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.prices-nav__title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.prices-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.prices-nav a:hover { background: var(--paper); color: var(--accent); }
.prices-nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

.price-group { padding-block: 34px; border-top: 1px solid var(--line); }
.price-group:first-child { border-top: 0; padding-top: 0; }
.price-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.price-group h2 { font-size: 26px; }
.price-group__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.price-list {
  column-count: 2;
  column-gap: 48px;
}
.price-list .price-table__row {
  break-inside: avoid;
  padding: 11px 0;
}
.price-list .price-table__name { font-size: 14.5px; }
.price-list .price-table__price { font-size: 14.5px; }

/* --------------------------------------------------------------------- faq */

.faq { max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.faq__q svg { transition: transform .2s ease; color: var(--accent); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 20px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* -------------------------------------------------------------------- форма */

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label,
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.field input::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
.field.has-error input,
.field.has-error select { border-color: var(--danger); }
.field.has-error .select__control { border-color: var(--danger); }
.field__error { min-height: 0; font-size: 12.5px; color: var(--danger); }
.field__error:empty { display: none; }

/* Выпадающий список в стиле сайта: системный <select> открывается без оформления */
.select { position: relative; }
.select__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select__control:focus-visible,
.select.is-open .select__control {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.select__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.select.is-open .select__chevron { transform: rotate(180deg); color: var(--accent); }
.select__list {
  position: fixed;
  z-index: 70;
  max-height: 296px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-m);
}
.select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-2);
  cursor: pointer;
}
.select__option:hover { background: var(--surface-tint); }
.select__option.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.select__option[aria-selected='true'] { color: var(--text); font-weight: 600; }
.select__option[aria-selected='true']::after {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.consent a { color: var(--accent); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.form__status { font-size: 13px; color: var(--muted); }
.form__status.is-error { color: var(--danger); }

.form-success { padding: 8px 0 4px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  margin-bottom: 16px;
}
.form-success h3 { font-size: 22px; }
.form-success p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.form-success__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ------------------------------------------------------------------ модалка */

.lead-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  overflow: auto;
}
.lead-modal::backdrop { background: rgba(7, 11, 18, .72); backdrop-filter: blur(2px); }
.lead-modal__card { position: relative; padding: 32px; }
.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.lead-modal__close:hover { border-color: var(--text); }
.lead-modal__title { font-size: 26px; padding-right: 40px; }
.lead-modal__note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.lead-modal .lead-form { margin-top: 20px; }

/* -------------------------------------------------------------- юр. страницы */

.legal { max-width: 820px; }
.legal h1 { margin-bottom: 22px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.legal ul, .legal ol { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal .legal__note {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  font-size: 14px;
}

/* ------------------------------------------------------------ 404 / спасибо */

.state-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
.state-page__code {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}
.state-page h1 { margin-top: 10px; }
.state-page p { margin-top: 14px; max-width: 520px; color: var(--muted); }
.state-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1180px) {
  .header__rating { display: none; }
}

@media (max-width: 1099px) {
  :root { --section: 84px; }
  .hero { min-height: 720px; }
  .hero__inner { padding-block: 44px 0; }
  .hero__copy { max-width: 700px; }
  .hero__lead { color: var(--on-dark-2); }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenarios__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices-layout { grid-template-columns: 1fr; }
  .prices-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .prices-nav__title { width: 100%; }
  .prices-nav a { padding: 6px 10px; }
}

@media (max-width: 899px) {
  .contacts__grid,
  .page-hero__inner,
  .price-preview { grid-template-columns: minmax(0, 1fr); }
  .page-hero__media { order: -1; aspect-ratio: 16 / 9; }
  .price-list { column-count: 1; }
  .includes-grid { grid-template-columns: 1fr; }
  .cta__inner { padding-block: 56px; }

  .diag-card { height: auto; }
  .diag-card__body { margin-block: 0; }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section: 60px;
    --header-top: 58px;
    --header-real: calc(var(--header-top) + 1px);
    --header-h: var(--header-real);
    --dock: 58px;
  }
  body { font-size: 16px; padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px)); }

  .header__nav { display: none; }
  /* backdrop-filter creates a containing block, which traps the fixed menu inside the 58px header. */
  .header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header__top { gap: 12px; }
  .header__actions { gap: 10px; }
  .header__actions .header__cta { display: none; }
  .burger { display: grid; }
  .logo__sub { display: none; }
  .logo__mark { height: 36px; }
  .header__phone { display: none; }
  .header__messengers { display: none; }

  .header.is-open .header__nav {
    display: block;
    position: fixed;
    inset: var(--header-top) 0 0;
    overflow: auto;
    background: var(--navy);
    border-top: 1px solid var(--line-dark);
    padding: 16px 0 24px;
  }
  .header.is-open .nav {
    display: grid;
    gap: 2px;
    min-height: 0;
    padding-inline: var(--gutter);
  }
  .header.is-open .nav > a,
  .header.is-open .nav__toggle {
    min-height: 50px;
    padding: 0;
    border-radius: 0;
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid var(--line-dark);
    justify-content: space-between;
  }
  .header.is-open .nav > a::after,
  .header.is-open .nav__toggle::after { display: none; }
  .header.is-open .nav__item { display: grid; }
  .header.is-open .nav__toggle { width: 100%; }
  .header.is-open .nav__chevron { width: 18px; height: 18px; opacity: .75; transform: none; transition: transform .2s ease; }
  .header.is-open .nav__item.is-open .nav__chevron { transform: rotate(180deg); }
  .header.is-open .nav > a:hover,
  .header.is-open .nav__toggle:hover,
  .header.is-open .nav__item.is-open .nav__toggle { background: transparent; }
  .header.is-open .dropdown {
    display: none;
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .header.is-open .nav__item.is-open .dropdown { display: block; }
  .header.is-open .dropdown__grid { grid-template-columns: 1fr; }
  .header.is-open .dropdown__link { padding: 8px 0; font-size: 15px; }
  .header.is-open .nav__mobile {
    display: grid;
    gap: 10px;
    padding: 22px var(--gutter) 0;
  }
  .header.is-open .nav__mobile .btn { width: 100%; }

  .dock { display: grid; }
  .dock__btn span { display: inline; }
  .dock__btn svg { width: 18px; height: 18px; }

  .hero { min-height: 0; }
  .hero__inner { order: 1; padding-block: 30px 0; }
  .header--over + main > .hero .hero__inner { padding-top: calc(var(--header-real) + 30px); }
  .hero__copy { max-width: none; }
  .hero__art { order: 2; position: relative; inset: auto; aspect-ratio: 16 / 10; margin-top: 28px; }
  .hero__facts { order: 3; margin-top: 0; }
  .hero__art img { object-position: right bottom; }
  .hero__art::after {
    background:
      linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 16%),
      linear-gradient(180deg, rgba(7, 11, 18, 0) 76%, rgba(7, 11, 18, .7) 93%, var(--navy) 100%);
  }
  .hero h1 { font-size: clamp(26px, 7.1vw, 33px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__cell { padding: 18px; }
  .trust__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trust__cell:nth-child(even) { padding-right: 0; }
  .trust__value { font-size: 20px; gap: 8px; }
  .trust__value .ico { width: 18px; height: 18px; }
  .trust__value .trust__star .ico { width: 18px; height: 18px; }

  @media (max-width: 479px) {
    .trust__value { font-size: 17px; gap: 7px; }
    .trust__value .ico { width: 16px; height: 16px; }
    .trust__value .trust__star .ico { width: 16px; height: 16px; }
    .trust__label { font-size: 12.5px; }
  }
  .trust__value .star { font-size: 16px; }

  .services__grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { flex-direction: row; align-items: center; gap: 14px; padding: 20px; }
  .svc-card::before { display: none; }
  .svc-card__top { flex: none; min-height: 0; }
  .svc-card__icon { width: 40px; height: 40px; }
  .svc-card__icon--3d { position: static; width: 54px; height: 54px; }
  .svc-card__text { max-width: none; }
  .svc-card__main { flex: 1; min-width: 0; }
  .svc-card__title { font-size: 16.5px; }
  .svc-card__price { font-size: 14px; }
  .svc-card__text { display: none; }
  .svc-card__arrow { width: 34px; height: 34px; }
  .svc-card--wide { grid-column: auto; flex-direction: row; }
  .svc-card--wide .svc-card__text { display: none; }
  .svc-card--wide .svc-card__price { font-size: 15px; }

  .section__head { margin-bottom: 26px; gap: 12px; }
  .section__lead { font-size: 15.5px; }

  .price-preview { gap: 20px; }
  .price-preview__main { padding: 20px; }
  .price-preview__actions { flex-direction: column; align-items: stretch; }
  .price-preview__actions .btn { width: 100%; }
  .diag-card { padding: 22px; }
  .diag-card__pic { display: none; }
  .diag-card h3 { max-width: none; }
  .diag-card ul { max-width: none; }
  .diag-card__note { max-width: none; }
  .diag-card__price b { font-size: 30px; }

  .scenarios__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .scenarios__grid::-webkit-scrollbar { display: none; }
  .scenario { flex: 0 0 82%; scroll-snap-align: start; }
  .scenario__quote { margin-right: 58px; font-size: 15.5px; }
  .scenario__pic { width: 66px; height: 66px; right: 4px; top: 4px; }
  .scenario__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scenario__price { font-size: 21px; }
  .scenario__dir { text-align: left; }

  .reviews-summary { padding: 14px 16px; }
  .reviews-summary__topics { margin-left: 0; }

  .form-card { padding: 22px; }
  .form-card .lead-form { margin-top: 20px; }
  .contacts__grid { gap: 30px; }
  .contact-row--phone .contact-row__value { font-size: 21px; }
  .map-card { min-height: 260px; }
  .map-embed { height: 320px; }

  .cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 30px; }
  .footer__brand p { max-width: none; }
  .footer__bottom { flex-direction: column; padding-bottom: 22px; }

  .page-hero__inner { padding-block: 18px 34px; gap: 24px; }
  .page-hero__lead { font-size: 15.5px; }
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; }
  .page-hero__chips { flex-wrap: wrap; gap: 6px; max-width: 100%; min-width: 0; }

  .includes-grid { gap: 10px; }
  .includes-grid li { font-size: 15px; }
  .symptoms-grid { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr; }
  .other-grid .svc-card { flex-direction: row; }

  .prices-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    border-inline: 0;
    border-radius: 0;
    background: rgba(242, 244, 248, .96);
    backdrop-filter: blur(8px);
    scrollbar-width: none;
  }
  .prices-nav::-webkit-scrollbar { display: none; }
  .prices-nav__title { display: none; }
  .prices-nav a {
    flex: none;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
  }
  .prices-nav a.is-active { border-color: var(--accent); }

  .price-list .price-table__name { font-size: 14px; }
  .price-group { padding-block: 26px; }
  .price-group h2 { font-size: 22px; }
  .faq__q { font-size: 16px; }

  .lead-modal { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .lead-modal__card { padding: 24px 20px 32px; }
  .lead-modal__title { font-size: 23px; }
}

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

/* Карточки услуг: примеры работ и стрелка (дополнение к основному блоку) */
.svc-card__main { display: flex; flex-direction: column; gap: 6px; }
.svc-card__arrow { display: none; }
.svc-card__examples { display: grid; gap: 4px; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.svc-card__examples b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-card--wide .svc-card__examples { margin-top: 6px; }
@media (max-width: 1099px) {
  .svc-card__examples { display: none; }
}
@media (max-width: 767px) {
  .svc-card__arrow { display: grid; }
}

/* Широкая карточка последнего направления: иконка, название с ценой, описание, стрелка */
.svc-card--wide {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
}
.svc-card--wide .svc-card__main { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 18px; }
.svc-card--wide .svc-card__text { max-width: none; }
.svc-card--wide .svc-card__arrow { display: none; }
@media (max-width: 1099px) {
  .svc-card--wide { grid-template-columns: minmax(0, 1fr); }
  .svc-card--wide .svc-card__text { display: none; }
}
@media (max-width: 767px) {
  .svc-card--wide { display: flex; }
  .svc-card--wide .svc-card__main { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Точечные выноски тянутся до цены */
.price-table__name { flex: 0 1 auto; }
.price-table__dots { flex: 1 1 auto; }

/* Мелочи мобильной вёрстки: длинные цены не рвутся, бейдж не давит заголовок */
.scenario__price, .diag-card__price { white-space: nowrap; }
@media (max-width: 767px) {
  .svc-card__top .badge { display: none; }
  .scenario__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ------------------------------------------- дополнения внутренних страниц */

/* Примеры работ в карточках хаба: три строки «работа — от N ₽» */
.svc-card__examples {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  list-style: none;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-2);
}
.svc-card__examples b { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Порядок работ на страницах услуг: вертикальный список на тёмной секции */
.steps { display: grid; gap: 0; max-width: 900px; }
.steps__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-dark);
}
.steps__row:first-child { border-top: 0; padding-top: 0; }
.steps__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent-bright);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.steps__row h3 { font-size: 20px; }
.steps__row p { margin-top: 8px; max-width: 60ch; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-muted); }

/* Сетка отзывов на /otzyvy — все карточки видны, без карусели */
.reviews__grid--static {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.reviews__grid--static .review { height: 100%; }

/* Заголовок над витриной цен */
.price-preview__title { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 10px; }
.price-preview--wide { grid-template-columns: minmax(0, 1fr); }
.price-preview .diag-card { height: auto; }
.price-preview__main .section__lead { margin-bottom: 22px; }

/* Отступы, которые на главной задавались инлайном */
.cta__actions { margin-top: 24px; }
.note-block { margin-top: 0; }
.state-page__back { margin-top: 22px; }

/* Подвал: 10 направлений в две колонки */
.footer__list--split { columns: 2; column-gap: 24px; }
.footer__list--split li { break-inside: avoid; }

@media (max-width: 1023px) {
  .reviews__grid--static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .page-hero--solo .page-hero__media { display: none; }
  .steps__row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 767px) {
  .reviews__grid--static { grid-template-columns: minmax(0, 1fr); }
  .footer__list--split { columns: 1; }
}

/* ------------------------------------------------ страница услуги (сингл) */

/* Что входит: заголовок слева, список с галочками справа */
.svc-scope {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 28px 64px;
  align-items: start;
}
.svc-scope__head h2 { max-width: 22ch; }
.svc-scope__lead {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}
.svc-scope__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}
.svc-scope__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 15.5px;
  line-height: 1.45;
}
.svc-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-tick .ico { width: 15px; height: 15px; }

/* Цены: список работ слева, липкая карточка справа */
.svc-prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.svc-prices__list {
  padding: 6px 30px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.svc-prices__list .price-table__row {
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
}
.svc-prices__list .price-table__row:first-child { border-top: 0; }
.svc-prices__list .price-table__row:last-child { border-bottom: 0; }
.svc-prices__list .price-table__name { flex: 1 1 auto; font-size: 15.5px; }
.svc-prices__list .price-table__price { font-size: 15.5px; }
.svc-prices__aside {
  position: sticky;
  top: calc(var(--header-real) + 24px);
}
.svc-price-card {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 130% at 82% -20%, rgba(var(--accent-rgb), .34), transparent 62%),
    var(--stars-panel);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: var(--shadow-m);
}
.svc-price-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.svc-price-card__sum {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.svc-price-card__sum small {
  margin-right: 6px;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-dark-muted);
}
.svc-price-card__meta {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.svc-price-card .btn { width: 100%; margin-top: 14px; }
.svc-price-card .btn + .btn { margin-top: 8px; }
.svc-price-card .btn--ghost {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: transparent;
}
.svc-price-card .btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .18);
}
.svc-price-card__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

/* Симптомы: одна панель вместо плиток-чекбоксов */
.svc-symptoms {
  padding: 38px 44px 34px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.svc-symptoms__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 48px;
  flex-wrap: wrap;
}
.svc-symptoms__head h2 { font-size: clamp(24px, 2.2vw, 32px); }
.svc-symptoms__lead {
  flex: 1 1 340px;
  max-width: 56ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.svc-symptoms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.svc-symptoms__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

/* Порядок работ: четыре карточки в ряд */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-steps__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
}
.svc-steps__num {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.svc-steps__card h3 { font-size: 18px; }
.svc-steps__card p { font-size: 14.5px; line-height: 1.5; color: var(--on-dark-muted); }

/* Соседние направления: компактные карточки без волн и наложений */
.svc-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.svc-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.svc-mini:hover {
  border-color: rgba(var(--accent-rgb), .45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}
.svc-mini__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-mini__icon img { width: 44px; height: 44px; object-fit: contain; }
.svc-mini__icon .ico { width: 24px; height: 24px; }
.svc-mini__body { display: grid; gap: 4px; min-width: 0; }
.svc-mini__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.svc-mini__price { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-mini__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.svc-mini:hover .svc-mini__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.svc-mini__arrow .ico { width: 16px; height: 16px; }

.svc-visit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 22px;
}
.svc-visit li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-2);
}
.svc-visit li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Что дальше после заявки — заполняет левую колонку у формы */
.svc-next {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}
.svc-next li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 15px;
  line-height: 1.5;
}
.svc-next__num {
  flex: none;
  width: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.svc-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.svc-rating b { color: var(--text); font-weight: 650; }
.svc-rating__star { display: inline-flex; color: var(--star); }
.svc-rating__star .ico { width: 17px; height: 17px; }
.svc-rating:hover { color: var(--accent); }

/* Форма и FAQ — одна белая полоса: без двойного отступа между секциями */
.svc-form-section { padding-bottom: 24px; }
.svc-faq-section { padding-top: 56px; }

/* Слева от формы мало контента: кнопки держим у нижнего края карточки,
   иначе под рейтингом остаётся полоса пустоты */
@media (min-width: 900px) {
  .svc-form-section .contacts__grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
  }
  .svc-form-section .contacts__grid > div:first-child .cta__actions { margin-top: auto; }
}

/* FAQ: вопросы слева, карточка помощи справа */
.svc-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.svc-faq__main .faq { max-width: none; }
.svc-faq__aside {
  position: sticky;
  top: calc(var(--header-real) + 24px);
}
.svc-help {
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.svc-help__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.svc-help__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.svc-help .btn { width: 100%; margin-top: 12px; }

@media (max-width: 1199px) {
  .svc-scope { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc-prices { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .svc-prices { grid-template-columns: minmax(0, 1fr); }
  .svc-prices__aside,
  .svc-faq__aside { position: static; }
  .svc-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 899px) {
  .svc-symptoms { padding: 28px 22px 22px; }
  .svc-symptoms__list { grid-template-columns: minmax(0, 1fr); }
  .svc-mini-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .svc-scope__list { grid-template-columns: minmax(0, 1fr); }
  .svc-steps { grid-template-columns: minmax(0, 1fr); }
  .svc-visit { grid-template-columns: minmax(0, 1fr); }
  .svc-price-card { padding: 22px; }
  .svc-prices__list { padding: 4px 18px; }
  .svc-prices__list .price-table__name { font-size: 14.5px; }
  .svc-prices__list .price-table__price { font-size: 14.5px; }
  .svc-mini { padding: 16px 18px; }
}

/* Финальный блок цен: заполняем колонку рядом с формой, кнопки — к низу */
.price-cta {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.price-cta__steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}
.price-cta__steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 15px;
  line-height: 1.5;
}
.price-cta__num {
  flex: none;
  width: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.price-cta__foot {
  display: grid;
  gap: 22px;
  margin-top: auto;
  padding-top: 28px;
}
.price-cta__note {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
}
.price-cta__note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}
.price-cta__note div { display: grid; gap: 2px; }
.price-cta__note b { font-size: 15px; }
.price-cta__note span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Тёмная карточка «С чего начинаем» едет за скроллом рядом со списком */
.price-preview > .diag-card {
  position: sticky;
  top: calc(var(--header-real) + 24px);
  align-self: start;
  height: auto;
}

/* Узкие телефоны: подписи в хиро не влезают в три колонки — ведём их строками */
@media (max-width: 599px) {
  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .hero-fact {
    align-content: center;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .hero-fact:first-child { border-top: 0; padding-top: 0; }
  .hero-fact:last-child { padding-bottom: 0; }
  .hero-fact h3 { font-size: 14px; }
  .hero-fact__icon .ico { width: 20px; height: 20px; }
}

/* Пальцем нужно попадать: увеличиваем мелкие ссылки на телефоне */
@media (max-width: 767px) {
  .footer__list a { display: inline-block; padding-block: 6px; }
  .breadcrumbs a { display: inline-block; padding-block: 4px; }
  .review__more { display: inline-flex; align-items: center; min-height: 32px; }
  .review__source { display: inline-flex; align-items: center; min-height: 28px; }
  .link-more { display: inline-flex; align-items: center; min-height: 36px; }
  .prices-nav a { padding: 10px 13px; }
}

/* Узкие экраны: строка сметы не должна вылезать за карточку */
@media (max-width: 479px) {
  .est__row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .est__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .est__dots { display: none; }
  .est__price { margin-left: auto; }
  .est__badge { order: 6; }
}

@media (max-width: 359px) {
  .dock__btn { gap: 6px; font-size: 13px; }
  .dock__btn svg { width: 16px; height: 16px; }
}

@media (max-width: 359px) {
  .price-table__row { gap: 10px; }
  .price-table__name { min-width: 0; }
  .price-table__dots { min-width: 10px; }
  .price-table__name,
  .price-table__price { font-size: 14.5px; }
}

/* Куки-баннер: висит над док-панелью, пока посетитель не решил */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 78;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: 0 18px 46px rgba(7, 11, 18, .3);
}
.cookie[hidden] { display: none; }
.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.cookie p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.cookie p a { color: #fff; }
.cookie__actions {
  display: flex;
  flex: none;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 767px) {
  .cookie {
    bottom: calc(var(--dock) + 12px);
    padding: 16px;
  }
  .cookie__inner { gap: 12px; }
  .cookie__actions {
    width: 100%;
    margin-left: 0;
  }
  .cookie__actions .btn { flex: 1 1 0; }
}

.cookie .btn--ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.cookie .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}
