.articles {
  overflow: hidden;
  padding: 64px 24px;
  background: #fff;
}

.articles__container {
  position: relative;
  max-width: var(--container-width);
  margin-inline: auto;
}

.articles__heading {
  padding-right: 300px;
  margin-bottom: 32px;
}

.articles__eyebrow,
.article-card__category {
  margin: 0;
  color: rgba(95, 45, 164, .8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.articles__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.articles__mobile-break {
  display: none;
}

.articles__slider {
  overflow: visible;
}

.articles__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.article-card {
  overflow: hidden;
  min-width: 0;
  height: auto;
  border-radius: 16px;
  background: #f4f5f5;
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card__link:focus-visible {
  outline-offset: -3px;
}

.article-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 482 / 280;
  object-fit: cover;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 152px;
  padding: 12px 20px 24px;
}

.article-card__title {
  margin: 4px 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  transition: color var(--motion-duration) var(--motion-easing);
}

.article-card__date {
  margin-top: auto;
  color: rgba(23, 20, 27, .6);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.03em;
}

.articles__pagination {
  display: none;
}

.articles__all {
  position: absolute;
  top: 8px;
  right: 0;
  min-height: 62px;
  padding: 19px 48px;
  border: 1px solid rgba(23, 20, 27, .1);
  background: #fff;
  color: rgba(23, 20, 27, .8);
}

@media (hover: hover) {
  .articles__all:hover {
    background: var(--color-brand-hover);
    color: #fff;
  }

  .article-card__link:hover .article-card__title {
    color: var(--color-brand);
  }
}

.articles__all:active {
  background: var(--color-brand-active);
  color: #fff;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .articles__title {
    font-size: 32px;
  }

  .article-card__title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .articles {
    padding: 32px 8px;
  }

  .articles__heading {
    padding: 0;
    margin-bottom: 16px;
  }

  .articles__eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .articles__title {
    font-size: 24px;
  }

  .articles__mobile-break {
    display: inline;
  }

  .articles__cards {
    display: flex;
    gap: 0;
  }

  .article-card {
    flex-shrink: 0;
    width: calc(100% - 20px);
    min-height: 301px;
    border-radius: 12px;
  }

  .article-card__image {
    aspect-ratio: 324 / 180;
  }

  .article-card__body {
    min-height: 121px;
    padding: 8px 12px 16px;
  }

  .article-card__category {
    font-size: 12px;
  }

  .article-card__title {
    min-height: 48px;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .article-card__date {
    font-size: 14px;
  }

  .articles__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-top: 8px;
  }

  .articles__bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .articles__bullet::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eaebeb;
  }

  .articles__bullet_active::before {
    width: 8px;
    height: 8px;
    background: var(--color-brand);
  }

  .articles__all {
    position: static;
    display: flex;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    padding: 17px 24px;
    font-size: 16px;
  }
}
