.service-cards {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem 1.55rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 247, 0.88));
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 28, 36, 0.04);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  min-height: 100%;
  height: 100%;
}

.reveal .service-card,
.reveal.service-card {
  height: 100%;
}

.service-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card--link:hover,
.service-card--link:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  box-shadow: 0 18px 40px rgba(11, 28, 36, 0.1);
  outline: none;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f2730, #163640);
  color: var(--teal);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.service-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-align: right;
  max-width: 14ch;
  line-height: 1.3;
}

.service-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}

.service-card__cta {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.service-card--link:hover .service-card__cta {
  color: var(--teal-deep);
}

.service-cards--page {
  margin-top: 0;
}

@media (max-width: 640px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}
