/* Блог (/blog/). Сторінки генерує _backup-2026-10-02/_scripts/blog/build_blog.py.
   Плитки-обкладинки — ті самі кольори й іконки, що на плитках /help/: рубрика = колір. */

/* ширина як на /partners/ (.wrap-wide, 1400 px); flex-елемент не має розпирати сторінку вмістом */
.main-content {
  min-width: 0;
}

.bl {
  --bl-ink: #000;
  --bl-mute: rgba(0, 0, 0, .58);
  --bl-line: rgba(0, 0, 0, .12);
  --bl-card: #fff;
  --bl-r: 30px;
  --bl-ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--bl-ink);
}

:where(.bl) :is(h1, h2, h3, h4, p, ul, ol) {
  margin: 0;
  padding: 0;
}

:where(.bl) :is(ul, ol) {
  padding-left: 1.3em;
}

:where(.bl) a {
  border-bottom: 0;
}

.bl [hidden] {
  display: none !important;
}

.bl :focus-visible {
  outline: 2px solid var(--bl-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- обкладинка-плитка ---------- */

.bl-cover {
  box-sizing: border-box;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 7%;               /* % від ширини батька = ширини плитки; cqi тут рахувався б від предка */
  overflow: hidden;
  border-radius: var(--bl-r);
  background: var(--c, #fff);
  color: #000;
  transition: transform .5s var(--bl-ease);
}

.bl-cover.has-img {
  padding: 0;
}

.bl-cover.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-cover .bl-ico {
  display: block;
  width: 17cqi;
  height: auto;
  margin: -2.5cqi 0 0 -2.5cqi;
  fill: #000;
}

.bl-cover-t {
  position: relative;
  z-index: 1;
  max-width: 88%;
  font-weight: 700;
  font-size: 9.6cqi;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* та сама іконка великим відбитком у куті: кожна рубрика впізнається навіть у мініатюрі */
.bl-cover .bl-ghost {
  position: absolute;
  z-index: -1;
  right: -16cqi;
  bottom: -20cqi;
  width: 74cqi;
  height: auto;
  fill: #000;
  opacity: .07;
  transition: transform .8s var(--bl-ease);
}

.bl-cover-s {
  --bl-r: 22px;
}

.bl-cover-l {
  aspect-ratio: 16 / 11;
}

.bl-cover-l .bl-cover-t {
  font-size: 7.6cqi;
  max-width: 78%;
}

.bl-cover-xl {
  aspect-ratio: 3 / 1;
  padding: 4.5%;
}

.bl-cover-xl .bl-ico {
  width: 9cqi;
  margin: -1.4cqi 0 0 -1.4cqi;
}

.bl-cover-xl .bl-cover-t {
  font-size: 5.4cqi;
  max-width: 62%;
}

.bl-cover-xl .bl-ghost {
  width: 42cqi;
  right: -6cqi;
  bottom: -14cqi;
}

/* у вузькій мініатюрі текст не читається — лишаємо іконку */
@container (max-width: 190px) {
  .bl-cover-t {
    display: none;
  }

  .bl-ico {
    width: 40cqi !important;
  }
}

/* ---------- мітки ---------- */

.bl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--bl-mute);
}

.bl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 20px;
  background: var(--bl-card);
  color: var(--bl-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow .25s ease;
}

a.bl-chip:hover {
  box-shadow: inset 0 0 0 1.5px var(--bl-ink);
}

.bl-chip i,
.bl-filter i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.bl-by {
  color: var(--bl-ink);
}

.bl-read {
  white-space: nowrap;
}

/* ---------- верх списку ---------- */

.bl-top .content-wrap {
  padding-top: clamp(24px, 5vw, 70px);
  padding-bottom: 0;
}

.bl-top h1 {
  font-size: clamp(64px, 9.4vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.bl-lede {
  max-width: 34ch;
  margin-top: 22px;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--bl-mute);
  text-wrap: pretty;
}

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 52px);
}

.bl-filters .bl-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 21px;
  background: var(--bl-card);
  color: var(--bl-ink);
  font: 600 15px/1 var(--font);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.bl-filters .bl-filter:not(.disabled)::before {
  content: none;
}

.bl-filters .bl-filter:not(.disabled):hover {
  color: var(--bl-ink);
  box-shadow: inset 0 0 0 1.5px var(--bl-ink);
}

.bl-filters .bl-filter:not(.disabled):active {
  transform: scale(.97);
}

.bl-filters .bl-filter[aria-pressed="true"],
.bl-filters .bl-filter[aria-pressed="true"]:not(.disabled):hover {
  background: var(--bl-ink);
  color: #fff;
  box-shadow: none;
}

.bl-filters .bl-filter[aria-pressed="true"] i {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

/* ---------- макет A: шапка на всю ширину ---------- */

.bl-top-a .bl-lede {
  max-width: none;
  font-size: clamp(19px, 1.75vw, 25px);
  line-height: 1.45;
}

.bl-feature .content-wrap,
.bl-list .content-wrap {
  padding-top: clamp(36px, 4.5vw, 64px);
}

/* ---------- макет A: картка-«бенто» ----------
   .bl-item — кольорова зона рубрики (.bl-item-art) і текст на одній підкладці; клікабельна вся
   (посилання заголовка розтягнуте на картку), рубрика й кнопка лежать поверх.
   .is-hero і всі картки під фільтром рубрики — текст просто на кольоровій картці. */

.bl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bl-card);
  transition: transform .45s var(--bl-ease), box-shadow .45s var(--bl-ease);
}

