/* Főoldal – 6 csempés szolgáltatás rács */

.page-home .home-services-grid {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  background: var(--hp-bg-alt, #f4f5f7);
}

.page-home .home-services-grid__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.page-home .home-services-grid__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-red, #ed171c);
}

.page-home .home-services-grid__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hp-graphite, #17191d);
}

.page-home .home-services-grid__lead {
  margin: 0.65rem 0 0;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--hp-text-muted, #626873);
}

.page-home .home-services-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

.page-home .home-service-tile {
  min-height: 100%;
}

.page-home .home-service-tile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 18px;
  background: var(--hp-surface, #fff);
  border: 1px solid var(--hp-border, rgba(23, 25, 29, 0.08));
  box-shadow: var(--hp-shadow-sm, 0 4px 20px rgba(23, 25, 29, 0.06));
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-home .home-service-tile__link:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 23, 28, 0.35);
  box-shadow: var(--hp-shadow, 0 12px 40px rgba(23, 25, 29, 0.1));
}

.page-home .home-service-tile__link:focus-visible {
  outline: 2px solid var(--hp-red, #ed171c);
  outline-offset: 3px;
}

.page-home .home-service-tile__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-graphite, #17191d);
  min-height: 2.6em;
}

.page-home .home-service-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: #0a0b0d;
}

.page-home .home-service-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.page-home .home-service-tile__link:hover .home-service-tile__media img {
  transform: scale(1.04);
}

.page-home .home-service-tile__desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--hp-text-muted, #626873);
}

.page-home .home-service-tile__more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-red, #ed171c);
}

.page-home .home-services-grid__cta {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  text-align: center;
  border-radius: 20px;
  background: var(--hp-graphite, #17191d);
  color: #fff;
  box-shadow: var(--hp-shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.15));
}

.page-home .home-services-grid__cta-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.page-home .home-services-grid__cta-lead {
  margin: 0.5rem auto 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-services-grid__cta-btn {
  border-radius: 999px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* Sötét mód */

.page-home.page-home--dark .home-services-grid {
  background: var(--hp-bg, #0f1114);
}

.page-home.page-home--dark .home-service-tile__link {
  background: var(--hp-surface, #1a1e24);
  border-color: var(--hp-border, rgba(255, 255, 255, 0.1));
}

.page-home.page-home--dark .home-service-tile__title {
  color: var(--hp-text, #e8eaed);
}

.page-home.page-home--dark .home-services-grid__cta {
  background: #0a0b0d;
  border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.1));
}

@media (max-width: 1024px) {
  .page-home .home-services-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-home .home-services-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-home .home-service-tile__link {
    padding: 0.85rem 0.75rem 1rem;
  }

  .page-home .home-service-tile__title {
    font-size: 0.9rem;
    min-height: auto;
    margin-bottom: 0.55rem;
  }

  .page-home .home-service-tile__desc {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }

  .page-home .home-service-tile__more {
    font-size: 0.75rem;
  }

  .page-home .home-service-tile__media {
    aspect-ratio: 4 / 3;
    margin-bottom: 0.65rem;
  }
}
