/* bobr.press — тема reccms (2026-09-22). Источник вида — макет bobr/html (assets/css/style.css):
 * правки внешнего вида вносить в оба места или сначала в макет, затем переносить сюда.
 * Устройство темы — по образцу info.cy. Без Bootstrap, сетки на CSS grid. Префикс классов — bb-.
 *
 * Решения:
 * - Светлая тема по умолчанию (итоговый референс светлый), тёмная — по ОС или кнопке.
 * - Шрифты: Fraunces (заголовки, словесный знак), Inter (текст), Caveat (рукописные подписи).
 *   Во всех трёх есть latin-ext — польские ą ć ę ł ń ó ś ź ż. Кириллица не нужна: сайт только PL.
 * - Надписи на табличках — HTML поверх пустой доски (deco/plank.webp), а не запечённые
 *   в картинку: в референсе они английские, перевести картинку нельзя.
 */
/* ШРИФТЫ. Объявления держим ЗДЕСЬ, а не отдельным файлом через @import:
   @import — последовательная цепочка (сначала theme.css, только потом fonts.css,
   и лишь затем сами файлы), то есть лишний круг на медленном канале.
   Нарезаны под польский набор (2026-09-22).
   Было: по два файла на семейство (latin + latin-ext) из раздачи Google Fonts, 323 КБ на страницу.
   Польскому тексту нужны ОБА подмножества — 16 из 18 диакритик (ą ć ę ł ń ś ź ż и заглавные)
   лежат в latin-ext, — то есть браузер тянул четыре файла, и два из них без предзагрузки.
   Стало: по одному файлу на семейство, 178 КБ, все три предзагружаемы.

   Набор: базовая латиница, U+00A0-00FF, польские диакритики, типографика и валюта.
   Кириллицы и греческого НЕТ намеренно: сайт только на польском (решение владельца 22.09).
   Появится второй язык — резать заново, исходники берутся из github.com/google/fonts.
   Оси переменных шрифтов сужены под то, что печатает тема: Inter 400–600, Fraunces 600–800,
   Caveat закреплён на 600. Ось opsz оставлена — браузер правит её сам (font-optical-sizing: auto),
   закрепление изменило бы рисунок заголовков.
   Лицензия — OFL, текст в OFL.txt рядом. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-pl.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/fraunces-pl.woff2) format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-pl.woff2) format('woff2');
}

:root {
  --bb-bg: #F6F1E7;
  --bb-surface: #FFFDF8;
  --bb-surface-2: #EFE7D8;
  --bb-text: #2A2118;
  --bb-muted: #6E6254;
  --bb-line: #E3D8C5;
  --bb-green: #1F3A2B;
  --bb-green-2: #2C4E39;
  --bb-accent: #A4502A;      /* кнопки, ссылки-стрелки: белый на нём 5.6:1 */
  --bb-accent-hover: #8A4122;
  --bb-accent-text: #9A4A26; /* текстовые ссылки на светлом: 5.9:1 */
  --bb-tag: #24452F;
  --bb-on-dark: #F3EDE1;
  --bb-on-dark-muted: #C9C1B0;
  --bb-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .07);
  --bb-radius: 10px;
  --bb-wrap: 1320px;
  --bb-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bb-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bb-script: 'Caveat', 'Segoe Script', cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bb-bg: #141C17;
    --bb-surface: #1C2720;
    --bb-surface-2: #243229;
    --bb-text: #EDE6D8;
    --bb-muted: #A89F8F;
    --bb-line: #2F3E34;
    --bb-green: #1A3526;
    --bb-green-2: #1A2A20;
    --bb-accent: #B85F34;
    --bb-accent-hover: #CC6D3E;
    --bb-accent-text: #E39A6C;
    --bb-tag: #2F5A3D;
    --bb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bb-bg: #141C17;
  --bb-surface: #1C2720;
  --bb-surface-2: #243229;
  --bb-text: #EDE6D8;
  --bb-muted: #A89F8F;
  --bb-line: #2F3E34;
  --bb-green: #1A3526;
  --bb-green-2: #1A2A20;
  --bb-accent: #B85F34;
  --bb-accent-hover: #CC6D3E;
  --bb-accent-text: #E39A6C;
  --bb-tag: #2F5A3D;
  --bb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bb-bg);
  color: var(--bb-text);
  font: 400 16px/1.5 var(--bb-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bb-accent-text); }
