/* p-article.css — стили для отдельных статей /baza-znanii/ */
/* v1.0 — 2026-07-05 */

/* ─── Обёртка статьи ─── */
.art-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

/* ─── Хлебные крошки ─── */
.art-breadcrumb {
  padding: 14px 24px;
  max-width: 820px;
  margin: 0 auto;
  font-size: 13px;
  color: #9CA3AF;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.art-breadcrumb a { color: #4A5568; text-decoration: none; }
.art-breadcrumb a:hover { color: #1B3A6B; text-decoration: underline; }
.art-breadcrumb span { color: #C0C8D6; }

/* ─── Мета-строка статьи ─── */
.art-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 20px;
  font-size: 13px;
  color: #9CA3AF;
  flex-wrap: wrap;
}
.art-meta-bar svg { vertical-align: middle; }
.art-meta-sep { color: #D1D5DB; }

/* ─── Бэдж категории ─── */
.art-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.art-cat-badge.heating  { background: #FFF2EB; color: #E65100; }
.art-cat-badge.ventilation { background: #EBF5FF; color: #1E72CC; }
.art-cat-badge.dust     { background: #ECFDF5; color: #16A34A; }

/* ─── Заголовок ─── */
.art-h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  color: #1B3A6B;
  line-height: 1.22;
  margin: 0 0 26px;
  letter-spacing: -.01em;
}

/* ─── Definition block (Speakable) ─── */
.bz-definition {
  background: #F0F5FF;
  border-left: 4px solid #1B3A6B;
  border-radius: 0 12px 12px 0;
  padding: 20px 26px;
  margin: 0 0 28px;
}
.bz-definition .def-quote {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1B3A6B;
  line-height: 1.45;
  margin: 0 0 12px;
}
.bz-definition p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #2D3748;
}

/* ─── TL;DR (Speakable) ─── */
.bz-tldr {
  background: #fff;
  border: 1.5px solid #E8EDF3;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.bz-tldr-head {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9CA3AF;
  margin: 0 0 14px;
}
.bz-tldr ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bz-tldr li {
  font-size: 15px;
  line-height: 1.6;
  color: #2D3748;
}
.bz-tldr li strong { color: #1B3A6B; }

/* ─── Строка ключевых цифр ─── */
.bz-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 32px;
}
.bz-stat {
  background: #fff;
  border: 1.5px solid #E8EDF3;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.bz-stat-num {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1B3A6B;
  line-height: 1;
  margin-bottom: 6px;
}
.bz-stat-txt { font-size: 12px; color: #6B7280; line-height: 1.4; }

/* ─── Оглавление ─── */
.art-toc {
  background: #fff;
  border: 1.5px solid #E8EDF3;
  border-radius: 12px;
  padding: 20px 26px;
  margin: 0 0 44px;
}
.art-toc-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9CA3AF;
  margin: 0 0 14px;
}
.art-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-toc a {
  font-size: 14px;
  color: #1E72CC;
  text-decoration: none;
  line-height: 1.45;
}
.art-toc a:hover { text-decoration: underline; }

/* ─── Заголовки в теле статьи ─── */
.art-wrap h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 21px);
  color: #1B3A6B;
  margin: 44px 0 16px;
  line-height: 1.3;
  scroll-margin-top: 80px;
}
.art-wrap h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: #2D3748;
  margin: 22px 0 10px;
}
.art-wrap p {
  font-size: 15.5px;
  line-height: 1.72;
  color: #374151;
  margin: 0 0 16px;
}
.art-wrap ul, .art-wrap ol {
  margin: 0 0 20px;
  padding: 0 0 0 22px;
}
.art-wrap li {
  font-size: 15.5px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 8px;
}
.art-wrap strong { color: #1E3A5F; }
.art-wrap a { color: #1E72CC; }
.art-wrap a:hover { color: #1B3A6B; }

/* ─── Выделенный пассаж для AI-извлечения ─── */
.art-extract {
  background: #F0F7FF;
  border-left: 3px solid #38A3E8;
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.68;
  color: #1E3A5F;
}

/* ─── Таблицы ─── */
.bz-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border-radius: 10px;
  border: 1.5px solid #E8EDF3;
}
.bz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
.bz-table thead th {
  background: #1B3A6B;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
}
.bz-table tbody tr { border-bottom: 1px solid #E8EDF3; }
.bz-table tbody tr:last-child { border-bottom: none; }
.bz-table tbody tr:nth-child(even) { background: #F8FAFC; }
.bz-table td { padding: 11px 16px; color: #374151; line-height: 1.5; vertical-align: top; }
.bz-table td strong { color: #1B3A6B; }

/* ─── HowTo: шаги ─── */
.art-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid #E8EDF3;
  border-radius: 10px;
}
.art-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #1B3A6B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.art-step-body { flex: 1; }
.art-step-body strong { display: block; color: #1B3A6B; font-weight: 600; margin: 0 0 6px; font-size: 15px; }
.art-step-body p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #374151; }
.art-step-body .step-formula {
  background: #F8FAFC;
  border: 1px solid #E8EDF3;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  color: #1B3A6B;
  margin: 10px 0 0;
  display: block;
}

/* ─── Блок ошибок ─── */
.art-errors { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 28px; }
.art-error {
  background: #FFF8F5;
  border: 1.5px solid #FEDDD0;
  border-radius: 10px;
  padding: 16px 20px;
}
.art-error-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #E65100;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.art-error p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: #374151; }
.art-error p:last-child { margin: 0; }
.art-error .err-fix { color: #1B3A6B; font-weight: 600; }

/* ─── MID-ARTICLE CTA ─── */
.bz-mid-cta {
  background: linear-gradient(135deg, #1B3A6B 0%, #1E72CC 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bz-mid-cta-txt h3 {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.35;
}
.bz-mid-cta-txt p { color: rgba(255,255,255,.8); font-size: 14px; margin: 0; }
.bz-mid-cta-btn {
  background: #E65100;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.bz-mid-cta-btn:hover { background: #c94700; }

/* ─── Рекомендации Аквент ─── */
.art-rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 28px;
}
.art-rec {
  border: 1.5px solid #E8EDF3;
  border-radius: 10px;
  padding: 18px 20px;
  background: #fff;
}
.art-rec-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9CA3AF;
  margin: 0 0 8px;
}
.art-rec h4 { margin: 0 0 8px; font-size: 15px; color: #1B3A6B; font-family: Montserrat, sans-serif; font-weight: 700; }
.art-rec p { margin: 0 0 12px; font-size: 13.5px; color: #6B7280; line-height: 1.55; }
.art-rec a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1E72CC;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.art-rec a:hover { color: #1B3A6B; }

/* ─── FAQ (Speakable: .bz-faq-answer) ─── */
.art-faq { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 36px; }
.faq-item { border: 1.5px solid #E8EDF3; border-radius: 10px; overflow: hidden; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #1B3A6B;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  line-height: 1.45;
  transition: background .15s;
}
.faq-q:hover { background: #F8FAFC; }
.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F0F5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: #1B3A6B; }
.faq-item.open .faq-chevron svg { stroke: #fff; }
.bz-faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 14.5px;
  line-height: 1.72;
  color: #374151;
  display: none;
}
.faq-item.open .bz-faq-answer { display: block; }

/* ─── Похожие статьи ─── */
.bz-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 40px;
}
.bz-related-card {
  border: 1.5px solid #E8EDF3;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color .2s, box-shadow .2s, background .15s;
}
.bz-related-card:hover {
  border-color: #1E72CC;
  box-shadow: 0 4px 18px rgba(30,114,204,.11);
  background: #FAFCFF;
}
.bz-related-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #38A3E8;
  margin-bottom: 8px;
  display: block;
}
.bz-related-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1B3A6B;
  line-height: 1.4;
  margin: 0;
}

/* ─── Автор ─── */
.bz-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1.5px solid #E8EDF3;
  margin: 32px 0;
}
.bz-author-ava {
  width: 44px; height: 44px;
  background: #1B3A6B;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.bz-author-info { flex: 1; }
.bz-author-name { font-weight: 700; font-size: 14px; color: #1B3A6B; }
.bz-author-role { font-size: 13px; color: #6B7280; }
.bz-author-dates { font-size: 12px; color: #9CA3AF; margin-top: 3px; }

/* ─── Финальный CTA ─── */
.art-final-cta {
  background: #F0F5FF;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.art-final-cta h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #1B3A6B;
  margin: 0 0 10px;
}
.art-final-cta p { color: #4A5568; font-size: 15px; margin: 0 0 22px; line-height: 1.6; }
.art-cta-btn {
  background: #1B3A6B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 34px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.art-cta-btn:hover { background: #14305C; }

/* ─── Ссылка на HUB каталога ─── */
.art-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #1B3A6B;
  border-radius: 8px;
  padding: 10px 20px;
  color: #1B3A6B;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 12px;
  transition: background .2s;
}
.art-hub-link:hover { background: #F0F5FF; }

/* ─── Разделитель ─── */
.art-hr { border: none; border-top: 1.5px solid #E8EDF3; margin: 36px 0; }

/* ─── Адаптив ─── */
@media (max-width: 640px) {
  .art-wrap { padding: 0 16px 60px; }
  .bz-stats-row { grid-template-columns: 1fr 1fr; }
  .bz-stats-row .bz-stat:last-child { grid-column: 1/-1; }
  .art-rec-grid { grid-template-columns: 1fr; }
  .bz-related { grid-template-columns: 1fr; }
  .bz-mid-cta { flex-direction: column; padding: 22px 20px; }
  .art-final-cta { padding: 24px 20px; }
  .art-final-cta h3 { font-size: 17px; }
  .art-h1 { font-size: 22px; }
}
@media (max-width: 420px) {
  .bz-stats-row { grid-template-columns: 1fr; }
}
