.block_cards {
  width: 100%;
  margin: 120px 0 140px 0;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.card {
  flex: 1 1 calc(33.333% - 20px);
  position: relative;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card__text {
  position: absolute;
  bottom: 0;
  background: rgba(64, 83, 99, 0.84);
  font-family: "EB-Garamond";
  font-size: 24px;
  font-weight: 500;
  color: white;
  padding: 10px 24px;
  width: 100%;
}

@media (max-width: 1100px) and (min-width: 991px) {
  .card__text {
    font-size: 20px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .card__text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    gap: 40px;
  }

  .card {
    flex: 1 1 100%;
  }
}