/* ══════════════════════════════════════════
   МЕЖГОРОД36 — тёмный неон
   ══════════════════════════════════════════ */

:root {
  --bg:            #070a12;
  --bg-2:          #0b1020;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);
  --line:          rgba(255, 255, 255, .09);
  --line-hi:       rgba(255, 255, 255, .18);

  --text:          #eef1f7;
  --muted:         #93a0b8;
  --dim:           #64708a;

  --yellow:        #ffd400;
  --yellow-soft:   #ffe45c;
  --cyan:          #00e5ff;
  --violet:        #7c5cff;

  --radius:        18px;
  --radius-lg:     26px;
  --maxw:          1180px;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);

  --nav-h:         68px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 { font-family: 'Unbounded', 'Manrope', sans-serif; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--yellow); color: #000; }

/* ── Прелоадер ───────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease-out-expo), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; gap: 22px; justify-items: center; }
.preloader__car {
  width: 96px; color: var(--yellow);
  filter: drop-shadow(0 0 18px rgba(255, 212, 0, .5));
  animation: carBob 1s var(--ease-out-expo) infinite alternate;
}
@keyframes carBob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.preloader__bar {
  width: 180px; height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  animation: barRun 1.1s var(--ease-out-expo) infinite;
}
@keyframes barRun {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* ── Фон ─────────────────────────────── */
.particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .55;
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
  transition: width .1s linear;
}

/* ── Навигация ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 4vw, 32px);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.nav__logo-mark {
  width: 27px; height: 27px; flex: none;
  color: var(--yellow);
  filter: drop-shadow(0 0 9px rgba(255, 212, 0, .5));
  transition: transform .4s var(--ease-spring);
}
.nav__logo:hover .nav__logo-mark { transform: translateX(4px) rotate(-6deg); }
.nav__logo-text {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: .04em;
}
.nav__logo-text b { color: var(--yellow); }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav__links > a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out-expo);
}
.nav__links > a:hover { color: var(--text); }
.nav__links > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line-hi);
  font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s, color .3s;
}
.nav__cta svg { width: 16px; height: 16px; color: var(--yellow); }
.nav__cta:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 8px 30px rgba(255, 212, 0, .25);
}
/* Телефон внутри меню — только на мобильных */
.nav__links .nav__cta--mobile { display: none; }

.nav__burger {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease-out-expo), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Кнопки ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 99px;
  font-weight: 800; font-size: 15px; white-space: nowrap;
  position: relative; overflow: hidden;
  touch-action: manipulation;
  transition: transform .3s var(--ease-spring), box-shadow .35s, background .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: linear-gradient(120deg, var(--yellow), var(--yellow-soft));
  color: #0a0a0a;
  box-shadow: 0 8px 34px rgba(255, 212, 0, .3);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out-expo);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 46px rgba(255, 212, 0, .45); }
.btn--primary:active { transform: translateY(-1px) scale(.98); }
.btn--primary:disabled { opacity: .55; pointer-events: none; }

.btn--ghost {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-hi);
}
.btn--ghost svg { color: var(--yellow); }
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 10px 36px rgba(0, 229, 255, .22);
}
.btn--block { width: 100%; }
.btn--lg { padding: 19px 40px; font-size: 18px; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: .45; }
.btn.is-loading::after {
  content: ''; position: absolute; right: 20px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .25); border-top-color: #000;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Герой ───────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(16px, 5vw, 32px) 90px;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 12%, rgba(255, 212, 0, .16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 75%, rgba(124, 92, 255, .17) 0%, transparent 62%),
    radial-gradient(ellipse 50% 45% at 88% 65%, rgba(0, 229, 255, .13) 0%, transparent 62%);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -22px, 0) scale(1.06); }
}
.hero__road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(to top, #000, transparent);
}
.hero__road-line {
  position: absolute; bottom: 34px; left: -50%; width: 200%; height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--yellow) 0 42px, transparent 42px 96px);
  opacity: .32;
  animation: roadRun 1.6s linear infinite;
}
@keyframes roadRun { to { transform: translateX(-96px); } }

.hero__content { position: relative; z-index: 2; max-width: 980px; width: 100%; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; margin-bottom: 26px;
  border-radius: 99px; border: 1px solid var(--line-hi);
  background: var(--surface); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #2fe07a;
  box-shadow: 0 0 0 0 rgba(47, 224, 122, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 11px rgba(47, 224, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 224, 122, 0); }
}

