/* «Ещё новости» не должны наезжать на sticky-сайдбар */
.article-more {
  position: relative;
  z-index: 1;
  isolation: isolate;
  clear: both;
}

.article-more__grid > .news-card {
  position: relative;
  z-index: 1;
}

.article-sidebar {
  position: sticky;
  top: 5rem;
  z-index: 2;
}

@media (max-width: 960px) {
  .article-layout {
    display: flex !important;
    flex-direction: column !important;
  }

  .article-main {
    order: 1 !important;
  }

  .article-sidebar {
    order: 2 !important;
    position: static !important;
  }

  .article-rail {
    order: 2 !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.article-rail {
  display: contents;
}
