.hmhomefeatureblocks {
  --hmblocks-text: #202024;
  --hmblocks-muted: #4f5359;
  --hmblocks-line: #202024;
  --hmblocks-gap: clamp(34px, 5.8vw, 94px);

  box-sizing: border-box;
  width: 100%;
  margin: 76px 0 80px;
  color: var(--hmblocks-text);
}

.hmhomefeatureblocks *,
.hmhomefeatureblocks *::before,
.hmhomefeatureblocks *::after {
  box-sizing: border-box;
}

.hmhomefeatureblocks__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.hmhomefeatureblocks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px var(--hmblocks-gap);
  align-items: stretch;
}

.hmhomefeatureblocks__block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  color: var(--hmblocks-text);
}

.hmhomefeatureblocks__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  object-fit: contain;
}

.hmhomefeatureblocks__title {
  margin: 0 0 18px;
  color: var(--hmblocks-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hmhomefeatureblocks__description {
  display: -webkit-box;
  margin: 0 0 38px;
  color: var(--hmblocks-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.hmhomefeatureblocks__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 246px);
  min-height: 38px;
  margin-top: auto;
  padding: 9px 20px;
  border: 1px solid var(--hmblocks-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hmblocks-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.hmhomefeatureblocks__button:hover,
.hmhomefeatureblocks__button:focus {
  border-color: #111;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.hmhomefeatureblocks__button:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .hmhomefeatureblocks__inner {
    padding: 0 38px;
  }

  .hmhomefeatureblocks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hmhomefeatureblocks__grid--count-3 .hmhomefeatureblocks__block:last-child {
    width: calc((100% - var(--hmblocks-gap)) / 2);
    justify-self: center;
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .hmhomefeatureblocks {
    margin: 54px 0 60px;
  }

  .hmhomefeatureblocks__inner {
    padding: 0 20px;
  }

  .hmhomefeatureblocks__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hmhomefeatureblocks__grid--count-3 .hmhomefeatureblocks__block:last-child {
    width: 100%;
    grid-column: auto;
  }

  .hmhomefeatureblocks__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .hmhomefeatureblocks__title {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .hmhomefeatureblocks__description {
    margin-bottom: 28px;
    -webkit-line-clamp: none;
  }

  .hmhomefeatureblocks__button {
    width: min(100%, 280px);
  }
}

@media (max-width: 420px) {
  .hmhomefeatureblocks__inner {
    padding: 0 16px;
  }

  .hmhomefeatureblocks__title {
    font-size: 25px;
  }

  .hmhomefeatureblocks__button {
    width: 100%;
  }
}
