.component-scope__bitrix--news-list--dokumenty.documents__items[hidden] {
  display: none !important;
}
section.documents {
  margin-bottom: 80px;
}
section.documents > .documents__heading {
  margin-bottom: 0;
}
section.documents > section.catalog-header-nav {
  margin-top: 60px;
  margin-bottom: 64px;
}
section.documents .component-scope__bitrix--news-list--dokumenty.documents__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 24px;
}
section.documents .component-scope__bitrix--news-list--dokumenty .documents-item {
  padding: 24px 28px;
  background: #FFFFFF;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 16px;
  font-family: var(--inter);
  color: var(--gray-light);
  line-height: 23.2px;
  transition: 200ms ease all;
}
section.documents .component-scope__bitrix--news-list--dokumenty .documents-item:hover {
  transform: scale(1.04);
}
section.documents .component-scope__bitrix--news-list--dokumenty .documents-item__preview {
  height: 380px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}
section.documents .component-scope__bitrix--news-list--dokumenty .documents-item__title {
  flex: 1;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 1199px) {
  section.documents > section.catalog-header-nav {
    margin-top: 10px;
    display: block;
    margin-bottom: 30px;
  }
  section.documents > section.catalog-header-nav .catalog-header-nav__item {
    margin-right: 32px;
  }
  .catalog-header-nav__item {
    font-size: 14px;
  }
  section.documents .component-scope__bitrix--news-list--dokumenty .documents-item__preview {
    height: 230px;
  }
}
@media screen and (max-width: 991px) {
  section.documents .component-scope__bitrix--news-list--dokumenty.documents__items {
    grid-template-columns: repeat(3, 1fr);
  }
  section.documents .component-scope__bitrix--news-list--dokumenty .documents-item {
    padding: 20px 15px;
  }
}
@media screen and (max-width: 767px) {
  
  section.documents .component-scope__bitrix--news-list--dokumenty.documents__items {
    grid-template-columns: repeat(2, 1fr);
  }
  section.documents .component-scope__bitrix--news-list--dokumenty .documents-item {
    font-size: 13px;
    line-height: 1.2;
  }
  section.documents .component-scope__bitrix--news-list--dokumenty .documents-item__preview {
    height: 150px;
  }
}
/* Две колонки должны помещаться и при длинных названиях с неразрывными пробелами. */
@media screen and (max-width: 560px) {
  section.documents > section.catalog-header-nav {
    display: flex;
    flex-direction: column;
  }
  section.documents > section.catalog-header-nav .catalog-header-nav__item {
    margin-right: unset;
    margin-bottom: 8px;
  }
}
@media screen and (max-width: 359px) {
  section.documents .component-scope__bitrix--news-list--dokumenty.documents__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  section.documents .component-scope__bitrix--news-list--dokumenty .documents-item__title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
