/* ==========================================================================
   Гайка и Ключ — демо-сайт автосервиса («Студия Босса»)
   Mobile-first. Тёмная премиальная тема, чертёжная сетка, один кислотный акцент.
   ========================================================================== */

:root {
  /* Фон: почти-чёрный с холодным (сине-стальным) оттенком — как тонированное стекло и воронёный металл */
  --bg: #07090c;
  --bg-2: #0b0f15;
  --bg-3: #10161f;
  --surface: rgba(160, 185, 220, 0.035);
  --surface-2: rgba(160, 185, 220, 0.06);
  --line: rgba(160, 185, 220, 0.12);
  --line-2: rgba(160, 185, 220, 0.22);
  --grid: rgba(140, 170, 210, 0.055);

  --text: #e9eef5;
  --muted: #8a95a6;
  --muted-2: #5f6a7b;

  /* Акцент: лаймовый #d4ff3a. Почему он, а не оранжевый:
     — это цвет «хай-виз» (светоотражающие жилеты, разметка, суппорты спорт-машин) — сразу «гараж и техника»;
     — на холодном чёрном даёт максимальный контраст (≈17:1) и читается как неон, а не как «скидка/акция»;
     — оранжевый в автосервисах — клише конструкторов, лайм выглядит дороже и современнее.
     Используется точечно: кнопки, цены, точки, свечение. */
  --accent: #d4ff3a;
  --accent-ink: #0a0d06;            /* текст на акценте */
  --accent-soft: rgba(212, 255, 58, 0.12);
  --accent-glow: rgba(212, 255, 58, 0.35);

  /* Металлик для заголовков и линий */
  --metal: linear-gradient(180deg, #ffffff 0%, #dfe6ef 38%, #8f9bad 52%, #c8d1dd 70%, #f2f5f9 100%);
  --metal-line: linear-gradient(90deg, transparent, rgba(200, 215, 235, 0.5), transparent);

  /* Шрифты: Tektur — технический широкий гротеск с осью ширины (заголовки, цифры, цены);
     Geologica — спокойный современный гротеск для текста. Оба с кириллицей. */
  --font-display: "Tektur", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1320px;
  --pad: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --pad: 32px; --header-h: 72px; }
}
@media (min-width: 1200px) {
  :root { --pad: 48px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Чертёжная сетка на всю страницу */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Кнопки ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { transition: transform 0.35s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.btn--accent:hover {
  box-shadow: 0 10px 40px -8px var(--accent-glow), 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--dark { background: var(--accent-ink); color: var(--accent); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }

.btn--sm { --h: 42px; padding: 0 18px; font-size: 13px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Бейджи / подписи ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
}
.badge--accent { color: var(--accent); border-color: rgba(212, 255, 58, 0.4); background: var(--accent-soft); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.6);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex: none;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span { color: var(--accent); }
.label::after {
  content: "";
  flex: 0 1 80px;
  height: 1px;
  background: var(--line-2);
}

/* ---------- Плашка демо ---------- */
.demo-bar {
  position: relative;
  z-index: 60;
  background: #0d1218;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.demo-bar__text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-bar__long { display: none; }
.nocaps { text-transform: none; }
.demo-bar__tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.demo-bar__btn {
  flex: none;
  padding: 6px 12px;
  border: 1px solid rgba(212, 255, 58, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.demo-bar__btn:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* стекло — на псевдоэлементе: backdrop-filter на самой шапке сломал бы fixed-меню внутри неё */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 12, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled::before { background: rgba(7, 9, 12, 0.72); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.logo__icon { color: #c9d3e2; transition: transform 0.6s var(--ease); }
.logo:hover .logo__icon { transform: rotate(60deg); }
.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__text i { font-style: normal; color: var(--accent); margin: 0 2px; }

.nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.header__phone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.header__phone span { display: none; }
.header__phone:hover { border-color: var(--accent); color: var(--accent); }
.header__book { display: none; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
@media (max-width: 1023.98px) {
  .nav.is-open {
    position: fixed;
    inset: var(--menu-top, var(--header-h)) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px var(--pad) 40px;
    background: var(--bg);
    overflow-y: auto;
    animation: menu-in 0.4s var(--ease);
  }
  .nav.is-open a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav.is-open .nav__cta { margin-top: 24px; --h: 58px; }
  body.menu-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding: 36px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* более плотная сетка «чертежа» с затуханием */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(140, 170, 210, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 210, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 70%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 70%, #000 0%, transparent 70%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  right: -20%;
  bottom: -10%;
  width: 90vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 800px;
  background:
    radial-gradient(closest-side, rgba(212, 255, 58, 0.14), transparent 70%),
    radial-gradient(closest-side at 30% 40%, rgba(90, 130, 200, 0.18), transparent 80%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 9.4vw, 6.2rem);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title > span { display: block; }
.metal {
  background: var(--metal);
  background-size: 100% 1lh;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__accent {
  margin-top: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(212, 255, 58, 0.25);
}

.hero__row {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
.hero__lead p {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: #b8c2d0;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__btns .btn--accent { flex: 1 1 auto; }

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.7), rgba(10, 14, 20, 0.5));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 18px;
}
.spec li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.spec li:last-child { border-bottom: 0; }
.spec__k { font-size: 14.5px; color: #c3ccd8; }
.spec__line { flex: 1; min-width: 10px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.spec b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Машина-чертёж */
.hero__car {
  position: relative;
  margin: 22px 0 0 -9%;
  width: 118%;
  pointer-events: none;
}
.car { width: 100%; height: auto; overflow: visible; }
.car__lines path { filter: drop-shadow(0 0 6px rgba(212, 255, 58, 0.18)); }
.wheel__rot {
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(var(--rot, 0deg));
}
.car__dimtext {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.24em;
  fill: #6f7d93;
}
.callout circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.callout path { fill: none; stroke: rgba(212, 255, 58, 0.55); stroke-width: 1.2; }
.callout text {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--text);
}

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 215, 235, 0.55);
}
.marquee span:nth-of-type(even) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--accent); font-size: 18px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- Цифры ---------- */
.stats { padding: 56px 0 8px; }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}
.stats .container.stats__grid { width: calc(100% - 2 * var(--pad)); padding: 0; }
.stat { padding: 22px 18px 20px; background: var(--bg); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.42em; margin-left: 4px; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.stat__text { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 88px 0; position: relative; }
.section__head { margin-bottom: 36px; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  background: var(--metal);
  background-size: 100% 1lh;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__title .badge { -webkit-text-fill-color: var(--accent); font-size: 12px; transform: translateY(-0.6em); }
.section__lead { max-width: 560px; margin-top: 18px; color: #aab4c2; font-size: 16.5px; }
.section__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Bento услуг ---------- */
.bento { display: grid; gap: 12px; }

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px circle at var(--mx) var(--my), rgba(212, 255, 58, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(22, 29, 40, 0.75), rgba(10, 14, 20, 0.85));
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.card::before {
  /* тонкая подсвеченная рамка, следующая за курсором */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(212, 255, 58, 0.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(212, 255, 58, 0.3);
  box-shadow: 0 30px 80px -40px rgba(212, 255, 58, 0.35), 0 0 0 1px rgba(212, 255, 58, 0.06);
}
.card:hover::before { opacity: 1; }

.card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.card__idx {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid rgba(212, 255, 58, 0.35);
  border-radius: 8px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.card__icon { color: #9aa7ba; transition: color 0.3s, transform 0.6s var(--ease); }
.card:hover .card__icon { color: var(--accent); transform: rotate(-8deg) scale(1.06); }

.card__hero { margin: 30px 0 18px; }
.card__name { font-size: 14.5px; color: var(--muted); }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price--xl {
  margin-top: 4px;
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1;
  color: var(--text);
}
.price--xl span { color: var(--accent); }
.card__unit { margin-top: 6px; font-size: 13px; color: var(--muted); }

.plist { margin-top: auto; border-top: 1px solid var(--line); }
.plist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: #c3ccd8;
}
.plist li:last-child { border-bottom: 0; padding-bottom: 0; }
.plist b {
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plist small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.card--cta {
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 40%),
    var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.card--cta::before { display: none; }
.card--cta:hover { box-shadow: 0 30px 80px -30px var(--accent-glow); }
.card--cta__text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.card--cta .btn { align-self: flex-start; }

/* ---------- Шаги ---------- */
.steps { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.steps__list { position: relative; display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative;
  padding: 0 0 36px 64px;
}
.step::before {
  /* вертикальная линия на мобильном */
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line-2) 40%, var(--line));
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(212, 255, 58, 0.5);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 24px -4px var(--accent-glow);
}
.step__title {
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}
.step p { margin-top: 10px; color: #a9b3c1; font-size: 15px; max-width: 360px; }

/* ---------- Почему мы ---------- */
.why__grid { display: grid; gap: 36px; }
.why__intro .btn { margin-top: 28px; }
.why__list { border-top: 1px solid var(--line-2); }
.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  transition: background-color 0.4s;
}
.why-item__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 6px;
}
.why-item__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.3s;
}
.why-item p { margin-top: 10px; max-width: 520px; color: #a9b3c1; }
.why-item:hover .why-item__title { color: var(--accent); }

/* ---------- Отзывы ---------- */
.reviews__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--pad));
  padding: 4px var(--pad) 16px;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.reviews__grid::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.7), rgba(10, 14, 20, 0.8));
  transition: border-color 0.3s, transform 0.45s var(--ease);
}
.review:hover { border-color: var(--line-2); transform: translateY(-4px); }
.review__demo {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px dashed rgba(212, 255, 58, 0.45);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.review blockquote {
  flex: 1;
  margin: 22px 0 26px;
  font-size: 17px;
  line-height: 1.55;
  color: #dbe2ec;
}
.review figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.review figcaption b { display: block; color: var(--text); font-weight: 500; }
.review__ava {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--metal);
  color: #10161f;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 32px; }
.faq__intro .btn { margin-top: 24px; white-space: normal; text-align: center; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq__body p { padding: 0 52px 24px 0; color: #a9b3c1; }

/* Плавное раскрытие там, где браузер умеет */
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; gap: 12px; }
.contacts__card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.75), rgba(10, 14, 20, 0.85));
}
.contacts__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contacts__list { margin: 18px 0 0; }
.contacts__list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contacts__list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 17px; }
.contacts__phone {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.6vw, 34px);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.contacts__phone:hover { color: var(--accent); }
.hours { display: grid !important; gap: 4px !important; }
.hours > span { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.hours span span { color: var(--muted); }
.hours b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.contacts__note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  color: #dfe8c6;
}
.contacts__text { margin-top: 16px; color: #a9b3c1; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contacts__btns .btn { flex: 1 1 140px; }

.map {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  background: #0a0e14;
}
.map svg { width: 100%; height: 100%; object-fit: cover; }
.map__label { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; fill: var(--text); }
.map__pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Подвал ---------- */
.footer { padding: 40px 0 110px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #05070a); overflow: hidden; }
.footer__demo {
  display: grid;
  gap: 24px;
  padding: 28px 22px;
  border: 1px solid rgba(212, 255, 58, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(212, 255, 58, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(22, 29, 40, 0.8), rgba(10, 14, 20, 0.9));
}
.footer__demo-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer__demo-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6.6vw, 46px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.footer__demo-text { margin-top: 14px; max-width: 640px; color: #a9b3c1; font-size: 15px; }
.footer__demo .btn { justify-self: start; white-space: normal; }

.footer__bottom { display: grid; gap: 18px; margin-top: 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.25s; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { color: var(--muted-2); font-size: 13px; }
.footer__word {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: min(12.4vw, 172px);
  font-weight: 800;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 185, 220, 0.18);
  user-select: none;
}

/* ---------- Плавающая кнопка (слева!) ---------- */
.fab {
  position: fixed;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 36px -10px rgba(212, 255, 58, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s var(--ease), opacity 0.35s;
}
.js .fab.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Модальное окно ---------- */
.modal {
  width: min(460px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal[open] { animation: modal-in 0.45s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__inner {
  position: relative;
  padding: 30px 24px 24px;
  border: 1px solid rgba(212, 255, 58, 0.35);
  border-radius: 26px;
  background:
    radial-gradient(420px circle at 0% 0%, rgba(212, 255, 58, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(22, 29, 40, 0.96), rgba(8, 11, 16, 0.98));
  box-shadow: 0 40px 120px -30px rgba(212, 255, 58, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.25s, color 0.25s;
}
.modal__close:hover { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }
.modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal__title {
  margin-top: 14px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.modal__text { margin: 14px 0 24px; color: #b8c2d0; font-size: 16px; }
.modal__text b { color: var(--accent); font-weight: 500; }

/* ---------- Появление при прокрутке ----------
   Скрываем только если JS работает (класс .js) и пользователь не просил меньше анимации.
   Без JS и при prefers-reduced-motion контент виден сразу. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .car .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s var(--ease) 0.3s forwards;
  }
  .js .car .callout { opacity: 0; animation: fade-in-up 0.8s var(--ease) forwards; }
  .js .car .callout:nth-child(1) { animation-delay: 1.6s; }
  .js .car .callout:nth-child(2) { animation-delay: 1.8s; }
  .js .car .callout:nth-child(3) { animation-delay: 2s; }
  .js .car .callout:nth-child(4) { animation-delay: 2.2s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in-up { to { opacity: 1; } }

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

/* ==========================================================================
   Планшет
   ========================================================================== */
@media (min-width: 640px) {
  .demo-bar { font-size: 13px; }
  .demo-bar__long { display: inline; }
  .demo-bar__short { display: none; }
  .hero__btns .btn--accent { flex: 0 0 auto; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 28px 24px; }
  .reviews__grid { grid-auto-columns: 60%; }
  .footer__demo { padding: 40px 36px; }
  .modal__inner { padding: 40px 36px 32px; }
  .modal__title { font-size: 34px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 56px; }
  .hero__row { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
  .hero__car { width: 112%; margin: 10px 0 0 -6%; }
  .callout text { font-size: 20px; }

  .bento { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .card { padding: 26px 26px 24px; }
  .card--to { grid-column: span 6; }
  .card--diag { grid-column: span 3; }
  .card--susp { grid-column: span 3; }
  .card--tire { grid-column: span 3; }
  .card--cta { grid-column: span 3; }

  .steps__list { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .step { padding: 64px 0 0; }
  .step::before { left: 56px; right: -32px; top: 21px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-2) 50%, var(--line)); }
  .step:nth-child(2)::before { display: none; }
  .step:last-child::before { display: none; }

  .contacts__card { padding: 34px 32px; }
  .reviews__grid { grid-auto-columns: 44%; }
}

/* ==========================================================================
   Десктоп
   ========================================================================== */
@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
  }
  .nav a:not(.btn) {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #b8c2d0;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s;
  }
  .nav a:not(.btn):hover { background: var(--surface-2); color: var(--text); }
  .nav__cta { display: none !important; }
  .burger { display: none; }
  .header__book { display: inline-flex; }
  .header__phone { width: auto; height: auto; border: 0; border-radius: 0; gap: 8px; display: inline-flex; padding: 0 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
  .header__phone span { display: inline; }
  .header__phone svg { color: var(--accent); }

  .hero { padding-top: 72px; }
  .hero__row { grid-template-columns: 1fr 440px; gap: 64px; margin-top: 40px; }
  .hero__lead p { font-size: 19px; }
  .hero__car { width: 100%; margin: -10px auto 0; max-width: 1360px; padding: 0 var(--pad); }
  .callout text { font-size: 17px; }

  .stats { padding-top: 80px; }
  .stat { padding: 34px 32px 30px; }
  .stat__text { font-size: 14.5px; }

  .section { padding: 130px 0; }
  .section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 60px; margin-bottom: 56px; }
  .section__head .label { grid-column: 1 / -1; }
  .section__lead { margin-top: 0; max-width: 420px; }

  .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .card { padding: 30px 30px 26px; min-height: 360px; }
  .card--to { grid-column: span 7; }
  .card--diag { grid-column: span 5; }
  .card--susp { grid-column: span 5; }
  .card--tire { grid-column: span 4; }
  .card--cta { grid-column: span 3; }
  .price--xl { font-size: clamp(48px, 4.4vw, 66px); }
  .card--to .price--xl { font-size: clamp(80px, 7.6vw, 112px); }
  .card__title { font-size: 21px; }
  .card--cta__text { font-size: 26px; }

  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step:nth-child(2)::before { display: block; }
  .step p { font-size: 15.5px; }

  .why__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .why-item { grid-template-columns: 90px 1fr; padding: 40px 0; }
  .why-item p { font-size: 17px; }

  .reviews__grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .review { padding: 30px 28px; }

  .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .faq__item summary { font-size: 22px; padding: 28px 0; }
  .faq__body p { font-size: 17px; }

  .contacts__grid { grid-template-columns: 5fr 7fr; gap: 16px; }
  .contacts__card { padding: 40px; }

  .footer { padding: 64px 0 40px; }
  .footer__demo { grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding: 48px 52px; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer__word { margin-top: 56px; }

  .fab { display: none; }
}

