.related-articles {
  container-type: inline-size;
  max-width: 1120px;
  margin: 0 auto;
  color: #151c28;
  font-family: "Golos Text", system-ui, sans-serif;
}

.related-articles h2 {
  margin: 0 0 13px;
  color: inherit;
  font-size: clamp(1.15rem, 3.1cqw, 1.7rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-align: left;
}

.related-articles ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-articles li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.related-articles a.related-articles-card {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 108px;
  overflow: hidden;
  border-radius: 6px;
  background: #ebeffa;
  color: inherit;
  text-decoration: none;
}

.related-articles li:nth-child(even) .related-articles-card {
  background: #f0ece3;
}

.related-articles-card:focus-visible {
  outline: 3px solid #294acf;
  outline-offset: 2px;
}

.related-articles-title {
  padding: 11px 13px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.related-articles-card:hover .related-articles-title {
  text-decoration: underline;
}

.related-articles-cover {
  position: relative;
  align-self: stretch;
  background: #dce4f5;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.related-articles li:nth-child(even) .related-articles-cover {
  background: #e6dfd2;
}

.related-articles-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  visibility: hidden;
  object-fit: cover;
}

.related-articles-cover img.is-loaded {
  visibility: visible;
}

.related-articles-cover img.is-small {
  object-fit: scale-down;
  object-position: 43% center;
}

@container (max-width: 800px) {
  .related-articles ul {
    grid-template-columns: 1fr;
  }

  .related-articles a.related-articles-card {
    grid-template-columns: min(34%, 160px) minmax(0, 1fr);
    min-height: 86px;
  }
}
