.home-services {
  margin-bottom: 3.5rem;
}

.home-services__header {
  margin-bottom: 24px;
}

.home-services__header .home-section-intro {
  margin-bottom: 0;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e0e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 34, 56, .08);
}

.home-service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
}

.home-service-card + .home-service-card {
  border-left: 1px solid #d8e0e7;
}

.home-service-card > img {
  width: 100%;
  height: 180px;
  padding: 24px;
  object-fit: contain;
  background: linear-gradient(145deg, #f4f8f2, #e8f1e5);
}

.home-service-card > div {
  display: flex;
  min-height: 230px;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.home-service-card > div > span {
  color: #306386;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-service-card h3 {
  margin: 7px 0 9px;
  color: #172238;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.home-service-card p {
  margin: 0 0 18px;
  color: #526276;
  font-size: 13px;
  line-height: 1.55;
}

.home-service-card > div > a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  color: #22577a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-service-card > div > a i {
  color: #48a62c;
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease;
}

.home-service-card > div > a:hover i,
.home-service-card > div > a:focus i {
  transform: translateX(3px);
}

.home-services__footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.home-services__all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #48a62c;
  border-radius: 10px;
  background: #48a62c;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.home-services__all:hover,
.home-services__all:focus {
  background: #fff;
  color: #0f4610;
}

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

  .home-service-card + .home-service-card {
    border-left: 0;
  }

  .home-service-card:nth-child(even) {
    border-left: 1px solid #d8e0e7;
  }

  .home-service-card:nth-child(n + 3) {
    border-top: 1px solid #d8e0e7;
  }
}

@media (max-width: 575.98px) {
  .home-services {
    margin-bottom: 2.5rem;
  }

  .home-services__grid {
    grid-template-columns: 1fr;
    margin-right: -1rem;
    margin-left: -1rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-service-card:nth-child(even) {
    border-left: 0;
  }

  .home-service-card + .home-service-card {
    border-top: 1px solid #d8e0e7;
  }

  .home-service-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .home-service-card > img {
    width: 110px;
    height: 100%;
    min-height: 210px;
    padding: 15px;
  }

  .home-service-card > div {
    min-height: 210px;
    padding: 18px 16px;
  }

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

  .home-services__all {
    width: 100%;
  }
}
