:root {
  --bk-accent: #f7a707;          /* фирменный оранжевый Budkram */
  --bk-accent-dark: #c98500;     /* для ссылок и текста на белом */
  --bk-accent-soft: #fff6e0;
  --bk-ink: #1f1f1f;             /* заголовки */
  --bk-text: #3d3d3d;            /* основной текст */
  --bk-muted: #6c6c6c;
  --bk-line: #e6e6e6;
  --bk-surface: #f6f7f9;
  --bk-tip: #2f7d4a;
  --bk-tip-soft: #f1f8f3;
  --bk-warn: #c0392b;
  --bk-warn-soft: #fff1f0;
  --bk-radius: 12px;
  --bk-measure: 720px;           /* ширина колонки текста */
  --bk-wide: 1040px;             /* ширина «широких» элементов: фото, таблицы */
  --bk-gutter: 16px;
  --bk-fs: 17px;
  --bk-lh: 1.7;
  --bk-font: "Museo Sans Cyrl 300", "WorkSans", Arial, sans-serif;
  --bk-font-medium: "Museo Sans Cyrl 500", "WorkSans", Arial, sans-serif;
  --bk-font-bold: "Museo Sans Cyrl 700", "WorkSans", Arial, sans-serif;
  --bk-font-black: "Museo Sans Cyrl 900", "WorkSans", Arial, sans-serif;
}

.page-width:has(> .text-page > .news-top-img) > .content__title {
  max-width: var(--bk-measure);
  margin: 32px auto 24px;
  padding: 0 var(--bk-gutter);
  box-sizing: content-box;
  font-family: var(--bk-font-black);
  font-size: clamp(26px, 2.2vw + 12px, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--bk-ink);
  text-wrap: balance;
}

.page-width:has(> .text-page > .news-top-img) {
  background: #fff;
  border-radius: 16px;
  padding: 8px 0 1px;
  margin-bottom: 32px;
  overflow-x: clip;
}

.text-page:has(> .news-top-img) {
  display: block;
  max-width: var(--bk-measure);
  margin: 0 auto;
  padding: 0 var(--bk-gutter) 48px;
  box-sizing: content-box;
  font-family: var(--bk-font);
  font-size: var(--bk-fs);
  line-height: var(--bk-lh);
  color: var(--bk-text);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.text-page:has(> .news-top-img)::after { content: ""; display: table; clear: both; }
.text-page:has(> .news-top-img) > * { margin-top: 0; margin-bottom: 0; }
.text-page:has(> .news-top-img) > * + * { margin-top: 1.1em; }

@media (min-width: 1100px) {
  .text-page:has(> .news-top-img) > .news-top-img,
  .text-page:has(> .news-top-img) > figure:not(.narrow):not(.left):not(.right):not(.contain),
  .text-page:has(> .news-top-img) > .gallery,
  .text-page:has(> .news-top-img) > table:has(thead),
  .text-page:has(> .news-top-img) > .bk-table:has(thead),
  .text-page:has(> .news-top-img) > div:not([class]):has(thead) {
    margin-left: calc((var(--bk-measure) - var(--bk-wide)) / 2);
    margin-right: calc((var(--bk-measure) - var(--bk-wide)) / 2);
  }
}

.text-page:has(> .news-top-img) > div:not([class]) { margin-top: 0; }
.text-page:has(> .news-top-img) > div:not([class]) + p,
.text-page:has(> .news-top-img) > p + div:not([class]) { margin-top: 1.1em; }


.text-page:has(> .news-top-img) > .news-top-img {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: none;
  margin-bottom: 40px;
  border-radius: var(--bk-radius);
  overflow: hidden;
  background: var(--bk-surface);
}
.text-page:has(> .news-top-img) > .news-top-img img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center 40%;
}


.text-page:has(> .news-top-img) > .news-top-img + p,
.text-page:has(> .news-top-img) > .news-top-img + div:not([class]) {
  margin-top: 0;
  font-size: 1.18em;
  line-height: 1.6;
  color: var(--bk-ink);
}

.text-page:has(> .news-top-img) > .bk-kicker { display: none; }  /* жирный дубль H1 под картинкой */
.text-page:has(> .news-top-img) > .news-top-img + .bk-kicker + div:not([class]),
.text-page:has(> .news-top-img) > .news-top-img + .bk-kicker + p {
  margin-top: 0;
  font-size: 1.18em;
  line-height: 1.6;
  color: var(--bk-ink);
}
.text-page:has(> .news-top-img).bk-clean > div:not([class]) + div:not([class]),
.text-page:has(> .news-top-img).bk-clean > div:not([class]) + p,
.text-page:has(> .news-top-img).bk-clean > p + div:not([class]) { margin-top: 1em; }

