/* TzsWeb – Szolgáltatások főoldal: a régi _comrep elrendezésének visszaállítása.
   Ez a fájl kizárólag a services/index.html oldalon töltődik be. */

.services-page .services-catalog {
  padding: 78px 0 96px;
  background: #fff;
}

.services-page .catalog-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 62px;
}

.services-page .catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

.services-page .catalog-card:hover,
.services-page .catalog-card:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.services-page .catalog-image-link {
  position: relative;
  height: 222px;
  display: block;
  overflow: visible;
  background: #e7ebf1;
}

.services-page .catalog-image-link::after {
  display: none;
}

.services-page .catalog-image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity .25s ease;
}

.services-page .catalog-card:hover .catalog-image-link img,
.services-page .catalog-card:focus-within .catalog-image-link img {
  transform: none;
  opacity: .94;
}

.services-page .catalog-card-icon {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -27px;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #3b7fd3;
  box-shadow: none;
  transform: translateX(-50%);
  transition: background .2s ease;
}

.services-page .catalog-card-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.7 19.3l-6.1-6.1a6.5 6.5 0 0 1-7.8-8.4l3.8 3.8 2.8-.7.7-2.8-3.8-3.8a6.5 6.5 0 0 1 8.4 7.8l6.1 6.1a2.5 2.5 0 0 1-3.5 3.5zM4.8 14.2l-3.5 3.5a2.5 2.5 0 0 0 3.5 3.5l3.5-3.5-3.5-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.7 19.3l-6.1-6.1a6.5 6.5 0 0 1-7.8-8.4l3.8 3.8 2.8-.7.7-2.8-3.8-3.8a6.5 6.5 0 0 1 8.4 7.8l6.1 6.1a2.5 2.5 0 0 1-3.5 3.5zM4.8 14.2l-3.5 3.5a2.5 2.5 0 0 0 3.5 3.5l3.5-3.5-3.5-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.services-page .catalog-card:hover .catalog-card-icon,
.services-page .catalog-card:focus-within .catalog-card-icon {
  background: #2f6fca;
  transform: translateX(-50%);
}

.services-page .catalog-card-body {
  min-height: 0;
  padding: 42px 15px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.services-page .catalog-card-body h2 {
  margin: 0 0 16px;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.services-page .catalog-card-body p {
  max-width: 330px;
  margin: 0 auto 26px;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.55;
}

.services-page .catalog-more {
  min-width: 86px;
  margin: auto auto 0;
  padding: 9px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border: 1px solid #cfd2d6;
  color: #555;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.services-page .catalog-more span {
  display: none;
}

.services-page .catalog-more:hover,
.services-page .catalog-more:focus-visible {
  border-color: #3b7fd3;
  color: #fff;
  background: #3b7fd3;
}

@media (max-width: 920px) {
  .services-page .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-page .services-catalog {
    padding: 52px 0 72px;
  }

  .services-page .catalog-grid {
    width: min(420px, calc(100% - 30px));
    grid-template-columns: 1fr;
    row-gap: 54px;
  }

  .services-page .catalog-image-link {
    height: 220px;
  }

  .services-page .catalog-card-body {
    padding-top: 40px;
  }
}

/* ===== TzsWeb Szolgáltatások – eredeti _comrep kártya hover animáció =====
   Csak a services/index.html szolgáltatáskártyáit érinti. */
.services-page .catalog-card-body {
  background: #fff;
  transition: background .28s ease, color .28s ease;
}

.services-page .catalog-card-body h2,
.services-page .catalog-card-body h2 a,
.services-page .catalog-card-body p {
  transition: color .28s ease;
}

.services-page .catalog-card:hover .catalog-card-body,
.services-page .catalog-card:focus-within .catalog-card-body {
  background: #222a55;
}

.services-page .catalog-card:hover .catalog-card-body h2,
.services-page .catalog-card:hover .catalog-card-body h2 a,
.services-page .catalog-card:hover .catalog-card-body p,
.services-page .catalog-card:focus-within .catalog-card-body h2,
.services-page .catalog-card:focus-within .catalog-card-body h2 a,
.services-page .catalog-card:focus-within .catalog-card-body p {
  color: #fff;
}

.services-page .catalog-card:hover .catalog-more,
.services-page .catalog-card:focus-within .catalog-more {
  border-color: rgba(255,255,255,.72);
  color: #fff;
  background: transparent;
}

.services-page .catalog-card:hover .catalog-more:hover,
.services-page .catalog-card:focus-within .catalog-more:focus-visible {
  border-color: #fff;
  color: #222a55;
  background: #fff;
}

/* Csak az aktív / kiválasztott kártya ikonja ugrál. */
.services-page .catalog-card:hover .catalog-card-icon,
.services-page .catalog-card:focus-within .catalog-card-icon {
  background: #3b7fd3;
  animation: tzs-services-icon-bounce 2s cubic-bezier(.34,1.2,.64,1) 1;
}

@keyframes tzs-services-icon-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  13% { transform: translateX(-50%) translateY(-11px); }
  25% { transform: translateX(-50%) translateY(3px); }
  38% { transform: translateX(-50%) translateY(-8px); }
  50% { transform: translateX(-50%) translateY(2px); }
  63% { transform: translateX(-50%) translateY(-5px); }
  75% { transform: translateX(-50%) translateY(1px); }
  88% { transform: translateX(-50%) translateY(-2px); }
}

/* Érintőképernyőn ne maradjon beragadva hover állapot. */
@media (hover: none) {
  .services-page .catalog-card:hover .catalog-card-body {
    background: #fff;
  }

  .services-page .catalog-card:hover .catalog-card-body h2,
  .services-page .catalog-card:hover .catalog-card-body h2 a,
  .services-page .catalog-card:hover .catalog-card-body p {
    color: inherit;
  }

  .services-page .catalog-card:hover .catalog-more {
    border-color: #cfd2d6;
    color: #555;
    background: #fff;
  }

  .services-page .catalog-card:hover .catalog-card-icon {
    animation: none;
  }
}

/* ===== Eredeti _comrep kártyamagasság finomhangolás =====
   Csak a Szolgáltatások kártyáinak alsó tartalmi részét érinti. */
.services-page .catalog-card-body {
  min-height: 230px !important;
  padding-bottom: 32px !important;
}