h1, h2, h3 { font-family: var(--bb-serif); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; border-radius: 4px; }
.bb-wrap { width: 100%; max-width: var(--bb-wrap); margin: 0 auto; padding: 0 20px; }
.bb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bb-accent); color: #fff; padding: 10px 14px; border-radius: 6px; }
.bb-skip:focus { top: 12px; color: #fff; }
.bb-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- верхняя строка ---------- */
.bb-top { background: var(--bb-green); color: var(--bb-on-dark); font-size: 13px; }
.bb-top .bb-wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.bb-top__weather { display: inline-flex; align-items: center; gap: 6px; }
.bb-top__weather img { width: 20px; height: 20px; }
.bb-top__links { display: flex; gap: 18px; margin-left: auto; }
.bb-top a:hover { color: #fff; text-decoration: underline; }
.bb-theme {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px;
  border: 0; background: rgba(255, 255, 255, .12); cursor: pointer;
}
.bb-theme span { display: grid; place-items: center; width: 24px; height: 22px; border-radius: 99px; }
.bb-theme .bb-ico { width: 14px; height: 14px; }
:root:not([data-theme="dark"]) .bb-theme__sun,
:root[data-theme="dark"] .bb-theme__moon { background: var(--bb-on-dark); color: var(--bb-green); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .bb-theme__sun { background: none; color: inherit; }
  :root:not([data-theme]) .bb-theme__moon { background: var(--bb-on-dark); color: var(--bb-green); }
}

/* ---------- шапка ---------- */
.bb-head { background: var(--bb-surface); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--bb-line); }
.bb-head .bb-wrap { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.bb-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.bb-logo:hover { color: inherit; }
.bb-logo__mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bb-surface-2); object-fit: cover; object-position: 50% 10%;
}
.bb-logo__word { font: 800 40px/1 var(--bb-serif); color: var(--bb-green-2); letter-spacing: -.02em; }
:root[data-theme="dark"] .bb-logo__word { color: var(--bb-on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bb-logo__word { color: var(--bb-on-dark); } }
.bb-logo__word b { color: var(--bb-accent); font-weight: 800; }
.bb-logo__tag { display: block; margin-top: 6px; font: 500 10.5px/1 var(--bb-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bb-muted); }

.bb-search { flex: 1; max-width: 520px; display: flex; margin-left: auto; }
.bb-search label { position: relative; flex: 1; }
.bb-search label .bb-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bb-muted); }
.bb-search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  border: 1.5px solid var(--bb-line); border-right: 0; border-radius: 99px 0 0 99px;
  background: var(--bb-bg); color: var(--bb-text); font: inherit; font-size: 15px;
}
.bb-search input::placeholder { color: var(--bb-muted); }
.bb-search input:focus { outline: none; border-color: var(--bb-accent); }
.bb-search button {
  width: 58px; border: 0; border-radius: 0 99px 99px 0; background: var(--bb-accent); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.bb-search button:hover { background: var(--bb-accent-hover); }

/* табличка: пустая доска + текст HTML */
.bb-sign {
  flex: none; width: 190px; aspect-ratio: 2 / 1; display: grid; place-items: center;
  background: url('../img/deco/plank.webp') center / contain no-repeat;
  transform: rotate(-3deg);
  font: 800 13px/1.25 var(--bb-sans); letter-spacing: .06em; text-transform: uppercase;
  color: #4A2A14; text-align: center; padding: 0 28px;
  text-shadow: 0 1px 0 rgba(255, 230, 190, .35);
}

.bb-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.bb-burger .bb-ico { width: 24px; height: 24px; }

/* ---------- рубрики ---------- */
.bb-nav { background: var(--bb-surface); border-bottom: 1px solid var(--bb-line); }
.bb-nav .bb-wrap { display: flex; align-items: center; }
.bb-nav__list { display: flex; flex: 1; justify-content: center; }
.bb-nav__list a {
  display: block; padding: 13px 26px; font: 600 16px/1 var(--bb-serif);
  border-left: 1px solid var(--bb-line);
}
.bb-nav__list li:first-child a { border-left: 0; }
.bb-nav__list a[aria-current] { color: var(--bb-accent-text); box-shadow: inset 0 -3px 0 var(--bb-accent); }
.bb-nav__all { font-size: 14px; font-weight: 600; color: var(--bb-accent-text); display: inline-flex; align-items: center; gap: 6px; }
.bb-woodline { height: 9px; background: url('../img/deco/wood-strip.webp') center / cover; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }

/* ---------- бегущая строка (layout="ticker") ---------- */
.bb-ticker { border-bottom: 1px solid var(--bb-line); background: var(--bb-surface); font-size: 14px; }
.bb-ticker .bb-wrap { display: flex; align-items: center; gap: 16px; min-height: 42px; overflow: hidden; }
.bb-ticker__label {
  flex: none; background: var(--bb-accent); color: #fff; font-weight: 600; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.bb-ticker__track { display: flex; gap: 36px; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.bb-ticker__track time { color: var(--bb-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------- заголовки секций ---------- */
.bb-sec-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.bb-sec-head h1 { font-size: clamp(26px, 3vw, 34px); }
.bb-sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.bb-link { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--bb-accent-text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bb-link .bb-ico { width: 16px; height: 16px; }
.bb-section { padding-top: 36px; padding-bottom: 8px; }

/* метка рубрики на карточке */
.bb-cat {
  display: inline-block; padding: 5px 10px; border-radius: 4px;
  background: var(--bb-tag); color: #fff; font: 600 11.5px/1 var(--bb-sans);
  letter-spacing: .08em; text-transform: uppercase;
}
.bb-cat--wood { background: url('../img/deco/wood-strip.webp') center / cover; color: #3E2210; font-size: 14px; padding: 7px 14px; text-shadow: 0 1px 0 rgba(255, 230, 190, .4); }
.bb-meta { font-size: 13px; color: var(--bb-muted); }

/* ---------- главное: лид + 3 + панель ---------- */
.bb-home-title { padding-top: 26px; }
/* Подзаголовок главной: строка под h1. Вес обычный — это подпись, а не второй заголовок,
   и он же держит порядок h1 → h2 → h3 для читалок и Lighthouse. */
.bb-home-sub { margin: 4px 0 0; font-family: inherit; font-size: 17px;
  font-weight: 400; line-height: 1.45; color: var(--bb-muted); max-width: 60ch; }
@media (max-width: 575px) { .bb-home-sub { font-size: 15px; } }
.bb-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.2fr) minmax(0, .95fr); gap: 16px; }
.bb-lead {
  position: relative; border-radius: var(--bb-radius); overflow: hidden; min-height: 400px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--bb-shadow);
}
.bb-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 10, 0) 30%, rgba(10, 15, 10, .82) 100%); }
.bb-lead .bb-cat { position: absolute; left: 22px; top: 22px; z-index: 1; }
.bb-lead__body { position: relative; z-index: 1; padding: 28px; max-width: 640px; }
.bb-lead h3 { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.12; margin-bottom: 12px; }
.bb-lead h3 a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bb-lead p { font-size: 16px; color: rgba(255, 255, 255, .9); margin-bottom: 18px; }
.bb-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px;
  background: var(--bb-accent); color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
}
.bb-btn:hover { background: var(--bb-accent-hover); color: #fff; }

.bb-stack { display: grid; gap: 16px; grid-template-rows: repeat(3, 1fr); }
.bb-side {
  display: grid; grid-template-columns: 44% 1fr; background: var(--bb-surface);
  border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow);
}
.bb-side__img { position: relative; }
.bb-side__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-side__img .bb-cat { position: absolute; left: 10px; top: 10px; }
.bb-side__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bb-side h3 { font-size: 17px; line-height: 1.25; }

