/* ═══════════════════════════════════════════════════════════
   Статья «Удаление сложных загрязнений без хлора»
   Префикс .bhl- ; подключается через page.extra_css
═══════════════════════════════════════════════════════════ */
.article-content.bhl-wide { max-width: 960px; }
/* Длинная статья: reveal-анимация (.rev, threshold 0.1) не срабатывает на блоке выше экрана — показываем сразу */
.article-content.bhl-wide.rev { opacity: 1; transform: none; }
.bhl-wide p { font-size: 1.02rem; }
.bhl-wide h2 { font-size: 1.55rem; margin: 44px 0 16px; padding-top: 8px; position: relative; color: var(--primary); }
.bhl-wide h2::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--green)); margin-bottom: 12px; }
.bhl-wide h3 { color: var(--text); }
.bhl-wide figure { margin: 28px 0; }
.bhl-wide figure svg { display: block; width: 100%; height: auto; }
.bhl-wide figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Lead */
.bhl-lead { font-size: 1.15rem !important; color: var(--text) !important; line-height: 1.65 !important; border-left: 4px solid var(--accent); padding: 6px 0 6px 18px; margin-bottom: 22px !important; }

/* Stat chips */
.bhl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 30px; }
.bhl-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.bhl-stat b { display: block; font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -.02em; }
.bhl-stat span { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.bhl-stat--green b { color: var(--green); }
.bhl-stat--accent b { color: var(--accent); }

/* TOC */
.bhl-toc { background: var(--blue-light); border-radius: var(--radius-md); padding: 20px 24px; margin: 0 0 28px; }
.bhl-toc-title { font-weight: 700; color: var(--primary); margin-bottom: 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.bhl-wide .bhl-toc ol { columns: 2; gap: 28px; margin: 0; padding-left: 20px; list-style: decimal; }
.bhl-wide .bhl-toc li { margin-bottom: 5px; break-inside: avoid; line-height: 1.45; }
.bhl-toc a { color: var(--text-mid); text-decoration: none; border-bottom: 1px dashed rgba(30,144,212,.5); }
.bhl-toc a:hover { color: var(--accent); }

/* Cards grid */
.bhl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 28px; }
.bhl-cards--2 { grid-template-columns: repeat(2, 1fr); }
.bhl-cards--4 { grid-template-columns: repeat(4, 1fr); }
.bhl-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bhl-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bhl-card-icon svg { width: 26px; height: 26px; }
.bhl-card h3, .bhl-wide .bhl-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.bhl-card p, .bhl-wide .bhl-card p { font-size: .93rem; margin: 0; line-height: 1.6; }
.bhl-card-tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--green-light); color: var(--green); margin-top: 12px; }
.bhl-card--warn .bhl-card-icon { background: #fdecec; }
.bhl-card--warn .bhl-card-tag { background: #fdecec; color: #c0392b; }

/* Tables */
.bhl-table-wrap { overflow-x: auto; margin: 18px 0 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.bhl-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--white); min-width: 560px; }
.bhl-table th { background: var(--primary); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.bhl-table td { padding: 12px 14px; border-top: 1px solid var(--border); color: var(--text-mid); vertical-align: top; line-height: 1.5; }
.bhl-table tr:nth-child(even) td { background: var(--bg); }
.bhl-table td:first-child { font-weight: 600; color: var(--text); }
.bhl-table .bhl-bad { color: #c0392b; font-weight: 600; }
.bhl-table .bhl-good { color: var(--green); font-weight: 600; }
.bhl-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bhl-pill--t { background: var(--blue-light); color: var(--primary); }
.bhl-pill--g { background: var(--green-light); color: var(--green); }
.bhl-pill--o { background: #fff4e5; color: #c76a00; }

/* Steps */
.bhl-steps { counter-reset: bhl; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 20px 0 28px; }
.bhl-step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 44px 16px 18px; box-shadow: var(--shadow-sm); }
.bhl-step::before { counter-increment: bhl; content: counter(bhl); position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.bhl-step b { display: block; font-size: .95rem; color: var(--text); margin-bottom: 6px; }
.bhl-step span { display: block; font-size: .85rem; color: var(--text-mid); line-height: 1.5; }
.bhl-step em { display: block; font-style: normal; font-size: .78rem; color: var(--accent); margin-top: 8px; font-weight: 600; }

/* Callouts */
.bhl-note { background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 20px 0 26px; }
.bhl-note--warn { background: #fff4e5; border-color: #f39c12; }
.bhl-note--blue { background: var(--blue-light); border-color: var(--accent); }
.bhl-note p, .bhl-wide .bhl-note p { margin: 0; font-size: .95rem; }
.bhl-note p + p, .bhl-wide .bhl-note p + p { margin-top: 8px; }

/* Cases */
.bhl-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 28px; }
.bhl-case { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.bhl-case-head { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 16px 18px; font-weight: 700; font-size: 1rem; }
.bhl-case-head small { display: block; font-weight: 400; opacity: .85; font-size: .8rem; margin-top: 3px; }
.bhl-case-body { padding: 16px 18px; }
.bhl-case-body p, .bhl-wide .bhl-case-body p { font-size: .9rem; margin: 0 0 10px; line-height: 1.55; }
.bhl-case-body p:last-child { margin-bottom: 0; }
.bhl-case-body b { color: var(--primary); }

/* Product cards */
.bhl-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 28px; }
.bhl-product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-sm); }
.bhl-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bhl-product img { width: 100%; height: 180px; object-fit: cover; display: block; }
.bhl-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.bhl-product-body b { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.bhl-product-body span { font-size: .88rem; color: var(--text-mid); line-height: 1.5; flex: 1; }
.bhl-product-price { margin-top: 12px; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.bhl-product-price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.bhl-product-link { margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* FAQ */
.bhl-faq { margin: 18px 0 28px; }
.bhl-faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.bhl-faq summary { cursor: pointer; padding: 16px 44px 16px 20px; font-weight: 600; color: var(--text); list-style: none; position: relative; line-height: 1.4; }
.bhl-faq summary::-webkit-details-marker { display: none; }
.bhl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--blue-light); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bhl-faq details[open] summary::after { content: "−"; }
.bhl-faq details p, .bhl-wide .bhl-faq details p { padding: 0 20px 16px; margin: 0; font-size: .95rem; }

/* Related */
.bhl-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 10px; }
.bhl-related a { display: block; padding: 14px 18px; background: var(--white); box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); text-decoration: none; color: var(--primary); font-weight: 600; font-size: .93rem; border: 1px solid transparent; transition: border-color var(--transition), background var(--transition); }
.bhl-related a:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.bhl-related a::before { content: "→ "; color: var(--accent); }

/* Inline CTA */
.bhl-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; border-radius: var(--radius-lg); padding: 30px 32px; margin: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bhl-cta-text b { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.bhl-cta-text span { opacity: .9; font-size: .95rem; }
.bhl-cta .btn { white-space: nowrap; }
.bhl-cta .btn-primary { background: #fff; color: var(--primary); }
.bhl-cta .btn-primary:hover { background: var(--blue-light); }

/* Responsive */
@media (max-width: 900px) {
  .bhl-stats, .bhl-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .bhl-cards, .bhl-cases, .bhl-products { grid-template-columns: 1fr 1fr; }
  .bhl-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bhl-stats, .bhl-cards, .bhl-cards--2, .bhl-cards--4, .bhl-cases, .bhl-products, .bhl-steps, .bhl-related { grid-template-columns: 1fr; }
  .bhl-wide .bhl-toc ol { columns: 1; }
  .bhl-stat b { font-size: 1.5rem; }
  .bhl-cta { padding: 24px 20px; }
  .bhl-wide h2 { font-size: 1.3rem; }
  .bhl-wide figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bhl-wide figure svg { min-width: 640px; }
}
