.benefits {
  background: #fff;
}

.benefits__heading {
  margin-bottom: 35px;
}

.benefits__heading h2 {
  margin: 0;
}

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

.benefit-card {
  position: relative;
  display: flex;
  min-height: 265px;
  overflow: hidden;
  border-radius: 16px;
  background: #292a2e;
  color: #fff;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.benefit-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, #292a2e 0%, #292a2ee8 42%, #292a2e18 80%);
}

.benefit-card__art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.benefit-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 29px 28px 25px;
}

.benefit-card h3 {
  max-width: 270px;
  margin: 0;
  color: #fff;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -1.1px;
}

.benefit-card p {
  max-width: 290px;
  margin: 0;
  color: #f3f5f9;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

@media (hover: hover) {
  .benefit-card:hover {
    z-index: 1;
    transform: translateY(-5px);
    box-shadow: 0 18px 35px #1c254333;
  }
}

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

@media (max-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 235px;
  }

  .benefit-card__content {
    padding: 25px 23px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card {
    transition: none;
  }
}