.bb-panel { background: var(--bb-surface); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 6px 18px 16px; display: flex; flex-direction: column; }
.bb-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--bb-line); margin-bottom: 4px; }
.bb-tabs button {
  border: 0; background: none; padding: 12px 0 10px; cursor: pointer; font: 600 16px/1 var(--bb-serif); color: var(--bb-muted);
  box-shadow: inset 0 -2px 0 transparent;
}
.bb-tabs button[aria-selected="true"] { color: var(--bb-accent-text); box-shadow: inset 0 -2px 0 var(--bb-accent); }
.bb-feed li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--bb-line); font-size: 14.5px; line-height: 1.35; }
.bb-feed li:last-child { border-bottom: 0; }
.bb-feed time, .bb-feed .bb-rank { color: var(--bb-muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.bb-feed .bb-rank { font: 700 20px/1 var(--bb-serif); color: var(--bb-accent-text); }
.bb-panel .bb-link { margin-top: auto; padding-top: 10px; align-self: flex-end; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- плитки рубрик ---------- */
.bb-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.bb-tile { background: var(--bb-surface); border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); display: block; }
.bb-tile img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform .4s ease; }
.bb-tile:hover img { transform: scale(1.04); }
.bb-tile__body { padding: 10px 14px 13px; position: relative; background: var(--bb-surface); }
.bb-tile strong { font: 700 17px/1.2 var(--bb-serif); display: inline-flex; align-items: center; gap: 8px; }
.bb-tile strong .bb-ico { color: var(--bb-accent); width: 16px; height: 16px; }
.bb-tile span { display: block; font-size: 13px; color: var(--bb-muted); margin-top: 3px; }
.bb-tile:hover { color: inherit; }
.bb-tile:hover strong { color: var(--bb-accent-text); }

/* ---------- деревянная полоса (layout="feature" рубрики) ---------- */
.bb-wood {
  margin-top: 36px; padding: 26px 0 24px; color: #2C1A0C;
  background: linear-gradient(rgba(222, 172, 118, .62), rgba(222, 172, 118, .62)), url('../img/deco/wood.webp') center / cover;
  box-shadow: inset 0 8px 10px -8px rgba(0, 0, 0, .45), inset 0 -8px 10px -8px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] .bb-wood { filter: brightness(.82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bb-wood { filter: brightness(.82); } }
.bb-wood .bb-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
.bb-wood__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bb-wood__intro h2 { font: 700 42px/1 var(--bb-script); color: #2C1A0C; margin-bottom: 10px; transform: rotate(-3deg); transform-origin: left; }
.bb-wood__intro p { font-size: 14.5px; line-height: 1.4; margin-bottom: 12px; max-width: 170px; }
.bb-wood__intro a { font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; color: #5A2A10; }
.bb-wood__card { padding: 0 14px; border-left: 1px solid rgba(60, 30, 10, .28); }
.bb-wood__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 9px; box-shadow: 0 2px 6px rgba(40, 20, 5, .35); }
.bb-wood__card h3 { font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-wood__card a:hover { color: #6B2A08; text-decoration: underline; }

/* ---------- лента + сайдбар ---------- */
.bb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.bb-list { display: grid; gap: 0; }
.bb-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bb-line); }
.bb-row:first-child { padding-top: 0; }
.bb-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.bb-row h3 { font-size: 20px; margin: 8px 0 8px; }
.bb-row p { font-size: 15px; color: var(--bb-muted); margin-bottom: 8px; }
.bb-row .bb-cat { background: none; color: var(--bb-accent-text); padding: 0; }

.bb-aside { display: grid; gap: 24px; }
.bb-box { background: var(--bb-surface); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 18px 20px; }
.bb-box h2 { font-size: 20px; margin-bottom: 8px; }
.bb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bb-tags a { padding: 6px 12px; border-radius: 99px; background: var(--bb-surface-2); font-size: 13.5px; }
.bb-tags a:hover { background: var(--bb-accent); color: #fff; }

.bb-ad {
  display: grid; place-items: center; min-height: 250px; border: 1px dashed var(--bb-line);
  border-radius: var(--bb-radius); color: var(--bb-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- сетка карточек (layout="grid") ---------- */
.bb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bb-card { background: var(--bb-surface); border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); display: flex; flex-direction: column; }
.bb-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bb-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bb-card h3 { font-size: 17.5px; line-height: 1.25; }
.bb-card p { font-size: 14.5px; line-height: 1.45; color: var(--bb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-card .bb-meta { margin-top: auto; }

/* ---------- layout="feature": большой + список ---------- */
.bb-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.bb-feature__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bb-radius); margin-bottom: 14px; }
.bb-feature__main h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 10px; }
.bb-feature__main p { color: var(--bb-muted); margin-bottom: 10px; }
.bb-feature__list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bb-line); }
.bb-feature__list li:first-child { padding-top: 0; }
.bb-feature__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.bb-feature__list h3 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }

/* ---------- погода (widget type="weather") ---------- */
.bb-weather { position: relative; margin-top: 40px; color: var(--bb-on-dark); background: #101a2c; overflow: hidden; }
.bb-weather__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .55; }
.bb-weather .bb-wrap { position: relative; padding-top: 34px; padding-bottom: 34px; }
.bb-weather .bb-sec-head h2 { color: #fff; }
.bb-weather .bb-link { color: #F2B98F; }
.bb-weather__now { font-size: 14px; color: var(--bb-on-dark-muted); }
.bb-cities { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.bb-city {
  background: rgba(10, 18, 30, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--bb-radius); padding: 14px 12px; text-align: center;
}
.bb-city strong { display: block; font: 600 15px/1.2 var(--bb-serif); }
.bb-city img { width: 40px; height: 40px; margin: 8px auto 4px; }
.bb-city b { display: block; font: 700 24px/1 var(--bb-sans); font-variant-numeric: tabular-nums; }
.bb-city span { display: block; font-size: 12px; color: var(--bb-on-dark-muted); margin-top: 6px; }
.bb-credit { font-size: 12px; color: var(--bb-on-dark-muted); margin-top: 14px; }
.bb-credit a { text-decoration: underline; }

/* ---------- подвал: одна полоса, лес — приглушённый фон внутри (как в референсе) ---------- */
.bb-foot { position: relative; overflow: hidden; margin-top: 56px; background: var(--bb-green); color: var(--bb-on-dark); font-size: 14px; }
.bb-foot::before, .bb-foot::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  -webkit-mask: url('../img/deco/forest.svg') left bottom / 1600px 100% repeat-x;
  mask: url('../img/deco/forest.svg') left bottom / 1600px 100% repeat-x;
}
.bb-foot::before { height: 100%; background: rgba(0, 0, 0, .16); -webkit-mask-position: -420px bottom; mask-position: -420px bottom; }
.bb-foot::after { height: 110px; background: rgba(0, 0, 0, .22); }
.bb-foot__in {
  position: relative; z-index: 1; display: grid; align-items: start;
  grid-template-columns: 340px auto auto minmax(0, 1fr) auto; gap: 44px;
  padding-top: 26px; min-height: 180px;
}
.bb-foot__sign { align-self: center; margin-top: -6px; }
.bb-foot__sign img { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.bb-foot__col { padding-bottom: 24px; }
.bb-foot h2 { font: 700 16px/1.2 var(--bb-serif); margin-bottom: 10px; color: #fff; }
.bb-foot li { margin-bottom: 5px; white-space: nowrap; }
.bb-foot__2col { columns: 2; column-gap: 28px; }
.bb-foot a { color: var(--bb-on-dark); }
.bb-foot a:hover { color: #fff; text-decoration: underline; }
.bb-foot__legal { display: flex; flex-direction: column; gap: 6px; padding-top: 30px; color: var(--bb-on-dark-muted); font-size: 13px; }
.bb-foot__legal nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bb-foot__legal a { color: var(--bb-on-dark-muted); }
.bb-foot__end { align-self: stretch; display: flex; align-items: flex-end; gap: 10px; padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .18); margin-top: 6px; }
.bb-foot__script { align-self: flex-start; margin-top: 6px; font: 600 28px/1.15 var(--bb-script); color: #fff; transform: rotate(-4deg); white-space: nowrap; }
.bb-foot__mascot { width: 118px; margin-bottom: -8px; }

/* ---------- cookie ---------- */
.bb-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto;
  background: var(--bb-surface); color: var(--bb-text); border-radius: var(--bb-radius); padding: 18px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); border: 1px solid var(--bb-line); font-size: 14px;
  display: none;
}
.bb-cookie.is-open { display: block; }
.bb-cookie p { margin-bottom: 12px; }
.bb-cookie a { text-decoration: underline; color: var(--bb-accent-text); }
.bb-cookie__btns { display: flex; gap: 10px; justify-content: flex-end; }
.bb-btn--ghost { background: none; color: var(--bb-text); border: 1.5px solid var(--bb-line); }
.bb-btn--ghost:hover { background: var(--bb-surface-2); color: var(--bb-text); }

/* ---------- мобильное меню ---------- */
.bb-drawer { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .bb-sign { display: none; }
  .bb-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .bb-panel { grid-column: 1 / -1; }
  .bb-wood .bb-wrap { grid-template-columns: 1fr; row-gap: 14px; }
  .bb-wood__intro { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
  .bb-wood__intro p { max-width: none; margin: 0; }
  .bb-wood__card:first-child { border-left: 0; padding-left: 0; }
  .bb-cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bb-foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
  .bb-foot__sign { grid-column: 1 / -1; align-self: start; margin: 0; max-width: 300px; }
  .bb-foot__end { grid-column: 1 / -1; border-left: 0; padding-left: 0; justify-content: space-between; margin: 0; }
}
@media (max-width: 1023px) {
  .bb-nav__list a { padding: 13px 16px; }
  .bb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-cols { grid-template-columns: 1fr; }
  .bb-aside { grid-template-columns: 1fr 1fr; }
  .bb-wood__row { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .bb-wood__card { scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .bb-wrap { padding: 0 16px; }
  .bb-top__links, .bb-top__date { display: none; }
  .bb-top .bb-wrap { justify-content: space-between; }
  .bb-head .bb-wrap { min-height: 64px; gap: 10px; }
  .bb-burger { display: grid; place-items: center; margin-left: -10px; }
  .bb-logo__mark { width: 40px; height: 40px; }
  .bb-logo__word { font-size: 26px; }
  .bb-logo__tag { display: none; }
  .bb-search { display: none; }
  .bb-head .bb-search-toggle { display: grid !important; margin-left: auto; }
  .bb-nav { display: none; }
  .bb-drawer { display: block; background: var(--bb-surface); border-bottom: 1px solid var(--bb-line); }
  .bb-drawer[hidden] { display: none; }
  .bb-drawer form.bb-search { display: flex; max-width: none; margin: 12px 0; }
  .bb-drawer li a { display: block; padding: 12px 0; font: 600 18px/1.2 var(--bb-serif); border-top: 1px solid var(--bb-line); }
  .bb-hero { grid-template-columns: 1fr; }
  .bb-lead__body { padding: 20px; }
  .bb-stack { grid-template-rows: none; }
  .bb-side { grid-template-columns: 120px 1fr; }
  .bb-side__img .bb-cat { display: none; }
  .bb-side__body { padding: 12px 14px; }
  .bb-side h3 { font-size: 16px; }
  .bb-tiles { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .bb-tile { scroll-snap-align: start; }
  .bb-wood__row { grid-template-columns: repeat(5, 72%); }
  .bb-lead { min-height: 400px; }
  .bb-lead h3 { font-size: 24px; }
  .bb-lead p { font-size: 15px; }
  .bb-row { grid-template-columns: 110px 1fr; gap: 14px; }
  .bb-row h3 { font-size: 17px; margin-top: 4px; }
  .bb-row p { display: none; }
  .bb-aside { grid-template-columns: 1fr; }
  /* сетка → строки: миниатюра + заголовок + анонс, как лента «Najnowsze» */
  .bb-grid { grid-template-columns: 1fr; gap: 0; }
  .bb-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; background: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--bb-line); overflow: visible; }
  .bb-card:first-child { padding-top: 0; }
  .bb-card img { border-radius: 8px; align-self: start; }
  .bb-card__body { padding: 0; gap: 6px; }
  .bb-card h3 { font-size: 16.5px; }
  .bb-card p { font-size: 14px; }
  .bb-feature { grid-template-columns: 1fr; }
  .bb-feature__list li { grid-template-columns: 96px 1fr; }
  .bb-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-foot__in { grid-template-columns: 1fr 1fr; }
  .bb-foot__sign { max-width: 250px; }
  .bb-foot__follow { grid-column: 1 / -1; }
  .bb-foot li { white-space: normal; }
  .bb-foot__col { padding-bottom: 0; }
  .bb-sec-head { flex-wrap: wrap; }
}
.bb-search-toggle { display: none !important; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.bb-wx { display: block; flex: none; }
.bb-city .bb-wx { margin: 8px auto 4px; }

/* на главной «Wszystkie wiadomości» стоит у h1 — в строке рубрик её гасим (как на info.cy) */
body.homepage .bb-nav__all { display: none; }

/* =========================================================
   Внутренние страницы: рубрика (category.html), статья (article.html)
   ========================================================= */
.bb-crumbs { padding-top: 20px; font-size: 13.5px; color: var(--bb-muted); }
.bb-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bb-crumbs li + li::before { content: '›'; margin-right: 6px; }
.bb-crumbs a:hover { text-decoration: underline; }

.bb-pagehead { padding: 14px 0 18px; }
.bb-pagehead h1 { font-size: clamp(30px, 4vw, 44px); }
.bb-pagehead p { color: var(--bb-muted); margin-top: 8px; max-width: 640px; }

.bb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.bb-chips a { padding: 8px 16px; border-radius: 99px; background: var(--bb-surface); border: 1px solid var(--bb-line); font-weight: 500; font-size: 14.5px; }
.bb-chips a[aria-current] { background: var(--bb-green-2); border-color: var(--bb-green-2); color: #fff; }

.bb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bb-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; }
.bb-pager a, .bb-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.bb-pager a { background: var(--bb-surface); border: 1px solid var(--bb-line); }
.bb-pager a[aria-current] { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-pager span { color: var(--bb-muted); }

/* «Najczęściej czytane» с миниатюрами — для сайдбара внутренних страниц */
.bb-top5 li { counter-increment: top; }
.bb-top5 a { display: grid; grid-template-columns: 24px 72px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--bb-line); font-size: 14px; line-height: 1.35; font-weight: 500; }
.bb-top5 li:last-child a { border-bottom: 0; }
.bb-top5 a::before { content: counter(top); font: 700 20px/1 var(--bb-serif); color: var(--bb-accent-text); }
.bb-top5 img { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.bb-top5 { counter-reset: top; }

/* ---------- статья ---------- */
.bb-article { max-width: 760px; }
.bb-article__head { padding: 10px 0 20px; }
.bb-article__head .bb-cat { margin-bottom: 14px; }
.bb-article h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin-bottom: 14px; }
.bb-article__lead { font-size: 19px; line-height: 1.5; color: var(--bb-text); opacity: .85; }
.bb-article__bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--bb-line); border-bottom: 1px solid var(--bb-line); }
.bb-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--bb-muted); }
.bb-facts span { display: inline-flex; align-items: center; gap: 6px; }
.bb-facts .bb-ico { width: 16px; height: 16px; }
.bb-share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bb-muted); }
.bb-share a, .bb-share button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bb-line); background: var(--bb-surface); cursor: pointer; color: var(--bb-text); }
.bb-share a:hover, .bb-share button:hover { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-share .bb-ico { width: 16px; height: 16px; }

.bb-figure { margin: 22px 0 26px; }
.bb-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bb-radius); }
.bb-figure figcaption { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bb-muted); margin-top: 8px; }
.bb-figure figcaption .bb-ico { width: 15px; height: 15px; }

