/* ══════════════════════════════════════════════
   ARTICLE PAGE — style.css
   Extends ../main/css/style.css + ../blog/style.css
   Все переменные дизайн-системы унаследованы.
══════════════════════════════════════════════ */

/* ── Общий текстовый столбец (читаемая ширина) ─ */
.art-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Старый блок автора в HTML записи: не показывать (актуальный — из поля «Автор статьи», секция под видео). */
.page-journal-article .art-body .art-import.wiki-gvate .author-block {
  display: none !important;
}

/* ══════════════════════════════════════════════
   HERO — заголовок + мета + обложка
══════════════════════════════════════════════ */
.art-hero {
  padding-top: calc(var(--header-h) + clamp(36px, 4.5vw, 56px));
  padding-bottom: 0;
  background: var(--bg);
}

.art-header {
  padding-bottom: 0;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

/* Обложка статьи — горизонтальный формат 16:9, без обрезки;
   скругление как у figure / wp-block-image в теле статьи (12px) */
.art-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.art-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* WebP <picture> контейнер для обложки статьи */
.art-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.art-cover .img-placeholder {
  flex: 1;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, #252525 0%, #151515 50%, #0f0f0f 100%);
}

.art-h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
  color: transparent;
  background: linear-gradient(135deg, #fff4dc 0%, #ffb347 46%, #d49420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 179, 71, 0.3));
}

/* Мета-строка */
.art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.art-meta-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.2vw, 22px);
}

.art-read-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.art-read-time svg {
  color: var(--accent);
  opacity: 0.8;
  flex-shrink: 0;
}

.art-meta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.art-date {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.art-has-video {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
}

.art-has-video__icon {
  color: var(--accent);
  opacity: 0.8;
}

.art-has-video:hover {
  color: var(--text-primary);
}

.art-has-video:hover .art-has-video__icon {
  color: var(--accent);
  opacity: 0.85;
}

.art-back-wrap {
  margin: 0 0 18px;
}

.art-back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.art-back-link:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   ОГЛАВЛЕНИЕ
══════════════════════════════════════════════ */
.art-toc-section {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg);
}

.art-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
}

.art-toc-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.art-toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
}

.art-toc-list li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.art-toc-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.art-toc-list li:first-child {
  padding-top: 0;
}

.art-toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 22px;
  transition: opacity 0.2s ease;
}

.art-toc-list li:hover::before {
  opacity: 1;
}

.art-toc-list a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.art-toc-list a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   ТЕЛО СТАТЬИ — типографика
══════════════════════════════════════════════ */
.art-body {
  padding: 0 0 clamp(56px, 7vw, 96px);
  background: var(--bg);
}

/* Меньше «воздуха» перед блоком видео (нижний отступ тела без дублирования с .art-video-section). */
.art-body.art-body--before-video {
  padding-bottom: clamp(20px, 2.5vw, 36px);
}

.art-section {
  margin-bottom: 0;
}

/* H2 */
.art-h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  margin-top: clamp(48px, 5.5vw, 72px);
  margin-bottom: 20px;
  padding-top: 0;
  letter-spacing: -0.02em;
}

.art-section:first-child .art-h2 {
  margin-top: 0;
}

/* H3 */
.art-h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Абзацы */
.art-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 22px;
}

.art-body p:last-child {
  margin-bottom: 0;
}

/* Изображения в статье — на всю ширину текстовой колонки (.art-col), пропорции: height: auto;
   скругления как у контентных блоков на gvate (≈12px) */
.art-body figure,
.art-body .wp-block-image,
.art-body .art-col > img,
.art-figure {
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

/* ClassicPress / WP: выравнивание не сужает иллюстрацию относительно колонки */
.art-body figure.alignleft,
.art-body figure.alignright,
.art-body figure.aligncenter,
.art-body .wp-block-image.alignleft,
.art-body .wp-block-image.alignright,
.art-body .wp-block-image.aligncenter {
  float: none;
  clear: both;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: inherit;
}

.art-body figure img,
.art-body .wp-block-image img,
.art-body .art-col > img,
.art-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.art-body figure picture,
.art-body .wp-block-image picture {
  display: block;
  width: 100%;
  max-width: 100%;
}

.art-body figure picture img,
.art-body .wp-block-image picture img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Импорт из WP: инлайн width на .wp-caption / атрибуты у img — всё равно на всю колонку */
.page-journal-article .art-body .art-import.wiki-gvate figure,
.page-journal-article .art-body .art-import.wiki-gvate .wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
}