.hero__title {
  font-size: clamp(2.1rem, 7vw, 5.1rem);
  font-weight: 800; margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  animation: wordUp .9s var(--ease-out-expo) forwards;
}
@keyframes wordUp { to { transform: translateY(0) rotate(0); opacity: 1; } }
.hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: .30s; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: .38s; }
.hero__title .line:nth-child(1) .word:nth-child(3) { animation-delay: .46s; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: .54s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: .62s; }

.hero__title .accent {
  position: relative;
  background: linear-gradient(100deg, var(--yellow) 0%, var(--yellow-soft) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 212, 0, .35));
}
.hero__title .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  animation: underline 1s var(--ease-out-expo) 1.2s forwards;
  box-shadow: 0 0 18px rgba(0, 229, 255, .6);
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__sub {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--muted); max-width: 660px; margin: 0 auto 36px;
}
.hero__sub b { color: var(--text); font-weight: 700; }

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 820px; margin: 0 auto;
}
.stat {
  padding: 18px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease-spring), border-color .35s, box-shadow .35s;
}
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 0, .5);
  box-shadow: 0 14px 40px rgba(255, 212, 0, .14);
}
.stat b {
  display: block; font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 800;
  color: var(--yellow); line-height: 1.1; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12px; color: var(--dim); line-height: 1.45; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: grid; gap: 9px; justify-items: center;
  color: var(--dim); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  animation: floatY 2.4s ease-in-out infinite;
}
@keyframes floatY { 50% { transform: translate(-50%, -9px); } }
.hero__scroll-mouse {
  width: 24px; height: 38px; border-radius: 99px;
  border: 2px solid var(--line-hi); position: relative;
}
.hero__scroll-mouse::after {
  content: ''; position: absolute; top: 7px; left: 50%;
  width: 3px; height: 7px; border-radius: 2px; background: var(--yellow);
  transform: translateX(-50%);
  animation: wheel 1.7s var(--ease-out-expo) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
.hero__scroll:hover { color: var(--text); }

/* ── Гоночная дорожка ─────────────────── */
.raceway {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: clamp(122px, 19vw, 168px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* наведение замораживает гонку — можно прочитать указатели */
.raceway:hover .raceway__signs-track,
.raceway:hover .raceway__dash,
.raceway:hover .rcar { animation-play-state: paused; }

/* — надорожные указатели — */
.raceway__signs {
  position: relative; flex: 0 0 40%; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 229, 255, .06), transparent);
}
.raceway__signs::before {   /* трос-эстакада */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-hi);
}
.raceway__signs-track {
  display: flex; align-items: flex-start; width: max-content;
  gap: clamp(22px, 5vw, 52px); padding-left: 40px;
  animation: signsRun 28s linear infinite;
}
@keyframes signsRun { to { transform: translateX(-50%); } }
.rsign {
  position: relative; margin-top: 11px;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 13px; border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, .28);
  background: rgba(0, 229, 255, .06);
  font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: clamp(10.5px, 1.4vw, 13px); color: var(--muted); white-space: nowrap;
}
.rsign::before {   /* подвес к тросу */
  content: ''; position: absolute; top: -11px; left: 50%;
  width: 2px; height: 11px; background: var(--line-hi);
}
.rsign i { font-style: normal; color: var(--yellow); font-size: .84em; }

/* — трасса — */
.raceway__road {
  position: relative; flex: 1 1 auto; overflow: hidden;
  background: linear-gradient(180deg, #14161f, #0a0b11);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), inset 0 -1px rgba(255, 255, 255, .03);
}
.raceway__dash {
  position: absolute; left: -10%; width: 120%; height: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(255, 212, 0, .5) 0 20px, transparent 20px 46px);
  animation: dashRun 1.1s linear infinite;
}
.raceway__dash--a { top: 33%; }
.raceway__dash--b { top: 63%; animation-duration: .92s; }
@keyframes dashRun { to { transform: translateX(-46px); } }

