/* =========================
   DONATE PACKS + CARS + MODAL FIX
   ========================= */

/* Красивые донат-паки */
.money-packs-section {
  position: relative;
  padding: 110px 20px 100px;
  background: #111615;
  color: #fff;
  overflow: hidden;
}

.money-packs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(36, 94, 156, .45), transparent 28%),
    radial-gradient(circle at 100% 65%, rgba(36, 94, 156, .42), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.18));
  pointer-events: none;
}

.money-packs-decor {
  position: absolute;
  width: 120px;
  height: 210px;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 3px, transparent 4px);
  background-size: 34px 34px;
  opacity: .7;
}

.money-packs-decor--left {
  left: 28px;
  top: 210px;
}

.money-packs-decor--right {
  right: 28px;
  top: 45px;
}

.money-packs-container {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
}

.money-packs-head {
  margin-bottom: 52px;
}

.money-packs-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -1px;
  color: #fff;
}

.money-packs-title span {
  display: block;
  font-weight: 300;
}

.money-packs-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}

.money-packs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.money-pack-card {
  position: relative;
  min-height: 385px;
  padding: 32px 14px 24px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transition: .25s ease;
}

.money-pack-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,.065);
  border-color: rgba(36,94,156,.75);
  box-shadow: 0 35px 85px rgba(0,0,0,.35);
}

.money-pack-card--popular {
  border-color: rgba(36,94,156,.75);
}

.money-pack-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(-270deg, #245e9c 0%, #103f70 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.money-pack-name {
  min-height: 54px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.money-pack-name span {
  font-size: 17px;
  font-weight: 300;
}

.money-pack-amount {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(36,94,156,.95);
  white-space: nowrap;
  color: #fff;
}

.money-pack-image {
  position: relative;
  height: 145px;
  margin-top: -3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.money-pack-image img {
  max-width: 112%;
  max-height: 160px;
  object-fit: contain;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.money-img-gray {
  position: relative;
  z-index: 1;
  opacity: .92;
  filter: grayscale(1) drop-shadow(0 22px 18px rgba(0,0,0,.35));
}

.money-img-color {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  opacity: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 25px 22px rgba(0,0,0,.45));
}

.money-pack-card:hover .money-img-gray {
  opacity: 0;
  transform: scale(1.08);
}

.money-pack-card:hover .money-img-color {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.money-pack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(-270deg, #245e9c 0%, #103f70 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.money-pack-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(36,94,156,.35);
}

.money-packs-note {
  max-width: 980px;
  margin: 48px auto 0;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.55;
}

/* Машины под донат-паками */
.cars-showcase {
  position: relative;
  padding: 90px 20px 120px;
  background: #111615;
  color: #fff;
}

.cars-showcase-container {
  max-width: 1600px;
  margin: 0 auto;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.car-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #171b1a;
  transition: .25s ease;
}

.car-showcase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

.car-showcase-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #171b1a 0%, #191d1d 100%);
}

.car-showcase-image img {
  max-width: 82%;
  max-height: 200px;
  object-fit: contain;
  transition: .3s ease;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,.45));
}

.car-showcase-card:hover img {
  transform: scale(1.08);
}

.car-showcase-content {
  padding: 30px;
}

.car-showcase-content h3 {
  margin: 0;
  min-height: 78px;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}

.car-showcase-btn {
  width: 100%;
  height: 62px;
  margin-top: 26px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(-270deg, #245e9c 0%, #103f70 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.car-showcase-btn:hover {
  transform: scale(1.03);
}

/* Убираем "Купить донат" */
#trademc-buyform-container h2,
#trademc-buyform-container h3,
#trademc-buyform-container .trademc-buyform-title {
  display: none !important;
}

/* Красивый блок товара */
.selected-product-name {
  position: relative;
  width: 100%;
  min-height: 15px;
  margin: 2px;
  padding: 5px;
  background: linear-gradient(-270deg, #245e9c 0%, #103f70 45%);
  color: white;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(8px);
}

@media (max-width: 1300px) {
  .money-packs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .money-packs-section {
    padding: 80px 16px;
  }

  .money-packs-head {
    text-align: center;
  }

  .money-packs-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .money-packs-grid,
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .money-pack-card {
    min-height: 350px;
  }

  .money-packs-decor {
    display: none;
  }

  .car-showcase-image {
    height: 220px;
  }

  .car-showcase-content h3 {
    font-size: 22px;
  }
}
