.home-news {
  padding: 100px 0;
  background: var(--light-grey);
}

.home-news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 45px;
}

.home-news__heading {
  margin: 0;
  font-family: var(--font-family);
  font-size: 42px;
  font-weight: 500;
  line-height: 120%;
  color: var(--black);
}

.home-news__actions {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.home-news__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 303px;
  max-width: 100%;
  min-height: 52px;
  border-color: var(--red) !important;
}

.home-news__all:not(:hover) {
  background: transparent !important;
}

.home-news__navigation {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.home-news__navigation[hidden] {
  display: none;
}

.home-news__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}

.home-news__arrow:disabled {
  background: var(--grey-elements);
  color: var(--black);
  cursor: default;
}

.home-news__arrow:focus-visible,
.home-news__slider:focus-visible,
.home-news__all:focus-visible,
.news-card__button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.home-news__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.home-news__slider.keen-slider {
  gap: 0;
  scroll-snap-type: none;
}

.home-news__slide {
  display: flex;
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.home-news__slide.keen-slider__slide {
  flex: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  font-family: var(--font-family);
}

.news-card__image {
  flex-shrink: 0;
  width: 100%;
  height: 250px;
  margin-bottom: 16px;
  border-radius: 12px;
  background-color: var(--grey-elements);
}

.news-card__image.lazy-bg {
  background-size: cover;
  background-position: center;
}

.news-card__date {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  color: var(--grey);
}

.news-card__title {
  margin: 0 0 25px;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
  color: var(--black);
  overflow-wrap: anywhere;
}

.news-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  margin-top: auto;
  padding: 0 10px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.news-card__button:hover {
  background: var(--light-grey);
  color: var(--red);
}

@media screen and (max-width: 1023px) {
  .home-news__heading {
    font-size: 36px;
  }

  .home-news__slide {
    flex-basis: calc((100% - 55.5px) / 2.85);
  }

  .news-card__image {
    height: 198px;
  }

  .news-card__title {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .home-news {
    padding: 80px 0;
  }

  .home-news__header {
    margin-bottom: 30px;
  }

  .home-news__heading {
    font-size: 26px;
  }

  .home-news__arrow {
    width: 30px;
    height: 30px;
  }

  .home-news__slider:not(.keen-slider) {
    gap: 20px;
  }

  .home-news__slide {
    flex-basis: calc((100% - 17px) / 1.85);
  }

  .news-card__image {
    height: 178px;
    margin-bottom: 10px;
  }

  .news-card__date {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .news-card__title {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .news-card__button {
    padding: 0 8px;
  }
}