/* ---------- Текст ---------- */
.text-page:has(> .news-top-img) p { margin: 0; }
.text-page:has(> .news-top-img) > * + p, .text-page:has(> .news-top-img) > p + * { margin-top: 1.1em; }
.text-page:has(> .news-top-img) > h2 + p, .text-page:has(> .news-top-img) > h3 + p, .text-page:has(> .news-top-img) > h4 + p, .text-page:has(> .news-top-img) > .bk-subhead + p { margin-top: .6em; }
.text-page:has(> .news-top-img) > figure + p, .text-page:has(> .news-top-img) > figure + ol + p { margin-top: 1.6em; }
.text-page:has(> .news-top-img) > .news-top-img + p { margin-top: 0; }
.text-page:has(> .news-top-img) strong, .text-page:has(> .news-top-img) b {
  font-family: var(--bk-font-bold);
  font-weight: normal;
  color: var(--bk-ink);
}
.text-page:has(> .news-top-img) em, .text-page:has(> .news-top-img) i { font-style: italic; }
.text-page:has(> .news-top-img) a {
  color: var(--bk-accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(247, 167, 7, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.text-page:has(> .news-top-img) a:hover { color: var(--bk-ink); text-decoration-color: var(--bk-accent); }
.text-page:has(> .news-top-img) a:has(> img) { text-decoration: none; }
.text-page:has(> .news-top-img) hr {
  border: 0;
  height: 1px;
  background: var(--bk-line);
  margin: 2.5em 0;
}
.text-page:has(> .news-top-img) mark { background: var(--bk-accent-soft); color: inherit; padding: 0 .2em; }

/* ---------- Заголовки ---------- */
.text-page:has(> .news-top-img) h2, .text-page:has(> .news-top-img) h3, .text-page:has(> .news-top-img) h4, .text-page:has(> .news-top-img) h5, .text-page:has(> .news-top-img) h6, .text-page:has(> .news-top-img) .bk-subhead {
  font-family: var(--bk-font-black);
  font-weight: normal;
  color: var(--bk-ink);
  text-wrap: balance;
  scroll-margin-top: 90px;
}
.text-page:has(> .news-top-img) > h2 {
  margin-top: 2.2em;
  padding-top: 18px;
  position: relative;
  font-size: clamp(22px, 1.2vw + 14px, 28px);
  line-height: 1.25;
}
.text-page:has(> .news-top-img) > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: var(--bk-accent);
}
.text-page:has(> .news-top-img) > h3, .text-page:has(> .news-top-img) > .bk-subhead {
  margin-top: 1.8em;
  font-size: clamp(19px, .6vw + 15px, 22px);
  line-height: 1.3;
}
.text-page:has(> .news-top-img) > h4 { margin-top: 1.6em; font-size: 18px; line-height: 1.35; }
.text-page:has(> .news-top-img) > h2 + *, .text-page:has(> .news-top-img) > h3 + *, .text-page:has(> .news-top-img) > h4 + *, .text-page:has(> .news-top-img) > .bk-subhead + * { margin-top: .6em; }

/* ---------- Маркированные списки ---------- */
.text-page:has(> .news-top-img) ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.text-page:has(> .news-top-img) ul > li {
  position: relative;
  padding-left: 26px;
}
.text-page:has(> .news-top-img) ul > li + li { margin-top: .45em; }
.text-page:has(> .news-top-img) ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(var(--bk-lh) * .5em - 4px);
  width: 8px; height: 8px;
  border-radius: 2px;
  /*background: var(--bk-accent);*/
  transform: rotate(45deg);
}
.text-page:has(> .news-top-img) ul ul, .text-page:has(> .news-top-img) ol ul { margin-top: .45em; }
.text-page:has(> .news-top-img) ul ul > li::before {
  background: transparent;
  border: 2px solid var(--bk-accent);
  box-sizing: border-box;
}

/* ---------- Нумерованные списки ---------- */
.text-page:has(> .news-top-img) ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: bk-ol;
}
.text-page:has(> .news-top-img) ol[start] { counter-reset: bk-ol calc(attr(start integer, 1) - 1); }
.text-page:has(> .news-top-img) ol > li {
  counter-increment: bk-ol;
  position: relative;
  padding-left: 42px;
  min-height: 28px;
}
.text-page:has(> .news-top-img) ol > li + li { margin-top: .6em; }
.text-page:has(> .news-top-img) ol > li::before {
  content: counter(bk-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bk-ink);
  color: #fff;
  font-family: var(--bk-font-bold);
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}
/* Пошаговые инструкции: <ol class="steps"> — линия между шагами */
.text-page:has(> .news-top-img) ol.steps > li { padding-bottom: .4em; }
.text-page:has(> .news-top-img) ol.steps > li::before { background: var(--bk-accent); color: var(--bk-ink); }
.text-page:has(> .news-top-img) ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px; top: 32px; bottom: -.4em;
  width: 2px;
  background: var(--bk-line);
}

