/* ============ Страница статьи блога ============ */
/* Переиспользует: .container .crumbs .btn .img-slot .reveal .post (из base/components/blog) */

/* ---- Шапка статьи (центрированная колонка) ---- */
.arthead { background: var(--cream); padding-block: clamp(28px, 4vw, 52px) clamp(36px, 5vw, 64px); }
.arthead__inner {
  max-width: 820px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.arthead .crumbs { justify-content: center; }

.art__cat {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: var(--r-pill); padding: 8px 16px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase;
}
.art__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(31px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.015em; color: var(--ink);
  max-width: 18ch;
}
.art__lead {
  max-width: 640px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft);
}

/* Мета автора в шапке */
.art__meta { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.art__avatar {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(0,0,0,.04); border: 1px dashed rgba(0,0,0,.25);
  color: var(--ink-mute); font-family: var(--font-ui); font-size: 10px; text-align: center;
}
/* фото-аватар: кадрируем на лицо и центрируем в кружке (зум от верха опускает лицо в центр) */
span.art__avatar { border: 0; background: none; }
.art__avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%;
  transform: scale(2.2); transform-origin: 50% 0%;
}
.art__metaText { text-align: left; }
.art__author { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.art__metaSub { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-mute); margin-top: 2px; }
.art__metaSub span { opacity: .5; }

/* ---- Обложка ---- */
.artcover { background: var(--cream); padding-bottom: clamp(8px, 2vw, 24px); }
.artcover__slot { max-width: 1120px; margin-inline: auto; aspect-ratio: 2 / 1; }
img.artcover__slot {
  display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.28);
}

/* ---- Тело статьи: рейл «Поделиться» + проза ---- */
.artbody { padding-block: clamp(48px, 6vw, 80px); }
.artbody__grid {
  max-width: 900px; margin-inline: auto;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* Рейл «Поделиться» (sticky сбоку) */
.share { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.share__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 4px;
}
.share__btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: color .2s, border-color .2s, background-color .2s, transform .2s;
}
.share__btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share__btn svg { width: 19px; height: 19px; }

/* ---- Проза ---- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 22px; }
.prose p { font-size: 18px; line-height: 1.72; color: var(--ink-soft); }
.prose p a, .prose .checks a {
  color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose p a:hover, .prose .checks a:hover { text-decoration-thickness: 2px; }
.prose p.art__note {
  font-size: 14px; line-height: 1.55; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
}

/* Буквица */
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-serif); font-weight: 600;
  font-size: 3.6em; line-height: .82; padding: 6px 12px 0 0; color: var(--accent);
}

/* Нумерованные заголовки */
.prose h2 {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(25px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink);
}
.prose h2 .num { flex-shrink: 0; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Пул-цитата */
.pullquote {
  margin-block: clamp(34px, 4vw, 48px);
  padding: 4px 0 4px 32px; border-left: 4px solid var(--accent);
}
.pullquote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(23px, 2.6vw, 30px); line-height: 1.32; color: var(--ink);
}
.pullquote cite { display: block; margin-top: 16px; font-style: normal; font-size: 14.5px; color: var(--ink-mute); }

/* Чек-листы */
.checks { display: flex; flex-direction: column; gap: 16px; margin-block: 8px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; align-items: start; }
.check-ic {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); display: grid; place-items: center;
}
.check-ic svg { width: 15px; height: 15px; color: var(--accent); }
.checks li span:last-child { font-size: 17px; line-height: 1.55; color: var(--ink-soft); padding-top: 1px; }
.checks li b { color: var(--ink); font-weight: 700; }

/* Видео-reel (вертикальное) */
.reel { max-width: 340px; margin: clamp(34px, 4vw, 48px) auto; }
.reel__frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #2a2320, #14110f);
  display: grid; place-items: center;
  box-shadow: 0 24px 60px -28px rgba(27,23,20,.6);
}
.reel__frame::after {
  content: ""; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.reel__frame::before {
  content: ""; position: absolute; z-index: 2;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(2px);
}
.reel__cap { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink-mute); }

/* Callout «Совет доктора» */
.callout {
  margin-block: clamp(34px, 4vw, 48px);
  background: var(--accent-soft); border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3vw, 34px);
}
.callout__label {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-weight: 700; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-dark);
}
.callout__label svg { width: 17px; height: 17px; }
.callout p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Теги */
.art__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.art__tags a {
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px;
  font-size: 14px; color: var(--ink-soft); transition: color .2s, border-color .2s;
}
.art__tags a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Карточка автора (тёмная) ---- */
.authorcard {
  max-width: 900px; margin: 0 auto clamp(48px, 6vw, 80px);
  background: var(--footer-bg); border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 40px);
  display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: clamp(20px, 3vw, 32px); align-items: center;
}
.authorcard__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.22);
  color: rgba(255,255,255,.5); font-family: var(--font-ui); font-size: 11px; text-align: center;
}
img.authorcard__avatar { object-fit: cover; object-position: 50% 20%; border: 0; background: none; }
.authorcard__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.authorcard__name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 26px); color: #fff; margin-top: 6px; }
.authorcard__bio { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.7); margin-top: 10px; }
.authorcard .btn { flex-shrink: 0; }

/* ---- Читайте также ---- */
.related { background: var(--cream); padding-block: clamp(56px, 7vw, 96px); }
.related__inner { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.related__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; color: var(--ink); }
.related__more { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--accent-dark); }
.related__more:hover { gap: 11px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.related .post__media { background: rgba(0,0,0,.04); }

/* ---- Адаптив ---- */
@media (max-width: 760px) {
  .artbody__grid { grid-template-columns: 1fr; }
  .share {
    position: static; flex-direction: row; align-items: center; gap: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .share__label { writing-mode: horizontal-tb; transform: none; margin: 0; }
  .authorcard { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; }
  .authorcard__bio { text-align: center; }
}
@media (max-width: 600px) {
  .prose p { font-size: 17px; }
  .checks li span { font-size: 16px; }
}
