/* Раздел статей /dzen/ — стили (BIOSCORP, 26.10.2026). Подключается самим разделом. */
:root{--bc-blue:#1d5fae;--bc-blue-dark:#164a88;--bc-green:#2e9f5b;--bc-ink:#1c2b36;--bc-ink-soft:#56636e;--bc-border:#e3e8ee;--bc-bg-soft:#f4f7fa;}
/* ---------- 11. Раздел статей /dzen/ (лента и статья в стиле Дзена) ---------- */
.bc-articles-all { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--bc-blue) !important; }
.bc-dz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 6px 0 24px;
}
.bc-dz-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.bc-dz-card:hover { box-shadow: 0 14px 34px -18px rgba(19,41,75,.45); transform: translateY(-2px); }
.bc-dz-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bc-bg-soft);
    overflow: hidden;
}
.bc-dz-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-dz-card-cover.is-empty {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d5fae, #2e9f5b);
    color: rgba(255,255,255,.9);
    font-size: 54px;
    font-weight: 800;
    text-decoration: none !important;
}
.bc-dz-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-dz-meta { font-size: 13px; color: var(--bc-ink-soft); }
.bc-dz-meta a { color: var(--bc-blue) !important; }
.bc-dz-card-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.bc-dz-card-title a { color: var(--bc-ink) !important; text-decoration: none !important; }
.bc-dz-card-title a:hover { color: var(--bc-blue) !important; }
.bc-dz-card-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3b4652; }
/* первая статья ленты — крупная карточка во всю ширину */
.bc-dz-grid.is-feed .bc-dz-card.is-big { grid-column: 1 / -1; flex-direction: row; }
.bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-cover { flex: 0 0 55%; aspect-ratio: auto; min-height: 300px; }
.bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-body { padding: 28px 32px; justify-content: center; }
.bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-title { font-size: 26px; }
.bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-text { font-size: 16px; }
@media (max-width: 767px) {
    .bc-dz-grid { grid-template-columns: 1fr; gap: 16px; }
    .bc-dz-grid.is-feed .bc-dz-card.is-big { flex-direction: column; }
    .bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-cover { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
    .bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-body { padding: 16px 20px 20px; }
    .bc-dz-grid.is-feed .bc-dz-card.is-big .bc-dz-card-title { font-size: 20px; }
}
.bc-dz-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 30px; }
.bc-dz-pg {
    min-width: 42px; height: 42px; padding: 0 14px;
    display: inline-grid; place-items: center;
    border: 1px solid var(--bc-border); border-radius: 12px;
    background: #fff; color: var(--bc-ink) !important; font-weight: 700; text-decoration: none !important;
}
a.bc-dz-pg:hover { border-color: var(--bc-blue); color: var(--bc-blue) !important; }
.bc-dz-pg.is-current { background: var(--bc-blue); border-color: var(--bc-blue); color: #fff !important; }
.bc-dz-pg.is-gap { border: 0; background: none; min-width: 20px; padding: 0; }
.bc-dz-empty { padding: 40px 0; font-size: 16px; }

/* статья */
.bc-dz-article { max-width: 780px; margin: 10px auto 0; }
.bc-dz-h1 { font-size: 34px; line-height: 1.25; font-weight: 800; color: var(--bc-ink); margin: 0 0 12px; }
.bc-dz-article-head { margin-bottom: 24px; }
.bc-dz-content { font-size: 17px; line-height: 1.7; color: #1f2a33; overflow-wrap: anywhere; }
.bc-dz-content p { margin: 0 0 16px; }
.bc-dz-content h2 { font-size: 26px; font-weight: 800; margin: 32px 0 12px; line-height: 1.3; }
.bc-dz-content h3 { font-size: 21px; font-weight: 700; margin: 26px 0 10px; }
.bc-dz-content ul, .bc-dz-content ol { margin: 0 0 16px; padding-left: 24px; }
.bc-dz-content li { margin-bottom: 6px; }
.bc-dz-content img { max-width: 100%; height: auto !important; border-radius: 14px; margin: 8px 0 16px; }
.bc-dz-content table { width: 100% !important; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.bc-dz-content td, .bc-dz-content th { border: 1px solid var(--bc-border); padding: 8px 10px; }
.bc-dz-content a { color: var(--bc-blue); }
.bc-dz-content iframe { max-width: 100%; }
/* текст из старых страниц часто с inline-шрифтами — выравниваем */
.bc-dz-content * { font-family: inherit !important; }
.bc-dz-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 10px; }
.bc-dz-pn {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 20px; border: 1px solid var(--bc-border); border-radius: 16px;
    text-decoration: none !important; background: #fff;
}
.bc-dz-pn span { font-size: 13px; color: var(--bc-ink-soft); }
.bc-dz-pn b { font-size: 15.5px; line-height: 1.35; color: var(--bc-ink); }
.bc-dz-pn:hover { border-color: var(--bc-blue); }
.bc-dz-pn:hover b { color: var(--bc-blue); }
.bc-dz-pn.is-next { text-align: right; }
.bc-dz-more { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--bc-border); }
.bc-dz-more-title { font-size: 24px; font-weight: 800; margin: 0 0 18px; }
.bc-dz-all { text-align: center; }
.bc-dz-all a { font-weight: 700; color: var(--bc-blue) !important; }
@media (max-width: 767px) {
    .bc-dz-h1 { font-size: 25px; }
    .bc-dz-content { font-size: 16px; }
    .bc-dz-prevnext { grid-template-columns: 1fr; }
    .bc-dz-pn.is-next { text-align: left; }
}

/* лента /dzen/: компактный список — миниатюра, короткое название, дата */
.bc-dz-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 26px; max-width: 980px; }
.bc-dz-row {
    display: flex; align-items: center; gap: 18px;
    padding: 12px 16px 12px 12px;
    background: #fff; border: 1px solid var(--bc-border); border-radius: 14px;
    text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.bc-dz-row:hover { border-color: #b9cde4; box-shadow: 0 10px 26px -18px rgba(19,41,75,.5); }
.bc-dz-row-thumb { flex: none; width: 132px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--bc-bg-soft); display: grid; place-items: center; }
.bc-dz-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-dz-row-thumb.is-logo img { width: 56px; height: 56px; object-fit: contain; }
.bc-dz-row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.bc-dz-row-title {
    font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--bc-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-dz-row:hover .bc-dz-row-title { color: var(--bc-blue); }
.bc-dz-row-arrow { flex: none; font-size: 28px; line-height: 1; color: #9aa7b4; }
@media (max-width: 767px) {
    .bc-dz-row { gap: 12px; padding: 10px; }
    .bc-dz-row-thumb { width: 84px; height: 60px; }
    .bc-dz-row-thumb.is-logo img { width: 40px; height: 40px; }
    .bc-dz-row-title { font-size: 15px; }
    .bc-dz-row-arrow { display: none; }
}

/* шапка статьи не должна «прилипать» как шапка сайта (общее правило header{position:sticky} в шаблоне) */
.bc-dz-article-head { position: static !important; top: auto !important; z-index: auto !important; background: none !important; }