/* — машинки — */
.rcar {
  position: absolute; left: 0; top: 0;
  width: clamp(46px, 8vw, 62px);
  color: var(--yellow);
  will-change: transform;
  animation: race var(--dur, 5s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.rcar svg { display: block; width: 100%; height: auto; overflow: visible; }
.rcar__paint { fill: currentColor; }
.rcar__glass { fill: rgba(7, 10, 18, .58); }
.rcar__wheel { fill: #090c12; }
.rcar__hub   { fill: currentColor; opacity: .85; }
.rcar__beam  { fill: #fffbe6; }
/* шлейф позади */
.rcar::before {
  content: ''; position: absolute; top: 57%; right: 52%; width: 92%; height: 3px;
  border-radius: 3px;
  background: linear-gradient(270deg, currentColor, transparent);
  opacity: .5; filter: blur(1.4px);
}
/* свет фар впереди */
.rcar::after {
  content: ''; position: absolute; top: 40%; left: 80%; width: 52%; height: 40%;
  background: radial-gradient(ellipse at left center, rgba(255, 251, 225, .6), transparent 72%);
  opacity: .55; filter: blur(1.5px);
}
@keyframes race {
  from { transform: translateX(-90px); }
  to   { transform: translateX(calc(100vw + 60px)); }
}
.rcar--1 { color: var(--yellow);      top: 6%;  --dur: 5s;   --delay: -.3s; }
.rcar--2 { color: var(--cyan);        top: 39%; --dur: 3.4s; --delay: -1.6s; }
.rcar--3 { color: var(--violet);      top: 65%; --dur: 6s;   --delay: -3.2s; }
.rcar--4 { color: #eaf0ff;            top: 6%;  --dur: 4s;   --delay: -2.4s; }
.rcar--5 { color: var(--yellow-soft); top: 39%; --dur: 4.6s; --delay: -.9s; }

/* ── Секции ──────────────────────────── */
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) clamp(16px, 4vw, 32px);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__tag {
  display: inline-block; margin-bottom: 16px;
  padding: 6px 15px; border-radius: 99px;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(0, 229, 255, .07);
  color: var(--cyan); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.section__title { font-size: clamp(1.7rem, 4.6vw, 3.1rem); font-weight: 800; margin-bottom: 18px; }
.section__lead { color: var(--muted); font-size: clamp(.95rem, 1.8vw, 1.08rem); }

/* ── Тарифы ──────────────────────────── */
.tariffs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tariff {
  position: relative; isolation: isolate;
  padding: 30px 24px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out-expo), border-color .45s, box-shadow .45s;
}
.tariff__glow {
  position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 212, 0, .16), transparent 42%);
  opacity: 0; transition: opacity .45s;
}
.tariff:hover { border-color: rgba(255, 212, 0, .42); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.tariff:hover .tariff__glow { opacity: 1; }

.tariff--featured {
  border-color: rgba(255, 212, 0, .38);
  background: linear-gradient(180deg, rgba(255, 212, 0, .075), var(--surface) 55%);
}
.tariff__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 99px;
  background: linear-gradient(120deg, var(--yellow), var(--yellow-soft));
  color: #000; font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(255, 212, 0, .45);
}
.tariff__icon {
  width: 62px; height: 40px; margin-bottom: 18px; color: var(--yellow);
  transition: transform .5s var(--ease-spring), filter .4s;
}
.tariff__icon svg { width: 100%; height: 100%; }
.tariff:hover .tariff__icon {
  transform: translateX(8px);
  filter: drop-shadow(0 0 14px rgba(255, 212, 0, .6));
}
.tariff__name { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.tariff__price {
  font-family: 'Unbounded', sans-serif; color: var(--muted);
  font-size: .85rem; margin-bottom: 16px;
}
.tariff__price b {
  font-size: 2rem; color: var(--text); font-weight: 800;
  margin-right: 4px; font-variant-numeric: tabular-nums;
}
.tariff__desc { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.tariff__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.tariff__list li {
  position: relative; padding-left: 24px;
  font-size: .85rem; color: var(--dim);
}
.tariff__list li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 13px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.tariff__btn {
  margin-top: auto; padding: 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line-hi);
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .3s, border-color .3s, color .3s, gap .3s;
}
.tariff__btn:hover {
  background: var(--yellow); border-color: var(--yellow); color: #000; gap: 14px;
}
.tariffs__note {
  text-align: center; margin-top: 32px;
  font-size: .88rem; color: var(--dim);
  max-width: 620px; margin-inline: auto;
}

/* ── Калькулятор ─────────────────────── */
.section--calc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124, 92, 255, .1), transparent 70%);
}
.calc {
  display: grid; grid-template-columns: minmax(320px, .85fr) 1.15fr; gap: 20px;
  align-items: start;
}
.calc__form {
  padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(16px);
  display: grid; gap: 16px; position: relative;
}

