.home-checks {
  margin: 4rem 0;
}

.home-checks__header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-checks__header h2 {
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}

.home-checks__header p {
  margin: 0;
}

.home-checks__grid {
  display: grid;
  grid-template-areas:
    "mechanical mechanical road"
    "documents driveability body";
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-check-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #dbe5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 51, 62, .07);
}

.home-check-card:nth-child(1) {
  grid-area: mechanical;
}

.home-check-card:nth-child(2) {
  grid-area: documents;
}

.home-check-card:nth-child(3) {
  grid-area: driveability;
}

.home-check-card:nth-child(4) {
  grid-area: body;
}

.home-check-card--wide {
  grid-area: road;
  background: #f4f8f2;
}

/*.home-check-card::after {*/
/*  position: absolute;*/
/*  inset: 0 0 auto;*/
/*  height: 4px;*/
/*  background: #48a62c;*/
/*  content: "";*/
/*}*/

.home-check-card__number {
  display: inline-flex;
  margin-bottom: 13px;
  color: #306386;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

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

.home-check-card p {
  margin: 0 0 14px;
  color: #526276;
  font-size: 13px;
  line-height: 1.5;
}

.home-check-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-check-card:nth-child(1) ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.home-check-card li {
  position: relative;
  padding: 9px 0 9px 23px;
  border-bottom: 1px dashed rgba(44, 51, 62, .18);
  color: #2c333e;
  font-size: 13px;
  line-height: 1.4;
}

.home-check-card li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #48a62c;
  color: #fff;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
}

.home-check-card li:last-child,
.home-check-card:nth-child(1) li:nth-last-child(2) {
  border-bottom: 0;
}

.home-check-card--wide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-check-card--wide .home-check-card__number {
  color: #0f4610;
}

.home-check-card--wide h3 {
  font-size: 22px;
}

.home-check-card--wide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.home-checks__assurance {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 24px;
  border-radius: 16px;
  background: #2c333e;
  color: #fff;
}

.home-checks__assurance img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.home-checks__assurance span {
  color: #91d37c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-checks__assurance h3 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.home-checks__assurance p {
  margin: 0;
  color: #ecf2ea;
  font-size: 14px;
  line-height: 1.5;
}

.home-checks__assurance a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: #48a62c;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .home-checks__grid {
    grid-template-areas:
      "mechanical mechanical"
      "road road"
      "documents driveability"
      "body body";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .home-checks__header {
    margin-bottom: 22px;
  }

  .home-checks__grid {
    grid-template-areas:
      "mechanical"
      "road"
      "documents"
      "driveability"
      "body";
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-check-card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .home-check-card:nth-child(1) ul {
    grid-template-columns: 1fr;
  }

  .home-check-card:nth-child(1) li:nth-last-child(2) {
    border-bottom: 1px dashed rgba(44, 51, 62, .18);
  }

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

  .home-check-card--wide h3 {
    font-size: 20px;
  }

  .home-checks__assurance {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 18px;
    border-radius: 14px;
  }

  .home-checks__assurance img {
    display: none;
  }

  .home-checks__assurance a {
    width: 100%;
  }
}