.bb-prose { font-size: 18px; line-height: 1.7; }
.bb-prose > * + * { margin-top: 1.05em; }
.bb-prose h2 { font-size: 26px; margin-top: 1.6em; }
.bb-prose ul { list-style: disc; padding-left: 1.3em; }
.bb-prose li + li { margin-top: .35em; }
.bb-prose a { color: var(--bb-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.bb-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--bb-accent); font: italic 600 21px/1.45 var(--bb-serif); }
.bb-prose blockquote cite { display: block; margin-top: 8px; font: normal 400 14px/1.4 var(--bb-sans); color: var(--bb-muted); }

/* комментарий редакции — РАЗМЕТКА В ТЕЛЕ (маркер bb-take для гейта публикации, как ic-take у info.cy) */
.bb-take {
  margin: 34px 0 0; padding: 22px 24px; border-radius: var(--bb-radius); color: #2C1A0C;
  background: linear-gradient(rgba(236, 196, 150, .78), rgba(236, 196, 150, .78)), url('../img/deco/wood.webp') center / cover;
}
.bb-take__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bb-take__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bb-green-2); color: #fff; flex: none; }
.bb-take__label { font: 700 26px/1 var(--bb-script); }
.bb-take h2 { font-size: 20px; margin-top: 0; }
.bb-take__body { font-size: 16.5px; line-height: 1.6; }
.bb-take__body > * + * { margin-top: .8em; }
.bb-take__body ul { list-style: disc; padding-left: 1.2em; }
.bb-take__sign { margin-top: 14px; font-size: 13px; opacity: .85; }
.bb-take__sign a { text-decoration: underline; }

