/* Services have their own grid, independent of the general .grid-3 breakpoints.
   The home block and catalog both keep three columns until a narrow phone view. */
#main .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  align-items: stretch;
}
#main .services-grid > .service-card {
  min-width: 0;
  width: auto;
  max-width: none;
}
#main .services-grid .card-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: #f3f6fa;
}
#main .services-grid .card-img img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
  filter: none;
}
#main .services-grid .card-body { overflow-wrap: anywhere; }
@media (min-width: 640px) and (max-width: 860px) {
  #main .services-grid { gap: 14px; }
  #main .services-grid .card-body { padding: 18px 15px; }
  #main .services-grid .card-body h3 { font-size: 1rem; }
}
@media (max-width: 639px) {
  #main .services-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
