/* ── Прогресс-бар чтения (signature-элемент) ── */
    #read-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, var(--purple-light), #986cf1, #d275ed);
      z-index: 200;
      transition: width .05s linear;
      pointer-events: none;
    }

    /* ── Лейаут статьи ── */
    .article-page {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 40px;
    }

    /* Хлебные крошки */
    .article-breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--muted);
      padding: 28px 0;
      overflow: hidden;
    }
    .article-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
    .article-breadcrumb a:hover { color: var(--white); }
    .article-breadcrumb .sep { opacity: .35; }
    .article-breadcrumb .current {color: var(--text);text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}

    /* Сетка: статья + сайдбар */
    .article-layout {
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 64px;
      align-items: flex-start;
      padding-bottom: 100px;
    }

    /* ── Основная колонка ── */
    .article-main {}

    /* Шапка статьи */
    .article-header { margin-bottom: 44px; }
    .article-header .article-category {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--purple-bright);
      margin-bottom: 16px;
    }
    .article-header h1 {
      font-size: 36px;
      font-weight: 800;
      color: var(--white);
      line-height: 1.25;
      margin-bottom: 20px;
    }
    .article-header .article-lead {
      font-size: 18px;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 28px;
    }
    .article-header-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: var(--muted);
      padding-bottom: 28px;
      border-bottom: 1px solid var(--border);
    }
    .article-header-meta .dot { opacity: .35; }
    .meta-author {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .meta-author-avatar {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--purple), #986cf1);
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: var(--white);
      flex-shrink: 0;
    }

    /* Обложка */
    .article-cover {
      width: 100%;
      height: 360px;
      background: linear-gradient(135deg, #1a0f35 0%, #0d0a20 60%, #120d2a 100%);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 48px;
    }
    .article-cover::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 40% 60%, rgba(112,73,243,.35), transparent 65%);
    }
    .article-cover .cover-emoji {
      font-size: 88px;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 0 40px rgba(112,73,243,.5));
    }

    /* ── Контент статьи — типографика Medium/VC стиля ── */
    .article-content {
      font-size: 17px;
      color: var(--text);
      max-width: 680px;
    }

    .article-content p { margin-bottom: 24px; }

    .article-content h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--white);
      margin: 48px 0 18px;
      line-height: 1.3;
    }
    .article-content h3 {
      font-size: 19px;
      font-weight: 700;
      color: var(--white);
      margin: 36px 0 14px;
      line-height: 1.4;
    }

    .article-content ul,
    .article-content ol {
      margin: 0 0 24px 24px;
    }
    .article-content li {
      margin-bottom: 10px;
      color: var(--text);
    }
    .article-content li::marker { color: var(--purple-bright); }

    .article-content a {
      text-decoration-color: rgba(152,108,241,.35);
      transition: text-decoration-color .2s;
    }
    .article-content a:hover { text-decoration-color: #986cf1; }

    .article-content strong { color: var(--white); font-weight: 600; }

    /* Цитата / callout */
    .article-content blockquote {
      border-left: 3px solid var(--purple);
      margin: 32px 0;
      padding: 18px 24px;
      background: rgba(112,73,243,.07);
      border-radius: 0 10px 10px 0;
      font-size: 17px;
      color: var(--text);
      font-style: normal;
    }

    /* Callout-блок (подсказка) */
    .callout {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      background: rgba(112,73,243,.08);
      border: 1px solid rgba(112,73,243,.2);
      border-radius: 12px;
      padding: 20px 22px;
      margin: 32px 0;
      font-size: 15px;
      color: var(--text);
      line-height: 1.7;
    }
    .callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

    /* Разделитель секции */
    .article-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 48px 0;
    }

    /* Нумерованный шаг */
    .step-block {
      display: flex;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 32px;
    }
    .step-num {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--purple-light), #7049f3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--white);
      flex-shrink: 0;
      margin: 0;
      margin-top: 3px;
    }
    .step-content h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
    .step-content p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

    /* Итоговый блок с CTA */
    .article-cta {
      background: linear-gradient(135deg, var(--card), #180d35);
      border: 1px solid rgba(112,73,243,.25);
      border-radius: 16px;
      padding: 36px 32px;
      margin: 48px 0;
      text-align: center;
    }
    .article-cta h3 {font-size: 22px;font-weight: 800;color: var(--white);margin-bottom: 10px;margin-top: 0;}
    .article-cta p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

    /* Теги */
    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 48px 0 0;
      padding-top: 32px;
      border-top: 1px solid var(--border);
    }
    .article-tag {
      padding: 6px 14px;
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 12px;
      color: var(--muted);
      text-decoration: none;
      transition: border-color .2s, color .2s;
    }
    .article-tag:hover { border-color: rgba(112,73,243,.4); color: var(--white); }

    /* Кнопки шаринга */
    .article-share {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 32px;
    }
    .article-share-label { font-size: 13px; color: var(--muted); }
    .share-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      text-decoration: none;
      transition: border-color .2s, color .2s;
    }
    .share-btn:hover { border-color: rgba(112,73,243,.4); color: var(--white); }

    /* ── Сайдбар ── */
    .article-sidebar {
      position: sticky;
      top: 88px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .sidebar-widget {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px 20px;
    }
    .sidebar-widget-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
    }

    /* Оглавление */
    .toc-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
    .toc-item a {
      display: block;
      padding: 8px 0;
      font-size: 13px;
      color: var(--muted);
      text-decoration: none;
      border-bottom: 1px solid rgba(255,255,255,.04);
      line-height: 1.4;
      transition: color .2s;
    }
    .toc-item:last-child a { border-bottom: none; }
    .toc-item a:hover { color: var(--white); }
    .toc-item a.active { color: #986cf1; }
    .toc-item.h3-item a { padding-left: 12px; font-size: 12px; }

    /* Рекомендации */
    .sidebar-rec {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .sidebar-rec-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-decoration: none;
      transition: opacity .2s;
    }
    .sidebar-rec-item:hover { opacity: .75; }
    .sidebar-rec-item .rec-cat {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: var(--purple-bright);
    }
    .sidebar-rec-item .rec-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--white);
      line-height: 1.4;
    }
    .sidebar-rec-item .rec-time { font-size: 11px; color: var(--muted); }

    /* Статистика бота */
    .sidebar-stats { display: flex; flex-direction: column; gap: 12px; }
    .sidebar-stat { display: flex; justify-content: space-between; align-items: center; }
    .sidebar-stat-label { font-size: 13px; color: var(--muted); }
    .sidebar-stat-val { font-size: 15px; font-weight: 700; color: var(--white); }

    /* ── Похожие статьи снизу ── */
    .related-section {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 40px 80px;
    }
    .related-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 24px;
      padding-top: 48px;
      border-top: 1px solid var(--border);
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    /* ── Карточка статьи (используется в related-grid и каталоге блога) ── */
    .article-card {
      display: flex;
      flex-direction: column;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      text-decoration: none;
      transition: border-color .2s, transform .2s;
    }
    .article-card:hover {
      border-color: rgba(112,73,243,.4);
      transform: translateY(-3px);
    }

    /* Превью-плашка с эмодзи вместо картинки */
    .article-card-thumb {
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #1a0f35 0%, #0d0a20 60%, #120d2a 100%);
    }
    .article-card-thumb::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 35% 65%, rgba(112,73,243,.3), transparent 65%);
    }
    .article-card-thumb .article-emoji {
      font-size: 48px;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 0 24px rgba(112,73,243,.45));
    }

    /* Цветовые варианты превью под разные рубрики */
    .thumb-guide   { background: linear-gradient(135deg, #14213d 0%, #0d0a20 60%, #120d2a 100%); }
    .thumb-guide::before   { background: radial-gradient(circle at 35% 65%, rgba(73,150,243,.3), transparent 65%); }
    .thumb-tips    { background: linear-gradient(135deg, #1f1a0d 0%, #0d0a20 60%, #120d2a 100%); }
    .thumb-tips::before    { background: radial-gradient(circle at 35% 65%, rgba(243,193,73,.28), transparent 65%); }
    .thumb-featured{ background: linear-gradient(135deg, #2a0d35 0%, #0d0a20 60%, #120d2a 100%); }
    .thumb-featured::before{ background: radial-gradient(circle at 35% 65%, rgba(214,73,243,.3), transparent 65%); }

    /* Тело карточки */
    .article-card-body {
      padding: 20px 20px 22px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .article-card-body .article-category {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--purple-bright);
      margin-bottom: 10px;
    }
    .article-card-body h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--white);
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .article-card-body p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 14px;
      flex: 1;
    }

    /* Мета внутри карточки (дата · время чтения) */
    .article-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--muted);
    }
    .article-meta .dot { opacity: .35; }


    /* ── Responsive ── */
    @media (max-width: 960px) {
      .article-layout { grid-template-columns: 1fr; gap: 40px; }
      .article-sidebar { position: static; }
      .article-header h1 { font-size: 28px; }
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .article-page, .related-section { padding: 0 20px; }
      .article-header h1 { font-size: 24px; }
      .article-content { font-size: 16px; }
      .article-cover { height: 240px; }
      .article-cover .cover-emoji { font-size: 64px; }
      .related-grid { grid-template-columns: 1fr; }
      .article-share { flex-wrap: wrap; }
      .article-card-thumb { height: 130px; }
      .article-card-thumb .article-emoji { font-size: 38px; }
    }
/* ── Изображение внутри текста статьи (блок "image" в конструкторе) ── */
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
