/* Раздел «Статьи» (/blog/). Светлая тема + блок тёмной темы внизу файла. */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --bg: #f4f6fa; --card: #ffffff; --border: #e8ecf3; --blue: #0099ff; --blue-hover: #007acc;
    --text: #1e293b; --muted: #64748b; --green: #10b981;
    --bl-ink: #0f172a; --bl-ink-2: #334155; --bl-ink-3: #64748b;
    --bl-line: #e6ebf2; --bl-soft: #f6f8fb; --bl-accent: #0ea5e9; --bl-accent-2: #10b981;
    --bl-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 23, 42, .25);
}
body.blog-body { margin: 0; padding-top: 67.8px; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
@media (max-width: 992px) { body.blog-body { padding-top: 34px; } }
.blog-main { min-width: 0; background: #f4f7fb; min-height: calc(100vh - 68px); }
@media (min-width: 993px) { html body .blog-main { padding: 14px 16px 24px !important; } }
@media (max-width: 992px) { html body .blog-main { padding: 8px !important; } }

/* ---------- хлебные крошки ---------- */
.bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bl-ink-3); margin-bottom: 14px; }
.bl-crumbs a { color: var(--bl-ink-3); text-decoration: none; }
.bl-crumbs a:hover { color: var(--bl-accent); }
.bl-crumbs span { opacity: .5; }
.bl-crumbs-light, .bl-crumbs-light a { color: rgba(255, 255, 255, .78); }
.bl-crumbs-light b { color: #fff; font-weight: 600; }
.bl-crumbs-light a:hover { color: #fff; }

/* ---------- шапка ленты ---------- */
.bl-hero {
    position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px 22px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(120deg, #0f9f6e 0%, #0ea5a4 34%, #0284c7 70%, #1e40af 100%);
    box-shadow: 0 18px 40px -24px rgba(2, 132, 199, .65);
}
.bl-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 220px at 85% -10%, rgba(255, 255, 255, .22), transparent 70%),
                radial-gradient(500px 260px at 0% 120%, rgba(16, 185, 129, .35), transparent 70%);
}
.bl-hero > * { position: relative; z-index: 1; }
.bl-hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bl-hero p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .86); max-width: 760px; line-height: 1.5; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bl-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    color: #fff; text-decoration: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
    transition: background .15s, border-color .15s;
}
.bl-pill i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.bl-pill:hover { background: rgba(255, 255, 255, .22); }
.bl-pill.active { background: #fff; color: #0369a1; border-color: #fff; }
.bl-pill.active i { background: rgba(3, 105, 161, .12); }

/* ---------- плитка статей ---------- */
.bl-list-wrap.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--bl-line); border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; box-shadow: var(--bl-shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bl-card:hover { transform: translateY(-2px); border-color: #bae6fd; box-shadow: 0 18px 36px -20px rgba(2, 132, 199, .45); }
.bl-card-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #e2e8f0; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bl-card:hover .bl-card-img img { transform: scale(1.03); }
.bl-card-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.bl-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bl-accent); }
.bl-card-title { font-size: 16px; font-weight: 750; line-height: 1.35; color: var(--bl-ink); letter-spacing: -.01em; }
.bl-card-text { font-size: 13.5px; line-height: 1.55; color: var(--bl-ink-2); }
.bl-card-meta { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--bl-ink-3); }
.bl-card-big { grid-column: 1 / -1; flex-direction: row; }
.bl-card-big .bl-card-img { flex: 0 0 54%; aspect-ratio: auto; min-height: 290px; }
.bl-card-big .bl-card-body { padding: 26px 28px; justify-content: center; gap: 10px; }
.bl-card-big .bl-card-title { font-size: 24px; line-height: 1.25; }
.bl-card-big .bl-card-text { font-size: 15px; }
.bl-empty { background: var(--card); border: 1px dashed var(--bl-line); border-radius: 16px; padding: 40px; text-align: center; color: var(--bl-ink-3); }
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.bl-pager a { min-width: 38px; padding: 8px 12px; text-align: center; border-radius: 10px; background: var(--card); border: 1px solid var(--bl-line); color: var(--bl-ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.bl-pager a:hover { border-color: #7dd3fc; color: var(--bl-accent); }
.bl-pager a.active { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }

/* ---------- статья ---------- */
.bl-preview-bar { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.bl-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.bl-article { background: var(--card); border: 1px solid var(--bl-line); border-radius: 18px; padding: 30px 44px 30px; box-shadow: var(--bl-shadow); min-width: 0; }
.bl-head { margin-bottom: 20px; }
.bl-chip { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(14, 165, 233, .1); color: #0369a1; font-size: 12px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.bl-chip:hover { background: rgba(14, 165, 233, .18); }
.bl-head h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -.025em; color: var(--bl-ink); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--bl-ink-3); }
.bl-meta > span + span::before { content: "·"; margin-right: 16px; opacity: .6; }
.bl-author { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--bl-ink-2); }
.bl-author img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #0f172a; padding: 2px; }
.bl-cover { margin: 0 0 22px; border-radius: 14px; overflow: hidden; aspect-ratio: 1200 / 630; background: #e2e8f0; }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-lead { font-size: 19px; line-height: 1.6; color: var(--bl-ink-2); margin: 0 0 22px; font-weight: 500; }

.bl-body { font-size: 17px; line-height: 1.78; color: var(--bl-ink-2); }
.bl-body > :first-child { margin-top: 0; }
.bl-body h2 { font-size: 25px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; color: var(--bl-ink); margin: 38px 0 14px; scroll-margin-top: 90px; }
.bl-body h3 { font-size: 20px; line-height: 1.35; font-weight: 750; color: var(--bl-ink); margin: 28px 0 10px; }
.bl-body h4 { font-size: 17px; font-weight: 700; color: var(--bl-ink); margin: 22px 0 8px; }
.bl-body p { margin: 0 0 18px; }
.bl-body ul, .bl-body ol { margin: 0 0 20px; padding-left: 24px; }
.bl-body li { margin: 6px 0; padding-left: 4px; }
.bl-body ul li::marker { color: var(--bl-accent); }
.bl-body ol li::marker { color: var(--bl-accent); font-weight: 700; }
.bl-body a { color: #0284c7; text-decoration: underline; text-decoration-color: rgba(2, 132, 199, .35); text-underline-offset: 3px; }
.bl-body a:hover { text-decoration-color: currentColor; }
.bl-body strong, .bl-body b { color: var(--bl-ink); font-weight: 700; }
.bl-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--bl-accent-2); background: linear-gradient(90deg, rgba(16, 185, 129, .08), rgba(16, 185, 129, .02)); border-radius: 0 12px 12px 0; color: var(--bl-ink); }
.bl-body blockquote p:last-child { margin: 0; }
.bl-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 15px; border: 1px solid var(--bl-line); border-radius: 12px; overflow: hidden; }
@media (max-width: 760px) { .bl-body table { display: block; overflow-x: auto; font-size: 14px; } }
.bl-body th, .bl-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--bl-line); vertical-align: top; }
.bl-body th { background: var(--bl-soft); color: var(--bl-ink); font-weight: 700; font-size: 13.5px; }
.bl-body tr:last-child td { border-bottom: 0; }
.bl-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bl-body mark { background: rgba(250, 204, 21, .35); padding: 0 3px; border-radius: 3px; color: inherit; }
.bl-body hr { border: 0; height: 1px; background: var(--bl-line); margin: 30px 0; }

