.articles-list {
  display: flex;
  flex-direction: column; 
  gap: 25px;
}

/* карточка статьи */
.article-item {
  display: flex;
  flex-direction: column;

  background: var(--color-header);
  padding: 25px 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 20px rgba(0,0,0,0.12);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  border-color: var(--color-text);
}

/* заголовок статьи */
.article-item h2 {
  margin: 0 0 12px 0;
}

.article-title a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.25s ease;
  display: inline-block;
}

.article-title a::after,
.article-source a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-header), var(--color-text), var(--color-header));

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.article-title a:hover::after,
.article-source a:hover::after {
  transform: scaleX(1);
}

.article-title a:hover {
  color: var(--color-text);
}

.article-item h3 {
  margin: 0 0 12px 0;
  opacity: 0.7;
  border-left: 3px solid var(--color-border);
  padding-left: 10px;
  transition: border-color 0.25s ease;
}

.article-item:hover .article-authors {
  border-color: var(--color-text);
}

.article-item:hover .article-desc::after {
  background: linear-gradient(90deg, var(--color-header), var(--color-text), var(--color-header));
  opacity: 0.7;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.article-desc {
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  line-height: 1.55em;
  text-indent: 0px;
  position: relative;
}

.article-desc::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-border);
  margin-top: 10px;
  opacity: 0.35;
}

.article-keywords {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  line-height: 1.55em;
  opacity: 0.9;
  text-indent: 0;
  position: relative;
  padding-left: 12px;
  border-left: 3px solid var(--color-border);
  transition: border-color 0.25s ease;
}

.article-item:hover .article-keywords {
  border-color: var(--color-text);
}

.article-source {
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.85;
  text-indent: 0px;
}

.article-source a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.25s ease;
  display: inline-block;
}

.article-source a:hover {
  color: var(--color-text);
}

@media (max-width: 800px) {
  .article-item {
    padding: 18px 20px;
  }
  .article-title {
    font-size: 1.3rem;
  }
  .article-authors,
  .article-desc,
  .article-source {
    font-size: 0.9rem;
  }
}
