.vehicles__heading {
  margin-bottom: 24px;
  font-size: 45px;
  font-weight: 800;
}

.vehicles__slider-wrap {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.vehicles__nav {
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 40px; /* pagination height, centres the arrow on the cards */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  transition: opacity var(--transition);
}

.vehicles__nav:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .vehicles__nav {
    margin-bottom: 32px;
  }
}

.vehicles__swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 20px var(--slider-gap) 40px;
  margin: -20px calc(var(--slider-gap) * -1) 0;
}

.vehicles__nav {
  position: relative;
  z-index: 3;
}

.vehicles__swiper .swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

.vehicle-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 550px;
}

.vehicle-card__img-wrap {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 360 / 270;
}

.vehicle-card__img-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vehicle-card .vehicle-card__img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .vehicle-card:hover .vehicle-card__img {
    transform: scale(1.05);
  }
}

.vehicle-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: #d9d9d9;
}

.vehicle-card__price {
  position: absolute;
  bottom: 0;
  right: 12px;
  transform: translateY(50%);
  background: var(--bg-blue);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  width: 130px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  white-space: nowrap;
  z-index: 1;
}

.vehicle-card__body {
  padding: 30px 25px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.vehicle-card__title {
  font-size: 35px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.vehicle-card__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.vehicle-card__spec {
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  font-size: 16px;
}

.vehicle-card__spec-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  align-self: start;
  margin-top: 2px;
}

.vehicle-card__spec-label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-weight: 800;
  color: var(--text-main);
}

.vehicle-card__spec-value {
  grid-column: 2;
  grid-row: 2;
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.vehicle-card__btn {
  flex-shrink: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicles__pagination {
  margin-top: 24px;
  text-align: center;
}

.vehicles__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border);
  opacity: 1;
  border-radius: 50%;
  transition: background var(--transition);
}

.vehicles__pagination .swiper-pagination-bullet-active {
  background: var(--yellow);
}

@media (max-width: 768px) {
  .vehicle-card {
    min-height: unset;
  }

  .vehicle-card__body {
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .vehicles {
    padding: 38px 0 30px;
  }

  .vehicles__heading {
    margin-bottom: 18px;
  }

  .vehicles__swiper {
    padding: 20px 20px 32px;
    margin: -20px -20px 0;
  }

  .vehicle-card {
    border-radius: 12px;
    min-height: 0;
  }

  .vehicle-card__img-wrap {
    aspect-ratio: 360 / 270;
  }

  .vehicle-card__price {
    width: 112px;
    height: 30px;
    right: 10px;
    font-size: 11px;
    border-radius: 8px;
  }

  .vehicle-card__body {
    padding: 24px 18px 16px;
    gap: 10px;
  }

  .vehicle-card__title {
    font-size: 20px;
  }

  .vehicle-card__specs {
    gap: 7px;
  }

  .vehicle-card__spec {
    font-size: 12px;
    grid-template-columns: 18px 1fr;
    column-gap: 7px;
  }

  .vehicle-card__spec-icon {
    width: 15px;
    height: 15px;
  }

  .vehicle-card__btn {
    height: 42px;
    font-size: 13px;
  }
}