.bl-item-art .bl-cover {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  transition: none;
}

.bl-item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px 26px 26px;
}

.bl-item-top {
  position: relative;
  z-index: 2;
  display: flex;
}

.bl-item .bl-chip {
  background: var(--body-color, #f4f4f4);
}

.bl-item-t {
  margin-top: 16px;
  font-size: clamp(21px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

.bl-item-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
  text-decoration-color: transparent;
  transition: text-decoration-color .3s ease;
}

/* глобальне a:hover / a.hover у main.css фарбує посилання синім — у картках колір лишаємо чорним */
.bl .bl-item-link,
.bl .bl-item-link:hover,
.bl a.bl-chip,
.bl a.bl-chip:hover {
  color: var(--bl-ink);
}

/* уся картка — посилання статті: шар .bl-item-hit під вмістом, а вміст пропускає клік крізь себе,
   крім своїх посилань (рубрика, заголовок, кнопка) */
.bl-item-hit {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bl-item-art,
.bl-item-body {
  position: relative;
  pointer-events: none;
}

.bl-item-body a {
  pointer-events: auto;
}

.bl-item-link:focus-visible {
  outline: none;
}

.bl-item:has(.bl-item-link:focus-visible) {
  outline: 3px solid var(--bl-ink);
  outline-offset: 4px;
}

.bl-item-d {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bl-mute);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* дата притиснута донизу: у ряду карток вона на одній лінії */
.bl-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.bl-when {
  gap: 6px 18px;
  font-size: 14px;
}

/* у сітці кнопки немає — клікабельна вся картка */
.bl-item .bl-item-btn {
  position: relative;
  z-index: 2;
  display: none;
}

@media (hover: hover) {
  .bl-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .35);
  }

  .bl-item:hover .bl-item-link {
    text-decoration-color: currentColor;
  }

  .bl-item:hover .bl-ghost {
    transform: rotate(-8deg) scale(1.04);
  }
}

/* ---------- велика кольорова картка: головна стаття й усі картки під фільтром ---------- */

.bl-item.is-hero,
.bl.is-filtered .bl-item {
  --pad: clamp(26px, 4vw, 56px);
  min-height: clamp(400px, 36vw, 500px);
  background: var(--c);
}

.bl-item.is-hero .bl-item-art,
.bl.is-filtered .bl-item-art {
  position: absolute;
  inset: 0;
}

.bl-item.is-hero .bl-cover,
.bl.is-filtered .bl-item .bl-cover {
  height: 100%;
  aspect-ratio: auto;
  padding: var(--pad);
}

.bl-item.is-hero .bl-ico,
.bl.is-filtered .bl-item .bl-ico {
  width: clamp(56px, 6cqi, 84px);
  margin: -10px 0 0 -10px;
}

.bl-item.is-hero .bl-ghost,
.bl.is-filtered .bl-item .bl-ghost {
  width: 46cqi;
  right: -5cqi;
  bottom: -12cqi;
  opacity: .1;
}

.bl-item.is-hero .bl-item-body,
.bl.is-filtered .bl-item-body {
  position: relative;
  padding: var(--pad);
}

/* рубрика — у правому верхньому куті, навпроти іконки */
.bl-item.is-hero .bl-item-top,
.bl.is-filtered .bl-item-top {
  align-self: flex-end;
  margin-bottom: auto;
}

.bl-item.is-hero .bl-chip,
.bl.is-filtered .bl-item .bl-chip {
  background: #fff;
}

.bl-item.is-hero .bl-item-t,
.bl.is-filtered .bl-item-t {
  max-width: 19ch;
  margin-top: clamp(48px, 8vw, 120px);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.bl-item.is-hero .bl-item-d,
.bl.is-filtered .bl-item-d {
  display: block;
  max-width: 54ch;
  margin-top: 16px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: rgba(0, 0, 0, .72);
}

.bl-item.is-hero .bl-item-foot,
.bl.is-filtered .bl-item-foot {
  margin-top: 0;
  padding-top: clamp(24px, 3vw, 36px);
}

.bl-item.is-hero .bl-when,
.bl.is-filtered .bl-when {
  font-size: 15px;
  color: rgba(0, 0, 0, .66);
}

.bl-item.is-hero .bl-item-btn,
.bl.is-filtered .bl-item-btn {
  display: inline-flex;
  margin-top: 0;
}

@media (hover: hover) {
  .bl-item.is-hero:hover,
  .bl.is-filtered .bl-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--c) 60%, #000);
  }
}

