/* =========================================================================
   Ремонт по ОСАГО после ДТП — один файл стилей, без сборки.
   Порядок: шрифты, токены, база, общие блоки, секции, адаптив.
   ========================================================================= */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-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 {
  --ink: #0a1422;
  --ink-2: #0e1b2c;
  --ink-3: #16273d;
  --paper: #f7f5f0;
  --tint: #eeeae1;
  --white: #ffffff;
  --signal: #ffc400;
  --signal-deep: #e9b000;
  --signal-ink: #6f5200;
  --text: #111a26;
  --muted: #5a6474;
  --line: #ded8ca;
  --on-dark: #edf1f7;
  --on-dark-muted: #a6b2c4;
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1500px;
  --gutter: clamp(16px, 4vw, 32px);

  --header-top: 64px;
  --header-nav: 0px;
  --header-h: 64px;
  --dock: 56px;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  text-wrap: pretty;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--signal);
  border-radius: 4px;
}
.header :focus-visible,
.hero :focus-visible,
.steps :focus-visible,
.facts :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.sto-map :focus-visible {
  outline-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(10, 20, 34, 0.9);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.icon--flip { transform: scaleX(-1); }

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

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.34); background: rgba(8, 16, 28, 0.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--outline { border-color: rgba(10, 20, 34, 0.28); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: rgba(10, 20, 34, 0.05); }
.btn--quiet { background: var(--tint); border-color: transparent; color: var(--ink); }
.btn--quiet:hover { background: #e2ddcf; }
.btn--tg,
.btn--max,
.btn--wa {
  background: var(--ink-3);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn--tg:hover,
.btn--max:hover,
.btn--wa:hover {
  background: rgba(255, 196, 0, 0.12);
  border-color: var(--signal);
}
.cta__messengers .btn .icon { color: var(--signal); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.link-more .icon { width: 17px; height: 17px; flex: none; }
.link-more:hover { border-color: currentColor; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-ink);
}
.eyebrow--light { color: var(--signal); }
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.18);
  flex: none;
}

.section { padding-block: clamp(54px, 8vw, 100px); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title { font-size: clamp(27px, 4.4vw, 46px); font-weight: 700; }
.section-lead {
  margin-top: 14px;
  max-width: 64ch;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted);
}
.section-head--split { max-width: none; display: grid; gap: 14px; }
.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

/* ---------- Шапка: два слоя (KM-10) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(4, 10, 18, 0.28); }

.header__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-top);
}

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text {
  display: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.logo__text small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--on-dark-muted);
}

.header__hours {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--on-dark-muted);
}
.header__hours .icon { width: 17px; height: 17px; color: var(--signal); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.header__mail {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-muted);
  text-decoration: none;
  white-space: nowrap;
}
.header__mail .icon { width: 16px; height: 16px; color: var(--signal); }
.header__mail:hover { color: #fff; }
.header__socials {
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.header__socials .round-link { width: 32px; height: 32px; border: 0; }
.header__socials .round-link .icon { width: 17px; height: 17px; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone .icon {
  width: 16px;
  height: 16px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--signal);
  box-sizing: content-box;
}
.header__phone-text { font-size: 15px; font-weight: 700; }
.header__phone:hover .header__phone-text { color: var(--signal); }

.header__socials { display: none; align-items: center; gap: 6px; }

.round-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--signal);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.round-link .icon { width: 19px; height: 19px; }
.round-link:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.header__cta { display: none; }

.burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.burger__lines { position: relative; }
.burger__lines::before { content: ''; position: absolute; top: -6px; left: 0; }
.burger__lines::after { content: ''; position: absolute; top: 6px; left: 0; }
.header.is-open .burger__lines { background: transparent; }
.header.is-open .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

.header__nav {
  overflow: hidden;
  max-height: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  transition: max-height 0.28s ease;
}
.header.is-open .header__nav { max-height: 520px; }

.nav { display: flex; flex-direction: column; padding-block: 6px; }
.nav a {
  padding: 11px 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover,
.nav a.is-active { color: var(--signal); }
.nav a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
  box-shadow: none;
  border-radius: 6px;
  background: rgba(255, 196, 0, 0.08);
}

.nav__mobile { display: grid; gap: 12px; padding-bottom: 20px; }
.nav__messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.nav__messengers .btn { color: #fff; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 36px 44px;
  color: #fff;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: brightness(1.14) saturate(1.05); }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 15, 26, 0.88) 0%, rgba(7, 15, 26, 0.72) 52%, rgba(7, 15, 26, 0.95) 100%);
}

.hero__inner { position: relative; z-index: 1; display: grid; gap: 32px; }
.hero__content { display: flex; flex-direction: column; }

.hero__title { font-size: clamp(27px, 8.4vw, 58px); line-height: 1.03; letter-spacing: -0.03em; }
.hero__title span { color: var(--signal); }

.hero__lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.5;
  color: #d7dfeb;
}

.hero__facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts strong {
  white-space: nowrap;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--signal);
  line-height: 1.1;
}
.hero__facts span { font-size: 11.5px; line-height: 1.35; color: var(--on-dark-muted); }

.hero__actions { display: grid; gap: 10px; margin-top: 26px; }

/* На телефоне кнопки поднимаются выше плашек: действие видно до прокрутки */
@media (max-width: 767px) {
  .hero { padding-block: 28px 40px; }
  .hero__actions { order: 3; margin-top: 22px; }
  .hero__note { order: 4; margin-top: 12px; }
  .hero__facts { order: 5; margin-top: 18px; }

  /* на узком экране фото просвечивает под текстом — притемняем сильнее */
  .hero__media img { opacity: 0.4; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(7, 15, 26, 0.95) 0%, rgba(7, 15, 26, 0.88) 42%, rgba(7, 15, 26, 0.98) 100%);
  }

  /* три цифры в строку на телефоне не помещаются: читаемая строка «значение — пояснение» */
  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 2px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(6, 13, 24, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero__facts li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 14px;
    padding: 10px 0;
  }
  .hero__facts li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .hero__facts strong { font-size: 18px; }
  .hero__facts span { font-size: 12px; line-height: 1.3; text-align: right; }
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.hero__note .icon { color: var(--signal); }
.hero__note a { color: #fff; font-weight: 700; }

.hero__panel {
  background: rgba(9, 18, 31, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
}
.hero__panel-title { font-size: 19px; font-weight: 700; }
.hero__panel-text { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); }

/* ---------- Форма ---------- */
.lead-form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--on-dark-muted); }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.field input::placeholder { color: #8592a5; }
.field input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.22);
}
.field.is-invalid input { border-color: #e4695b; background: rgba(228, 105, 91, 0.1); }
.field__error { font-size: 12.5px; line-height: 1.35; color: #ff9e8f; }
.field__error:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--signal);
}
.consent label { font-size: 12.5px; line-height: 1.45; color: var(--on-dark-muted); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--signal); }