/* оглавление на телефоне */
.bl-toc-mobile { display: none; margin: 0 0 22px; border: 1px solid var(--bl-line); border-radius: 12px; background: var(--bl-soft); }
.bl-toc-mobile summary { padding: 12px 16px; font-weight: 700; cursor: pointer; color: var(--bl-ink); }
.bl-toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; font-size: 14.5px; line-height: 1.5; }
.bl-toc-mobile li { margin: 6px 0; }
.bl-toc-mobile a { color: var(--bl-ink-2); text-decoration: none; }

/* ---------- блок каналов ---------- */
.bl-channels {
    margin: 30px -14px 30px; padding: 22px 22px 18px; border-radius: 16px; border: 1px solid #d5f0e6;
    background: linear-gradient(180deg, #f0fdf8 0%, #f5fbff 100%);
}
.bl-channels-head { margin-bottom: 14px; }
.bl-channels-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--bl-ink); letter-spacing: -.01em; }
.bl-channels-head p { margin: 0; font-size: 13px; color: var(--bl-ink-3); }
.bl-ch-list { display: flex; flex-direction: column; gap: 10px; }
.bl-ch {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    background: var(--card); border: 1px solid var(--bl-line); border-radius: 14px; padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.bl-ch:hover { border-color: #a7f3d0; box-shadow: 0 10px 24px -16px rgba(16, 185, 129, .55); }
.bl-ch-ava { position: relative; display: block; width: 56px; height: 56px; }
.bl-ch-ava img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #fff; box-shadow: 0 0 0 2px #a7f3d0; }
.bl-ch-ok { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.bl-ch-name { font-size: 15.5px; font-weight: 750; color: var(--bl-ink); text-decoration: none; }
.bl-ch-name:hover { color: #0284c7; }
.bl-ch-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12.5px; color: var(--bl-ink-3); }
.bl-ch-stats b { color: var(--bl-ink-2); font-weight: 700; }
.bl-ch-blurb { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--bl-ink-2); }
.bl-ch-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bl-ch-price { font-size: 16px; font-weight: 800; color: var(--bl-ink); white-space: nowrap; text-align: right; }
.bl-ch-price small { display: block; font-size: 11px; font-weight: 600; color: var(--bl-ink-3); }
.bl-ch-btns { display: flex; gap: 6px; }
.bl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.bl-btn-ghost { color: #0369a1; background: #fff; border: 1px solid #bae6fd; }
.bl-btn-ghost:hover { border-color: #0ea5e9; }
.bl-btn-main { color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); border: 1px solid transparent; }
.bl-btn-main:hover { transform: translateY(-1px); }
.bl-channels-more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #0284c7; text-decoration: none; }
.bl-channels-more:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.bl-faq { margin-top: 34px; }
.bl-faq h2 { font-size: 25px; font-weight: 800; color: var(--bl-ink); margin: 0 0 14px; letter-spacing: -.015em; }
.bl-faq details { border: 1px solid var(--bl-line); border-radius: 12px; margin-bottom: 8px; background: var(--card); overflow: hidden; }
.bl-faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; font-size: 15.5px; color: var(--bl-ink); position: relative; }
.bl-faq summary::-webkit-details-marker { display: none; }
.bl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--bl-accent); font-weight: 600; }
.bl-faq details[open] summary::after { content: "–"; }
.bl-faq details > div { padding: 0 18px 16px; font-size: 15.5px; line-height: 1.7; color: var(--bl-ink-2); }
.bl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--bl-line); font-size: 13px; color: var(--bl-ink-3); }

