/* =========================================================
   Geely Север — лендинг автосервиса
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: #26262a;
  --line-strong: #3a3a40;
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --accent: #ff5a1f;
  --accent-hover: #ff7440;
  --accent-soft: rgba(255, 90, 31, .12);

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1240px;
  --gutter: 40px;
  --header-h: 76px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --map-h: 500px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

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

.kicker {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

.arrow {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 1.6px;
  background: currentColor;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3.6px;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

.round-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, .45);
  color: var(--accent);
  transition: all .25s;
}
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.round-btn--light { border-color: var(--line-strong); color: var(--text); }

/* ---------- логотип ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__main {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
}
.logo__sub {
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .62em;
  color: var(--accent);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 12, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.is-scrolled { background: rgba(11, 11, 12, .94); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: #d4d4d8;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { font-family: var(--font-head); font-size: 14px; font-weight: 600; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  background: radial-gradient(120% 80% at 70% 30%, #1a1a1d 0%, var(--bg) 60%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, 0) 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 120px);
}
.hero__word {
  position: absolute;
  top: calc(var(--header-h) + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(120px, 21vw, 330px);
  line-height: .85;
  letter-spacing: -.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .14) 55%, rgba(255, 255, 255, 0) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, transparent 49.8%, rgba(255, 90, 31, .75) 50%, transparent 50.2%) 62% 0 / 55% 80% no-repeat,
    linear-gradient(20deg, transparent 49.85%, rgba(255, 90, 31, .45) 50%, transparent 50.15%) 100% 30% / 50% 70% no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  align-items: center;
  min-height: 600px;
  padding-top: 90px;
  padding-bottom: 40px;
}
.hero__title {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title span { color: var(--accent); }
.hero__text { color: #c7c7cc; max-width: 400px; margin-bottom: 30px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__car {
  position: relative;
  margin-right: calc(var(--gutter) * -1 - 20px);
  margin-left: 10px;
  margin-top: 40px;
}
.hero__car::after {                     /* тень и оранжевый отсвет под машиной */
  content: "";
  position: absolute;
  left: 6%;
  right: 4%;
  bottom: -2%;
  height: 16%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 90, 31, .28) 0%, rgba(0, 0, 0, .75) 45%, transparent 75%);
  filter: blur(8px);
}
.hero__car picture { display: block; }
.hero__car img { width: 100%; height: auto; animation: carIn 1.4s var(--ease) both; }
@keyframes carIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