.form__note { font-size: 11.5px; line-height: 1.4; color: #8c99ac; }
.form__status { font-size: 13px; line-height: 1.4; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #a7f3c0; }
.form__status.is-err { color: #ff9e8f; }
.lead-form.is-sending button[type='submit'] { opacity: 0.65; pointer-events: none; }


/* ---------- Модальное окно заявки (KM-28) ---------- */
.lead-modal {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.lead-modal::backdrop { background: rgba(6, 12, 22, 0.72); }
.lead-modal__card {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  overflow-y: auto;
}
.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.lead-modal__close .icon { width: 18px; height: 18px; }
.lead-modal__close:hover { border-color: var(--ink); background: var(--tint); }
.lead-modal__title { padding-right: 48px; font-size: 22px; }
.lead-modal__note { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
html.modal-open { overflow: hidden; }

/* форма внутри модалки стоит на белом, а не на тёмном */
.lead-modal .field label { color: var(--muted); }
.lead-modal .field input {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.lead-modal .field input::placeholder { color: #9aa3b1; }
.lead-modal .field.is-invalid input { border-color: #c0392b; background: rgba(192, 57, 43, 0.05); }
.lead-modal .field__error { color: #b3261e; }
.lead-modal .consent label { color: var(--muted); }
.lead-modal .consent a { color: var(--ink); text-decoration-color: var(--signal-deep); }
.lead-modal .consent a:hover { color: var(--signal-ink); }
.lead-modal .form__note { color: var(--muted); }
.lead-modal .form__status.is-ok { color: #1c7a3e; }
.lead-modal .form__status.is-err { color: #b3261e; }
@media (max-width: 639px) {
  .guarantees__img { width: 72px; height: 72px; }
  .guarantees li { gap: 12px; padding: 16px; }
  .lead-modal { width: calc(100% - 20px); }
  .lead-modal__card { padding: 22px; border-radius: 20px; }
  .lead-modal__title { font-size: 19px; }
}

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

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: #cfc7b5; }
.service-card__img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  padding: 10px 18px;
  background: #fff;
}
.service-card__body { padding: 16px 20px 22px; }
.service-card__num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--signal-ink);
}
.service-card h3 { font-size: 18px; line-height: 1.22; }
.service-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

@media (max-width: 639px) {
  .service-card__img { height: 146px; padding: 8px 42px; }
  .service-card__body { padding: 14px 18px 18px; }
}

/* ---------- Шаги ---------- */
.steps {
  padding-block: 0;
  padding-inline: clamp(12px, 2vw, 28px);
  color: var(--text);
}
.steps > .wrap {
  position: relative;
  overflow: hidden;
  margin-block: clamp(10px, 1.4vw, 16px);
  padding-block: clamp(36px, 5.5vw, 64px);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: var(--ink);
  color: var(--on-dark);
}
.steps > .wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 12% 0%, rgba(255, 196, 0, 0.1), transparent 70%);
  pointer-events: none;
}
.steps > .wrap > * { position: relative; z-index: 1; }
.steps .section-lead { color: var(--on-dark-muted); }

.steps__list { display: grid; gap: 12px; }
.step {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--signal) 0%, rgba(255, 196, 0, 0) 85%);
}
.step:hover { border-color: rgba(255, 196, 0, 0.45); transform: translateY(-2px); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.step__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255, 196, 0, 0.08);
  flex: none;
}
.step__icon .icon { width: 22px; height: 22px; }
.step__num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .step__num { color: rgba(255, 255, 255, 0.14); }
}
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); }

