.services {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 egy sorban */
  gap: 25px;
}

/* KÁRTYA */
.card {
  position: relative;
  width: 100%;
  height: 220px; /* KISEBB kell, hogy kiférjen */
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
}

/* KÉP */
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* HOVER */
.card:hover img {
  transform: scale(1.05);
}

/* OVERLAY */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.50);
  transition: background 0.4s ease;
  border-radius: inherit;
}

.card:hover::after {
  background: rgba(0, 0, 0, 0.6);
}

/* SZÖVEG */
.text {
  position: absolute;
  bottom: 20px;
  left: 15px;
  right: 15px;
  z-index: 1;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* RESZPONZÍV */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services {
    grid-template-columns: 1fr;
  }
}