/* ============================================================
   AutoDoc — чип-тюнинг в Москве
   Тема: чёрный / белый / красный (как фирменная эмблема)
   ============================================================ */

:root {
  --bg-0: #070708;
  --bg-1: #0b0b0d;
  --bg-2: #101013;
  --card: #14141a;
  --card-2: #101014;
  --line: rgba(255, 255, 255, 0.08);
  --txt: #f4f5f7;
  --muted: #a4a8b0;
  --faint: #6b6f78;
  --red: #e01e2d;
  --red-2: #ff3347;
  --red-soft: rgba(224, 30, 45, 0.14);
  --red-glow: rgba(224, 30, 45, 0.35);
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --container: 1180px;
}

/* ---------- База ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #34343c; }

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn .icon { width: 19px; height: 19px; }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(180deg, #ff2438, #cf1425);
  color: #fff;
  box-shadow: 0 10px 28px -8px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(224, 30, 45, 0.55);
  filter: brightness(1.07);
}

.btn-primary:active { transform: translateY(0); filter: brightness(0.97); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--txt);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--red-2);
  color: var(--red-2);
  box-shadow: 0 12px 30px -12px var(--red-glow);
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled,
.header.nav-open {
  background: rgba(8, 8, 10, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }

/* Фирменная эмблема из assets/logo.png|jpg (подставляется скриптом) */
.logo-img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.logo.has-img .logo-mark,
.logo.has-img .logo-text { display: none; }

.footer .logo-img { height: 58px; }

.logo-mark { width: 40px; height: 28px; flex: none; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: var(--font-head);
  font-size: 1.42rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #fff;
}

.logo-name b { color: var(--red-2); font-weight: inherit; }

.logo-sub {
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: #fff; }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  transition: color 0.25s ease;
}

.header-phone .icon { width: 19px; height: 19px; color: var(--red-2); }

.header-phone:hover { color: var(--red-2); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Общее для секций ---------- */
/* Секции идут вплотную друг к другу — без зазоров */

.section {
  margin: 0;
  padding: 96px 0;
  background: var(--bg-1);
  scroll-margin-top: 74px;
}

.section-alt { background: var(--bg-2); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-2);
}

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-sub { margin-top: 16px; color: var(--muted); max-width: 640px; }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(58% 46% at 78% 16%, rgba(224, 30, 45, 0.15), transparent 62%),
    radial-gradient(46% 54% at 8% 90%, rgba(224, 30, 45, 0.09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--bg-0);
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  overflow: hidden;

  /* Чтобы поставить сюда реальное фото вашей машины / бокса:
     положите файл assets/hero.jpg и раскомментируйте блок в конце этого файла */
}

/* Реальное фото в главном экране: положите файл assets/hero.jpg —
   скрипт найдёт его сам и подложит под затемнение */