.bb-sources { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); background: var(--bb-surface); }
.bb-sources h2 { font: 600 12px/1 var(--bb-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bb-muted); margin-bottom: 12px; }
.bb-source { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--bb-line); }
.bb-source:first-of-type { border-top: 0; padding-top: 0; }
.bb-source__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--bb-surface-2); font: 700 12px/1 var(--bb-sans); color: var(--bb-muted); }
.bb-source a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.bb-source a .bb-ico { width: 14px; height: 14px; color: var(--bb-muted); }
.bb-source .bb-meta span + span::before { content: '·'; margin: 0 6px; }
.bb-sources__note { margin-top: 12px; font-size: 13px; color: var(--bb-muted); }
.bb-sources__note a { text-decoration: underline; }

.bb-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }

.bb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.bb-prevnext a { display: grid; grid-template-columns: 20px 64px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: var(--bb-radius); background: var(--bb-surface); box-shadow: var(--bb-shadow); font: 600 14.5px/1.3 var(--bb-serif); }
.bb-prevnext a.is-next { grid-template-columns: 1fr 64px 20px; text-align: right; }
.bb-prevnext img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.bb-prevnext small { display: block; font: 500 12px/1.2 var(--bb-sans); color: var(--bb-muted); margin-bottom: 4px; }