/* ---------- поява карток каскадом: спершу картка, за нею її текст (js/blog.js) ----------
   Зсув через властивість translate, а не transform: transform лишається за наведенням.
   --bl-d — затримка картки в черзі; якщо скрипт не спрацював, усе з'являється саме за 4 с. */

@media (prefers-reduced-motion: no-preference) {
  .bl-cascade .bl-item {
    opacity: 0;
    translate: 0 36px;
    transition: opacity .7s ease var(--bl-d, 0s), translate .9s var(--bl-ease) var(--bl-d, 0s),
      transform .45s var(--bl-ease), box-shadow .45s var(--bl-ease);
  }

  .bl-cascade .bl-item-body > * {
    opacity: 0;
    translate: 0 14px;
    transition: opacity .6s ease, translate .75s var(--bl-ease);
  }

  .bl-cascade .bl-item.is-in,
  .bl-cascade .bl-item.is-in .bl-item-body > * {
    opacity: 1;
    translate: 0 0;
  }

  .bl-cascade .bl-item.is-in .bl-item-body > :nth-child(1) { transition-delay: calc(var(--bl-d, 0s) + .32s); }
  .bl-cascade .bl-item.is-in .bl-item-body > :nth-child(2) { transition-delay: calc(var(--bl-d, 0s) + .42s); }
  .bl-cascade .bl-item.is-in .bl-item-body > :nth-child(3) { transition-delay: calc(var(--bl-d, 0s) + .52s); }
  .bl-cascade .bl-item.is-in .bl-item-body > :nth-child(4) { transition-delay: calc(var(--bl-d, 0s) + .62s); }

  /* перехід з іншої сторінки сайту: те, що вже в кадрі, стоїть одразу, без каскаду */
  .bl-cascade .bl-item.is-now,
  .bl-cascade .bl-item.is-now .bl-item-body > * {
    transition: none;
  }

  .bl-cascade .bl-item:not(.is-in),
  .bl-cascade .bl-item:not(.is-in) .bl-item-body > * {
    animation: bl-failsafe .6s ease 4s forwards;
  }
}