.hero__play {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.35;
  z-index: 3;
}
.hero__play small { color: var(--muted); font-size: 11px; }
.hero__play-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: background .25s, color .25s;
}
.hero__play-icon svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero__play:hover .hero__play-icon { background: var(--accent); color: #fff; }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  padding: 30px 10px;
  background: rgba(22, 22, 24, .85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat__icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 10px; stroke-width: 1.5; }
.stat__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat__text { font-size: 12px; color: var(--muted); max-width: 190px; line-height: 1.45; }

/* ---------- секции ---------- */
.section { padding: 90px 0; }
.section--tight { padding-bottom: 0; }
.section--dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.section__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.section__note { max-width: 420px; font-size: 13px; color: var(--muted); }
.section__nav { display: flex; align-items: center; gap: 10px; }
.section__nav-label { font-size: 12px; color: #c7c7cc; margin-right: 8px; }

/* ---------- модели ---------- */
.models {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.models::-webkit-scrollbar { display: none; }
.model {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.model:hover { border-color: rgba(255, 90, 31, .5); transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
.model__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.model__img picture { display: block; width: 100%; height: 100%; }
.model__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.model:hover .model__img img { transform: scale(1.06); }
.model__glint {
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.model:hover .model__glint { animation: glint 1s var(--ease) forwards; }
@keyframes glint { to { left: 130%; } }

.model__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 20px;
}
.model h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.model p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.model__price { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--accent); }
.model__btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: all .25s;
}
.model__btn svg { width: 18px; height: 18px; }
.model:hover .model__btn { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- прайс ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: #c7c7cc;
  transition: all .25s;
}
.tab:hover { color: #fff; border-color: #6a6a72; }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.price { columns: 2; column-gap: 16px; }
.price__group {
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 22px 24px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: fadeUp .45s var(--ease);
}
.price__group.is-hidden { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.price__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.price__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.price__icon svg { width: 19px; height: 19px; }
.price__head h3 { flex: 1; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.price__num { font-family: var(--font-head); font-size: 12px; color: var(--muted); }

.price__table { width: 100%; border-collapse: collapse; }
.price__table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.price__table tr:last-child td { border-bottom: 0; }
.price__table td:first-child { color: #d4d4d8; }
.price__table td:last-child {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
}
.price__table tr:hover td:first-child { color: #fff; }

.price__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.price__foot p { max-width: 640px; font-size: 13px; color: var(--muted); }

/* ---------- почему мы / аккордеон ---------- */
.why__inner { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.why__text { color: #c7c7cc; margin-top: 18px; font-size: 14px; }

.acc { display: flex; flex-direction: column; gap: 10px; }
.acc__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s;
}
.acc__item.is-open { border-color: rgba(255, 90, 31, .4); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  text-align: left;
}
.acc__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.acc__icon svg { width: 20px; height: 20px; }
.acc__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.acc__title small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
}
.acc__plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc__plus::before,
.acc__plus::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.6px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0); }
.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.acc__body > p { overflow: hidden; padding: 0 20px 0 80px; font-size: 14px; color: #c7c7cc; }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__item.is-open .acc__body > p { padding-bottom: 18px; }

/* ---------- этапы работы ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(255, 90, 31, .45); }
.step__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: -webkit-text-stroke-color .3s;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--accent); }
.step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--surface);
}
.step__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.step__text { flex: 1; margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.step__tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.steps__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.steps__foot p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- форма записи ---------- */
.contact {
  position: relative;
  margin-top: 90px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left center;
  opacity: .55;
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 12, .3) 0%, var(--bg) 60%);
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 60px;
  align-items: center;
}
.contact__title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.1; text-transform: uppercase; margin-bottom: 16px; }
.contact__text { color: #c7c7cc; max-width: 400px; margin-bottom: 30px; }
.contact__perks { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.contact__perks li { display: flex; align-items: center; gap: 12px; font-size: 13px; max-width: 170px; line-height: 1.35; }
.perk-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  flex-shrink: 0;
}
.perk-icon svg { width: 18px; height: 18px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px;
  background: rgba(22, 22, 24, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form__input::placeholder { color: #7d7d85; }
.form__input:focus { border-color: var(--accent); }
.form__input.is-error { border-color: #e5484d; }
.form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: #d4d4d8;
}
.form__textarea { grid-column: 1 / -1; height: 100px; padding: 14px 16px; resize: vertical; }
.form__submit { grid-column: 1 / -1; justify-content: space-between; }
.form__agree { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
.form__agree input { margin: 2px 0 0; accent-color: var(--accent); }
.form__agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form__msg { grid-column: 1 / -1; min-height: 1.2em; font-size: 13px; color: var(--accent); }
.form--modal { grid-template-columns: 1fr; padding: 0; background: none; border: 0; }

/* ---------- карта с контактами ---------- */
.map { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); }
.map__frame { display: block; width: 100%; height: var(--map-h); border: 0; }
.map__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none; /* map stays draggable around the card */
}
.map__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 360px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-style: normal;
  pointer-events: auto;
}
.map__card .kicker { margin-bottom: 0; }
.map__row { display: flex; align-items: flex-start; gap: 14px; color: var(--text); font-size: 14px; line-height: 1.5; }
.map__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background .25s, color .25s;
}
.map__icon svg { width: 19px; height: 19px; }
.map__label { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
a.map__row:hover .map__icon { background: var(--accent); color: var(--text); }
a.map__row:hover .map__text { color: var(--accent); }
.map__text { transition: color .25s; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #080809; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 30px;
}
.footer__brand p { margin-top: 16px; font-size: 12px; color: var(--muted); max-width: 240px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #c7c7cc; }
.footer__col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background .25s;
}
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 30px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #6f6f77;
}

/* ---------- модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px 36px 30px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  transition: color .2s, transform .3s var(--ease);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { color: #fff; transform: rotate(90deg); }
.modal__title { font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.modal__text { font-size: 14px; color: #c7c7cc; margin-bottom: 22px; }
body.is-locked { overflow: hidden; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.step.reveal { transition: opacity .8s var(--ease), transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.model.reveal { transition: opacity .8s var(--ease), transform .4s var(--ease), border-color .3s, box-shadow .4s; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }

  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(11, 11, 12, .98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__link::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 60px; min-height: 0; }
  .hero__car { margin: 10px calc(var(--gutter) * -1) 0 0; }
  .hero__play { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .stat:nth-child(3) { border-left: 0; }

  .models { grid-auto-columns: calc((100% - 16px) / 2); }
  .price { columns: 1; }
  .why__inner { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .step:last-child { grid-column: 1 / -1; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .map { --map-h: 360px; }
  .map__inner { position: static; padding-top: 16px; padding-bottom: 24px; pointer-events: auto; }
  .map__card { max-width: none; box-shadow: none; }
  :root { --gutter: 16px; --header-h: 64px; }

  .header__cta { display: none; }
  .logo__main { font-size: 19px; }
  .hero__word { font-size: 31vw; top: calc(var(--header-h) + 14px); }
  .hero__inner { padding-top: 34vw; }
  .hero__buttons .btn { width: 100%; justify-content: space-between; }
  .stats { grid-template-columns: 1fr; padding: 22px 16px; row-gap: 0; }
  .stat { padding: 18px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 64px 0; }
  .section--tight { padding-bottom: 0; }
  .section__nav-label { display: none; }
  .models { grid-auto-columns: 84%; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 22px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .price__group { padding: 18px 16px 6px; }
  .price__table td { font-size: 13.5px; }
  .price__foot .btn { width: 100%; }

  .acc__head { padding: 14px 14px; gap: 14px; }
  .acc__body > p { padding-left: 14px; padding-right: 14px; }
  .acc__title { font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: block; top: 30px; bottom: 30px; left: 22px; right: auto; width: 1px; height: auto; background: var(--line-strong); }
  .step, .step:last-child { grid-column: auto; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 14px 0; background: none; border: 0; border-radius: 0; }
  .step:hover { transform: none; box-shadow: none; }
  .step__icon { grid-row: 1 / span 3; margin: 0; box-shadow: 0 0 0 6px var(--bg); }
  .step__num { top: 14px; right: 0; font-size: 22px; }
  .step__title { padding-right: 40px; font-size: 14px; }
  .step__text { margin-bottom: 10px; }
  .step__tag { justify-self: start; }
  .steps__foot .btn { width: 100%; justify-content: space-between; }

  .contact { margin-top: 64px; padding: 56px 0; }
  .form { grid-template-columns: 1fr; padding: 16px; }
  .form--modal { padding: 0; }
  .modal__dialog { padding: 36px 18px 24px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--social { grid-column: 1 / -1; }
}

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