.page-journal-article .art-body .art-import.wiki-gvate figure img,
.page-journal-article .art-body .art-import.wiki-gvate .wp-block-image img,
.page-journal-article .art-body .art-import.wiki-gvate figure picture img,
.page-journal-article .art-body .art-import.wiki-gvate .wp-block-image picture img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Картинка в абзаце без обёртки figure (частая вставка из редактора) */
.page-journal-article .art-body .art-import.wiki-gvate p > img,
.page-journal-article .art-body .art-import.wiki-gvate p > a > img,
.page-journal-article .art-body .art-import.wiki-gvate p > picture,
.page-journal-article .art-body .art-import.wiki-gvate p > a:has(picture) {
  width: 100% !important;
  max-width: 100% !important;
}

.page-journal-article .art-body .art-import.wiki-gvate p > img,
.page-journal-article .art-body .art-import.wiki-gvate p > a > img,
.page-journal-article .art-body .art-import.wiki-gvate p > picture img,
.page-journal-article .art-body .art-import.wiki-gvate p > a picture img {
  height: auto !important;
  display: block;
}

.page-journal-article .art-body .art-import.wiki-gvate p > a:has(img),
.page-journal-article .art-body .art-import.wiki-gvate p > a:has(picture) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 0;
}

.art-body .art-figure img.art-figure__img--zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.35s var(--ease-out);
}

.art-body .art-figure:hover img.art-figure__img--zoomable {
  opacity: 0.96;
}

.art-figure__img--zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.art-body figure,
.art-figure {
  max-width: 100%;
}

.art-figure-caption {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ── Лайтбокс иллюстраций (тело статьи, не обложка) ─ */
.art-lightbox {
  padding: 0;
  margin: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  box-sizing: border-box;
}

.art-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.art-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}

.art-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - clamp(72px, 12vw, 120px));
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.art-lightbox__close {
  position: fixed;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.art-lightbox__close:hover {
  border-color: rgba(255, 179, 71, 0.45);
  color: var(--accent);
}

.art-lightbox__close-lines {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.art-lightbox__close-lines span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.art-lightbox__close-lines span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.art-lightbox__close-lines span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.art-pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  overflow-x: auto;
  margin: 22px 0;
}

.art-pre code.art-code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: 0;
  padding: 0;
}

.art-body p code,
.art-body li code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
}

