/* ═══════════════════════════════════════════════════════════════════════════
   Blog Post Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Утилиты (отсутствующие в scraped CSS) ────────────────────────────────── */
.pt80 { padding-top: 110px; }
@media (min-width: 992px) { .pt120--lg { padding-top: 130px; } }

/* ── Фон и контейнер ──────────────────────────────────────────────────────── */
.blog-page-bg {
  background: #f0f2f5;
  min-height: 100vh;
  padding: 130px 0 60px;
}

.blog-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Хлебные крошки + ночной режим ───────────────────────────────────────── */
.blog-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  flex-wrap: wrap;
}

.blog-breadcrumb__link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-breadcrumb__link:hover { color: #2563EB; }
.blog-breadcrumb__sep { color: #9ca3af; }
.blog-breadcrumb__current { color: #374151; }

.blog-night-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-night-btn:hover { background: #f3f4f6; }

/* ── 2-колоночная сетка ──────────────────────────────────────────────────── */
.blog-two-columns {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 767px) {
  .blog-two-columns {
    grid-template-columns: 1fr;
  }
}

/* ── Обёртка статьи ──────────────────────────────────────────────────────── */
.blog-article-wrap {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

@media (max-width: 640px) {
  .blog-article-wrap { padding: 20px 16px; }
}

/* ── Мета-строка (дата + категория) ─────────────────────────────────────── */
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.blog-meta-category {
  color: #2563EB;
  font-weight: 500;
}

/* ── Заголовок статьи ────────────────────────────────────────────────────── */
.blog-article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 0 0 24px;
}

@media (max-width: 640px) {
  .blog-article-title { font-size: 22px; }
}

/* ── Карточка автора ─────────────────────────────────────────────────────── */
.blog-author-card {
  display: flex;
  gap: 20px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.blog-author-card__left { flex-shrink: 0; }

.blog-author-card__photo {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.blog-author-card__photo--placeholder {
  background: #2563EB;
  color: white;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-card__right { flex: 1; min-width: 0; }

.blog-author-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.blog-author-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.blog-author-card__role {
  font-size: 14px;
  color: #2563EB;
  font-weight: 500;
  margin-bottom: 8px;
}

.blog-author-card__bio {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 10px;
}

.blog-author-card__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-author-card__stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #6b7280;
}

/* ── Краткое описание ────────────────────────────────────────────────────── */
.blog-article-excerpt {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Обложка ─────────────────────────────────────────────────────────────── */
.blog-cover-figure {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-cover-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 460px;
  object-fit: cover;
}

/* ── Видео ───────────────────────────────────────────────────────────────── */
.blog-video-wrap {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-video {
  width: 100%;
  max-height: 520px;
  background: #000;
  display: block;
}

.blog-video-wrap--embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.blog-video-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Rich Text Content
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-rich-text {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.blog-rich-text h2,
.blog-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 36px 0 16px;
  line-height: 1.3;
}

.blog-rich-text h3,
.blog-h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 12px;
}

.blog-rich-text h4,
.blog-h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 24px 0 10px;
}

.blog-rich-text p {
  margin: 0 0 16px;
}

.blog-rich-text ul,
.blog-rich-text ol {
  margin: 0 0 16px 24px;
  padding: 0;
}

.blog-rich-text li { margin-bottom: 6px; }

.blog-rich-text a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-rich-text a:hover { color: #1d4ed8; }

.blog-inline-code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 0.9em;
}

.blog-blockquote {
  border-left: 4px solid #2563EB;
  margin: 20px 0;
  padding: 12px 20px;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
}

.blog-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

.blog-image-figure {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.blog-image-caption {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-top: 8px;
  padding: 0 12px 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Callout Blocks (кастомные Lexical блоки)
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Синий — "Важно знать" */
.blog-callout--info {
  background: #eff6ff;
  border-left: 4px solid #2563EB;
  color: #1e40af;
}
.blog-callout--info .blog-callout__icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.blog-callout--info .blog-callout__title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #1e3a8a;
}

/* Оранжевый — "Важно:" */
.blog-callout--warning {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  color: #9a3412;
}
.blog-callout--warning .blog-callout__title { color: #c2410c; font-style: normal; }

/* Зелёный — "Совет эксперта" */
.blog-callout--tip {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  color: #14532d;
}
.blog-callout--tip .blog-callout__title { color: #15803d; }

/* Красный — "Ошибка" */
.blog-callout--error {
  background: #fef2f2;
  border-radius: 8px;
  border: none;
  border-left: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  display: block;
}
.blog-callout--error .blog-callout__error-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.blog-callout--error .blog-callout__error-icon {
  color: #dc2626;
  font-size: 16px;
  font-weight: 700;
}
.blog-callout--error strong { color: #b91c1c; font-weight: 700; }
.blog-callout--error p { color: #6b7280; margin: 0; font-size: 14px; }

/* Голубой — "Резюме" */
.blog-callout--summary {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}
.blog-callout--summary .blog-callout__title { color: #1d4ed8; }

/* ── Документы ───────────────────────────────────────────────────────────── */
.blog-documents {
  margin: 32px 0;
}
.blog-documents__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}
.blog-document-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: #2563EB;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.blog-document-item:hover { background: #eff6ff; }

/* ── Лайк + Поделиться ───────────────────────────────────────────────────── */
.blog-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin: 32px 0;
}

.blog-like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #ef4444;
  border: 1.5px solid #fecaca;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-like-btn:hover { background: #fee2e2; }
.blog-like-btn--active { background: #ef4444; color: #fff; border-color: #ef4444; }
.blog-like-btn--active:hover { background: #dc2626; }
.blog-like-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(0,0,0,0.15);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}
.blog-like-btn--active .blog-like-btn__count { background: rgba(255,255,255,0.25); }

.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-share__label { font-size: 14px; color: #6b7280; }
.blog-share__buttons { display: flex; gap: 8px; }

.blog-share__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  color: white;
}
.blog-share__btn:hover { opacity: 0.85; }
.blog-share__btn--tg { background: #2AABEE; }
.blog-share__btn--fb { background: #1877F2; }
.blog-share__btn--wa { background: #25D366; }
.blog-share__btn--copy { background: #6b7280; }

/* ── CTA-баннер ──────────────────────────────────────────────────────────── */
.blog-cta-banner {
  background: linear-gradient(135deg, #1d4ed8, #2563EB);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  color: white;
  text-align: center;
}
.blog-cta-banner__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.blog-cta-banner__text {
  font-size: 15px;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.6;
}
.blog-cta-banner__btn {
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-cta-banner__btn:hover { background: #15803d; }

/* ── Читайте также ───────────────────────────────────────────────────────── */
.blog-related { margin-top: 32px; }
.blog-related__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}
.blog-related__list { border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.blog-related__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}
.blog-related__item:last-child { border-bottom: none; }
.blog-related__item:hover { background: #f9fafb; }
.blog-related__item-title { font-size: 15px; color: #111827; font-weight: 500; }
.blog-related__item-date { font-size: 13px; color: #9ca3af; }

/* ═══════════════════════════════════════════════════════════════════════════
   Comments
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-comments { margin-top: 32px; }

.blog-comments__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.blog-comments__form-wrap {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.blog-comments__form-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 14px;
}
.blog-comments__form { display: flex; flex-direction: column; gap: 12px; }
.blog-comments__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .blog-comments__form-row { grid-template-columns: 1fr; } }

.blog-comments__input,
.blog-comments__textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #374151;
  background: white;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}
.blog-comments__input:focus,
.blog-comments__textarea:focus { border-color: #2563EB; }
.blog-comments__textarea { resize: vertical; min-height: 100px; }

.blog-comments__submit {
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.blog-comments__submit:hover { background: #1d4ed8; }
.blog-comments__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.blog-comments__success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
}
.blog-comments__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

.blog-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}
.blog-comment:last-child { border-bottom: none; }

.blog-comment__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-comment__body { flex: 1; min-width: 0; }
.blog-comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.blog-comment__author { font-size: 15px; font-weight: 600; color: #111827; }
.blog-comment__date { font-size: 13px; color: #9ca3af; }
.blog-comment__text { font-size: 14px; color: #374151; line-height: 1.6; margin: 0 0 10px; }
.blog-comment__actions { display: flex; gap: 16px; }
.blog-comment__action {
  background: none;
  border: none;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.blog-comment__action:hover { color: #2563EB; }
.blog-comment__reply { color: #2563EB; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  align-self: start;
}

@media (max-width: 767px) {
  .blog-sidebar {
    position: static;
  }
}

/* ── Виджет сайдбара ─────────────────────────────────────────────────────── */
.sidebar-widget {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-widget__title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
}

.sidebar-widget__title--icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2563EB;
}

.sidebar-widget__subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 14px;
}
.sidebar-widget__subtitle strong { color: #dc2626; }

/* ── Кнопки соцсетей ─────────────────────────────────────────────────────── */
.sidebar-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: opacity 0.2s;
}
.sidebar-social-btn:hover { opacity: 0.88; }
.sidebar-social-btn--telegram { background: #2AABEE; }
.sidebar-social-btn--max { background: #7C3AED; }
.sidebar-social-btn--vk { background: #0077FF; }
.sidebar-social-btn--rutube { background: #E02020; }

/* ── TOC ─────────────────────────────────────────────────────────────────── */
.sidebar-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-toc__item { margin-bottom: 6px; }
.sidebar-toc__item--h3 { padding-left: 14px; }
.sidebar-toc__item--h4 { padding-left: 24px; }

.sidebar-toc__link {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.sidebar-toc__link:hover { color: #2563EB; }
.sidebar-toc__num { color: #2563EB; font-weight: 600; flex-shrink: 0; }

/* ── Популярные статьи ───────────────────────────────────────────────────── */
.sidebar-popular { display: flex; flex-direction: column; gap: 12px; }

.sidebar-popular__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s;
}
.sidebar-popular__item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.11); }

.sidebar-popular__img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
}

.sidebar-popular__body { padding: 10px 12px 12px; }
.sidebar-popular__title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.sidebar-popular__date { font-size: 12px; color: #9ca3af; }

/* ── Категории ───────────────────────────────────────────────────────────── */
.sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-categories__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
}
.sidebar-categories__item:last-child { border-bottom: none; }

.sidebar-categories__link {
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-categories__link:hover { color: #2563EB; }
.sidebar-categories__count {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Кейсы ───────────────────────────────────────────────────────────────── */
.sidebar-cases { display: flex; flex-direction: column; gap: 0; }
.sidebar-cases__divider {
  border: none;
  border-top: 2px dashed #d1d5db;
  margin: 12px 0;
}

.sidebar-case__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sidebar-case__item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

.sidebar-case__img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}
/* Заглушка если нет фото */
.sidebar-case__img--empty {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-case__body {
  padding: 12px 14px 14px;
  border-top: 3px solid #2563EB;
}
.sidebar-case__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-case__result {
  font-size: 12px;
  color: #d97706;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-case__result::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Night Mode
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-night .blog-page-bg { background: #0f172a; }
.blog-night .blog-article-wrap,
.blog-night .sidebar-widget { background: #1e293b; box-shadow: none; }
.blog-night .blog-article-title,
.blog-night .blog-article-excerpt,
.blog-night .blog-author-card__name,
.blog-night .blog-h2,
.blog-night .blog-h3,
.blog-night .blog-h4,
.blog-night .blog-rich-text h1,
.blog-night .blog-rich-text h2,
.blog-night .blog-rich-text h3,
.blog-night .blog-rich-text h4,
.blog-night .blog-rich-text h5,
.blog-night .blog-rich-text h6 { color: #f1f5f9; }
.blog-night .blog-rich-text { color: #cbd5e1; }
.blog-night .blog-article-meta { color: #94a3b8; }
.blog-night .sidebar-categories__link,
.blog-night .sidebar-popular__title,
.blog-night .sidebar-toc__link { color: #cbd5e1; }
.blog-night .sidebar-categories__item { border-color: #334155; }
.blog-night .blog-comment__author { color: #f1f5f9; }
.blog-night .blog-comment__text { color: #cbd5e1; }
.blog-night .blog-night-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
.blog-night .blog-breadcrumb__link,
.blog-night .blog-breadcrumb__current { color: #94a3b8; }
.blog-night .blog-author-card { background: #0f172a; }
.blog-night .blog-comments__form-wrap { background: #0f172a; }
.blog-night .blog-comments__input,
.blog-night .blog-comments__textarea { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.blog-night .sidebar-categories__count { background: #0f172a; color: #94a3b8; }
.blog-night .blog-related__item { background: #1e293b; border-color: #334155; }
.blog-night .blog-related__item-title { color: #f1f5f9; }
.blog-night .blog-comments__title,
.blog-night .sidebar-widget__title { color: #f1f5f9; }

/* ═══════════════════════════════════════════════════════════════════════════
   New Block Types: Video, Steps, Table, CTA-inline
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Видео-блок ─────────────────────────────────────────────────────────── */
.blog-video-figure { margin: 28px 0; }
.blog-video-figure .blog-video-wrap--embed { margin: 0; border-radius: 12px; overflow: hidden; }
.blog-video-figure .blog-image-caption { text-align: center; margin-top: 8px; }

/* ── Шаги ───────────────────────────────────────────────────────────────── */
.blog-steps { margin: 28px 0; }
.blog-steps__title {
  font-size: 18px; font-weight: 700; color: #111827;
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}
.blog-steps__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-steps__item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #f9fafb; border-radius: 10px; padding: 16px;
  border-left: 3px solid #2563eb;
}
.blog-steps__num {
  min-width: 36px; height: 36px; border-radius: 50%;
  background: #2563eb; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.blog-steps__body { flex: 1; }
.blog-steps__step-title { font-size: 15px; font-weight: 700; color: #111827; display: block; margin-bottom: 4px; }
.blog-steps__step-desc { font-size: 14px; color: #4b5563; margin: 0; line-height: 1.6; }

/* ── Таблица ────────────────────────────────────────────────────────────── */
.blog-table-wrap { margin: 28px 0; }
.blog-table__title {
  font-size: 17px; font-weight: 700; color: #111827;
  margin: 0 0 12px;
}
.blog-table-scroll { overflow-x: auto; }
.blog-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.blog-table thead tr { background: #1d4ed8; color: #fff; }
.blog-table thead th {
  padding: 12px 16px; text-align: left;
  font-weight: 600; font-size: 13px;
  white-space: nowrap;
}
.blog-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.blog-table tbody tr:nth-child(even) { background: #f9fafb; }
.blog-table tbody tr:hover { background: #eff6ff; }
.blog-table td { padding: 10px 16px; color: #374151; vertical-align: top; }

/* ── CTA-баннер (inline) ────────────────────────────────────────────────── */
.blog-cta-inline {
  margin: 28px 0; border-radius: 12px;
  padding: 24px 28px;
}
.blog-cta-inline__title {
  font-size: 20px; font-weight: 700; color: #111827;
  margin: 0 0 8px;
}
.blog-cta-inline__text {
  font-size: 15px; color: #4b5563; margin: 0 0 16px; line-height: 1.6;
}
.blog-cta-inline__btn {
  display: inline-block; color: #fff; border: none;
  padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s;
}
.blog-cta-inline__btn:hover { opacity: 0.85; }

/* ── Night mode для новых блоков ────────────────────────────────────────── */
.blog-night .blog-steps__item { background: #1e293b; border-color: #3b82f6; }
.blog-night .blog-steps__step-title { color: #f1f5f9; }
.blog-night .blog-steps__step-desc { color: #94a3b8; }
.blog-night .blog-steps__title { color: #f1f5f9; border-color: #334155; }
.blog-night .blog-table thead tr { background: #1e40af; }
.blog-night .blog-table tbody tr:nth-child(even) { background: #1e293b; }
.blog-night .blog-table tbody tr:hover { background: #172554; }
.blog-night .blog-table td { color: #cbd5e1; }
.blog-night .blog-table__title { color: #f1f5f9; }
.blog-night .blog-cta-inline__title { color: #f1f5f9; }
.blog-night .blog-cta-inline__text { color: #94a3b8; }


/* === FAQ, Expert Quote, Pros/Cons, Stats, Checklist, Law Ref === */

.blog-faq { margin: 28px 0; }
.blog-faq__title { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 16px; }
.blog-faq__list { display: flex; flex-direction: column; gap: 8px; }
.blog-faq__item { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.blog-faq__item[open] { border-color: #2563eb; }
.blog-faq__question { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 600; color: #111827; list-style: none; user-select: none; }
.blog-faq__question::-webkit-details-marker { display: none; }
.blog-faq__q-icon { min-width: 28px; height: 28px; border-radius: 50%; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.blog-faq__item[open] .blog-faq__q-icon { background: #2563eb; color: #fff; }
.blog-faq__arrow { margin-left: auto; color: #9ca3af; flex-shrink: 0; transition: transform 0.2s; }
.blog-faq__item[open] .blog-faq__arrow { transform: rotate(180deg); color: #2563eb; }
.blog-faq__answer { padding: 0 16px 16px 56px; font-size: 14px; color: #4b5563; line-height: 1.7; }

.blog-expert-quote { margin: 28px 0; padding: 24px 28px; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); border-radius: 12px; color: #fff; }
.blog-expert-quote__mark { font-size: 80px; line-height: 0.6; color: rgba(255,255,255,0.2); font-family: Georgia, serif; margin-bottom: 8px; }
.blog-expert-quote__text { font-size: 17px; line-height: 1.7; font-style: italic; margin: 0 0 20px; color: rgba(255,255,255,0.95); }
.blog-expert-quote__footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); }
.blog-expert-quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.blog-expert-quote__name { font-size: 14px; font-weight: 700; }
.blog-expert-quote__role { font-size: 12px; opacity: 0.75; margin-top: 2px; }

.blog-pros-cons { margin: 28px 0; }
.blog-pros-cons__title { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 14px; }
.blog-pros-cons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .blog-pros-cons__grid { grid-template-columns: 1fr; } }
.blog-pros-cons__col { border-radius: 10px; padding: 16px; }
.blog-pros-cons__col--pro { background: #f0fdf4; border: 1px solid #bbf7d0; }
.blog-pros-cons__col--con { background: #fef2f2; border: 1px solid #fecaca; }
.blog-pros-cons__col-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.blog-pros-cons__col--pro .blog-pros-cons__col-title { color: #15803d; }
.blog-pros-cons__col--con .blog-pros-cons__col-title { color: #dc2626; }
.blog-pros-cons__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.blog-pros-cons__item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #374151; line-height: 1.5; }
.blog-pros-cons__item svg { flex-shrink: 0; margin-top: 2px; }

.blog-stats { margin: 28px 0; }
.blog-stats__title { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 16px; text-align: center; }
.blog-stats__grid { display: grid; gap: 16px; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); border-radius: 12px; padding: 28px 20px; }
.blog-stats__grid--2 { grid-template-columns: 1fr 1fr; }
.blog-stats__grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.blog-stats__grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 600px) { .blog-stats__grid--3, .blog-stats__grid--4 { grid-template-columns: 1fr 1fr; } }
.blog-stats__item { text-align: center; padding: 8px; }
.blog-stats__value { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.blog-stats__label { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }

.blog-checklist { margin: 28px 0; background: #f9fafb; border-radius: 10px; padding: 20px; }
.blog-checklist__title { font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 14px; }
.blog-checklist__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.blog-checklist__item { display: flex; align-items: flex-start; gap: 10px; }
.blog-checklist__icon { min-width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.blog-checklist__icon--check { background: #dcfce7; color: #16a34a; }
.blog-checklist__icon--cross { background: #fee2e2; color: #dc2626; }
.blog-checklist__icon--dot { background: #dbeafe; color: #2563eb; font-size: 18px; }
.blog-checklist__text { font-size: 14px; color: #374151; line-height: 1.6; }
.blog-checklist__note { color: #6b7280; font-style: italic; }

.blog-law-ref { margin: 28px 0; border-radius: 10px; border: 1px solid #d1d5db; overflow: hidden; }
.blog-law-ref__header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2937; }
.blog-law-ref__badge { background: #374151; color: #d1d5db; padding: 3px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.blog-law-ref__name { font-size: 15px; font-weight: 700; color: #fff; }
.blog-law-ref__text { margin: 0; padding: 16px; font-size: 14px; color: #374151; line-height: 1.7; background: #f9fafb; border-left: 4px solid #1d4ed8; font-style: italic; }
.blog-law-ref__comment { padding: 12px 16px; font-size: 13px; color: #4b5563; background: #fefce8; border-top: 1px solid #fef08a; line-height: 1.6; }
.blog-law-ref__link { display: block; padding: 10px 16px; font-size: 13px; color: #2563eb; font-weight: 500; border-top: 1px solid #e5e7eb; text-decoration: none; }
.blog-law-ref__link:hover { background: #eff6ff; }

.blog-night .blog-faq__item { background: #1e293b; border-color: #334155; }
.blog-night .blog-faq__item[open] { border-color: #3b82f6; }
.blog-night .blog-faq__question { color: #f1f5f9; }
.blog-night .blog-faq__answer { color: #94a3b8; }
.blog-night .blog-faq__title { color: #f1f5f9; }
.blog-night .blog-pros-cons__col--pro { background: #052e16; border-color: #166534; }
.blog-night .blog-pros-cons__col--con { background: #450a0a; border-color: #991b1b; }
.blog-night .blog-pros-cons__item { color: #cbd5e1; }
.blog-night .blog-pros-cons__title { color: #f1f5f9; }
.blog-night .blog-checklist { background: #1e293b; }
.blog-night .blog-checklist__title { color: #f1f5f9; }
.blog-night .blog-checklist__text { color: #cbd5e1; }
.blog-night .blog-law-ref { border-color: #334155; }
.blog-night .blog-law-ref__text { background: #1e293b; color: #cbd5e1; }
.blog-night .blog-law-ref__comment { background: #1e293b; color: #94a3b8; border-color: #334155; }
.blog-night .blog-law-ref__link:hover { background: #172554; }
