.block--cards_visual .cards {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(calc(25% - 28px), 1fr));
}
.block--cards_visual .card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2fr 1fr;
  border-radius: 18px;
  overflow: hidden;
}
.block--cards_visual .card:hover .card__image {
  transform: scale(1.05);
}
.block--cards_visual .card:hover .card__icon svg g {
  transform: rotate(45deg);
}
.block--cards_visual .card:hover:before {
  opacity: 0;
}
.block--cards_visual .card__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}
.block--cards_visual .card__icon svg g {
  transform-origin: center;
  transition: transform 500ms cubic-bezier(0.2, 0.4, 0.5, 1);
}
.block--cards_visual .card__image {
  grid-column: 1/2;
  grid-row: 1/3;
  transition: transform 500ms cubic-bezier(0.2, 0.4, 0.5, 1);
}
.block--cards_visual .card__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.block--cards_visual .card__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  align-self: flex-end;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content;
  grid-column: 1/2;
  grid-row: 2/3;
  height: 100%;
  padding: 32px 24px;
}
.block--cards_visual .card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 68.41%, rgba(0, 0, 0, 0.8) 100%);
  transition: opacity 500ms cubic-bezier(0.2, 0.4, 0.5, 1);
}

@media (max-width: 940px) {
  .block--cards_visual .cards {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    gap: 16px;
    width: 100vw;
    margin: 0 -50vw;
    left: 50%;
    right: 50%;
    padding: 0 16px;
    z-index: 0;
  }
  .block--cards_visual .card {
    flex: 1 0 75%;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .block--cards_visual .card__content {
    padding: 24px 16px;
  }
}

/*# sourceMappingURL=block_cards_visual.css.map */
