/* ===== AUTO PROMO ===== */

.auto-promo {
  position: relative;
  background: #fff;
  padding: 120px 20px;
  overflow: hidden;
}

.auto-promo__inner {
  position: relative;
  z-index: 2; /* контент всегда поверх следа */

  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* ===== IMAGE ===== */

.auto-promo__image img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateX(-120%);
  will-change: transform;
}

.auto-promo.is-visible .auto-promo__image img {
  animation: car-in 1.2s ease-out forwards;
}

@keyframes car-in {
  to { transform: translateX(0); }
}

/* ===== CONTENT ===== */

.auto-promo__content {
  max-width: 520px;
}

/* ===== BADGE ===== */

.auto-promo__badge {
  display: inline-flex;
  align-items: center;
  height: 44px;
  gap: 12px;

  border: 2px solid #000;
  border-radius: 999px;
  padding: 0 16px;

  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 28px;
}

.auto-promo__badge a {
  display: inline-flex;
  align-items: center;
  height: 28px;

  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0 12px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}

.auto-promo__badge a:hover {
  background: #4471e2;
}

/* ===== TEXT ===== */

.auto-promo__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
}

.auto-promo__text {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 28px;
  color: #111;
}

/* ===== CTA ===== */

.auto-promo__cta span {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
}

.auto-promo__cta a {
  display: inline-block;
  border: 2px solid #4471e2;
  color: #4471e2;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.auto-promo__cta a:hover {
  background: #4471e2;
  color: #fff;
}

/* ===== TRACK (STATIC, ANGLED, UNDER NEXT BLOCK) ===== */

.auto-promo__track {
  position: absolute;
  z-index: 0; /* уходит под контент и под следующий блок */

  right: -340px;
  bottom: -460px;

  width: 780px;
  height: 780px;

  background: url('../images/auto-promo/track.svg') no-repeat center / contain;

  opacity: 0;
  pointer-events: none;

  transform:
    translate(260px, 260px)
    rotate(-32deg);

  transform-origin: center;
  will-change: transform, opacity;
}

.auto-promo.is-visible .auto-promo__track {
  animation: track-in 1.4s ease-out forwards;
  animation-delay: .45s;
}

@keyframes track-in {
  to {
    opacity: .22;
    transform:
      translate(0, 0)
      rotate(-32deg);
  }
}

/* ===== TABLET ===== */

@media (max-width: 1100px) {
  .auto-promo__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .auto-promo__content {
    max-width: 100%;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .auto-promo {
    padding: 64px 16px;
  }

  .auto-promo__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auto-promo__content {
    text-align: center;
  }

  .auto-promo__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .auto-promo__title {
    font-size: 32px;
  }

  .auto-promo__text {
    font-size: 16px;
  }

  .auto-promo__cta a {
    width: 100%;
    text-align: center;
  }

  .auto-promo__track {
    display: none; /* НЕТ СЛЕДА НА МОБИЛКЕ */
  }
}