.art-wiki-accent {
  display: block;
  padding: 18px 22px;
  margin: 24px 0;
  background: rgba(255, 179, 71, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* Импорт WordPress / .wiki-content с gvate.ru */
.art-body .art-import.wiki-gvate h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

.art-body .art-import.wiki-gvate > :first-child,
.art-body .art-import.wiki-gvate > h2:first-child {
  margin-top: 0;
}

.art-body .art-import.wiki-gvate h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Списки импорта: только наши маркеры (::before), без смешения с дефолтами браузера */
.art-body .art-import.wiki-gvate ul,
.art-body .art-import.wiki-gvate ol {
  list-style: none;
  padding-left: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
}

/* Маркированные списки — как .art-list (золотая точка), не «невидимые» дефолтные */
.art-body .art-import.wiki-gvate ul {
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Только прямые li у ul — иначе пункты вложенного <ol> (ul > li > ol > li)
   получают и точку, и номер, и список выглядит «сломанным» */
.art-body .art-import.wiki-gvate ul > li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
  margin: 0;
}

.art-body .art-import.wiki-gvate ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.art-body .art-import.wiki-gvate ul > li > p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.art-body .art-import.wiki-gvate li ul,
.art-body .art-import.wiki-gvate li ol {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Нумерованные списки */
.art-body .art-import.wiki-gvate ol {
  margin: 22px 0 26px;
  counter-reset: art-import-ol;
}

/* Только прямые li у ol — иначе маркеры номеров лезут на пункты вложенного ul (ol > li > ul > li) */
.art-body .art-import.wiki-gvate ol > li {
  counter-increment: art-import-ol;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.art-body .art-import.wiki-gvate ol > li:last-child {
  margin-bottom: 0;
}

.art-body .art-import.wiki-gvate ol > li::before {
  content: counter(art-import-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  min-width: 22px;
}

.art-body .art-import.wiki-gvate ol > li > p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.art-body .art-import.wiki-gvate strong {
  color: var(--text-primary);
  font-weight: 600;
}

.art-body .art-import.wiki-gvate a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.art-body .art-import.wiki-gvate a:hover {
  color: var(--accent-hover);
}

.art-body .art-import.wiki-gvate pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 20px 0;
}

.art-body .art-import.wiki-gvate pre code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Акцентный абзац как на эталонной статье */
.art-body .art-import.wiki-gvate .wiki-accent {
  display: block;
  padding: 18px 22px;
  margin: 24px 0;
  background: rgba(255, 179, 71, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* Иллюстрации: карточка фото + подпись.
   WordPress (блок) часто отдаёт: <div class="wp-caption"> <p>&nbsp;</p> <p><img></p> <p class="wp-caption-text">…
   Лишний <p> с &nbsp; и отступы у <p> с картинкой дают «чёрные полосы» (фон страницы между bg-card и img). */

.art-body .art-import.wiki-gvate .wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  background: var(--bg-card);
  display: flow-root;
}

/* Пустой/сервисный абзац перед картинкой (часто только &nbsp;) */
.art-body .art-import.wiki-gvate .wp-caption > p:not(.wp-caption-text):not(:has(img)):not(:has(picture)) {
  display: none;
}

/* Абзац с иллюстрацией: убираем margin абзацев тела и просветы под inline-заменами */
.art-body .art-import.wiki-gvate .wp-caption > p:has(img),
.art-body .art-import.wiki-gvate .wp-caption > p:has(picture) {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  letter-spacing: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--bg-card);
}

.art-body .art-import.wiki-gvate .wp-caption > p picture {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  background: var(--bg-card);
}

/* Импорт из файлов: ссылка + picture или только img */
.art-body .art-import.wiki-gvate .wp-caption > a {
  display: block;
  line-height: 0;
  font-size: 0;
  letter-spacing: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--bg-card);
}

.art-body .art-import.wiki-gvate .wp-caption > a picture {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  background: var(--bg-card);
}

.art-body .art-import.wiki-gvate .wp-caption img,
.art-body .art-import.wiki-gvate .wp-caption picture {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 0;
}

.art-body .art-import.wiki-gvate .wp-caption picture img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
  border-radius: 0;
}

.art-body .art-import.wiki-gvate .wp-caption-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 !important;
  padding: 14px 16px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* «Тема в видеоформате» — на всю ширину текстовой колонки */
.art-body .art-import.wiki-gvate h2 + .video-wrapper {
  margin-top: 20px;
}

.art-body .art-import.wiki-gvate h2[style] {
  margin-top: clamp(40px, 5vw, 64px) !important;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.art-body .art-import.wiki-gvate .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.art-body .art-import.wiki-gvate .video-wrapper::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

/* Вертикальный клип (363×714), как на эталоне — уже по центру колонки */
.art-body .art-import.wiki-gvate .video-wrapper:has(iframe[width="363"]) {
  max-width: 363px;
  margin-left: auto;
  margin-right: auto;
}

.art-body .art-import.wiki-gvate .video-wrapper:has(iframe[width="363"])::before {
  padding-bottom: 196.694%;
}

/* ~16:9 от явных размеров плеера VK (853×480 и т.п.) */
.art-body .art-import.wiki-gvate .video-wrapper:has(iframe[width="853"])::before {
  padding-bottom: calc(100% * 480 / 853);
}

/* width="100%" + фиксированная высота — пропорция как у широкого 16:9 */
.art-body .art-import.wiki-gvate .video-wrapper:has(iframe[width="100%"])::before {
  padding-bottom: 56.25%;
}

.art-body .art-import.wiki-gvate .video-wrapper iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Автор + ТГ — сетка как .art-author */
.art-import.wiki-gvate .author-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 22px;
  align-items: center;
  margin-top: 56px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.art-import.wiki-gvate .author-block .author-photo img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.art-import.wiki-gvate .author-block .author-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.art-import.wiki-gvate .author-block .author-position {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.art-import.wiki-gvate .author-block .author-experience:empty {
  display: none;
}

.art-import.wiki-gvate .author-block .author-button {
  grid-column: 1 / -1;
}

.art-import.wiki-gvate .author-block .author-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 3px;
  padding: 13px 26px;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition:
    border-color 0.25s var(--ease-smooth),
    color 0.25s var(--ease-smooth);
}

.art-import.wiki-gvate .author-block .author-button a:hover {
  border-color: rgba(255, 179, 71, 0.5);
  color: var(--accent);
}

@media (min-width: 520px) {
  .art-import.wiki-gvate .author-block {
    grid-template-columns: auto 1fr auto;
  }

  .art-import.wiki-gvate .author-block .author-button {
    grid-column: auto;
    justify-self: end;
  }
}

/* ══════════════════════════════════════════════
   АВТОР (после видео, перед CTA; те же стили .author-block)
══════════════════════════════════════════════ */
.art-author-section {
  background: var(--bg);
  padding-bottom: clamp(28px, 3.5vw, 48px);
}

/* Блок автора уже под видео — без лишнего margin-top как у встроенного .author-block в тексте. */
.art-author-section .art-import.wiki-gvate .author-block {
  margin-top: 0;
}

.art-video-section {
  padding: clamp(8px, 1.5vw, 20px) 0 clamp(28px, 4vw, 48px);
  background: var(--bg);
}

.art-video-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  margin: 0 0 clamp(14px, 2vw, 22px);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

.art-video-wrap {
  margin-top: 0;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.art-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.art-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 22px;
  align-items: center;
  margin-top: 56px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.art-author__photo img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.art-author__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.art-author__role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.art-author__action {
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .art-author {
    grid-template-columns: auto 1fr auto;
  }

  .art-author__action {
    grid-column: auto;
    justify-self: end;
  }
}

/* Списки */
.art-list {
  list-style: none;
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.art-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
}

.art-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Список с жирными лейблами */
.art-list--labeled li strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Плашка-примечание */
.art-note {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 36px 0;
}

.art-note p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* Цитата */
.art-quote {
  margin: 44px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--accent);
}

.art-quote p {
  font-family: var(--font-display) !important;
  font-size: clamp(18px, 2.2vw, 24px) !important;
  font-weight: 300 !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
  font-style: italic;
}

/* Инсет-блок «К слову» */
.art-inset {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 32px);
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle gold top-edge accent */
.art-inset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 179, 71, 0.3) 40%,
    rgba(255, 179, 71, 0.3) 60%,
    transparent
  );
}