/* ---------- Картинки и подписи ---------- */
.text-page:has(> .news-top-img) img {
  max-width: 100%;
  height: auto !important;   /* в старых статьях inline height: 400px */
  vertical-align: middle;
  margin: 0;                 /* в style.css у картинок margin: 50px -100px */
  float: none;
}
.text-page:has(> .news-top-img) > figure {
  margin-top: 2em;
  margin-left: 0; margin-right: 0;
}
.text-page:has(> .news-top-img) > figure + * { margin-top: 2em; }
.text-page:has(> .news-top-img) figure img {
  display: block;
  width: 100%;
  border-radius: var(--bk-radius);
  background: var(--bk-surface);
}
.text-page:has(> .news-top-img) figcaption {
  max-width: var(--bk-measure);
  margin: 10px auto 0;
  padding-left: 14px;
  border-left: 3px solid var(--bk-accent);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bk-muted);
}
/* Узкая картинка в колонке текста: <figure class="narrow"> */
.text-page:has(> .news-top-img) > figure.narrow figcaption { margin-left: 0; }
/* Схемы и фото товара на белом фоне: <figure class="contain"> */
.text-page:has(> .news-top-img) > figure.contain img {
  width: auto;
  max-height: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bk-line);
  padding: 16px;
  box-sizing: border-box;
}

/* Легенда к схеме: нумерованный список сразу после figure (как у Protex) */
.text-page:has(> .news-top-img) > figure + ol {
  margin-top: 14px;
  padding: 16px 20px;
  background: var(--bk-surface);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  columns: 2 260px;
  column-gap: 32px;
}
.text-page:has(> .news-top-img) > figure + ol > li {
  break-inside: avoid;
  padding-left: 32px;
  min-height: 22px;
}
.text-page:has(> .news-top-img) > figure + ol > li + li { margin-top: .35em; }
.text-page:has(> .news-top-img) > figure + ol + * { margin-top: 1.6em; }
.text-page:has(> .news-top-img) > figure + ol > li::before {
  width: 22px; height: 22px;
  line-height: 22px;
  font-size: 12px;
  top: 6px;
  left: -1px;
  background: var(--bk-accent);
  color: var(--bk-ink);
}

/* Картинка с обтеканием (десктоп): <figure class="left"> / <figure class="right"> */
@media (min-width: 900px) {
  .text-page:has(> .news-top-img) > figure.left, .text-page:has(> .news-top-img) > figure.right {
    width: 44%;
    margin-top: .3em;
    margin-bottom: 1em;
  }
  .text-page:has(> .news-top-img) > figure.left  { float: left;  margin: .4em 28px 1em 0; }
  .text-page:has(> .news-top-img) > figure.right { float: right; margin: .4em 0 1em 28px; }
  .text-page:has(> .news-top-img) > figure.left figcaption, .text-page:has(> .news-top-img) > figure.right figcaption { margin-left: 0; }
}