.field { position: relative; display: grid; gap: 8px; }
.field > label { font-size: 12px; font-weight: 800; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.field__wrap { position: relative; display: flex; align-items: center; }
.field__dot {
  position: absolute; left: 16px; width: 9px; height: 9px; border-radius: 50%; z-index: 2;
}
.field__dot--a { background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 229, 255, .16); }
.field__dot--b { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 212, 0, .16); }
.field input {
  width: 100%; padding: 15px 40px 15px 38px;
  border-radius: 14px; border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, .04); color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus {
  outline: none; border-color: var(--cyan);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .13);
}
.field__clear {
  position: absolute; right: 8px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--dim); font-size: 20px; line-height: 1;
  display: none; place-items: center;
  transition: background .2s, color .2s;
}
.field__clear:hover { background: var(--surface-2); color: var(--text); }
.field.has-value .field__clear { display: grid; }

.field.is-loading .field__wrap::after {
  content: ''; position: absolute; right: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-hi); border-top-color: var(--cyan);
  animation: spin .7s linear infinite;
}

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  border-radius: 14px; border: 1px solid var(--line-hi);
  background: rgba(13, 18, 34, .97);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  max-height: 244px; overflow-y: auto;
  display: none;
}
.suggest.is-open { display: block; animation: dropIn .25s var(--ease-out-expo); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
.suggest li {
  padding: 11px 13px; border-radius: 9px; cursor: pointer;
  font-size: 14px; line-height: 1.35;
  transition: background .18s;
}
.suggest li b { display: block; font-weight: 700; }
.suggest li span { font-size: 12px; color: var(--dim); }
.suggest li:hover, .suggest li.is-active { background: rgba(0, 229, 255, .12); }
.suggest li.is-empty { cursor: default; color: var(--dim); text-align: center; }
.suggest li.is-empty:hover { background: none; }

.calc__swap {
  justify-self: end; z-index: 5;
  margin: -11px 6px -11px 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-hi); background: #10182c;
  display: grid; place-items: center;
  transition: transform .5s var(--ease-spring), border-color .3s, background .3s;
}
.calc__swap svg { width: 17px; height: 17px; }
.calc__swap:hover { transform: rotate(180deg); border-color: var(--cyan); background: #16203a; }

.classes { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.classes legend {
  padding: 0; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; color: var(--dim);
  letter-spacing: .1em; text-transform: uppercase;
}
.classes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.class-pick { position: relative; cursor: pointer; }
.class-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.class-pick__body {
  display: grid; gap: 3px; padding: 13px;
  border-radius: 13px; border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background .3s, transform .3s var(--ease-spring), box-shadow .3s;
}
.class-pick__body b { font-size: 14px; font-weight: 800; }
.class-pick__body i { font-style: normal; font-size: 12px; color: var(--dim); }
.class-pick:hover .class-pick__body { border-color: var(--line-hi); transform: translateY(-2px); }
.class-pick input:checked + .class-pick__body {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, .1);
  box-shadow: 0 8px 26px rgba(255, 212, 0, .16);
}
.class-pick input:checked + .class-pick__body i { color: var(--yellow); }
.class-pick input:focus-visible + .class-pick__body { outline: 3px solid var(--cyan); outline-offset: 2px; }

.extras { display: grid; gap: 11px; }
.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 42px; height: 24px; border-radius: 99px; flex: none;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line-hi);
  padding: 2px; transition: background .3s, border-color .3s;
}
.switch__knob {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--dim);
  transition: transform .35s var(--ease-spring), background .3s;
}
.switch input:checked + .switch__track { background: rgba(255, 212, 0, .25); border-color: var(--yellow); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(18px); background: var(--yellow); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--cyan); outline-offset: 2px; }
.switch__label { font-size: 13.5px; color: var(--muted); }
.switch__label i { font-style: normal; color: var(--yellow); font-weight: 700; }

.calc__err {
  margin: 0; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 86, 86, .1); border: 1px solid rgba(255, 86, 86, .35);
  color: #ff9a9a; font-size: 13px;
  animation: dropIn .25s var(--ease-out-expo);
}

.calc__result { display: grid; gap: 16px; }
.calc__map-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #0b1020;
  min-height: 330px;
}
.calc__map { position: absolute; inset: 0; }
.calc__map-hint {
  position: absolute; inset: 0; z-index: 400;
  display: grid; place-items: center; pointer-events: none;
  color: var(--dim); font-size: 13.5px; font-weight: 600;
  background: rgba(7, 10, 18, .55); backdrop-filter: blur(2px);
  transition: opacity .5s;
}
.calc__map-hint.is-hidden { opacity: 0; }

