/* ═══ Блог (список) и Статья блога ═══ */

/* Секция после hero-заливки не должна прилипать к его нижнему краю
   (.section даёт только margin-bottom, без padding-top). */
body[data-page="blog"] .section,
body[data-page="blog-article"] .section {
  padding-top: var(--section-y);
}

/* ── hero ── */
.blog-hero {
  padding: 152px 0 64px;
  background: var(--brand-gradient-hero, linear-gradient(180deg, rgb(62,180,240) 0%, rgb(102,89,220) 57%, rgb(116,66,200) 100%));
  color: #fff;
}
.blog-hero .eyebrow { color: rgba(255,255,255,0.82); }
.blog-hero .lead { color: rgba(255,255,255,0.9); max-width: 640px; }

/* дата/источник в hero статьи */
.blog-hero__meta {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}

/* ─────────────────────────────────────────────
   СПИСОК СТАТЕЙ
   ───────────────────────────────────────────── */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgb(236, 232, 248);
  box-shadow: 0 12px 40px rgba(58, 31, 185, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(58, 31, 185, 0.16);
}

/* превью-картинка статьи */
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgb(236, 230, 252);
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 28px;
}
.blog-card__meta {
  font-size: 14px;
  color: rgb(120, 114, 138);
}
.blog-card__title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: rgb(24, 20, 38);
}
.blog-card__more {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: rgb(116, 66, 200);
}

/* ─────────────────────────────────────────────
   СТАТЬЯ
   ───────────────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
}

/* лид-фото героя интервью */
.article__lead {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.article__lead figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgb(236, 232, 248);
  background: rgb(236, 230, 252);
}
.article__lead img {
  width: 100%;
  height: auto;
  display: block;
}
.article__lead figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: rgb(120, 114, 138);
}

.article__body p {
  font-size: 18px;
  line-height: 1.7;
  color: rgb(38, 34, 54);
}
.article__body p + p { margin-top: 20px; }
.article__body em { font-style: italic; }

/* источник + ссылка на журнал */
.article__source {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgb(245, 242, 253);
  border: 1px solid rgb(236, 232, 248);
  font-size: 16px;
  line-height: 1.6;
  color: rgb(38, 34, 54);
}
.article__source a {
  color: rgb(116, 66, 200);
  font-weight: 600;
  text-decoration: none;
}
.article__source a:hover { text-decoration: underline; }

/* кнопка «скачать PDF» */
.article__source .article__pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgb(116, 66, 200);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.article__source .article__pdf:hover {
  background: rgb(98, 54, 172);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.article__source .article__pdf svg { flex: 0 0 auto; }

/* назад к списку */
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 600;
  color: rgb(116, 66, 200);
  text-decoration: none;
}
.article__back:hover { text-decoration: underline; }

/* ── адаптив ── */
@media (max-width: 768px) {
  .blog-hero { padding: 120px 0 52px; }
  .blog-list { grid-template-columns: 1fr; gap: 20px; }
  .blog-card__title { font-size: 19px; }
  .article__lead { max-width: 100%; }
  .article__body p { font-size: 16px; }
  .article__source { padding: 20px 22px; font-size: 15px; }
}
