.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-animate.appear, .scroll-animate.is-visible, .scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.news-section {
  padding: 88px 32px 64px;
  background: #f4f4f4;
  line-height: 100%;
  font-weight: 400;
}

.news__container {
  display: flex;
  justify-content: space-between;
  max-width: 1302px;
  margin: 0 auto;
}
.news__header {
  position: relative;
}
.news__header span.scroll-animate {
  position: absolute;
  top: -16px;
  right: -28px;
  background-color: #ffffff;
  height: 27.3px;
  width: 27.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) rotate(-24deg);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.news__header span.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-24deg);
}
.news__header span.scroll-animate::after {
  content: attr(data-news-count);
  font-size: 11px;
  transform: rotate(24deg);
  line-height: 100%;
  color: #393C41;
  letter-spacing: 0;
}
.news__title {
  font-size: 80px;
  font-weight: 200;
  line-height: 100%;
  letter-spacing: 4px;
  margin: 0;
  padding-left: 24px;
}
.news__cards {
  width: 844px;
}
.news__buttons .btn--filled {
  max-width: 238px;
}

@media (max-width: 960px) {
  .news-section {
    padding: 48px 16px;
  }
  .news__container {
    flex-direction: column;
  }
  .news__header {
    margin-bottom: 40px;
  }
  .news__header span.scroll-animate {
    top: 0;
    right: 0;
    left: 158px;
    height: 25px;
    width: 25px;
    opacity: 0;
    transform: translateY(20px) rotate(-24deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .news__header span.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-24deg);
  }
  .news__title {
    font-size: 50px;
    padding-left: 0;
    letter-spacing: 2.5px;
  }
  .news__buttons .btn--filled {
    max-width: 208px;
    font-size: 14px;
  }
  .news__card-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 150%;
    overflow: hidden;
  }
  .news__card-title .text-rotate-wrapper {
    overflow: hidden;
  }
  .news__card-title .text-rotate-text {
    white-space: normal !important;
    word-wrap: break-word;
    width: 100%;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.8;
    height: auto;
  }
}