@keyframes bl-failsafe {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- кнопка «Читати статтю»: усі стани ---------- */

.bl-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-top: 28px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--bl-ink);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease,
    transform .35s var(--bl-ease);
}

@media (hover: hover) {
  .bl-btn:hover {
    background: #fff;
    color: var(--bl-ink);
    box-shadow: inset 0 0 0 2px var(--bl-ink);
    transform: scale(1.03);
  }
}

.bl-btn:active {
  background: #fff;
  color: var(--bl-ink);
  box-shadow: inset 0 0 0 2px var(--bl-ink);
  transform: scale(.97);
  transition-duration: .1s;
}

.bl .bl-btn:focus-visible {
  outline: 3px solid var(--bl-ink);
  outline-offset: 3px;
  border-radius: 26px;
  box-shadow: 0 0 0 7px #fff;
}

/* ---------- макет A: сітка ---------- */

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

.bl.is-filtered .bl-grid {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.bl-empty {
  padding: 40px 0;
  font-size: 19px;
  color: var(--bl-mute);
}

/* макет B: підкреслення заголовка рядка при наведенні */
.bl-row-t a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
  text-decoration-color: transparent;
  transition: text-decoration-color .3s ease;
}

@media (hover: hover) {
  .bl-row:hover .bl-row-t a {
    text-decoration-color: currentColor;
  }
}

/* ---------- макет B: журнальний список ---------- */

.bl-top-b .content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  column-gap: 48px;
}

.bl-top-b .bl-lede {
  justify-self: end;
  margin: 0 0 10px;
}

.bl-top-b .bl-filters {
  grid-column: 1 / -1;
}

.bl-rows {
  border-top: 2px solid var(--bl-ink);
}

.bl-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 240px;
  gap: 0 clamp(24px, 3vw, 48px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--bl-line);
}

.bl-row-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: .45em;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.bl-row-when .bl-read {
  color: var(--bl-mute);
}

.bl-row-t {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* уся рядка клікабельна, рубрика лишається окремим посиланням поверх */
.bl-row-t a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.bl-row.is-featured .bl-row-t {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.bl-row-d {
  max-width: 52ch;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--bl-mute);
}

.bl-row-main .bl-by {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: var(--bl-mute);
}

.bl-row-cat {
  position: relative;
  z-index: 2;
  justify-self: end;
  padding-top: .3em;
  font-size: 15px;
  transition: opacity .3s ease;
}

/* при наведенні на рядок виринає його плитка — нахилена, як наліпка Pro Plus */
.bl-row-peek {
  position: absolute;
  top: 50%;
  right: 0;
  width: 240px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-46%) rotate(-5deg) scale(.86);
  transition: opacity .3s ease, transform .55s var(--bl-ease);
}

@media (hover: hover) and (min-width: 900px) {
  .bl-row:hover .bl-row-peek {
    opacity: 1;
    transform: translateY(-50%) rotate(-3deg) scale(1);
  }

  .bl-row:hover .bl-row-cat {
    opacity: 0;
  }
}

/* ---------- сторінки ---------- */

.bl-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 0;
  font-size: 17px;
}

.bl-pager a,
.bl-pager span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 22px;
}

.bl-pager span {
  background: var(--bl-ink);
  color: #fff;
}

.bl-pager a:hover {
  background: var(--bl-card);
}

/* ---------- стаття ---------- */

.bl-post-top {
  padding-top: clamp(16px, 4vw, 56px) !important;
  padding-bottom: 0 !important;
}

.bl-crumbs {
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--bl-mute);
}

.bl-crumbs a {
  color: var(--bl-mute);
  transition: color .2s ease;
}

.bl-crumbs a:hover {
  color: var(--bl-ink);
}

.bl-crumbs a + a::before {
  content: '/';
  margin: 0 10px;
  color: rgba(0, 0, 0, .3);
}

