.page-news .nav-list__link:hover {
  color: var(--text-dark);
}

.news-page {
  display: block;
  position: relative;
  padding-bottom: clamp(
    50px,
    calc(50px + (80 - 50) * ((100vw - 360px) / (768 - 360))),
    80px
  );
  background-color: var(--bg-light);
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .news-page {
    padding-bottom: clamp(
      80px,
      calc(80px + (110 - 80) * ((100vw - 768px) / (1280 - 768))),
      110px
    );
  }
}

@media (min-width: 1280px) {
  .news-page {
    padding-bottom: clamp(
      110px,
      calc(110px + (130 - 110) * ((100vw - 1280px) / (1920 - 1280))),
      130px
    );
  }
}

.news-page__top {
  position: relative;
  height: clamp(
    108px,
    calc(108px + (150 - 108) * ((100vw - 360px) / (768 - 360))),
    150px
  );
  background-color: var(--bg-primary);
}

@media (min-width: 768px) {
  .news-page__top {
    height: clamp(
      150px,
      calc(150px + (188 - 150) * ((100vw - 768px) / (1280 - 768))),
      188px
    );
  }
}

@media (min-width: 1280px) {
  .news-page__top {
    height: clamp(
      188px,
      calc(188px + (228 - 188) * ((100vw - 1280px) / (1920 - 1280))),
      228px
    );
  }
}

@media (min-width: 1920px) {
  .news-page__top {
    height: 228px;
  }
}

.news-page__content {
  padding: 22px 14px 60px;
}

@media (min-width: 768px) {
  .news-page__content {
    padding: 34px 18px 80px;
  }
}

@media (min-width: 1280px) {
  .news-page__content {
    padding: 42px 48px 100px;
  }
}

@media (min-width: 1920px) {
  .news-page__content {
    padding: 54px 322px 120px;
  }
}

.news-page__container {
  max-width: 1520px;
  margin: 0 auto;
}

.news-page__title {
  margin: 0;
  color: var(--text-dark);
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  line-height: 110%;
}

@media (min-width: 768px) {
  .news-page__title {
    font-size: 32px;
  }
}

@media (min-width: 1280px) {
  .news-page__title {
    font-size: 40px;
  }
}

@media (min-width: 1920px) {
  .news-page__title {
    font-size: 48px;
  }
}

.news-page__accent {
  margin: 18px 0 24px;
  color: var(--color-primary);
  font-family: "Sprite Graffiti", var(--font-family-h1);
  font-size: 44px;
  font-weight: 400;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .news-page__accent {
    margin: 28px 0 34px;
    font-size: 96px;
  }
}

@media (min-width: 1280px) {
  .news-page__accent {
    margin: 34px 0 38px;
    font-size: 146px;
  }
}

@media (min-width: 1920px) {
  .news-page__accent {
    margin-bottom: 42px;
    font-size: 170px;
  }
}

.news-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.news-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .news-filters {
    gap: 10px;
    margin-bottom: 38px;
  }
}

@media (min-width: 1280px) {
  .news-filters {
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
  }
}

.news-filters__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border: 0;
  border-radius: 14px;
  background-color: #ececec;
  color: #969696;
  padding: 11px 18px;
  font-family: var(--font-family-button);
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (min-width: 768px) {
  .news-filters__button {
    padding: 12px 22px;
    font-size: 15px;
  }
}

@media (min-width: 1280px) {
  .news-filters__button {
    border-radius: 16px;
    padding: 12px 26px;
    font-size: 16px;
  }
}

.news-filters__button--active {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.news-filters__button:hover {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.news-listing__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .news-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (min-width: 1280px) {
  .news-listing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (min-width: 1920px) {
  .news-listing__grid {
    gap: 28px 20px;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.news-card__image-link {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 1280px) {
  .news-card__image-link {
    border-radius: 24px;
  }
}

.news-card__image {
  display: block;
  width: 100%;
  height: clamp(
    178px,
    calc(178px + (276 - 178) * ((100vw - 360px) / (768 - 360))),
    276px
  );
  object-fit: cover;
}

@media (min-width: 768px) {
  .news-card__image {
    height: clamp(
      220px,
      calc(220px + (254 - 220) * ((100vw - 768px) / (1280 - 768))),
      254px
    );
  }
}

@media (min-width: 1280px) {
  .news-card__image {
    height: clamp(
      216px,
      calc(216px + (286 - 216) * ((100vw - 1280px) / (1920 - 1280))),
      286px
    );
  }
}

.news-card__badge {
  position: absolute;
  top: 16px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 8px 14px;
  font-family: var(--font-family-button);
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
}

@media (min-width: 1280px) {
  .news-card__badge {
    top: 18px;
    left: 16px;
  }
}

.news-card__meta {
  margin-top: 12px;
  color: #a6a6a6;
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
}

.news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

@media (min-width: 768px) {
  .news-card__meta {
    margin-top: 18px;
    font-size: 16px;
  }
}

.news-card__title {
  margin: 12px 0 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 0.98;
}

.news-card__title a {
  display: -webkit-box;
  color: var(--text-dark);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 1.96em;
}

@media (min-width: 768px) {
  .news-card__title {
    margin-top: 16px;
    font-size: 32px;
  }
}

@media (min-width: 1280px) {
  .news-card__title {
    font-size: 26px;
  }
}

@media (min-width: 1920px) {
  .news-card__title {
    font-size: 28px;
  }
}

.news-card__text {
  display: -webkit-box;
  margin: 0;
  color: #444444;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.4em;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

@media (min-width: 1280px) {
  .news-card__text {
    font-size: 14px;
  }
}

@media (min-width: 1920px) {
  .news-card__text {
    font-size: 16px;
  }
}

.news-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border-radius: 12px;
  background-color: var(--color-primary);
  color: var(--text-light);
  font-family: var(--font-family-button);
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .news-card__button {
    min-height: 54px;

    border-radius: 16px;
    font-size: 16px;
  }
}

.news-card__button:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .news-pagination {
    gap: 24px;
    margin-top: 36px;
  }
}

.news-pagination__item,
.news-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 48px;
  color: var(--text-dark);
  font-family: var(--font-family-button);
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
}

.news-pagination__item--active {
  width: 40px;
  border-radius: 14px;
  background-color: var(--color-primary);
  color: var(--text-light);
}

@media (min-width: 768px) {
  .news-pagination__item--active {
    width: 48px;
  }
}

.news-pagination__next {
  position: relative;
  display: block;
  width: 34px;
  height: 48px;
}

.news-pagination__next::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--text-dark);
  border-right: 2px solid var(--text-dark);
  content: "";
  transform: translate(-70%, -50%) rotate(45deg);
}

.news-pagination__prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.news-listing.loading {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