/* Галерея: <div class="gallery"><figure>…</figure><figure>…</figure></div> */
.text-page:has(> .news-top-img) > .gallery {
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.text-page:has(> .news-top-img) > .gallery + * { margin-top: 2em; }
.text-page:has(> .news-top-img) .gallery figure { margin: 0; }
.text-page:has(> .news-top-img) .gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.text-page:has(> .news-top-img) .gallery figcaption { margin: 8px 0 0; }

/* Старые статьи: <div><a><img style="width:400px"></a></div> — товар по центру */
.text-page:has(> .news-top-img) > div:not([class]):has(> a > img),
.text-page:has(> .news-top-img) > div:not([class]):has(> img),
.text-page:has(> .news-top-img) > p:has(> img:only-child),
.text-page:has(> .news-top-img) > p:has(> a:only-child > img) {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
}
.text-page:has(> .news-top-img) > div:not([class]):has(> a > img) img,
.text-page:has(> .news-top-img) > div:not([class]):has(> img) img,
.text-page:has(> .news-top-img) > p:has(> img:only-child) img,
.text-page:has(> .news-top-img) > p:has(> a:only-child > img) img {
  max-width: min(100%, 420px);
  border-radius: var(--bk-radius);
  border: 1px solid var(--bk-line);
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
  display: inline-block;
  transition: box-shadow .2s, transform .2s;
}
.text-page:has(> .news-top-img) > div:not([class]):has(> a > img) a:hover img,
.text-page:has(> .news-top-img) > p:has(> a:only-child > img) a:hover img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

/* ---------- Таблицы ---------- */
.text-page:has(> .news-top-img) table {
  width: 100% !important;    /* в старых статьях inline width: 500px */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--bk-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.text-page:has(> .news-top-img) > table, .text-page:has(> .news-top-img) > .bk-table { margin-top: 1.8em; }
.text-page:has(> .news-top-img) > table + *, .text-page:has(> .news-top-img) > .bk-table + * { margin-top: 1.8em; }
.text-page:has(> .news-top-img) > div:not([class]):has(table) { margin-top: 1.4em; margin-bottom: 1em; }
.text-page:has(> .news-top-img) th, .text-page:has(> .news-top-img) td {
  color: var(--bk-text);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--bk-line);
  border-right: 1px solid var(--bk-line);
  width: auto !important;  /* в старых статьях inline-ширины из редактора */
}
.text-page:has(> .news-top-img) tr > :last-child { border-right: 0; }
.text-page:has(> .news-top-img) tbody tr:last-child > * { border-bottom: 0; }
.text-page:has(> .news-top-img) thead th, .text-page:has(> .news-top-img) thead td {
  background: var(--bk-ink);
  color: #fff;
  font-family: var(--bk-font-bold);
  font-weight: normal;
  font-size: 14px;
  letter-spacing: .01em;
  border-bottom: 3px solid var(--bk-accent);
  border-right-color: rgba(255, 255, 255, .12);
}
.text-page:has(> .news-top-img) table:has(thead) tbody tr:nth-child(even) { background: var(--bk-surface); }
.text-page:has(> .news-top-img) tbody tr { transition: background .15s; }
.text-page:has(> .news-top-img) table:has(thead) tbody tr:hover { background: var(--bk-accent-soft); }
.text-page:has(> .news-top-img) td p { margin: 0; }
.text-page:has(> .news-top-img) td p + p { margin-top: .5em; }
/* Таблица характеристик без шапки (старые статьи): первая колонка — подпись */
.text-page:has(> .news-top-img) table:not(:has(thead)) td:first-child,
.text-page:has(> .news-top-img) table:not(:has(thead)) th:first-child {
  width: 38% !important;
  background: var(--bk-surface);
  color: var(--bk-ink);
  font-family: var(--bk-font-medium);
}
.text-page:has(> .news-top-img) caption {
  caption-side: bottom;
  padding: 10px 2px 0;
  font-size: 14px;
  color: var(--bk-muted);
  text-align: left;
}
/* Обёртка для прокрутки (добавляет JS или вручную <div class="bk-table">) */
.text-page:has(> .news-top-img) .bk-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}
.text-page:has(> .news-top-img) .bk-table > table { margin: 0; }

/* ---------- Цитаты ---------- */
.text-page:has(> .news-top-img) blockquote {
  position: relative;
  margin: 2em 0;
  padding: 8px 0 8px 64px;
  border: 0;
  font-family: var(--bk-font-medium);
  font-size: 1.22em;
  line-height: 1.5;
  color: var(--bk-ink);
  quotes: "«" "»";
}
.text-page:has(> .news-top-img) blockquote::before {
  content: "“";
  position: absolute;
  left: 0; top: -6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  line-height: 1;
  color: var(--bk-accent);
}
.text-page:has(> .news-top-img) blockquote p + p { margin-top: .6em; }
.text-page:has(> .news-top-img) blockquote cite, .text-page:has(> .news-top-img) blockquote footer {
  display: block;
  margin-top: 12px;
  font-family: var(--bk-font);
  font-style: normal;
  font-size: 14px;
  color: var(--bk-muted);
}
.text-page:has(> .news-top-img) blockquote cite::before, .text-page:has(> .news-top-img) blockquote footer::before { content: "— "; }

