/* ============================================
   Список статей
   ============================================ */

.articles-list {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
}

.articles-list .container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  padding: 0 100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.articles-list-grid {
  display: flex;
  gap: 20px;
  align-items: start;
  flex-direction: column;
}

.article-card {
  display: flex;
  gap: 40px;
  border-radius: 5px;
  position: relative;
  overflow: visible;
  align-items: stretch;
  width: 100%;
}

.article-card-image {
  width: 250px;
  min-width: 250px;
  height: auto;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 5px;
}

.article-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
}

.article-date {
  font-weight: 400;
  font-size: 18px;
  text-align: left;
  color: #676767;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0;
}

.article-number {
  font-weight: 500;
  font-size: 18px;
  color: #152333;
  font-family: "Montserrat", sans-serif;
}

.article-current {
  color: #152333;
}

.article-total {
  color: rgba(21, 35, 51, 0.4);
}

.article-title {
  font-weight: 700;
  font-size: 22px;
  color: #152333;
  margin: 0 0 10px 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

.article-description {
  font-weight: 500;
  font-size: 16px;
  color: #152333;
  margin: 0 0 40px 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  outline: none;
}

.article-link:hover,
.article-link:focus {
  opacity: 0.8;
  outline: none;
}

.article-link:focus-visible {
  outline: none;
}

.article-link-text {
  font-weight: 600;
  font-size: 18px;
  color: #152333;
  font-family: "Montserrat", sans-serif;
  outline: none;
}

.article-link-text:hover,
.article-link-text:focus {
  outline: none;
}

.article-link-arrow {
  flex-shrink: 0;
}

.article-divider {
  grid-column: 1 / -1;
  width: 100%;
  height: 1.2px;
  background: rgba(145, 162, 184, 0.5);
  margin: 20px 0;
  border: none;
}

/* Планшет (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .articles-list .container {
    width: 95%;
    max-width: 95%;
    padding: 0 1.5rem; /* 24px */
  }

  .article-card-image {
    width: 300px;
    min-width: 300px;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .articles-list {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .articles-list .container {
    width: 100%;
    padding: 0 0.625rem; /* 10px */
    margin: 0;
  }

  .articles-list-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-card {
    flex-direction: column;
    gap: 20px;
  }

  .article-card-image {
    width: 100%;
    height: 355px;
    min-width: auto;
  }

  .article-card-header {
    margin-bottom: 20px;
  }

  .article-date {
    font-weight: 400;
    font-size: 14px;
    text-align: left;
    color: #152333;
  }

  .article-number {
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    align-self: flex-end;
  }

  .article-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .article-description {
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 30px;
  }

  .article-link-text {
    font-weight: 600;
    font-size: 14px;
  }

  .article-divider {
    margin: 20px 0;
  }
}
