.dyp-home-services {
  color: #071228;
  background: #ffffff;
}

.dyp-home-services__inner {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: clamp(60px, 7vw, 82px) 0;
}

.dyp-home-services__header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.dyp-home-services__eyebrow {
  margin: 0 0 12px;
  color: #ff1493;
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dyp-home-services__title {
  margin: 0;
  color: #071228;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.dyp-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dyp-home-service-card {
  min-width: 0;
}

.dyp-home-service-card--pink {
  --dyp-service-accent: #ec007e;
  --dyp-service-shadow: rgba(236, 0, 126, 0.2);
}

.dyp-home-service-card--purple {
  --dyp-service-accent: #8b35ff;
  --dyp-service-shadow: rgba(139, 53, 255, 0.2);
}

.dyp-home-service-card--gold {
  --dyp-service-accent: #c98500;
  --dyp-service-shadow: rgba(201, 133, 0, 0.2);
}

.dyp-home-service-card__link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 100%;
  padding: 22px 24px;
  color: #071228;
  text-decoration: none;
  border: 2px solid var(--dyp-service-accent);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 18, 40, 0.06);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.dyp-home-service-card__icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--dyp-service-accent);
}

.dyp-home-service-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dyp-home-service-card__content {
  display: block;
}

.dyp-home-service-card h3 {
  margin: 0 0 7px;
  color: #071228;
  font-size: clamp(1.35rem, 1.8vw, 1.625rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.dyp-home-service-card p {
  margin: 0;
  color: #526077;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dyp-home-service-card__arrow {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--dyp-service-accent);
  font-size: 1.25rem;
  font-weight: 900;
}

.dyp-home-service-card__link:hover,
.dyp-home-service-card__link:focus-visible {
  box-shadow:
    0 18px 42px rgba(7, 18, 40, 0.1),
    0 0 24px var(--dyp-service-shadow);
  transform: translateY(-3px);
}

.dyp-home-service-card__link:focus-visible {
  outline: 3px solid #071228;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .dyp-home-services__grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .dyp-home-services__inner {
    width: min(100% - 32px, 1200px);
    padding: 56px 0;
  }

  .dyp-home-services__header {
    margin-bottom: 32px;
  }

  .dyp-home-services__title {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }

  .dyp-home-service-card__link {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .dyp-home-service-card__icon {
    width: 38px;
    height: 38px;
  }

  .dyp-home-service-card__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dyp-home-service-card__link {
    transition: none;
  }

  .dyp-home-service-card__link:hover,
  .dyp-home-service-card__link:focus-visible {
    transform: none;
  }
}