@media (max-width: 1023px) {
  .bb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-article { max-width: none; }
}
@media (max-width: 767px) {
  .bb-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; }
  .bb-chips a { white-space: nowrap; }
  .bb-grid--3 { grid-template-columns: 1fr; }
  .bb-article__lead { font-size: 17px; }
  .bb-prose { font-size: 17px; }
  .bb-prose h2 { font-size: 22px; }
  .bb-take { padding: 18px 16px; }
  .bb-prevnext { grid-template-columns: 1fr; }
}


/* =========================================================
   Только в теме: то, чего в статическом макете не было
   ========================================================= */
/* обёртка фрагментов шапки/подвала: landmark и sticky даёт сам фрагмент */
.bb-chrome { display: contents; }

/* служебные сообщения и пустые состояния */
.bb-flash { margin: 16px 0; padding: 12px 16px; border-radius: 8px; background: var(--bb-surface); border: 1px solid var(--bb-line); }
.bb-flash--error { border-color: #c0392b; color: #8e2a1f; background: #fdeeea; }
.bb-empty { padding: 32px 0; color: var(--bb-muted); }
.bb-empty > * + * { margin-top: 12px; }

/* нет обложки — ровная подложка, чтобы сетка не прыгала */
.bb-noimg { display: block; width: 100%; height: 100%; min-height: 60px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--bb-surface-2), var(--bb-line)); border-radius: inherit; }
.bb-side__img .bb-noimg { aspect-ratio: auto; }