.bl-post-h1 {
  max-width: 21ch;
  margin-top: 26px;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.bl-post-lede {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--bl-mute);
}

.bl-post-meta {
  margin-top: 28px;
}

.bl-post-cover {
  margin-top: clamp(32px, 4vw, 56px);
}

.bl-draft {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--hd-yellow, #fff45e);
  font-size: 15px;
  font-weight: 600;
}

.bl-post-cols {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 72px) !important;
}

.bl-toc {
  position: sticky;
  top: calc(var(--hd-top, 16px) + var(--hd-h, 60px) + 28px);
}

.bl-toc-t {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

.bl-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.bl-toc li {
  counter-increment: toc;
}

.bl-toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--bl-mute);
  transition: color .2s ease;
}

.bl-toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background-color .2s ease;
}

.bl-toc a:hover,
.bl-toc a.is-on {
  color: var(--bl-ink);
}

.bl-toc a.is-on::before {
  background: var(--bl-ink);
}

/* текст статті */
.bl-prose {
  font-size: 19px;
  line-height: 1.68;
  letter-spacing: .005em;
}

.bl-prose > * + * {
  margin-top: 1.05em;
}

.bl-prose p {
  text-wrap: pretty;
}

.bl-prose h2 {
  margin-top: 2.1em;
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.bl-prose h3 {
  margin-top: 1.7em;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.bl-prose h4 {
  margin-top: 1.4em;
  font-size: 19px;
  font-weight: 700;
}

.bl-prose h2 + *,
.bl-prose h3 + *,
.bl-prose h4 + * {
  margin-top: .55em;
}

.bl-prose > :first-child {
  margin-top: 0;
}

.bl-prose ul,
.bl-prose ol {
  margin-bottom: 0;
  padding-left: 1.3em;
}

.bl-prose li + li {
  margin-top: .45em;
}

.bl-prose li::marker {
  font-weight: 700;
}

.bl-prose a {
  color: var(--bl-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .2s ease;
}

.bl-prose a:hover {
  text-decoration-thickness: 2px;
}

.bl-prose strong {
  font-weight: 700;
}

.bl-prose blockquote {
  margin: 1.6em 0 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--bl-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.bl-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .06);
  font-size: .88em;
}

.bl-prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bl-card);
  font-size: 15px;
  line-height: 1.5;
}

.bl-prose pre code {
  padding: 0;
  background: none;
}

.bl-prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--bl-line);
}

.bl-table {
  overflow-x: auto;
  border-radius: 20px;
  background: var(--bl-card);
}

.bl-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.bl-table th,
.bl-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--bl-line);
}

.bl-table th {
  font-weight: 700;
}

.bl-table tr:last-child td {
  border-bottom: 0;
}

.bl-join {
  margin-top: clamp(56px, 7vw, 96px);
}

.bl-related .content-wrap {
  padding-top: clamp(64px, 8vw, 110px);
}

.bl-related-h {
  margin-bottom: 24px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* «Читайте також» — лише дві картки, щоб не лишалась сирота в другому ряду */
  .bl-related .bl-item:nth-child(3) {
    display: none;
  }

  .bl-post-cols {
    grid-template-columns: minmax(0, 720px);
  }

  .bl-toc {
    position: static;
    padding: 20px 24px;
    border-radius: 22px;
    background: var(--bl-card);
  }

  .bl-row {
    grid-template-columns: 120px minmax(0, 1fr) 200px;
  }

  .bl-row-peek {
    width: 200px;
  }
}

