.home-services {
  background: #d8eef3;
  padding: 70px 24px 33px;
}

.home-services__heading {
  margin: 0 auto 58px;
  color: var(--home-services-heading-color, #00576a);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
}

.home-services__inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.home-services__card {
  position: relative;
  min-height: 293px;
  padding: 24px 18px 24px;
  border-radius: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 87, 106, 0.12);
}

.home-services__arrow {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00576a;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.home-services__arrow:hover {
  background: #003e4c;
  transform: scale(1.08);
}

.home-services__arrow svg {
  width: 24px;
  height: 24px;
}

.home-services__image {
  display: block;
  width: 100%;
  max-width: 181px;
  aspect-ratio: 181 / 137;
  border-radius: 24px;
  overflow: hidden;
  background: #d8eef3;
  transition: transform 0.25s ease;
}

.home-services__card:hover .home-services__image {
  transform: scale(1.02);
}

.home-services__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-services__body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.home-services__title {
  margin: 0;
  color: #00576a;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.home-services__title-link {
  color: #00576a !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.home-services__title-link:hover {
  color: #003e4c !important;
}

.home-services__desc {
  margin: 10px 0 0;
  color: #00576a;
  font-size: 13.5px;
  line-height: 1.28;
  font-weight: 400;
}

@media (max-width: 1199px) {
  .home-services__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .home-services__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 580px;
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .home-services {
    padding: 42px 16px 24px;
  }

  .home-services__heading {
    margin-bottom: 34px;
    font-size: 30px;
  }

  .home-services__inner {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 22px;
  }

  .home-services__card {
    min-height: 0;
    border-radius: 28px;
    padding: 24px 18px 20px;
  }
}
