.ab-cars-grid {
  display: grid;
  gap: var(--ab-grid-gap, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.ab-cars-grid.ab-cols-1 { grid-template-columns: 1fr; }
.ab-cars-grid.ab-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-cars-grid.ab-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-cars-grid.ab-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ab-car-card {
  position: relative;
}

.ab-car-media-wrap {
  position: relative;
  text-align: center;
  margin-bottom: -8px;
  z-index: 2;
}

.ab-car-image {
  width: min(100%, 360px);
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.22));
}

.ab-car-image-placeholder {
  min-height: 190px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dce2e8;
  color: #5b6470;
}

.ab-quick-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  background: #f7db00;
  color: #103b79;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 18px;
  white-space: nowrap;
}

.ab-car-content {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d6dbe3;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
  padding: 52px 18px 20px;
  text-align: center;
}

.ab-car-price {
  margin: 0;
  color: #164792;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
}

.ab-car-price span {
  font-size: 0.74em;
  font-weight: 700;
}

.ab-car-title {
  margin: 8px 0 0;
  color: #0b0f19;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.ab-car-subtitle {
  margin: 4px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.ab-car-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.ab-btn {
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  padding: 9px 16px 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 138px;
  min-height: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ab-btn:hover,
.ab-btn:focus {
  color: #fff;
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.ab-btn-contract { background: #143d77; }
.ab-btn-whatsapp { background: #41c24b; }

.ab-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
  line-height: 1;
  font-size: 24px;
}

.ab-btn-icon i {
  display: block;
  line-height: 1;
}

.ab-btn-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.ab-btn-text {
  display: inline-block;
  margin-left: 8px;
  letter-spacing: 0.005em;
  white-space: pre-line;
  text-align: left;
}

.ab-btn-whatsapp .ab-btn-text {
  line-height: 0.93;
}

.ab-car-plan,
.ab-car-km {
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 500;
}

.ab-car-km {
  margin-top: 2px;
}

@media (max-width: 1200px) {
  .ab-car-price { font-size: 19px; }
  .ab-car-title { font-size: 20px; }
  .ab-car-subtitle { font-size: 13px; }
  .ab-btn {
    font-size: 12px;
    min-width: 132px;
    padding: 9px 13px 9px 11px;
  }
  .ab-btn-icon { font-size: 22px; }
  .ab-car-plan,
  .ab-car-km { font-size: 12px; }
  .ab-quick-badge { font-size: 14px; }
}

@media (max-width: 900px) {
  .ab-cars-grid,
  .ab-cars-grid.ab-cols-3,
  .ab-cars-grid.ab-cols-4,
  .ab-cars-grid.ab-cols-2 { grid-template-columns: 1fr; }

  .ab-car-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ab-btn {
    width: 100%;
  }
}
