/*
 * article-art.css — МУСТАҲКАМ (vetrovuz.com)
 * Стили статей контентного хаба /analytics/
 * v1.0 — 2026-05-27
 *
 * Подключение в HTML (через промт v2.0 уже встроено):
 *   <link rel="stylesheet" href="/assets/css/article-art.css">
 *
 * Все классы — под префиксом art-* (и .faq-* для совместимости с Schema speakable).
 * При необходимости переопределить цвета — изменить переменные в :root ниже.
 */

:root {
  --stone:      #F2EFEA;   /* основной фон страницы */
  --stone-dark: #E8E3D9;   /* hover, вторичные блоки */
  --fg:         #1C2331;   /* основной текст, тёмные секции */
  --muted:      #6B6B6B;   /* вторичный текст (даты, meta) */
  --accent:     #8B6914;   /* бронза — CTA, лейблы, hover */
  --rule:       #D9D4CD;   /* разделители */
  --serif:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:       'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow-sm:  0 1px 2px rgba(28, 35, 49, 0.05);
  --shadow-md:  0 4px 12px rgba(28, 35, 49, 0.08);
}

/* ─── Обёртка статьи ─────────────────────────────────────────────────────── */
.art-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  font-family: var(--sans);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
}

/* ─── Хлебные крошки ─────────────────────────────────────────────────────── */
.art-breadcrumb {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.art-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.art-breadcrumb a:hover { color: var(--accent); }
.art-breadcrumb span { margin: 0 .35rem; color: var(--rule); }

/* ─── Шапка статьи ───────────────────────────────────────────────────────── */
.art-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.art-pills {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.art-practice-pill,
.art-type-pill {
  display: inline-block;
  padding: .25rem .65rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  font-family: var(--sans);
}
.art-practice-pill {
  background: var(--accent);
  color: #fff;
}
.art-type-pill {
  background: var(--stone-dark);
  color: var(--fg);
}

.art-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin: .5rem 0 1rem;
  color: var(--fg);
  letter-spacing: -.01em;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.art-author-name {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.art-author-name:hover { text-decoration: underline; }
.art-author-title { font-style: italic; }
.art-date { font-variant-numeric: tabular-nums; }
.art-read::before { content: "≈ "; }

/* ─── Вводный блок (LLM-citation зона) ───────────────────────────────────── */
.art-definition {
  background: var(--stone-dark);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0 2rem;
}
.art-lead {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0;
  font-weight: 500;
}

/* ─── Тело статьи ────────────────────────────────────────────────────────── */
.art-body { font-family: var(--sans); }

.art-section {
  margin: 2rem 0;
}
.art-section h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  margin: 2.25rem 0 1rem;
  letter-spacing: -.005em;
}
.art-section p {
  margin: 0 0 1.1rem;
  color: var(--fg);
}
.art-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.art-section a:hover {
  text-decoration-color: var(--accent);
}

/* ─── Шаг инструкции (guide) ─────────────────────────────────────────────── */
.art-step {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
}
.art-step h2 {
  margin-top: 0;
  color: var(--accent);
}

/* ─── Чек-лист ───────────────────────────────────────────────────────────── */
.art-checklist {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--stone-dark);
  border-radius: var(--radius);
}
.art-checklist li {
  position: relative;
  padding: .4rem 0 .4rem 1.75rem;
  border-bottom: 1px dashed var(--rule);
}
.art-checklist li:last-child { border-bottom: none; }
.art-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .4rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  text-align: center;
  font-size: 12px;
  line-height: 1.25rem;
  font-weight: 700;
}

/* ─── Микро-кейс ─────────────────────────────────────────────────────────── */
.art-micro-case {
  background: #FAFAF7;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--muted);
  margin: 1.5rem 0;
  font-size: 16px;
}

/* ─── Триггер конверсии (в теле) ─────────────────────────────────────────── */
.art-trigger {
  background: var(--stone-dark);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
  color: var(--fg);
  margin: 1.5rem 0;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.art-faq {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.art-faq > h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 .65rem;
  line-height: 1.35;
}
.faq-a-text {
  margin: 0;
  color: var(--fg);
  font-size: 16px;
}

/* ─── CTA-блоки (стилизация SSI-вставок) ─────────────────────────────────── */
.art-cta {
  background: var(--fg);
  color: var(--stone);
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  text-align: center;
}
.art-cta a { color: var(--accent); }
.art-cta--early {
  background: var(--stone-dark);
  color: var(--fg);
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.art-cta--early a { color: var(--accent); font-weight: 600; }
.art-cta--mid {
  background: var(--accent);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  font-weight: 500;
}
.art-cta--mid a { color: #fff; text-decoration: underline; }
.art-cta--final {
  background: var(--fg);
  color: #fff;
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-md);
}

/* ─── Смежные практики ──────────────────────────────────────────────────── */
.art-related {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.art-related > h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--fg);
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.art-pcard {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--stone-dark);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.art-pcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.art-pname {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .35rem;
}
.art-pdesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Финальный блок (Выводы) ────────────────────────────────────────────── */
.art-final {
  margin: 2.5rem 0 1.5rem;
}
.art-final > h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--fg);
}
.art-final p {
  color: var(--fg);
  margin: 0 0 1rem;
}

/* ─── Подпись автора (в конце статьи) ────────────────────────────────────── */
.art-author {
  margin: 3rem 0 1rem;
  padding: 1.5rem;
  background: var(--stone-dark);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.art-author__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 .35rem;
  font-weight: 600;
}
.art-author__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 .5rem;
}
.art-author__name a {
  color: var(--accent);
  text-decoration: none;
}
.art-author__name a:hover { text-decoration: underline; }
.art-author__bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .art-wrap {
    padding: 1.5rem 1rem 3rem;
    font-size: 16px;
  }
  .art-lead { font-size: 17px; }
  .art-section h2 { font-size: 22px; margin-top: 1.75rem; }
  .art-faq > h2 { font-size: 24px; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-meta { gap: .5rem .75rem; font-size: 13px; }
  .art-checklist { padding: 1rem 1.25rem; }
}

/* ─── Печать ─────────────────────────────────────────────────────────────── */
@media print {
  .art-cta,
  .art-cta--early,
  .art-cta--mid,
  .art-cta--final,
  .art-related,
  .art-breadcrumb,
  .art-pills { display: none; }
  .art-wrap { color: #000; max-width: none; }
}