/* Leaflet под тёмную тему */
.leaflet-container { background: #0b1020; font-family: inherit; }
/* Тёмная карта из светлых OSM-тайлов: grayscale гасит зелень лесов,
   которую даёт голая инверсия. Русские подписи при этом сохраняются. */
.leaflet-tile-pane {
  filter: invert(1) grayscale(.82) brightness(.82) contrast(1.1) hue-rotate(185deg) saturate(1.4);
}
.leaflet-control-attribution {
  background: rgba(7, 10, 18, .8) !important;
  color: var(--dim) !important; font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a {
  background: #131b30 !important; color: var(--text) !important;
  border-color: var(--line-hi) !important;
}
.leaflet-bar a:hover { background: #1c2743 !important; }
.map-pin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid #0b1020;
}
.map-pin--a { background: var(--cyan); box-shadow: 0 0 0 5px rgba(0, 229, 255, .28); }
.map-pin--b { background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 212, 0, .28); }

.calc__out {
  padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(16px);
  display: grid; gap: 18px;
}
.calc__out-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__metric { display: grid; gap: 5px; }
.calc__metric span { font-size: 11px; color: var(--dim); letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.calc__metric b {
  font-family: 'Unbounded', sans-serif; font-size: 1.05rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calc__total {
  display: grid; gap: 4px; padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 212, 0, .3);
  background: linear-gradient(120deg, rgba(255, 212, 0, .1), rgba(0, 229, 255, .05));
  position: relative; overflow: hidden;
}
.calc__total::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
  transform: translateX(-100%);
}
.calc__total.is-fresh::after { animation: sweep 1.1s var(--ease-out-expo); }
@keyframes sweep { to { transform: translateX(100%); } }
.calc__total > span { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.calc__total b {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; color: var(--yellow);
  line-height: 1.1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(255, 212, 0, .35);
}
.calc__total i { font-style: normal; font-size: 12.5px; color: var(--dim); }

/* ── Направления ─────────────────────── */
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.route {
  position: relative; overflow: hidden;
  display: grid; gap: 4px; text-align: left;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease-out-expo), border-color .4s, background .4s, box-shadow .4s;
}
.route::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--yellow), var(--cyan));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease-out-expo);
}
.route:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  background: var(--surface-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.route:hover::before { transform: scaleY(1); transform-origin: top; }
.route__city { font-family: 'Unbounded', sans-serif; font-size: .98rem; font-weight: 600; }
.route__km { font-size: 12px; color: var(--dim); }
.route__price { font-size: .92rem; font-weight: 800; color: var(--yellow); margin-top: 5px; }
.route--far { border-color: rgba(255, 212, 0, .26); }
.route--far .route__city::after {
  content: 'дальний'; margin-left: 8px;
  font-family: 'Manrope', sans-serif; font-size: 9.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); vertical-align: middle;
}