.art-inset-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px !important;
}

.art-inset p:not(.art-inset-label) {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* ══════════════════════════════════════════════
   БЛОК СВЯЗИ
══════════════════════════════════════════════ */
.art-cta {
  padding: var(--section-py) var(--gutter);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Ambient gold glow */
.art-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 72% 50%,
    rgba(255, 179, 71, 0.045) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.art-cta-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.art-cta-content .eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}

.art-cta-content .section-title {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.art-cta-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.art-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.art-cta-btns .btn {
  gap: 8px;
}

/* Правая часть CTA — статистика */
.art-cta-decor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-cta-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s;
}

.art-cta-stat:hover {
  background: rgba(255, 179, 71, 0.06);
  border-color: rgba(255, 179, 71, 0.28);
}

.art-cta-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.art-cta-stat-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  opacity: 0.65;
}

/* ══════════════════════════════════════════════
   ЕЩЁ СТАТЬИ
══════════════════════════════════════════════ */
.art-more {
  padding: var(--section-py) var(--gutter);
  background: var(--bg);
}

.art-more-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.art-more-inner .section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.art-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Карточки — используют .jcard из blog/style.css */
.art-more-grid .jcard-img {
  aspect-ratio: 16 / 9;
}

/* Убираем категорийный бейдж в карточках "Ещё статьи" */
.art-more-grid .jcard-cat {
  display: none;
}

.art-more-footer {
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .art-cta-inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 56px);
  }

  .art-cta-decor {
    display: none;
  }

  .art-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
}

@media (max-width: 640px) {
  .art-h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .art-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .art-toc {
    padding: 20px;
  }

  .art-toc-list a {
    font-size: 13px;
  }

  .art-more-grid {
    grid-template-columns: 1fr;
  }

  .art-cta-btns {
    flex-direction: column;
  }

  .art-cta-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .art-quote {
    padding-left: 20px;
  }

  .art-note {
    padding: 16px 18px;
  }

  .art-inset {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .art-h2 {
    font-size: 20px;
  }

  .art-body p,
  .art-list li {
    font-size: 15px;
  }
}
