.article-container {
  max-width: 900px;
  margin: 4em auto;
  padding: 0 1em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  color: #2a1a10;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.article-content {
  padding: 2.5em 2em;
}

.article-content h1 {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 1.2em;
  line-height: 1.2;
}

.article-text {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: #5a4a40;
}

.article-text p {
  margin: 1em 0;
}

.article-back {
  margin-top: 3em;
  text-align: left;
}

/* Ссылка без заливки */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: #FF9F72;
  border: 2px solid #FF9F72;
  transition: all .2s ease;
}

.btn-ghost:hover {
  background: #FF9F72;
  color: #fff !important;
}

/* =========================
   RELATED ARTICLES COMPACT
========================= */
.related-articles {
  max-width: 900px;        /* как у основной статьи */
  margin: 4em auto 6em;
  padding: 0 1em;
}

.related-articles h2 {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 0.5em;
  color: #2a1a10;
  text-align: left;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* всегда 2 колонки */
  gap: 1.5em;
}

.related-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: #2a1a10;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 120px;
}

.related-card.empty-card {
  visibility: hidden; /* пустая карточка для выравнивания */
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255,159,114,0.18);
}

.related-card img {
  width: 120px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.related-card-text {
  padding: 0.8em 1em;
}

.related-card-text h3 {
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  margin: 0 0 0.5em;
}

.related-card-text p {
  margin: 0;
  font-size: clamp(14px, 1vw, 15px);
  color: #5a4a40;
  line-height: 1.4;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.related-card img {
  width: 120px;            /* фиксированная ширина для компактной карточки */
  height: 120px;           /* фиксированная высота */
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px 0 0 8px; /* скругление только слева */
}

.related-card-text {
  padding: 0.8em 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* мобильные */
@media (max-width: 767px) {
  .article-list-container {
    grid-template-columns: 1fr; /* одна карточка на ряд */
  }
  .related-articles__grid {
    grid-template-columns: 1fr; /* одна карточка на ряд */
  }
}

/* =========================
   ARTICLE LIST
========================= */
.article-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4em 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2em;
}
.article-list-container {
  max-width: 900px;
  margin: 3em auto;
  padding: 0 1em;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: var(--ink);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255,159,114,0.18);
    text-decoration: none;
  color: var(--ink);
}

.article-card__content{
    padding: 2em 2em 2em 2em;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card__link {
  display: block;
  padding: 1em;
  text-decoration: none; /* убираем подчеркивание */
  color: var(--ink);     /* основной цвет текста */
}

.article-card__link h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  text-decoration: none;
}

.article-card__link p {
  margin: 0;
  color: #5a4a40;
  line-height: 1.4;
  text-decoration: none;
}

/* Мобильные устройства */
@media (max-width: 767px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}