/* ---------- Блоки-выноски (совместимы с Protex) ---------- */
.text-page:has(> .news-top-img) .article-note {
  margin: 2em 0;
  padding: 18px 22px;
  background: var(--bk-accent-soft);
  border-left: 4px solid var(--bk-accent);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  line-height: 1.6;
}
.text-page:has(> .news-top-img) .article-note--tip { background: var(--bk-tip-soft); border-left-color: var(--bk-tip); }
.text-page:has(> .news-top-img) .article-note--warning { background: var(--bk-warn-soft); border-left-color: var(--bk-warn); }
.text-page:has(> .news-top-img) .article-note > * + * { margin-top: .6em; }
.text-page:has(> .news-top-img) .article-note-title, .text-page:has(> .news-top-img) .article-note > strong:first-child,
.text-page:has(> .news-top-img) .article-note > p:first-child > strong:only-child {
  display: block;
  font-family: var(--bk-font-black);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bk-ink);
}
.text-page:has(> .news-top-img) .article-note--tip ul > li::before { background: var(--bk-tip); }
.text-page:has(> .news-top-img) .article-note--warning ul > li::before { background: var(--bk-warn); }

/* ---------- Карточка товара: <div class="article-product"> ---------- */
.text-page:has(> .news-top-img) .article-product {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  margin: 2em 0;
  padding: 20px;
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  background: #fff;
}
.text-page:has(> .news-top-img) .article-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.text-page:has(> .news-top-img) .article-product h3, .text-page:has(> .news-top-img) .article-product .article-product__title {
  margin: 0 0 6px;
  font-size: 20px;
}
.text-page:has(> .news-top-img) .article-product ul { font-size: 15px; }
.text-page:has(> .news-top-img) .article-product .btn-buy, .text-page:has(> .news-top-img) .article-product a.article-product__link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--bk-accent);
  color: var(--bk-ink);
  font-family: var(--bk-font-bold);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
}
.text-page:has(> .news-top-img) .article-product .btn-buy:hover, .text-page:has(> .news-top-img) .article-product a.article-product__link:hover { background: var(--bk-ink); color: #fff; }

/* ---------- Плюсы / минусы: <div class="pros-cons"><div class="pros">…</div><div class="cons">…</div></div> ---------- */
.text-page:has(> .news-top-img) .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.6em 0;
}
.text-page:has(> .news-top-img) .pros-cons > div {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
}
.text-page:has(> .news-top-img) .pros-cons .pros { background: var(--bk-tip-soft); }
.text-page:has(> .news-top-img) .pros-cons .cons { background: var(--bk-warn-soft); }
.text-page:has(> .news-top-img) .pros-cons .pros li::before { background: var(--bk-tip); }
.text-page:has(> .news-top-img) .pros-cons .cons li::before { background: var(--bk-warn); }
.text-page:has(> .news-top-img) .pros-cons strong:first-child { display: block; margin-bottom: 6px; }

/* ---------- FAQ: <div class="article-faq"><details><summary>Питання</summary><p>Відповідь</p></details></div> ---------- */
.text-page:has(> .news-top-img) .article-faq { margin-top: 1.2em; }
.text-page:has(> .news-top-img) .article-faq details {
  border-bottom: 1px solid var(--bk-line);
}
.text-page:has(> .news-top-img) .article-faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--bk-font-bold);
  color: var(--bk-ink);
}
.text-page:has(> .news-top-img) .article-faq summary::-webkit-details-marker { display: none; }
.text-page:has(> .news-top-img) .article-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bk-surface);
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  transition: transform .2s, background .2s;
}
.text-page:has(> .news-top-img) .article-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--bk-accent); }
.text-page:has(> .news-top-img) .article-faq details > :not(summary) { padding-bottom: 16px; }

