/* ---------- Статьи: список ---------- */
.articles-section .section__head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.articles-intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.article-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(35, 27, 27, 0.12);
  border-color: var(--accent-light);
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blush);
}
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card__media img { transform: scale(1.05); }

.article-card__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.article-card__content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.article-card__meta .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.article-card__title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 12px;
}
.article-card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.article-card__title a:hover {
  background-size: 100% 2px;
}
.article-card__excerpt {
  color: var(--ink-light);
  line-height: 1.6;
  font-size: 0.96rem;
  margin: 0 0 20px;
  flex: 1;
}
.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.article-card__more .arrow {
  transition: transform 0.25s var(--ease);
}
.article-card__more:hover .arrow { transform: translateX(5px); }

/* ---------- Статья: hero ---------- */
.article-hero {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.article-hero__back:hover { color: var(--accent); }
.article-hero__back .arrow { transition: transform 0.25s var(--ease); }
.article-hero__back:hover .arrow { transform: translateX(-5px); }

.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-hero__meta .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.article-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.article-hero__tag {
  background: var(--accent-light);
  color: var(--accent-deep);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.article-hero__title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.article-hero__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush);
}
.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Статья: тело ---------- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 20px;
  color: var(--ink-light);
  font-size: 1.06rem;
  line-height: 1.75;
}
.article-body p { margin: 0 0 24px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body > p:first-child {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
}
.article-body > p:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  margin: 44px 0 18px;
  padding-left: 18px;
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.article-body h3 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 1.22rem;
  margin: 32px 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body ul li {
  padding-left: 28px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body ol {
  counter-reset: article;
}
.article-body ol li {
  padding-left: 34px;
  position: relative;
  counter-increment: article;
}
.article-body ol li::before {
  content: counter(article);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: 'Libre Caslon Text', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent-light);
  border-radius: 50%;
}

.article-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-color: var(--accent); }

/* ---------- Статья: CTA ---------- */
.article-cta {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 40px 44px;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.article-cta p {
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 460px;
  line-height: 1.6;
}
.article-cta .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Статья: читайте также ---------- */
.article-more {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 20px;
}
.article-more__head {
  text-align: center;
  margin-bottom: 32px;
}
.article-more__head .eyebrow { margin-bottom: 10px; }
.article-more__head h2 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0;
}

@media (max-width: 720px) {
  .articles-section .section__head { margin-bottom: 28px; }
  .articles-intro { margin-bottom: 30px; font-size: 1rem; line-height: 1.62; }
  .articles-grid { gap: 20px; grid-template-columns: 1fr; }
  .article-card__media { aspect-ratio: 16 / 10; }
  .article-card__content { padding: 18px 20px 20px; }
  .article-card__title { font-size: 1.2rem; line-height: 1.3; }
  .article-card__excerpt { font-size: 0.92rem; }
  .article-card__chip { top: 10px; left: 10px; font-size: 0.65rem; padding: 5px 11px; }

  .article-hero { margin-bottom: 32px; padding: 0 16px; }
  .article-hero__back { margin-bottom: 20px; }
  .article-hero__title { font-size: 1.65rem; line-height: 1.18; margin-bottom: 24px; }
  .article-hero__meta { font-size: 0.72rem; gap: 8px; }
  .article-hero__tags { gap: 6px; margin-top: 14px; }
  .article-hero__tag { font-size: 0.66rem; padding: 5px 11px; }

  .article-body { padding: 0 16px 12px; font-size: 1rem; line-height: 1.68; }
  .article-body p { margin-bottom: 20px; }
  .article-body > p:first-child { font-size: 1.06rem; margin-bottom: 24px; }
  .article-body h2 { margin: 34px 0 14px; font-size: 1.3rem; }
  .article-body h3 { font-size: 1.12rem; margin: 26px 0 12px; }

  .article-cta { padding: 28px 20px; margin-top: 36px; }
  .article-cta h3 { font-size: 1.3rem; }
  .article-cta .cta-actions { flex-direction: column; }
  .article-cta .cta-actions .btn { width: 100%; text-align: center; }

  .article-more { margin-top: 48px; padding: 0 16px; }
  .article-more__head { margin-bottom: 24px; }
}

@media (max-width: 380px) {
  .article-hero__title { font-size: 1.45rem; }
  .article-card__meta { flex-wrap: wrap; line-height: 1.4; }
}