.hero.has-photo {
  background:
    linear-gradient(100deg, rgba(7, 7, 8, 0.9) 10%, rgba(7, 7, 8, 0.62) 55%, rgba(7, 7, 8, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.3), rgba(7, 7, 8, 0.88)),
    var(--hero-photo) center / cover no-repeat var(--bg-0);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.hero-slogan {
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}

.hero-slogan .red { color: var(--red-2); }

.hero-sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-chips .icon { width: 15px; height: 15px; color: var(--red-2); stroke-width: 2.6; }

/* Тахометр */

.hero-gauge { justify-self: center; width: min(100%, 470px); }

.gauge { width: 100%; height: auto; }

.gauge text {
  text-anchor: middle;
  font-family: var(--font-head);
  fill: #8b8f96;
}

.gauge-nums text { font-size: 19px; font-weight: 600; }
.gauge-nums .red { fill: var(--red-2); }

.gauge-rpm { font-size: 10px; letter-spacing: 2px; fill: #4c505a; text-transform: uppercase; }

.gauge-big {
  font-size: 33px;
  font-weight: 700;
  fill: var(--red-2);
  letter-spacing: 1px;
}

.gauge-cap { font-size: 10.5px; letter-spacing: 3px; fill: #757a83; text-transform: uppercase; }

.gauge-needle {
  transform-box: view-box;
  transform-origin: 240px 205px;
  transform: rotate(-135deg);
}

.in .gauge-needle {
  transform: rotate(108deg);
  transition: transform 1.9s cubic-bezier(0.33, 1.22, 0.5, 1) 0.45s;
}

.gauge-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.gauge-tags span {
  padding: 7px 16px;
  border: 1px solid rgba(224, 30, 45, 0.4);
  border-radius: 999px;
  background: var(--red-soft);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-2);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  animation: float 2.4s ease-in-out infinite;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-scroll:hover { color: var(--red-2); border-color: var(--red-2); }

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- О компании ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-copy p { margin-bottom: 18px; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--txt); font-weight: 600; }

.about-why {
  margin: 0 0 18px;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.check-list li {
  position: relative;
  padding: 5px 0 5px 36px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3347' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(224, 30, 45, 0.4);
}

/* Карточки (общее) */

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- Услуги ---------- */
/* Широкая карточка чип-тюнинга сверху, две карточки под ней */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: 1 / -1; }
}

/* Видео с отстрелами */

.video-card {
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
}

.video-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 26px 30px 18px;
}

.video-head h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.video-head p { font-size: 0.9rem; color: var(--faint); }

/* Два вертикальных ролика рядом; на телефоне — в столбик */

.video-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding: 4px 30px 30px;
}

.video-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 300px);
}

.video-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.video-item figcaption {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 30, 45, 0.5);
  box-shadow: 0 26px 50px -18px rgba(224, 30, 45, 0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--red-soft);
  border: 1px solid rgba(224, 30, 45, 0.38);
  color: var(--red-2);
  transition: transform 0.35s ease;
}

.service-card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

.service-card h3 {
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-card h3 .thin { color: var(--faint); font-weight: 500; }

.card-lead { margin: 12px 0 16px; font-size: 0.94rem; color: var(--muted); }
.card-lead strong { color: var(--txt); }

/* Шапка карточки услуги: иконка слева, заголовок и описание справа */

.service-head { display: flex; align-items: flex-start; gap: 18px; }

.service-head .card-icon { margin-bottom: 0; }

.service-head .card-lead { margin: 10px 0 0; }

/* Группы внутри широкой карточки чип-тюнинга */

.service-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px 30px;
  margin-top: 26px;
}

.service-group h4 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-2);
}

/* Списки услуг с галочками */

.tick-list li {
  position: relative;
  padding: 4px 0 4px 27px;
  font-size: 0.92rem;
  color: var(--muted);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3347' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-card > .tick-list { margin: 18px 0 26px; }

/* Кнопки в карточках */

.card-btn { margin-top: auto; width: 100%; }

.service-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.service-cta span {
  max-width: 460px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 30, 45, 0.5);
  box-shadow: 0 26px 50px -18px rgba(224, 30, 45, 0.3);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #1c1c22;
  border: 1px solid rgba(224, 30, 45, 0.45);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.review-meta b { display: block; font-size: 0.98rem; line-height: 1.3; }
.review-meta span { display: block; font-size: 0.8rem; color: var(--faint); }

.review-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stars {
  color: #f7a531;
  font-size: 0.95rem;
  letter-spacing: 3px;
}

.deal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}

.deal .icon { width: 13px; height: 13px; color: var(--red-2); stroke-width: 3; }

.review-service {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(224, 30, 45, 0.35);
  border-radius: 8px;
  background: var(--red-soft);
  font-size: 0.78rem;
  color: var(--red-2);
}

.review-text { font-size: 0.93rem; color: var(--muted); }

/* ---------- Заявка ---------- */

.request-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.request-copy h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
}

.request-text { margin-top: 18px; color: var(--muted); max-width: 420px; }

.request-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.25s ease;
}

.request-phone .icon { color: var(--red-2); }
.request-phone:hover { color: var(--red-2); }

.request-note { margin-top: 8px; font-size: 0.9rem; color: var(--faint); }

