.news-page__filter-button {
  width: 100%;
  margin-block: 8px 20px;
}
.news-page__filter {
  flex-grow: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 6px;
}

.news-page__items {
  display: grid;
  align-items: start;
}

/* news-item */
.news-item {
  --image-opacity: 1;

  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.news-item__image-group {
  position: relative;
  height: 220px;
  background-color: var(--primary-0400);
}
.news-item__image-group img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: var(--image-opacity);
}
.news-item__image-group time {
  position: absolute;
  right: 0;
  bottom: 0;

  padding: 4px 0 0 6px;
  background-color: var(--neutral-0000);

  font-weight: 450;
  font-size: 14px;
  line-height: 16px;
  color: var(--neutral-0400);

}
.news-item__image-group time::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(100% - 1px);
  width: 11px;
  background-color: var(--neutral-0000);
  clip-path: polygon(calc(100% - 1px) 0, 100% 0, 100% 100%, 0% 100%);
}

.news-item__description {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--neutral-0500);
}
.news-item__description strong {
  font-weight: 650;
  color: var(--primary-0700);
}

/* docs */
.news-doc-item {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;

  display: flex;
  flex-direction: column;

  background-color: var(--neutral-0050);
  border-radius: 4px;

  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--neutral-0500);
}
.news-doc-item__title {
  font-weight: 650;
  color: var(--primary-0600);
}
.news-doc-item__description::after {
  content: '';
  display: inline-block;
  width: 100px;
}
.news-doc-item__format {
  position: absolute;
  right: 0;
  bottom: 0;

  padding: 6px 0 0 30px;
  background: url('../../images/i-download.svg') no-repeat 8px bottom var(--neutral-0000);
  font-weight: 450;
  font-size: 14px;
  line-height: 20px;
  color: var(--primary-0600);
}
.news-doc-item__format::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(100% - 1px);
  width: 14px;
  background-color: var(--neutral-0000);
  clip-path: polygon(calc(100% - 1px) 0, 100% 0, 100% 100%, 0% 100%);
}

@media (any-hover: hover) {
  .news-item:hover {
    --image-opacity: 0.8;
  }
  .news-doc-item:hover {
    background-color: var(--neutral-0075);
  }
}
@media (any-hover: none) {
  .news-item:active {
    --image-opacity: 0.8;
  }
  .news-doc-item:active {
    background-color: var(--neutral-0075);
  }
}

@media (width >= 1180px) {
  .news-page__filter-button {
    display: none;
  }
  .news-page__filter {
    gap: 4px;
  }

  .news-page__items {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
  }

  .news-item {
    margin-bottom: 48px;
  }

  .news-page__side-group {
    gap: 8px;
  }

  .news-page__filter-title {
    padding: 8px 12px;
    display: flex;
    background-color: var(--neutral-0075);
    border-radius: 4px 4px 0 0;

    font-weight: 450;
    font-size: 16px;
    line-height: 24px;
    color: var(--neutral-0800);
  }
  .news-page__filter-title button {
    display: none;
  }
  .news-page__filter {
    padding: 4px;
    border-radius: 0 0 4px 4px;
    border: 2px solid var(--neutral-0075);
  }

  .news-doc-item {
    margin-bottom: 16px;
    padding: 16px;
  }
}