@media (max-width: 860px) {
  .bl-item.is-hero,
  .bl.is-filtered .bl-item {
    min-height: 0;
  }

  .bl-item.is-hero .bl-item-t,
  .bl.is-filtered .bl-item-t {
    margin-top: 96px;
  }

  .bl-top-b .content-wrap {
    grid-template-columns: 1fr;
  }

  .bl-top-b .bl-lede {
    justify-self: start;
    margin: 22px 0 0;
  }

  .bl-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-row-when {
    flex-direction: row;
    gap: 14px;
    order: -1;
    margin-bottom: 10px;
    padding-top: 0;
  }

  .bl-row-cat {
    justify-self: start;
    margin-top: 14px;
    padding-top: 0;
  }

  .bl-row-peek {
    display: none;
  }

  .bl-cover-xl {
    aspect-ratio: 16 / 9;
  }

  .bl-cover-xl .bl-cover-t {
    font-size: 7.4cqi;
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  /* рубрики — одним рядком з прокруткою, щоб не з'їдати перший екран */
  .bl-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(var(--x) * -1);
    padding-right: var(--x);
    scrollbar-width: none;
  }

  .bl-filters::-webkit-scrollbar {
    display: none;
  }

  .bl-grid {
    grid-template-columns: 1fr;
  }

  .bl-item.is-hero .bl-item-btn,
  .bl.is-filtered .bl-item-btn {
    justify-content: center;
    width: 100%;
  }

  .bl-related .bl-item:nth-child(3) {
    display: flex;
  }

  .bl-cover {
    --bl-r: 22px;
  }

  .bl-prose {
    font-size: 18px;
  }

  .bl-prose h3 {
    font-size: 21px;
  }
}

@media (max-width: 400px) {
  .bl-chip {
    max-width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-cover,
  .bl-ghost,
  .bl-row-peek {
    transition: none !important;
  }
}

/* ---------- PNG-обкладинка 1200×630 (build_blog.py --covers) ---------- */

body.bl-og {
  margin: 0;
  font-family: Manrope, sans-serif;
}

.bl-og .bl-cover-og {
  width: 1200px;
  height: 630px;
  aspect-ratio: auto;
  padding: 64px 72px;
  border-radius: 0;
}

.bl-og .bl-cover-og .bl-ico {
  width: 120px;
  margin: -16px 0 0 -16px;
}

.bl-og .bl-cover-og .bl-cover-t {
  max-width: 900px;
  font-size: 80px;
}

.bl-og .bl-cover-og .bl-ghost {
  width: 640px;
  right: -120px;
  bottom: -180px;
}

/* ---------- блок «У Wepster» у статті (:::wepster у markdown, build_blog.product_box) ----------
   колір плитки — колір рубрики (--c), як на обкладинці; кнопка — та сама .bl-btn */

.bl-prose .bl-product {
  margin-top: 1.6em;
  padding: 32px 36px 34px;
  border-radius: var(--bl-r);
  background: var(--c, #fff);
  font-size: 18px;
  line-height: 1.55;
}

.bl-product-k {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bl-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.bl-prose .bl-product-steps {
  margin-top: 22px;
  padding-left: 0;
  list-style: none;
  counter-reset: blp;
}

.bl-prose .bl-product-steps li {
  position: relative;
  min-height: 36px;
  padding-left: 54px;
  counter-increment: blp;
}

.bl-prose .bl-product-steps li + li {
  margin-top: 14px;
}

.bl-product-steps li::before {
  content: counter(blp);
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
  font-size: 17px;
}

.bl-prose .bl-product-price {
  margin-top: 22px;
  font-weight: 600;
}

.bl-product-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 24px;
}

.bl-prose .bl-product .bl-btn {
  margin-top: 0;
  color: #fff;
  text-decoration: none;
}

@media (hover: hover) {
  .bl-prose .bl-product .bl-btn:hover {
    color: var(--bl-ink);
  }
}

.bl-prose .bl-product .bl-btn:active {
  color: var(--bl-ink);
}

.bl-prose .bl-product-link {
  font-weight: 600;
  font-size: 17px;
}

@media (max-width: 600px) {
  .bl-prose .bl-product {
    padding: 24px 20px 26px;
    font-size: 17px;
  }

  .bl-prose .bl-product-steps li {
    padding-left: 48px;
  }

  .bl-product-act .bl-btn {
    width: 100%;
    justify-content: center;
  }
}
