/* ===================================================
   blog-article.css — Стили для статей блога The One
   =================================================== */

/* Lightened dark theme for blog articles (S01 2026-05-28).
   Override the global #141619 body background to a slightly lifted #1c1f26
   so long-form reading is less harsh on the eye. */
body { background: #1c1f26; }

.article-wrap {
  padding: 80px 0 120px;
  min-height: 100vh;
  background: transparent;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.article-header {
  margin-bottom: 56px;
  padding-top: 80px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-tag {
  background: rgba(134, 59, 255, 0.15);
  border: 1px solid rgba(134, 59, 255, 0.3);
  color: #b07fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
}

.article-date {
  font-size: 13px;
  color: var(--text-muted);
}

.article-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.article-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Author Avatar ── */
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), #5e77ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

/* ── Article body ── */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
}

.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  font-weight: 400;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: #fff;
  font-weight: 600;
}

/* ── Callout ── */
.article-callout {
  background: rgba(134, 59, 255, 0.13);
  border-left: 3px solid var(--accent-violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.article-callout--yellow {
  background: rgba(255, 178, 0, 0.08);
  border-left-color: var(--accent-yellow);
}

/* ── Stats row ── */
.article-stats {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.article-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  flex: 1;
  min-width: 160px;
}

.article-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-violet);
  line-height: 1;
  margin-bottom: 6px;
}

.article-stat span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Footer ── */
.article-footer {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.article-footer__author {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.article-footer__author strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-footer__author p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Related articles (internal linking) ── */
.related-articles {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: block;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.related-card:hover {
  background: rgba(134, 59, 255, 0.08);
  border-color: rgba(134, 59, 255, 0.35);
  transform: translateY(-2px);
}
.related-card__tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.related-card__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

/* ── Navigation ── */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.article-nav__prev,
.article-nav__next {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.article-nav__prev:hover,
.article-nav__next:hover {
  color: #c8a8ff;
}

/* ═══════════════════════════════════════════════════════
   LEAD MAGNET BLOCKS — тёмная тема (Dark Theme Fix)
   Два варианта разметки: .lead-magnet-banner и .lmb-wrap
   ═══════════════════════════════════════════════════════ */

/* ── Старый стиль: .lead-magnet-banner (inline colors override) ── */
.lead-magnet-banner {
  background: rgba(134, 59, 255, 0.07) !important;
  border-left: 4px solid #863bff;
  border-radius: 10px;
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Заголовок плашки — белый, жирный (override inline color: #141619) */
.lead-magnet-banner .lm-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

/* Описание — светло-серый (override inline color: #333) */
.lead-magnet-banner .lm-text {
  color: #a3acb9 !important;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.lead-magnet-banner .lm-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Новый стиль: .lmb-wrap (централизованные стили) ── */
.lmb-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(134, 59, 255, 0.07);
  border: 1px solid rgba(134, 59, 255, 0.22);
  border-left: 4px solid var(--accent-violet, #863bff);
  border-radius: 14px;
  padding: 28px 28px 28px 24px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.lmb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(134, 59, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.lmb-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.lmb-body { flex: 1; }

.lmb-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #863bff;
  margin-bottom: 10px;
}

/* Заголовок секции (если есть) — белый, жирный */
.lmb-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

/* Описание — светло-серый */
.lmb-text {
  font-size: 14px;
  line-height: 1.65;
  color: #a3acb9;
  margin: 0 0 20px;
}

.lmb-btn {
  font-size: 14px !important;
  padding: 10px 22px !important;
}

@media (max-width: 600px) {
  .lead-magnet-banner {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }
  .lmb-wrap {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }
}