.steps__note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 196, 0, 0.22);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.14) 0%, rgba(255, 196, 0, 0.03) 100%);
  font-size: 13.5px;
  line-height: 1.5;
  color: #d8dbe2;
}
.steps__note-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.16);
  color: var(--signal);
  flex: none;
}
.steps__note-icon .icon { width: 20px; height: 20px; }
.steps__note strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--signal); }

/* ---------- Кому положено ---------- */
.case { background: transparent; }
.case__grid { display: grid; gap: 16px; }
.case-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.case-card--yes { border-top: 4px solid var(--signal); }
.case-card--help { border-top: 4px solid var(--ink-3); }
.case-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.case-card h3 .icon { width: 22px; height: 22px; color: var(--signal-ink); }
.case-card--help h3 .icon { color: var(--ink-3); }
.case-list { display: grid; gap: 10px; margin-top: 18px; }
.case-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.case-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--signal-deep); }
.case-card--help .case-list .icon { color: #8a94a4; }

.callout {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
}
.callout p { font-size: 15px; line-height: 1.45; }
.callout .btn { justify-self: start; }
.callout--compact { margin-top: 26px; }

/* ---------- Деньги или ремонт ---------- */
.money { background: transparent; }
.money__grid { display: grid; gap: 36px; }
.money__list { display: grid; gap: 0; margin-top: 28px; }
.money__list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
.money__list li:first-child { border-top: 1px solid var(--line); }
.money__list .icon {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
}
.money__note {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.money__card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(255, 196, 0, 0.09), transparent 58%),
    linear-gradient(165deg, var(--ink-2), var(--ink));
  color: var(--on-dark);
}
.money__card-title {
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.compare thead th {
  padding: 0 0 14px;
  text-align: left;
  vertical-align: bottom;
  font-weight: 400;
}
.compare thead th:first-child {
  width: 27%;
  padding-right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.compare__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.compare__chip .icon { flex: none; width: 12px; height: 12px; }
.compare__chip--good { border-color: transparent; background: var(--signal); color: var(--ink); }
.compare tbody th,
.compare tbody td {
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: middle;
  line-height: 1.45;
}
.compare tbody th {
  width: 27%;
  padding-right: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark);
}
.compare tbody td { color: var(--on-dark-muted); }
.compare tbody td:nth-child(2) { padding-right: 16px; }
.compare tbody td:nth-child(3) {
  padding-inline: 14px;
  background: rgba(255, 196, 0, 0.07);
  color: var(--on-dark);
}
.compare tbody tr:first-child td:nth-child(3) { border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child td:nth-child(3) { border-radius: 0 0 14px 14px; }
.compare__val { display: inline-flex; align-items: flex-start; gap: 8px; }
.compare__val .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: rgba(255, 255, 255, 0.3); }
.compare__val--good .icon { color: var(--signal); }

.money__card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--on-dark-muted);
}
.money__card-foot .icon { flex: none; color: var(--signal); }