/* ── Почему мы ───────────────────────── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__card {
  position: relative; overflow: hidden;
  padding: 30px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform .45s var(--ease-out-expo), border-color .45s, box-shadow .45s;
}
.why__card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0, 229, 255, .1), transparent 45%);
  opacity: 0; transition: opacity .45s;
}
.why__card:hover {
  border-color: rgba(0, 229, 255, .35);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .45);
}
.why__card:hover::after { opacity: 1; }
.why__num {
  font-family: 'Unbounded', sans-serif; font-size: 2.6rem; font-weight: 800;
  line-height: 1; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255, 212, 0, .85), rgba(255, 212, 0, .1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why__card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 10px; }
.why__card p { font-size: .89rem; color: var(--muted); }

/* ── Контакты ────────────────────────── */
.section--contacts::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 212, 0, .1), transparent 65%);
}
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.contact {
  position: relative; display: grid; gap: 6px;
  padding: 28px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-out-expo), border-color .4s, box-shadow .4s, background .4s;
}
.contact:hover {
  transform: translateY(-6px);
  border-color: var(--line-hi);
  background: var(--surface-2);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .5);
}
.contact--phone { border-color: rgba(255, 212, 0, .38); background: linear-gradient(180deg, rgba(255, 212, 0, .08), var(--surface) 60%); }
.contact--phone:hover { border-color: var(--yellow); box-shadow: 0 22px 60px rgba(255, 212, 0, .22); }
.contact__icon {
  width: 46px; height: 46px; margin-bottom: 10px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-hi);
  color: var(--yellow);
  transition: transform .45s var(--ease-spring), background .3s, color .3s;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact:hover .contact__icon { transform: scale(1.1) rotate(-7deg); background: var(--yellow); color: #000; }
.contact__label { font-size: 11.5px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.contact__value {
  font-family: 'Unbounded', sans-serif; font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 600; word-break: break-word;
}
.contact__go { font-size: 12.5px; color: var(--cyan); font-weight: 700; margin-top: 6px; }

.cta-band {
  position: relative; overflow: hidden;
  text-align: center; padding: clamp(38px, 6vw, 62px) 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 212, 0, .28);
  background: linear-gradient(120deg, rgba(255, 212, 0, .1), rgba(124, 92, 255, .09));
}
.cta-band__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(255, 212, 0, .3), transparent 65%);
  animation: glowDrift 9s ease-in-out infinite alternate;
}
.cta-band h3 { position: relative; font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { position: relative; color: var(--muted); margin-bottom: 26px; }
.cta-band .btn { position: relative; }

/* ── Подвал ──────────────────────────── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 18, .6);
  padding: 44px clamp(16px, 4vw, 32px) 34px;
}
.footer__top {
  max-width: var(--maxw); margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.footer__links, .footer__socials { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a, .footer__socials a {
  font-size: 13.5px; color: var(--muted); font-weight: 600;
  transition: color .25s;
}
.footer__links a:hover, .footer__socials a:hover { color: var(--yellow); }
.footer__note {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--dim); line-height: 1.6;
}

/* ── Плавающая кнопка звонка ─────────── */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: linear-gradient(120deg, var(--yellow), var(--yellow-soft));
  color: #000;
  box-shadow: 0 10px 34px rgba(255, 212, 0, .45);
  transform: translateY(120px);
  transition: transform .5s var(--ease-spring);
}
.call-fab.is-in { transform: translateY(0); }
.call-fab svg { width: 24px; height: 24px; position: relative; z-index: 2; }
.call-fab__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ── Появление при скролле ───────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease-out-expo), transform .75s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════ */

@media (max-width: 1080px) {
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .why     { grid-template-columns: repeat(2, 1fr); }
  .routes  { grid-template-columns: repeat(3, 1fr); }
  .calc    { grid-template-columns: 1fr; }
  .calc__map-wrap { min-height: 300px; }
}

@media (max-width: 860px) {
  .contacts { grid-template-columns: 1fr; }
  .routes   { grid-template-columns: repeat(2, 1fr); }

  .nav__burger { display: flex; }
  .nav > .nav__cta { display: none; }
  .nav__links .nav__cta--mobile { display: inline-flex; margin-top: 10px; }

  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px clamp(16px, 4vw, 32px) 26px;
    background: rgba(7, 10, 18, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .5s var(--ease-out-expo);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a {
    padding: 15px 0; font-size: 17px; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav__links > a::after { display: none; }
  .nav__cta--mobile { justify-content: center; border-bottom: 0 !important; }

  .call-fab { display: grid; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .tariffs { grid-template-columns: 1fr; }
  .why     { grid-template-columns: 1fr; }
  .routes  { grid-template-columns: 1fr; }
  .classes__grid { grid-template-columns: 1fr 1fr; }
  .calc__out-row { grid-template-columns: 1fr; gap: 10px; }
  .calc__metric { display: flex; align-items: baseline; justify-content: space-between; }
  .hero__actions .btn { width: 100%; }
  .calc__form { padding: 20px 16px; }
  .calc__map-wrap { min-height: 260px; }
  .raceway { height: clamp(100px, 27vw, 132px); }
  .rcar--4, .rcar--5 { display: none; }   /* меньше машин — легче телефону */
  .raceway__signs-track { animation-duration: 22s; }

  /* На узких экранах фон дешевле */
  .particles { display: none; }
  .tariff:hover, .why__card:hover, .contact:hover, .route:hover, .stat:hover { transform: none; }
}

/* ── Меньше движения ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { opacity: 1; transform: none; }
  .hero__title .accent::after { transform: scaleX(1); }
  .particles, .hero__road { display: none; }
  .call-fab { transform: none; }

  /* Гонку замораживаем статичным кадром: иначе глобальное обнуление
     анимаций «доигрывает» их до конца и машины улетают за правый край. */
  .raceway__signs-track, .raceway__dash, .rcar { animation: none !important; }
  .rcar--1 { transform: translateX(15vw); }
  .rcar--2 { transform: translateX(47vw); }
  .rcar--3 { transform: translateX(72vw); }
  .rcar--4 { transform: translateX(31vw); }
  .rcar--5 { transform: translateX(60vw); }
}