/* ---------- Оглавление: <nav class="article-toc"><ol>…</ol></nav> ---------- */
.text-page:has(> .news-top-img) .article-toc {
  padding: 18px 22px;
  background: var(--bk-surface);
  border-radius: 10px;
  font-size: 15px;
}
.text-page:has(> .news-top-img) .article-toc::before {
  content: "Зміст";
  display: block;
  margin-bottom: 10px;
  font-family: var(--bk-font-black);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bk-ink);
}
html[lang="ru"] .text-page:has(> .news-top-img) .article-toc::before { content: "Содержание"; }
.text-page:has(> .news-top-img) .article-toc ol > li { padding-left: 34px; }
.text-page:has(> .news-top-img) .article-toc ol > li + li { margin-top: .35em; }
.text-page:has(> .news-top-img) .article-toc ol > li::before {
  width: 22px; height: 22px; line-height: 22px; font-size: 12px;
  top: 2px;
  background: transparent; color: var(--bk-accent-dark);
  border: 1px solid var(--bk-accent);
  box-sizing: border-box; line-height: 20px;
}
.text-page:has(> .news-top-img) .article-toc a { color: var(--bk-text); text-decoration: none; }
.text-page:has(> .news-top-img) .article-toc a:hover { color: var(--bk-accent-dark); }

/* Сброс обтекания перед заголовками и широкими блоками */
.text-page:has(> .news-top-img) > h2, .text-page:has(> .news-top-img) > h3, .text-page:has(> .news-top-img) > .bk-subhead, .text-page:has(> .news-top-img) > figure:not(.left):not(.right), .text-page:has(> .news-top-img) > table, .text-page:has(> .news-top-img) > .bk-table, .text-page:has(> .news-top-img) > .gallery, .text-page:has(> .news-top-img) > hr, .text-page:has(> .news-top-img) > .article-note, .text-page:has(> .news-top-img) > blockquote { clear: both; }

/* ---------- Мобильный ---------- */
@media (max-width: 767px) {
  :root { --bk-fs: 16px; --bk-lh: 1.65; --bk-gutter: 16px; }
  .page-width:has(> .text-page > .news-top-img) { border-radius: 0; margin-bottom: 0; }
  .page-width:has(> .text-page > .news-top-img) > .content__title { margin: 20px auto 16px; }
  /* фото на всю ширину экрана */
  .text-page:has(> .news-top-img) > .news-top-img,
  .text-page:has(> .news-top-img) > figure:not(.narrow):not(.contain),
  .text-page:has(> .news-top-img) > .article-note {
    margin-left: calc(-1 * var(--bk-gutter));
    margin-right: calc(-1 * var(--bk-gutter));
    border-radius: 0;
  }
  .text-page:has(> .news-top-img) > .news-top-img { margin-bottom: 24px; aspect-ratio: 4 / 3; }
  .text-page:has(> .news-top-img) > figure:not(.narrow):not(.contain) img { border-radius: 0; }
  .text-page:has(> .news-top-img) > .news-top-img + p,
  .text-page:has(> .news-top-img) > .news-top-img + div:not([class]),
  .text-page:has(> .news-top-img) > .news-top-img + .bk-kicker + div:not([class]),
  .text-page:has(> .news-top-img) > .news-top-img + .bk-kicker + p { font-size: 1.1em; }
  .text-page:has(> .news-top-img) figcaption { margin: 8px var(--bk-gutter) 0; }
  .text-page:has(> .news-top-img) > figure.narrow figcaption, .text-page:has(> .news-top-img) > figure.contain figcaption { margin-left: 0; margin-right: 0; }
  .text-page:has(> .news-top-img) > figure + ol { columns: 1; }
  .text-page:has(> .news-top-img) > .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* Широкие таблицы с шапкой — горизонтальная прокрутка даже без JS */
  .text-page:has(> .news-top-img) table:has(thead) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .text-page:has(> .news-top-img) table:has(thead) th, .text-page:has(> .news-top-img) table:has(thead) td { min-width: 120px; }
  .text-page:has(> .news-top-img) .bk-table table { display: table; }
  .text-page:has(> .news-top-img) th, .text-page:has(> .news-top-img) td { padding: 10px 12px; }
  .text-page:has(> .news-top-img) table:not(:has(thead)) td:first-child { width: 42% !important; }
  .text-page:has(> .news-top-img) blockquote { padding-left: 44px; font-size: 1.12em; }
  .text-page:has(> .news-top-img) blockquote::before { font-size: 64px; }
  .text-page:has(> .news-top-img) .article-note { padding: 16px; }
  .text-page:has(> .news-top-img) .article-product { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .text-page:has(> .news-top-img) .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Печать ---------- */
@media print {
  .text-page:has(> .news-top-img) { display: block; font-size: 12pt; }
  .text-page:has(> .news-top-img) a { color: inherit; text-decoration: none; }
  .text-page:has(> .news-top-img) .article-faq summary::after { display: none; }
}
