
.care-hero--home {
  min-height: auto;
  padding: 0 24px;
  background: #007ce0;
  overflow: hidden;
}

.home-hero-stage {
  position: relative;
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
}

.hero-image--main {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.home-services {
  padding: 120px 24px 120px;
}

.home-services .section-title {
  margin-bottom: 58px;
}

.home-services .section-title h2 {
  font-size: 46px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px 24px;
}

body[data-hide-service-5="true"][data-hide-service-6="true"] .home-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

.home-service-card {
  --home-service-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 24px;
  border: 1px solid #e1ebfb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 80, 150, .03);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-service-card:hover,
.home-service-card:focus-within {
  border-color: #c5daf6;
  box-shadow: 0 14px 30px rgba(35, 80, 150, .07);
  transform: translateY(-2px);
}

.home-service-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  word-break: keep-all;
}

.home-service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 732;
  overflow: hidden;
  border-radius: var(--home-service-radius);
  background: #eef5ff;
  isolation: isolate;
}

.home-service-media img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.home-service-card p {
  width: min(100%, 320px);
  min-height: 48px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
  word-break: keep-all;
}

.home-service-card p:not(.home-service-kicker) {
  margin-bottom: 20px;
}

.home-service-card .home-service-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 28px;
  margin: 12px 0 2px;
  padding: 0 12px;
  border: 2px solid #2f6fcb;
  border-radius: 999px;
  color: #2f6fcb;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.home-service-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 28px;
  margin: auto auto 0;
  padding: 0 2px;
  border: 0;
  color: #2f6fcb;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  transition: color .18s ease;
}

.home-service-more::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(1px) rotate(45deg);
  transition: transform .18s ease;
}

.home-service-more:hover,
.home-service-more:focus {
  color: #174f9f;
  outline: 0;
}

.home-service-more:hover::after,
.home-service-more:focus::after {
  transform: translate(2px, 1px) rotate(45deg);
}

.service-detail-list {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 150px;
}

.service-detail {
  scroll-margin-top: 110px;
  padding-top: 46px;
  border-top: 1px solid #dce5f4;
}

.service-detail + .service-detail {
  margin-top: 64px;
}

.service-detail h2 {
  display: grid;
  gap: 8px;
  margin: 0 0 26px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}

.service-detail__number {
  display: block;
  color: #2e72cc;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.service-detail__name {
  display: block;
  min-width: 0;
}

.service-detail__content {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  align-items: start;
  gap: 52px;
}

.service-detail__content img {
  width: 100%;
  aspect-ratio: 1170 / 732;
  border-radius: 8px;
  object-fit: cover;
}

.service-detail__content ul {
  display: grid;
  max-width: 660px;
  margin: 0;
  padding: 4px 0 0;
  gap: 16px;
  list-style: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.42;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.service-detail__content li {
  position: relative;
  padding-left: 22px;
  text-wrap: balance;
}

.service-detail__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d76db;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    padding-top: 38px;
  }

  .service-detail + .service-detail {
    margin-top: 54px;
  }

  .service-detail__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail__content img {
    justify-self: center;
    max-width: 520px;
  }

  .service-detail__content ul {
    max-width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .home-page .care-hero--home {
    min-height: auto;
    padding: 0 18px;
  }

  .hero-image--main {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 560px) {
  .home-services {
    padding: 86px 20px 72px;
  }

  .home-services .section-title h2 {
    font-size: 34px;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  body[data-hide-service-5="true"][data-hide-service-6="true"] .home-service-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .home-service-card h3 {
    min-height: auto;
    font-size: 18px;
  }

  .home-service-card p {
    width: min(100%, 360px);
    min-height: auto;
    font-size: 15px;
    line-height: 1.58;
  }

  .home-service-more {
    font-size: 14px;
  }

  .service-detail-list {
    padding: 0 20px 90px;
  }

  .service-detail {
    scroll-margin-top: 88px;
    padding-top: 34px;
  }

  .service-detail + .service-detail {
    margin-top: 44px;
  }

  .service-detail h2 {
    gap: 6px;
    margin-bottom: 20px;
    font-size: 26px;
  }

  .service-detail__number {
    font-size: 13px;
  }

  .service-detail__content ul {
    gap: 12px;
    font-size: 17px;
    line-height: 1.48;
  }

  .service-detail__content li {
    padding-left: 18px;
  }
}