/* ---------- боковая колонка ---------- */
.bl-aside { display: flex; flex-direction: column; gap: 14px; }
/* в статье колонка тянется на всю высоту, а прилипает только блок каналов — ничего не обрезается */
.bl-article-wrap > .bl-aside { align-self: stretch; }
.bl-article-wrap > .bl-aside .bl-aside-card { position: sticky; top: 80px; }
.bl-list-wrap > .bl-aside { position: sticky; top: 80px; }
/* общий CSS сайта ставит body/html overflow:hidden/auto — из-за этого «прилипание» не работает. clip режет так же, но не мешает */
html:has(> body.blog-body), body.blog-body { overflow-x: clip !important; overflow-y: visible !important; }
.bl-toc, .bl-aside-card { background: var(--card); border: 1px solid var(--bl-line); border-radius: 16px; padding: 16px 16px 14px; box-shadow: var(--bl-shadow); }
.bl-aside-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-ink-3); margin-bottom: 10px; }
.bl-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; max-height: 46vh; overflow: auto; }
.bl-toc li { counter-increment: t; }
.bl-toc a { display: grid; grid-template-columns: 20px 1fr; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--bl-ink-2); text-decoration: none; }
.bl-toc a::before { content: counter(t); font-weight: 700; color: var(--bl-accent); }
.bl-toc a:hover, .bl-toc a.active { background: rgba(14, 165, 233, .08); color: #0369a1; }
.bl-mini { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.bl-mini:hover { background: var(--bl-soft); }
.bl-mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.bl-mini span { display: flex; flex-direction: column; min-width: 0; }
.bl-mini b { font-size: 13.5px; font-weight: 700; color: var(--bl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-mini small { font-size: 12px; color: var(--bl-ink-3); }
.bl-aside-link { display: block; margin-top: 8px; padding: 9px 10px; text-align: center; border-radius: 10px; background: rgba(14, 165, 233, .08); color: #0369a1; font-size: 13px; font-weight: 700; text-decoration: none; }
.bl-aside-link:hover { background: rgba(14, 165, 233, .15); }

/* ---------- читайте также ---------- */
.bl-related { margin-top: 22px; }
.bl-related h2 { font-size: 20px; font-weight: 800; color: var(--bl-ink); margin: 0 0 12px; }

/* ---------- блок «Статьи по теме» в каталоге и на странице канала ---------- */
.bl-inline { margin: 14px 0; background: var(--card); border: 1px solid var(--bl-line); border-radius: 16px; padding: 16px 18px; }
.bl-inline h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--bl-ink); }
.bl-inline .bl-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bl-inline .bl-card-title { font-size: 14px; }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
    .bl-article-wrap, .bl-list-wrap.with-aside { grid-template-columns: minmax(0, 1fr); }
    .bl-aside { display: none; }
    .bl-toc-mobile { display: block; }
    .bl-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
    .bl-hero { padding: 18px 16px; border-radius: 14px; }
    .bl-hero h1 { font-size: 21px; }
    .bl-article { padding: 18px 16px; border-radius: 14px; }
    .bl-head h1 { font-size: 25px; }
    .bl-lead { font-size: 17px; }
    .bl-body { font-size: 16px; line-height: 1.72; }
    .bl-body h2 { font-size: 21px; margin-top: 30px; }
    .bl-body h3 { font-size: 18px; }
    .bl-meta > span + span::before { display: none; }
    .bl-meta { gap: 4px 12px; }
    .bl-channels { margin: 24px -8px; padding: 14px 10px 12px; }
    .bl-channels-title { font-size: 18px; }
    .bl-ch { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; }
    .bl-ch-ava, .bl-ch-ava img { width: 44px; height: 44px; }
    .bl-ch-name { font-size: 15px; }
    .bl-ch-stats { gap: 2px 10px; font-size: 12px; }
    .bl-ch-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .bl-ch-side { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 8px; }
    .bl-ch-price { text-align: left; display: flex; align-items: baseline; gap: 6px; font-size: 15px; }
    .bl-ch-price small { display: inline; }
    .bl-ch-btns { width: 100%; }
    .bl-btn { flex: 1; padding: 10px 8px; }
    .bl-card-big { flex-direction: column; }
    .bl-card-big .bl-card-img { flex: none; min-height: 0; aspect-ratio: 1200 / 630; }
    .bl-card-big .bl-card-body { padding: 14px 16px 16px; }
    .bl-card-big .bl-card-title { font-size: 18px; }
}

/* ---------- короткие блоки «Каналы по теме» внутри текста ---------- */
.bl-inl { margin: 8px 0 30px; padding: 14px 16px; border-radius: 14px; border: 1px solid #d5f0e6; background: linear-gradient(180deg, #f0fdf8, #f6fbff); }
.bl-inl-h { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #059669; margin-bottom: 10px; }
.bl-inl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-inl-ch { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--bl-line); border-radius: 12px; padding: 9px 10px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.bl-inl-ch:hover { border-color: #a7f3d0; box-shadow: 0 8px 20px -14px rgba(16, 185, 129, .6); }
.bl-inl-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.bl-inl-main img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #a7f3d0; }
.bl-inl-main span { display: flex; flex-direction: column; min-width: 0; }
.bl-inl-main b { font-size: 14px; font-weight: 750; color: var(--bl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-inl-main small { font-size: 12px; color: var(--bl-ink-3); }
.bl-inl-main:hover b { color: #0284c7; }
.bl-inl-buy { flex: none; padding: 7px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg, #10b981, #0ea5e9); white-space: nowrap; }
.bl-inl-buy:hover { filter: brightness(1.06); }

/* ---------- оптовые наборы в конце блока каналов ---------- */
.bl-wholesale { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 13px 16px; border-radius: 14px; text-decoration: none; color: #fff;
    background: linear-gradient(120deg, #7c3aed, #6366f1 45%, #0ea5e9); box-shadow: 0 14px 30px -18px rgba(99, 102, 241, .8); transition: transform .15s, box-shadow .15s; }
.bl-wholesale:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgba(99, 102, 241, .9); }
.bl-wh-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: rgba(255, 255, 255, .18); }
.bl-wholesale > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bl-wholesale b { font-size: 15px; font-weight: 800; }
.bl-wholesale small { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.bl-wh-go { flex: none; padding: 8px 13px; border-radius: 10px; background: #fff; color: #4f46e5; font-weight: 800; font-size: 12.5px; }

@media (max-width: 760px) {
    .bl-inl { padding: 12px 10px; margin: 6px -8px 24px; }
    .bl-inl-list { grid-template-columns: 1fr; gap: 8px; }
    .bl-wholesale { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .bl-wh-go { width: 100%; text-align: center; }
}
html[data-theme="dark"] .bl-inl { background: linear-gradient(180deg, rgba(16, 185, 129, .1), rgba(14, 165, 233, .06)); border-color: rgba(45, 212, 191, .25); }
html[data-theme="dark"] .bl-inl-h { color: #5eead4; }
html[data-theme="dark"] .bl-inl-ch { background: var(--tgd-ink-2, #16243f); border-color: var(--bl-line); }
html[data-theme="dark"] .bl-inl-main img { box-shadow: 0 0 0 2px rgba(45, 212, 191, .5); }
html[data-theme="dark"] .bl-inl-main:hover b { color: #7dd3fc; }
html[data-theme="dark"] .bl-wh-go { color: #4338ca; }

/* =================================================================== ТЁМНАЯ ТЕМА */
html[data-theme="dark"] {
    --bl-ink: var(--tgd-text, #e6edf7); --bl-ink-2: var(--tgd-text-2, #c6d4e6); --bl-ink-3: var(--tgd-text-3, #9fb2cb);
    --bl-line: var(--tgd-line, rgba(125, 165, 220, .16)); --bl-soft: var(--tgd-ink-2, #16243f); --bl-accent: #38bdf8;
    --bl-shadow: var(--tgd-card-shadow, 0 12px 32px -12px rgba(0, 0, 0, .6));
}
html[data-theme="dark"] body.blog-body { color: var(--bl-ink-2); }
html[data-theme="dark"] .blog-main { background: transparent; }
html[data-theme="dark"] .bl-article, html[data-theme="dark"] .bl-card, html[data-theme="dark"] .bl-toc,
html[data-theme="dark"] .bl-aside-card, html[data-theme="dark"] .bl-empty, html[data-theme="dark"] .bl-pager a,
html[data-theme="dark"] .bl-faq details, html[data-theme="dark"] .bl-inline { background: var(--tgd-ink-1, #111d33); border-color: var(--bl-line); }
html[data-theme="dark"] .bl-card:hover { border-color: rgba(56, 189, 248, .45); }
html[data-theme="dark"] .bl-pager a.active { background: #0284c7; border-color: #0284c7; }
html[data-theme="dark"] .bl-chip, html[data-theme="dark"] .bl-aside-link { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
html[data-theme="dark"] .bl-body a, html[data-theme="dark"] .bl-channels-more, html[data-theme="dark"] .bl-ch-name:hover { color: #7dd3fc; }
html[data-theme="dark"] .bl-body blockquote { background: linear-gradient(90deg, rgba(45, 212, 191, .12), rgba(45, 212, 191, .03)); }
html[data-theme="dark"] .bl-body th { background: var(--tgd-ink-2, #16243f); }
html[data-theme="dark"] .bl-cover, html[data-theme="dark"] .bl-card-img { background: var(--tgd-ink-2, #16243f); }
html[data-theme="dark"] .bl-channels { background: linear-gradient(180deg, rgba(16, 185, 129, .1), rgba(14, 165, 233, .06)); border-color: rgba(45, 212, 191, .25); }
html[data-theme="dark"] .bl-ch { background: var(--tgd-ink-2, #16243f); border-color: var(--bl-line); }
html[data-theme="dark"] .bl-ch:hover { border-color: rgba(45, 212, 191, .45); }
html[data-theme="dark"] .bl-ch-ava img { border-color: var(--tgd-ink-2, #16243f); box-shadow: 0 0 0 2px rgba(45, 212, 191, .5); }
html[data-theme="dark"] .bl-ch-ok { border-color: var(--tgd-ink-2, #16243f); }
html[data-theme="dark"] .bl-btn-ghost { background: transparent; color: #7dd3fc; border-color: rgba(125, 211, 252, .35); }
html[data-theme="dark"] .bl-toc a:hover, html[data-theme="dark"] .bl-toc a.active { background: rgba(56, 189, 248, .12); color: #bae6fd; }
html[data-theme="dark"] .bl-mini:hover { background: var(--tgd-ink-2, #16243f); }
html[data-theme="dark"] .bl-toc-mobile { background: var(--tgd-ink-2, #16243f); }
html[data-theme="dark"] .bl-preview-bar { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .4); color: #fcd34d; }
html[data-theme="dark"] .bl-pill.active { color: #075985; }