/* АвтоПрайс — авто под заказ. Motion + catalog layout. */

:root {
  --bg: #07080c;
  --panel: #111318;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --muted: #9ca3af;
  --dock-h: 76px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: #f8fafc;
  padding-bottom: var(--dock-h);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.45) 0%, rgba(7, 8, 12, 0.78) 55%, #07080c 100%),
    radial-gradient(800px 400px at 70% 20%, rgba(34, 211, 238, 0.18), transparent 60%);
}

.hero-ken {
  animation: ken 22s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}

@keyframes ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.pulse-neon {
  animation: pulseNeon 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
}

@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.glass {
  background: rgba(17, 19, 24, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #0a0c11;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ticker-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
  padding: 8px 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #111318;
  border: 1px solid var(--line);
  padding: 6px 10px 6px 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.phone-pill .mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e11d48;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
}

.fly-num {
  position: absolute;
  font-weight: 800;
  color: rgba(34, 211, 238, 0.35);
  animation: fly 9s ease-in-out infinite;
  pointer-events: none;
  font-size: clamp(28px, 6vw, 72px);
  letter-spacing: -0.04em;
}

@keyframes fly {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(12px, -24px, 0);
    opacity: 0.55;
  }
}

.quiz-step {
  display: none;
  animation: fadeSlide 0.28s ease;
}

.quiz-step.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-card {
  border: 1px solid var(--line);
  background: #0c0e13;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
}

.choice-card.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

input[type="range"].budget-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee var(--fill, 40%), #1f2937 var(--fill, 40%));
  outline: none;
}

input[type="range"].budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22d3ee;
  border: 3px solid #06202a;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}

.price-old {
  text-decoration: line-through;
  color: #6b7280;
}

.tg-counter {
  font-variant-numeric: tabular-nums;
}

.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.field {
  background: #0b0d12;
  border: 1px solid var(--line);
}

.field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.globe-wrap {
  perspective: 900px;
}

.globe {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 28%),
    repeating-linear-gradient(90deg, #0b3d4a 0 12px, #082b34 12px 24px),
    radial-gradient(circle at 50% 50%, #22d3ee 0%, #083944 55%, #04151a 100%);
  box-shadow:
    inset -28px -18px 50px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(34, 211, 238, 0.25);
  animation: spinGlobe 18s linear infinite;
}

.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 18px,
    rgba(255, 255, 255, 0.06) 18px 19px
  );
  mix-blend-mode: overlay;
}

@keyframes spinGlobe {
  to {
    transform: rotate(360deg);
  }
}

.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.lot-card {
  min-width: min(78vw, 280px);
  scroll-snap-align: start;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.lot-card img {
  height: 168px;
  width: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

.badge.ok {
  background: #16a34a;
}

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.dock a {
  display: grid;
  place-items: center;
}

.dock .lead {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #fb7185);
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
  color: #071018;
  font-weight: 800;
  padding: 12px 10px;
  text-align: center;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock-h) + 16px);
  z-index: 49;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  color: #cbd5e1;
}

.cookie-bar.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-neon,
  .quiz-step,
  .hero-ken,
  .ticker-track,
  .globe,
  .fly-num,
  .dock .lead {
    animation: none;
  }
}
