.home-services {
  padding: 78px 0 88px;
  background: #f6f7f9;
}

.home-services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.home-services-heading p {
  margin: 0 0 8px;
  color: #c92518;
  font-size: 14px;
  font-weight: 700;
}

.home-services-heading h2 {
  margin: 0;
  color: #17202c;
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.home-services-heading > a {
  flex: none;
  color: #c92518;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.home-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  padding: 27px 28px 24px;
  border: 1px solid #e2e5e9;
  border-top: 3px solid #ec3323;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 32, 49, .04);
}

.home-service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 19px;
  background: #fff0ee;
  color: #d52b1e;
  font-size: 22px;
}

.home-service-card h3 {
  margin: 0 0 10px;
  color: #17202c;
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.home-service-card p {
  margin: 0 0 20px;
  color: #586779;
  font-size: 14px;
  line-height: 1.6;
}

.home-service-card > a {
  align-self: start;
  margin-top: auto;
  color: #c92518;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-service-card a:hover,
.home-service-card a:focus-visible,
.home-services-heading > a:hover,
.home-services-heading > a:focus-visible {
  color: #981d14;
}

.home-service-card a:focus-visible,
.home-services-heading > a:focus-visible {
  outline: 2px solid #ec3323;
  outline-offset: 4px;
}

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

@media (max-width: 575px) {
  .home-services { padding: 56px 0 64px; }
  .home-services-heading { display: block; margin-bottom: 24px; }
  .home-services-heading > a { display: inline-block; margin-top: 12px; }
  .home-service-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-service-card { min-height: 0; padding: 23px 22px; }
}