/* ---------- СТО без очереди ---------- */
.sto { background: transparent; }
.sto__grid { display: grid; gap: 28px; }
.sto__panel {
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 60px -48px rgba(10, 20, 34, 0.55);
}
.sto__badges { display: grid; }
.sto__badges li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.sto__badges li + li { border-top: 1px solid var(--line); }
.sto__badges .icon {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
  box-sizing: content-box;
}

/* ---------- Адреса ---------- */
.addresses { background: transparent; }
.addresses .section-head { margin-bottom: 20px; }

/* Где подавать документы — уточнение к списку СТО, выделено жёлтым */
.addresses__note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--signal);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 14px 30px -18px rgba(10, 20, 34, 0.55);
}
.addresses__note .icon {
  width: 21px;
  height: 21px;
  padding: 8px;
  box-sizing: content-box;
  flex: none;
  border-radius: 10px;
  background: var(--ink);
  color: var(--signal);
}
@media (max-width: 639px) {
  .addresses__note { align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: 14px; }
}

.addresses__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.addresses__filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip span { margin-left: 5px; opacity: 0.55; }
.chip:hover { border-color: #c7bfae; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.addresses__layout { display: grid; gap: 20px; }
.addresses__list { min-width: 0; }

.sto-group { border-bottom: 1px solid var(--line); }
.sto-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.sto-group__head::-webkit-details-marker { display: none; }
.sto-group__count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2ddcf;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}
.sto-group__body { padding-bottom: 6px; }

.sto-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sto-card:hover {
  border-color: #cfc7b5;
  box-shadow: 0 8px 20px rgba(10, 20, 34, 0.07);
  transform: translateY(-1px);
}
.sto-card.is-active {
  border-color: var(--signal-deep);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.28);
}
.sto-card__logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.sto-card__logo--img {
  padding: 5px 7px;
  background: #fff;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
.sto-card__logo--dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}
.sto-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sto-card h3 { font-size: 16px; line-height: 1.2; }
.badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sto-card__district { margin-top: 3px; font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); }
.sto-card__line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #33404f;
}
.sto-card__line .icon { width: 15px; height: 15px; margin-top: 2px; color: #8a94a4; }
.sto-card__line a { text-decoration: none; font-weight: 600; }
.sto-card__line a:hover { text-decoration: underline; }
.sto-card__actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin-top: 2px; }

