/* ===== AUTO SHOWCASE ===== */

.auto-showcase {
  padding: 120px 20px;
  background: #fff;
}

.auto-showcase__inner {
  max-width: 1280px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

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

.auto-showcase__visual img {
  width: 100%;
  height: auto;
  display: block;
}

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

.auto-showcase__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auto-showcase__title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: center;
}

.auto-showcase__badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 48px;
  transition: background .2s ease;
}

.auto-showcase__badge:hover {
  background: #4f7cff;
}

/* ===== GRID ===== */

.auto-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;

  /* 🔒 ВАЖНО: даже если где-то глобально стоит justify-items:center — тут будет растяжение */
  justify-items: stretch;
  align-items: stretch;
}

/* ===== ITEM ===== */

.auto-item {
  /* 🔒 ВАЖНО: карточка всегда равна ширине своей grid-ячейки */
  width: 100%;
  box-sizing: border-box;

  background: #fff;
  border-radius: 22px;
  padding: 28px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  text-decoration: none;
  color: #000;

  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.auto-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.auto-item span {
  font-size: 16px;
  font-weight: 500;
  text-align: center;

  /* 🔒 чтобы длинные подписи не ломали ширину */
  max-width: 100%;
}

/* ===== ICONS (NORMALIZED) ===== */

.auto-item__icon {
  width: 56px;
  height: 56px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;

  flex-shrink: 0;
}

/* пути НЕ меняем */
.auto-item__icon.car   { background-image: url('../images/auto-categories/icon-car.svg'); }
.auto-item__icon.truck { background-image: url('../images/auto-categories/icon-truck.svg'); }
.auto-item__icon.moto  { background-image: url('../images/auto-categories/icon-moto.svg'); }
.auto-item__icon.parts { background-image: url('../images/auto-categories/icon-parts.svg'); }
.auto-item__icon.rent  { background-image: url('../images/auto-categories/icon-rent.svg'); }
.auto-item__icon.sto   { background-image: url('../images/auto-categories/icon-sto.svg'); }

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

@media (max-width: 900px) {

  .auto-showcase__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .auto-showcase__title {
    font-size: 40px;
  }

  .auto-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    justify-items: stretch;
    align-items: stretch;
  }
}

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

@media (max-width: 480px) {

  .auto-showcase {
    padding: 72px 8px;
  }

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

  .auto-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;

    justify-items: stretch;
    align-items: stretch;
  }

  .auto-item {
    width: 100%;
    box-sizing: border-box;

    padding: 30px 38px;
    min-height: 190px;
    border-radius: 30px;
  }

  .auto-item__icon {
    width: 72px;
    height: 72px;
    background-size: 80%;
  }

  .auto-item span {
    font-size: 17px;
  }
}