/* подпись рубрики строкой над заголовком (лента, поиск, карточки на /news) */
.bb-kicker { display: block; font: 600 11.5px/1 var(--bb-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bb-accent-text); }
.bb-card__media { display: block; }
.bb-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* сетки по числу колонок (шаблон не рисует колонок больше, чем материалов) */
.bb-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.bb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* вкладки панели на главной: вторая — рейтинг, время прячем, ставим номер */
.bb-panel [role="tabpanel"] { min-height: 0; }
.bb-panel .is-ranked .bb-feed { counter-reset: rank; }
.bb-panel .is-ranked .bb-feed li { counter-increment: rank; }
.bb-panel .is-ranked .bb-feed li > time, .bb-panel .is-ranked .bb-feed li > span:first-child { display: none; }
.bb-panel .is-ranked .bb-feed li::before { content: counter(rank); font: 700 20px/1 var(--bb-serif); color: var(--bb-accent-text); }

/* бегущая строка: без JS — прокручиваемая строка, с JS — движение (theme.js дублирует содержимое) */
.bb-ticker__viewport { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.bb-ticker__viewport::-webkit-scrollbar { display: none; }
.bb-ticker__track { mask-image: none; overflow: visible; width: max-content; }
.bb-ticker.is-running .bb-ticker__viewport { overflow: hidden; }
.bb-ticker.is-running .bb-ticker__track { animation: bb-marquee var(--bb-ticker-dur, 60s) linear infinite; }
.bb-ticker.is-running:hover .bb-ticker__track { animation-play-state: paused; }
@keyframes bb-marquee { to { transform: translateX(-50%); } }
.bb-ticker__track > span { display: contents; }

/* ядровый cookie-баннер (default/components/cookie-banner.html): классы движка, вид темы */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto;
  background: var(--bb-surface); color: var(--bb-text); border-radius: var(--bb-radius); padding: 18px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); border: 1px solid var(--bb-line); font-size: 14px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: 12px; }