/* Две кнопки в карточке СТО не должны переноситься и разъезжаться по ширине */
@media (max-width: 767px) {
  .sto-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sto-card__actions .btn { width: 100%; padding-inline: 10px; gap: 7px; font-size: 13.5px; }
  .sto-card__actions .btn:only-child { grid-column: 1 / -1; }
  .sto-card__actions .btn .icon { width: 17px; height: 17px; }
  .sto-group__head {
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    padding-block: 10px;
  }
  .sto-group__count { margin-left: auto; }
  .sto-group__head::after {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s;
  }
  .sto-group[open] .sto-group__head::after { transform: rotate(180deg); }
}

.sto-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(10, 20, 34, 0.14);
  border-radius: 20px;
  background: var(--ink);
}
.sto-map__canvas { position: absolute; inset: 0; }
.sto-map__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 22px;
  text-align: center;
  color: #fff;
  background: var(--ink);
}
.sto-map__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(rgba(255, 196, 0, 0.17) 1.4px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}
.sto-map__title { position: relative; font-size: 22px; font-weight: 700; }
.sto-map__text { position: relative; max-width: 30ch; font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); }
.sto-map__cover .btn { position: relative; margin-top: 6px; }
.sto-map__cover .link-more { position: relative; color: var(--on-dark-muted); font-size: 12.5px; }
.sto-map__cover .link-more:hover { color: #fff; }
.sto-map.is-loaded .sto-map__cover { display: none; }

/* Метка на карте: янтарный круг с хвостиком, низ — в точке адреса */
.map-pin {
  position: relative;
  width: 30px;
  height: 38px;
  transform: translate(-50%, -100%);
  cursor: pointer;
}
.map-pin::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--ink) 0 5px, var(--signal) 6px);
  box-shadow: 0 5px 14px rgba(4, 10, 18, 0.35);
}
.map-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  width: 0;
  height: 0;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--ink);
}
.sto-map.is-error .sto-map__text { color: #ffb4a8; }

/* ---------- Отзывы ---------- */
.reviews { background: transparent; }
.reviews__shell { min-width: 0; }
.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 318px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 44px -38px rgba(10, 20, 34, 0.45);
  scroll-snap-align: start;
}
.review__stars { display: flex; gap: 4px; color: #d8d1c0; }
.review__stars .icon { width: 17px; height: 17px; }
.review__stars .is-filled { color: var(--signal); }
.review__text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: #3a4657;
}
.review.is-open .review__text { display: block; overflow: visible; }
.review__more {
  align-self: flex-start;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--signal-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.review__more[hidden] { display: none; }

.reviews__bar { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.reviews__arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
}
.reviews__arrow .icon { width: 18px; height: 18px; }
.reviews__arrow:hover { border-color: var(--ink); }
.reviews__arrow:disabled { opacity: 0.35; cursor: default; }
.review__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.review__who { min-width: 0; }
.review__author { font-size: 14.5px; font-weight: 700; }
.review__date { margin-top: 2px; font-size: 12px; color: var(--muted); }

.reviews__progress {
  position: relative;
  flex: 1;
  height: 3px;
  margin-top: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.reviews__progress[hidden] { display: none; }
.reviews__progress i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
  transition: left 0.2s ease, width 0.2s ease;
}
.reviews .link-more { margin-top: 20px; }

/* ---------- Цифры и гарантии ---------- */
.facts { color: var(--text); }
.facts .section-lead { color: var(--muted); }
.facts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-block: clamp(10px, 1.4vw, 16px) 0;
  border: 0;
  border-radius: clamp(20px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 48px -40px rgba(10, 20, 34, 0.45);
}
.fact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 24px;
  background: var(--ink);
}
.fact__icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.12);
  color: var(--signal);
}
.fact__icon .icon { width: 22px; height: 22px; }
.fact__value {
  white-space: nowrap;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.fact__value span { margin-left: 4px; font-size: 0.45em; font-weight: 400; color: var(--on-dark-muted); letter-spacing: 0; }
.fact__label { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--on-dark-muted); text-wrap: balance; }