.form-card { padding: 36px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.req { color: var(--red-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #0d0d10;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea { resize: vertical; min-height: 96px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 30, 45, 0.18);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px;
  cursor: pointer;
}

.field select:disabled { opacity: 0.45; cursor: not-allowed; }

.field select option { background: #131317; color: var(--txt); }

.form-submit { width: 100%; margin-top: 22px; }

.form-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--faint);
  text-align: center;
}

/* Сообщение об успехе */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 420px;
  text-align: center;
  animation: successIn 0.5s ease both;
}

@keyframes successIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.form-success[hidden] { display: none; }

.success-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--red-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 22px var(--red-glow));
}

.form-success h3 {
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-success p { color: var(--muted); }

.form-success .btn { margin-top: 22px; }

.form-fail .btn-primary { margin-top: 22px; }
.form-fail .btn-ghost { margin-top: 10px; }

/* Ловушка для спам-ботов: поле не видно людям */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Адрес ---------- */

.address-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.address-grid > * { min-width: 0; }

.addr-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.addr-row:first-child { padding-top: 0; }

.addr-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--red-soft);
  border: 1px solid rgba(224, 30, 45, 0.38);
  color: var(--red-2);
}

.addr-icon .icon { width: 21px; height: 21px; }

.addr-row b { display: block; font-size: 1.02rem; }
.addr-row b a:hover { color: var(--red-2); }
.addr-row span { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--faint); }

.address-info .btn { margin-top: 26px; }

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  display: grid;
}

.map-wrap img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 480px;
  object-fit: cover;
}

.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  padding: 40px;
  text-align: center;
}

.map-fallback[hidden] { display: none; }

.map-fallback .icon { width: 42px; height: 42px; color: var(--red-2); }
.map-fallback b { font-size: 1.05rem; }
.map-fallback span { font-size: 0.88rem; color: var(--faint); }

/* ---------- Связь ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 30, 45, 0.5);
  box-shadow: 0 26px 50px -18px rgba(224, 30, 45, 0.3);
}

.contact-card h3 {
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-value {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--red-2);
}

.contact-note { margin-top: 4px; font-size: 0.86rem; color: var(--faint); }

/* ---------- Подвал ---------- */

.footer {
  margin: 0;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: 40px;
  padding-block: 56px 42px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--faint);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt);
}

.footer-col a,
.footer-col address,
.footer-col span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-style: normal;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--red-2); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--faint);
}

.footer-slogan {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-slogan b { font-weight: 600; color: var(--red-2); }

/* ---------- Адаптивность ---------- */

@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .nav { gap: 20px; }
}

@media (max-width: 940px) {
  .section { padding: 72px 0; }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px 20px 22px;
    background: #0a0a0c;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link { padding: 12px 4px; font-size: 1.02rem; }
  .nav-link::after { display: none; }

  .nav-cta { margin-top: 12px; justify-content: center; padding: 14px; }

  .header-phone { margin-left: auto; }

  .burger { display: flex; }

  .hero { padding: 120px 0 80px; }

  .hero-in { grid-template-columns: 1fr; gap: 44px; }

  .hero-gauge { width: min(100%, 400px); }

  .about-grid,
  .request-grid,
  .address-grid { grid-template-columns: 1fr; gap: 36px; }

  .contacts-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }

  .btn { white-space: normal; }

  .logo-img { height: 44px; max-width: 180px; }

  .hero-actions .btn { width: 100%; }

  .hero-chips { gap: 8px; }

  .form-card { padding: 24px 18px; }

  .form-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .map-wrap img,
  .map-fallback { min-height: 280px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 42px 32px; }

  .footer-bottom .container { flex-direction: column; }

  .hero-scroll { display: none; }
}

/* ---------- Доступность: отключение анимаций ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .in .gauge-needle,
  .hero-scroll,
  .form-success {
    transition: none !important;
    animation: none !important;
  }

  .reveal { opacity: 1; transform: none; }
  .in .gauge-needle { transform: rotate(108deg); }
}

