.home-services-3 {
  padding: 78px 0 96px;
  background: #ffffff;
}

.home-services-3__header {
  max-width: 1560px;
  margin: 0 auto 56px;
  text-align: center;
}

.home-services-3__eyebrow {
  margin: 0 0 16px;
  color: var(--color-primary-soft);
  font-family: var(--font-family-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-services-3__heading {
  margin: 0;
  color: #2e3139;
  font-family: var(--font-family-display);
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-services-3__divider {
  width: 590px;
  max-width: 100%;
  margin: 26px auto 28px;
  border-top: 4px dotted var(--color-dotted);
}

.home-services-3__description {
  margin: 0 auto;
  max-width: 1580px;
  color: #555861;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.34;
  font-weight: 500;
}

.home-services-3__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.home-services-3__card {
  min-height: 760px;
  padding: 42px 28px 34px;
  border-radius: 48px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(30, 38, 47, 0.16);
  display: flex;
  flex-direction: column;
}

.home-services-3__card.is-hidden {
  display: none;
}

.home-services-3__card-title {
  margin: 0;
  color: var(--color-primary-soft);
  font-family: var(--font-family-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.home-services-3__card-title a {
  color: inherit;
  text-decoration: none;
}

.home-services-3__card-divider {
  width: 100%;
  margin: 24px 0 18px;
  border-top: 4px dotted var(--color-dotted);
}

.home-services-3__card-body {
  color: #555861;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 500;
  flex: 1 1 auto;
}

.home-services-3__card-body p {
  margin: 0 0 26px;
}

.home-services-3__card-body p:last-child {
  margin-bottom: 0;
}

.home-services-3__card-link {
  margin-top: 22px;
  color: var(--color-primary-soft);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.home-services-3__actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.home-services-3__toggle {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: #faf7ee;
  padding: 18px 32px;
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(58, 71, 83, 0.14);
}

@media (max-width: 1200px) {
  .home-services-3__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-services-3__card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .home-services-3 {
    padding: 52px 0 62px;
  }

  .home-services-3__header {
    margin-bottom: 34px;
  }

  .home-services-3__eyebrow {
    font-size: 16px;
  }

  .home-services-3__heading {
    font-size: 38px;
  }

  .home-services-3__description {
    font-size: 18px;
  }

  .home-services-3__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-services-3__card {
    min-height: 0;
    border-radius: 34px;
    padding: 30px 22px 26px;
  }

  .home-services-3__card-title {
    font-size: 22px;
  }

  .home-services-3__card-body,
  .home-services-3__card-link,
  .home-services-3__toggle {
    font-size: 17px;
  }
}