.guarantees { margin-top: 40px; }
.guarantees h3 { font-size: 20px; }
.guarantees ul { display: grid; gap: 12px; margin-top: 16px; }
.guarantees li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.guarantees__img {
  flex: none;
  width: 112px;
  height: 112px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- FAQ ---------- */
.faq { background: transparent; }
.faq__grid { display: grid; gap: 28px; }
.faq__intro .section-lead { margin-top: 14px; }
.faq__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.faq__cta p { font-size: 13px; color: var(--muted); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__heading { margin: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.faq__q .icon { width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--tint); transition: transform 0.2s, background-color 0.2s; }
.faq__q[aria-expanded='true'] .icon { transform: rotate(45deg); background: var(--signal); }
.faq__a { padding: 0 44px 20px 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.faq__a[hidden] { display: none; }
.faq__a p { max-width: 72ch; }

/* ---------- Финальный CTA ---------- */
.cta { padding-block: 0; padding-inline: clamp(12px, 2vw, 28px); color: var(--text); }
.cta > .wrap {
  position: relative;
  overflow: hidden;
  margin-block: clamp(10px, 1.4vw, 16px);
  padding-block: clamp(44px, 6vw, 74px);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: var(--ink);
  color: #fff;
}
.cta__grid > * { position: relative; z-index: 1; }
.cta__grid { display: grid; gap: 32px; }
.cta__phone {
  display: inline-block;
  margin: 18px 0 8px;
  font-size: clamp(28px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
  text-decoration: none;
}
.cta__phone:hover { color: #ffd84d; }
.cta__note { font-size: 14px; color: var(--on-dark-muted); }
.cta__messengers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 560px;
  margin-top: 20px;
}
.cta__messengers .btn { white-space: nowrap; }
.cta__points { display: grid; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.45; color: #c9d2e0; }
.cta__points li { display: flex; align-items: flex-start; gap: 10px; }
.cta__points .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--signal); }

.cta__form {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.cta__form-title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.cta__form-text { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); }

/* ---------- Подвал ---------- */
.footer { background: #07101b; color: var(--on-dark); }

.footer__grid { display: grid; gap: 28px; padding-block: 32px; }
.footer .logo { margin-bottom: 4px; }
.footer .logo__text { display: block; font-size: 15px; }
.footer .logo__text small { font-size: 10.5px; }
.footer__brand p { margin-top: 12px; max-width: 36ch; font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.12);
  color: var(--signal);
  font-size: 12px;
  font-weight: 600;
}
.footer__badge .icon { width: 16px; height: 16px; }

.footer__title {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8895a7;
}
.footer__list { display: grid; gap: 9px; font-size: 13.5px; }
.footer__contact { display: flex; align-items: flex-start; gap: 9px; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--signal); }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--signal); }
.footer__list--links a { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__list--links a:hover { color: #fff; border-color: var(--signal); }
.footer__messengers { display: flex; gap: 8px; margin-top: 14px; }
.footer__messengers .round-link { width: 38px; height: 38px; }
.footer__requisites { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: #78859a; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 11.5px;
  line-height: 1.5;
  color: #78859a;
}
.footer__bottom a { color: #9aa6b8; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Плавающие элементы ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.dock a,
.dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.dock__call { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.dock__call .icon { width: 18px; height: 18px; color: var(--signal); }
.dock__cta { background: var(--signal); color: var(--ink) !important; }

/* ---------- Баннер cookie ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 72;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(880px, calc(100% - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 24px 48px -18px rgba(4, 10, 18, 0.65);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie[hidden] { display: none; }
.cookie.is-in { opacity: 1; transform: translate(-50%, 0); }
.cookie__text { font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); }
.cookie__title { margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: #fff; }
.cookie a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie a:hover { color: var(--signal); }
.cookie__actions { display: flex; flex: none; gap: 8px; }

@media (max-width: 639px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie__actions .btn { padding-inline: 8px; font-size: 13px; }
}

/* ---------- Юридические страницы и 404 ---------- */
.legal { padding-block: 40px 64px; }
.legal__wrap { max-width: 840px; }
.legal h1 { font-size: clamp(27px, 4.2vw, 42px); }
.legal__date { margin-top: 10px; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 30px 0 8px; font-size: 19px; }
.legal p,
.legal li { font-size: 15px; line-height: 1.65; color: #33404f; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0; padding-left: 20px; list-style: disc; display: grid; gap: 5px; }
.legal a { color: #0b5aa3; }
.legal__placeholder {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #efd98d;
  border-radius: 10px;
  background: #fff6d6;
  font-size: 14px;
}

.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found__wrap { max-width: 720px; text-align: center; }
.not-found__code { font-size: clamp(64px, 14vw, 140px); font-weight: 700; line-height: 1; color: var(--signal-deep); letter-spacing: -0.05em; }
.not-found h1 { margin-top: 8px; font-size: clamp(26px, 4vw, 40px); }
.not-found p { margin-top: 12px; color: var(--muted); }
.not-found .not-found__code { margin-top: 0; color: var(--signal-deep); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   Адаптив
   ========================================================================= */

@media (min-width: 430px) {
  .logo__text { display: block; font-size: 15px; }
  .logo__text small { max-width: 13em; white-space: normal; }
}

@media (min-width: 480px) {
  .hero { padding-block: 44px 54px; }
  .callout { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .case__grid { grid-template-columns: repeat(2, 1fr); }
  .guarantees ul { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc(50% - 7px); }
  .cta__messengers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact__value { font-size: clamp(34px, 5.2vw, 46px); }
}

@media (min-width: 768px) {
  :root { --header-top: 68px; --header-nav: 48px; --header-h: 116px; --dock: 0px; }
  body { padding-bottom: 0; }

  /* на планшете все группы адресов раскрыты — аккордеона нет */
  .sto-group__head { cursor: default; }

  .logo__mark { width: 44px; height: 44px; }
  .logo__text { font-size: 16px; }
  .logo__text small { max-width: none; white-space: nowrap; }

  .header__socials { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .nav__mobile { display: none; }

  .header__nav,
  .header.is-open .header__nav { max-height: none; overflow: visible; }
  .nav { flex-direction: row; justify-content: space-between; align-items: center; padding-block: 0; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 2px solid transparent;
    border-top: 0;
    font-size: 13px;
  }
  .nav a:hover,
  .nav a.is-active { border-bottom-color: var(--signal); }
  .nav a:last-child { border-bottom: 2px solid transparent; }

  .header__phone { font-size: 15px; }
  .header__phone .icon { width: 17px; height: 17px; }

  .hero__title { font-size: clamp(34px, 6vw, 50px); }
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__panel { padding: 24px; max-width: 520px; }

  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .guarantees ul { grid-template-columns: repeat(2, 1fr); }
  .guarantees__img { width: 84px; height: 84px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .reviews .link-more { margin-top: 20px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* планшет: форма в две колонки заполняет ширину первого экрана */
  .hero__panel { max-width: none; }
  .hero__panel .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .hero__panel .lead-form > .consent,
  .hero__panel .lead-form > .field__error,
  .hero__panel .lead-form > .btn,
  .hero__panel .lead-form > .form__note,
  .hero__panel .lead-form > .form__status { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: end; gap: 40px; }
  .section-head--split .section-lead { margin-top: 0; padding-bottom: 6px; }
  .hero { padding-block: 48px 56px; }
  .hero__title { font-size: clamp(38px, 4.6vw, 50px); }
  .sto__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
}

@media (min-width: 1024px) {
  :root { --header-top: 76px; --header-nav: 52px; --header-h: 128px; }

  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  /* в четыре колонки цифра должна влезать в ячейку вместе с иконкой */
  .fact__value { font-size: clamp(28px, calc(4.4vw - 16px), 46px); }
  .guarantees ul { grid-template-columns: repeat(3, 1fr); }
  .guarantees__img { width: 112px; height: 112px; }

  .header__hours { display: flex; margin-left: auto; }
  .header__actions { margin-left: 24px; }
  .nav a { font-size: 14px; padding-inline: 6px; }

  .hero { min-height: calc(100svh - var(--header-h) - 2px); }
  .hero__actions .btn { font-size: 14px; padding-inline: 16px; white-space: nowrap; }
  .hero__actions .btn--lg { min-height: 52px; }
  .hero__inner { grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr); gap: 56px; align-items: center; }
  .hero__panel { max-width: none; }
  .hero__title { font-size: clamp(42px, 4.4vw, 58px); }
  .hero__panel { padding: 26px; }

  .services__grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 3; }
  .service-card__img { height: 180px; }

  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .step { padding: 22px; }
  .step__num { font-size: 42px; }

  .addresses__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 24px; align-items: start; }
  .addresses__list { max-height: 700px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #c9c1b0 transparent; }
  .addresses__list::-webkit-scrollbar { width: 6px; }
  .addresses__list::-webkit-scrollbar-thumb { background: #c9c1b0; border-radius: 6px; }
  .sto-map { height: 700px; min-height: 0; position: sticky; top: calc(var(--header-h) + 16px); }
  .sto-group__head { cursor: default; }

  .facts__grid { gap: 0; }
  .fact { padding: 22px; }
  .footer__grid { padding-block: 40px; }

  .dock { display: none; }

  .cta { padding-block: clamp(64px, 7vw, 96px); }
  .cta__messengers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 64px; align-items: center; }
  .cta__form { padding: 28px; }

  .legal { padding-block: 56px 88px; }

  .faq__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  /* четыре узкие ячейки: иконка и отступы меньше, иначе цифра не влезает */
  .fact { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 18px; }
  .fact__icon { width: 36px; height: 36px; border-radius: 11px; }
  .fact__icon .icon { width: 18px; height: 18px; }
}

@media (min-width: 1200px) {
  .hero__inner { gap: 72px; }
  .hero__title { font-size: 58px; }
  .hero__actions .btn { font-size: 16px; padding-inline: 20px; white-space: normal; }
  .hero__actions .btn--lg { min-height: 56px; padding-inline: 24px; }
  .review { flex-basis: calc(33.333% - 10px); }
  .reviews__track { gap: 15px; }
}

/* Отзывов больше, чем помещается в ряд, поэтому листание остаётся на всех ширинах */

/* Сравнение в две колонки — только когда карточке хватает ширины */
@media (min-width: 1280px) {
  .header__mail { display: inline-flex; }
  .money__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: 48px; }
}

/* Таблица сравнения на телефоне: строки вместо трёх колонок */
@media (max-width: 639px) {
  .compare thead { display: none; }
  .compare,
  .compare tbody,
  .compare tr,
  .compare tbody th,
  .compare tbody td { display: block; width: 100%; }
  .compare tr { padding: 12px 0; border-top: 1px solid var(--line-dark); }
  .compare tbody tr:first-child { border-top: 0; padding-top: 0; }
  .compare tbody th { padding: 0 0 6px; border: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
  .compare tbody td,
  .compare tbody td:nth-child(2),
  .compare tbody td:nth-child(3) { padding: 0 0 4px; border: 0; background: none; border-radius: 0; }
  .compare tbody td:nth-child(3) { color: var(--on-dark); }
  .compare tbody td::before {
    content: attr(data-label) ': ';
    color: var(--on-dark-muted);
    font-size: 11.5px;
  }
  .compare__val { gap: 6px; font-size: 13px; }
}

/* Планшет: карта над списком (ТЗ) */
@media (max-width: 1023px) {
  .sto-map { order: -1; }
}

/* На телефоне иконка стоит над цифрой: в узкой ячейке она отнимает место у значения */
@media (max-width: 639px) {
  .fact { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .fact__icon { grid-row: auto; align-self: start; margin-bottom: 12px; }
  .fact__value { font-size: clamp(21px, 6vw, 30px); }
}