.cookie-banner a { text-decoration: underline; color: var(--bb-accent-text); }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1.5px solid var(--bb-line); background: none; color: var(--bb-text); }
.cookie-banner .btn-primary { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.cookie-banner .btn-primary:hover { background: var(--bb-accent-hover); }

/* поиск: страница результатов */
.bb-search--page { max-width: 620px; margin: 16px 0 8px; }
.bb-search-group { margin-top: 28px; }
.bb-search-group h2 { font-size: 22px; margin-bottom: 12px; }

/* статическая страница (O nas, Kontakt, Polityka prywatności) */
.bb-page { padding-bottom: 24px; }
.bb-page .bb-prose h2 { font-size: 24px; }

/* активный пункт рубрик (theme.js ставит aria-current по пути) — в макете был только статичный */
.bb-drawer li a[aria-current] { color: var(--bb-accent-text); }

/* форма контакта — ядровая разметка (widget-contact-form, form-consent), вид темы */
.widget-contact-form { margin-top: 24px; max-width: 620px; }
.widget-contact-form__row { display: grid; gap: 6px; margin-bottom: 14px; }
.widget-contact-form__label { font-weight: 600; font-size: 14.5px; }
.widget-contact-form__input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--bb-line); border-radius: 8px;
  background: var(--bb-surface); color: var(--bb-text); font: inherit; font-size: 16px;
}
.widget-contact-form__input:focus { outline: none; border-color: var(--bb-accent); }
textarea.widget-contact-form__input { min-height: 150px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; color: var(--bb-muted); }
.form-consent__box { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--bb-accent); flex: none; }
.form-consent a { color: var(--bb-accent-text); text-decoration: underline; }
.widget-contact-form__submit {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 6px;
  background: var(--bb-accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.widget-contact-form__submit:hover { background: var(--bb-accent-hover); }

/* адаптив для сеток --2/--3/--4: правила выше объявлены после общих медиазапросов и перебили бы их */
@media (max-width: 1023px) {
  .bb-grid--3, .bb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bb-grid--2, .bb-grid--3, .bb-grid--4 { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .bb-card__media img { border-radius: 8px; }
  .bb-card .bb-card__media { align-self: start; }
}

/* лента ещё пуста (первые часы после запуска) — не показываем пустую панель вкладок */
.bb-hero:not(:has(.bb-lead)) .bb-panel { display: none; }
