/* =============================================================
   BAZA HERBÓW — main.css
   Oryginalna kolorystyka: granat + czerwień + biel
   Tryb ciemny/jasny sterowany przez [data-theme] na <html>
   ============================================================= */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --red:       #009e6c;
  --red-hover: #008559;
  --red-soft:  rgba(0, 158, 108, 0.10);
  --navy:      #1A2240;
  --navy-deep: #131929;
  --tr:        0.22s ease;
}

/* ── Light mode (default) ───────────────────────────────────── */
[data-theme="light"],
:root {
  --bg:          #FFFFFF;
  --bg-alt:      #F5F5F5;
  --bg-card:     #FFFFFF;
  --bg-nav:      var(--navy);
  --bg-section:  #F0F2F5;
  --bg-badge:    #E8EAF0;
  --text:        #1A1A2E;
  --text-sub:    #4A4A6A;
  --text-muted:  #8888AA;
  --text-nav:    #FFFFFF;
  --text-nav-m:  rgba(255,255,255,0.60);
  --border:      rgba(26,34,64,0.10);
  --border-card: rgba(26,34,64,0.08);
  --shadow:      0 2px 12px rgba(26,34,64,0.08);
  --shadow-card: 0 6px 24px rgba(26,34,64,0.12);
  --tag-bg:      #E8EAF0;
  --tag-text:    #4A4A6A;
  --sb-bg:       #FFFFFF;
}

/* ── Dark mode ──────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0E1220;
  --bg-alt:      #131929;
  --bg-card:     #1A2240;
  --bg-nav:      #0A0F1A;
  --bg-section:  #131929;
  --bg-badge:    #1E2840;
  --text:        #E8ECF8;
  --text-sub:    #9AA8CC;
  --text-muted:  #5A6A90;
  --text-nav:    #FFFFFF;
  --text-nav-m:  rgba(255,255,255,0.50);
  --border:      rgba(255,255,255,0.07);
  --border-card: rgba(255,255,255,0.06);
  --shadow:      0 2px 12px rgba(0,0,0,0.40);
  --shadow-card: 0 6px 24px rgba(0,0,0,0.50);
  --tag-bg:      #1E2840;
  --tag-text:    #9AA8CC;
  --sb-bg:       #1A2240;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--tr), color var(--tr);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── WordPress admin bar spacing ───────────────────────────── */
.admin-bar .bh-nav { top: 32px; }
.admin-bar .bh-fbar { top: calc(68px + 32px); }
.admin-bar .bh-sidebar { top: calc(128px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .bh-nav { top: 46px; }
  .admin-bar .bh-fbar { top: calc(68px + 46px); }
  .admin-bar .bh-sidebar { top: calc(128px + 46px); }
}
@media (max-width: 960px) {
  .admin-bar .bh-fbar { top: calc(68px + 32px); }
}
@media screen and (max-width: 782px) {
  .admin-bar .bh-fbar { top: calc(68px + 46px); }
}

/* ── Top bar ────────────────────────────────────────────────── */
.bh-topbar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 32px;
  display: flex;
  align-items: center;
}
.bh-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bh-topbar-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bh-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Ikony social media w topbarze */
.bh-topbar-social {
  display: flex;
  align-items: center;
  gap: 1px;
}
.bh-topbar-social-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--tr), background var(--tr);
}
.bh-topbar-social-btn:hover {
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.09);
}
.bh-topbar-coffee:hover {
  color: #FFD060 !important;
  background: rgba(255,184,0,0.12) !important;
}
/* Pionowy separator między social a linkami */
.bh-topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.13);
  flex-shrink: 0;
}
/* Linki tekstowe (O stronie / Kontakt) */
.bh-topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bh-topbar-links a,
.bh-topbar-menu a {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--tr);
}
.bh-topbar-links a:hover,
.bh-topbar-menu a:hover { color: var(--red); }
/* WP nav menu reset dla topbaru */
.bh-topbar-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bh-topbar-menu li { margin: 0; padding: 0; }
.bh-topbar-menu li a { white-space: nowrap; }
@media (max-width: 768px) {
  .bh-topbar-tagline { display: none; }
}
@media (max-width: 480px) {
  .bh-topbar-tagline { display: none; }
}

/* ── Navigation ─────────────────────────────────────────────── */
.bh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transition: background var(--tr);
}
.bh-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.bh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
  margin-right: 32px;
  text-decoration: none;
}
/* WordPress custom-logo */
.bh-nav-inner .custom-logo {
  display: block !important;
  max-width: 100% !important;
  max-height: 40px !important;
  height: auto !important;
  width: 100% !important;
}
.bh-logo-shield {
  width: auto;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 158, 108, 0.5));
}
.bh-logo-text { display: flex; flex-direction: column; line-height: 1; }
.bh-logo-text .l1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: #FFFFFF;
}
.bh-logo-text .l2 {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

/* Nav links — obsługuje menu WordPress */
.bh-nav-menu {
  display: flex;
  list-style: none;
  flex: 1;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.bh-nav-menu li { position: relative; }
.bh-nav-menu li a {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-nav-m);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.bh-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.bh-nav-menu li a:hover,
.bh-nav-menu li.current-menu-item > a,
.bh-nav-menu li.current_page_item > a { color: #FFFFFF; }
.bh-nav-menu li a:hover::after,
.bh-nav-menu li.current-menu-item > a::after,
.bh-nav-menu li.current_page_item > a::after { transform: scaleX(1); }

/* ── Dropdown sub-menu ──────────────────────────────────────── */
.bh-nav-menu li:has(> .sub-menu) > a::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 8px;
  margin-right: 10px;
  vertical-align: middle;
  opacity: .6;
  transition: transform .2s;
}
.bh-nav-menu li:has(> .sub-menu):hover > a::before {
  transform: rotate(180deg);
  opacity: 1;
}
.bh-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--navy-deep, #131929);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  list-style: none;
  padding: 6px 0;
  z-index: 500;
}
.bh-nav-menu li:hover > .sub-menu,
.bh-nav-menu li:focus-within > .sub-menu {
  display: block;
}
.bh-nav-menu .sub-menu li a {
  height: auto;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-nav-m);
  white-space: nowrap;
  display: block;
  border-bottom: none;
}
.bh-nav-menu .sub-menu li a::after {
  display: none;
}
.bh-nav-menu .sub-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}
.bh-nav-menu .sub-menu li:last-child a {
  border-radius: 0 0 9px 9px;
}

/* Mobile dropdown */
@media (max-width: 960px) {
  .bh-nav-menu.open .sub-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    border-radius: 0;
    padding: 0;
  }
  .bh-nav-menu.open .sub-menu li a {
    padding-left: 32px;
    height: 40px;
    font-size: 12px;
  }
}

/* Nav right controls */
.bh-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .bh-nav-right { margin-left: auto; padding-left: 16px; }
}
.bh-nav-search { position: relative; }
.bh-nav-search input {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  padding: 0 12px 0 34px;
  height: 36px;
  font-size: 13px;
  font-family: inherit;
  color: #fff;
  width: 190px;
  outline: none;
  transition: all var(--tr);
}
.bh-nav-search input::placeholder { color: rgba(255,255,255,0.35); }
.bh-nav-search input:focus { border-color: var(--red); background: rgba(255,255,255,0.13); width: 230px; }
.bh-nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.40);
  pointer-events: none;
}
.bh-nav-search-icon svg { display: block; }

/* Dark mode button */
.bh-theme-btn {
  width: 36px; height: 36px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.09);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--tr);
  flex-shrink: 0;
}
.bh-theme-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
[data-theme="dark"]  .i-sun  { display: none; }
[data-theme="light"] .i-moon { display: none; }

/* Mobile hamburger */
.bh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
.bh-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ── Hero ───────────────────────────────────────────────────── */
.bh-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  transition: background var(--tr);
  min-height: calc(100svh - 68px);
}
[data-theme="dark"] .bh-hero { background: #0A0F1A; }
.bh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent, transparent 40px,
    rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px
  );
  pointer-events: none;
}
.bh-hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.bh-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 28px 56px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.bh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 158, 108, 0.18);
  border: 1px solid rgba(0, 158, 108, 0.4);
  color: #FF8070;
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.bh-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF8070; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.bh-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px,6vw,80px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 18px;
}
.bh-hero h1 .red { color: var(--red); }
.bh-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}
.bh-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.bh-hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-wrap: wrap;
}
.bh-hstat-val { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: #fff; line-height: 1; }
.bh-hstat-val span { color: var(--red); }
.bh-hstat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.40); margin-top: 3px; }

/* Shield mosaic */
.bh-shield-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px; }
.bh-ms {
  aspect-ratio: 0.85;
  clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  text-align: center;
  padding-bottom: 14%;
  transition: transform 0.2s, filter 0.2s;
}
.bh-ms:hover { transform: scale(1.1) translateY(-3px); filter: brightness(1.2); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--tr);
  letter-spacing: 0.02em;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 158, 108, 0.45); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.22); }
.btn-outline:hover { background: rgba(255,255,255,0.09); color: #fff; }
.btn-content { background: var(--red); color: #fff; }
.btn-content:hover { background: var(--red-hover); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.bh-bc { background: var(--bg-section); border-bottom: 1px solid var(--border); transition: background var(--tr); }
.bh-bc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.bh-bc-inner a { color: var(--text-muted); transition: color var(--tr); }
.bh-bc-inner a:hover { color: var(--red); }
.bh-bc-inner span { color: var(--text-sub); }

/* ── Filter bar ─────────────────────────────────────────────── */
.bh-fbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
  transition: background var(--tr);
}
.bh-fbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bh-fbar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); flex-shrink: 0; margin-right: 4px; }
.bh-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sub);
  font-family: inherit;
  transition: all var(--tr);
}
.bh-chip:hover { border-color: var(--red); color: var(--red); }
.bh-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.bh-fbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bh-sort-sel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-sub);
  appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238888AA' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: all var(--tr);
}
.bh-sort-sel:focus { border-color: var(--red); }
.bh-vtoggle { display: flex; gap: 2px; background: var(--bg-section); border: 1px solid var(--border); border-radius: 6px; padding: 3px; }
.bh-vbtn { width: 28px; height: 26px; border-radius: 4px; border: none; background: transparent; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: all var(--tr); }
.bh-vbtn.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }

/* ── Main layout ─────────────────────────────────────────────── */
.bh-main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.bh-sidebar { position: sticky; top: 128px; align-self: start; }
.bh-sb-box {
  background: var(--sb-bg);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  transition: background var(--tr), border-color var(--tr);
}
.bh-sb-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-section);
  transition: background var(--tr);
}
.bh-sb-head h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.bh-sb-head .bh-clr { font-size: 11px; color: var(--red); cursor: pointer; font-weight: 500; background: none; border: none; font-family: inherit; }
.bh-sb-body { padding: 8px 6px; }
.bh-sb-search { padding: 10px; position: relative; }
.bh-sb-search .bh-sb-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
  display: flex;
}
.bh-sb-search input {
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all var(--tr);
  box-sizing: border-box;
}
.bh-sb-search input:focus { border-color: var(--red); }
.bh-sb-search input::placeholder { color: var(--text-muted); }

/* Powiat list item */
.bh-pi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--tr);
  gap: 8px;
}
.bh-pi:hover, .bh-pi.active, .bh-pi[data-force-active] { background: var(--red-soft); }
.bh-pi.active .bh-pname, .bh-pi[data-force-active] .bh-pname { color: var(--red); font-weight: 600; }
.bh-pname { font-size: 13px; color: var(--text-sub); transition: color var(--tr); }
.bh-pcnt {
  font-size: 10px;
  background: var(--bg-badge);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 2px 7px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background var(--tr), color var(--tr);
}
.bh-pi.active .bh-pcnt, .bh-pi[data-force-active] .bh-pcnt { background: var(--red); color: #fff; }

/* ── Content area ───────────────────────────────────────────── */
.bh-content { min-width: 0; }

/* Recently added */
.bh-recent {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: background var(--tr);
}
.bh-recent-hd {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bh-recent-hd::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.bh-recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-ri {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tr);
  background: var(--bg-card);
}
.bh-ri:hover { border-color: var(--red); color: var(--text); background: var(--red-soft); }
.bh-ri-sh { width: 26px; height: 30px; clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%); flex-shrink: 0; }
.bh-new-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 5px; border-radius: 3px; letter-spacing: 0.04em; }

/* Section header */
.bh-sec-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.bh-sec-hd::before { content: ''; width: 4px; height: 24px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
a.bh-sec-title { text-decoration: none; color: var(--text); transition: color var(--tr); }
a.bh-sec-title:hover { color: var(--red); }
.bh-sec-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.04em; color: var(--text); line-height: 1; }
.bh-sec-woj {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--navy);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  transition: background var(--tr);
}
[data-theme="dark"] .bh-sec-woj { background: rgba(255,255,255,0.12); }
.bh-sec-cnt { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.bh-see-all { font-size: 11px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 3px; transition: gap 0.15s; white-space: nowrap; }
.bh-see-all:hover { gap: 6px; }

/* Powiat divider */
.bh-pdiv { display: flex; align-items: center; gap: 12px; margin: 36px 0 16px; }
.bh-pdiv-label { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.05em; color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bh-cpill { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 700; background: var(--bg-badge); color: var(--text-muted); border-radius: 10px; padding: 2px 8px; }
.bh-pdiv-line { flex: 1; height: 1px; background: var(--border); }

/* ── Clubs grid ─────────────────────────────────────────────── */
.bh-cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

/* Club card */
.bh-cc {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.17s, box-shadow 0.17s, border-color 0.17s, background var(--tr);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none; /* karta jest teraz <a> */
  color: inherit;
}
.bh-cc:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--red); }
.bh-cc-top {
  background: var(--bg-section);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr);
  flex-shrink: 0;
}
.bh-cc-top img {
  max-height: 64px;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.2s;
}
.bh-cc:hover .bh-cc-top img { transform: scale(1.08); }

/* Fallback shield when no image */
.bh-csh {
  width: 50px; height: 59px;
  clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.90);
  padding-bottom: 10%;
  text-align: center;
}
.bh-cc-body { padding: 9px 11px 11px; flex: 1; }
.bh-cc-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; transition: color var(--tr); }
.bh-cc-loc { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.bh-cc:hover .bh-cc-name { color: var(--red); }
.bh-cc-fav {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  z-index: 2;
}
.bh-cc:hover .bh-cc-fav { opacity: 1; }
.bh-cc-fav:hover { background: #fff3cd; color: #d4a000; border-color: #d4a000; }
.bh-cc-fav.saved { opacity: 1; color: #d4a000; border-color: #d4a000; background: #fff3cd; }

/* List view */
.bh-cgrid.bh-lv { grid-template-columns: 1fr; gap: 5px; }
.bh-cgrid.bh-lv .bh-cc { flex-direction: row; align-items: center; border-radius: 7px; }
.bh-cgrid.bh-lv .bh-cc-top { width: 64px; height: 52px; flex-shrink: 0; border-radius: 0; }
.bh-cgrid.bh-lv .bh-csh { width: 32px; height: 37px; font-size: 11px; }
.bh-cgrid.bh-lv .bh-cc-body { display: flex; align-items: center; gap: 12px; padding: 9px 13px; flex: 1; flex-direction: row; }
.bh-cgrid.bh-lv .bh-cc-loc { margin-top: 0; margin-left: auto; }
.bh-cgrid.bh-lv .bh-cc-fav { position: static; opacity: 1; margin-right: 4px; }

/* Loading state */
.bh-loading {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  gap: 12px;
}
.bh-loading.active { display: flex; }
.bh-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* No results */
.bh-no-results {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.bh-no-results.active { display: block; }
.bh-no-results-icon { font-size: 48px; margin-bottom: 12px; }
.bh-no-results h3 { font-size: 18px; color: var(--text-sub); margin-bottom: 8px; }

/* ── Modal ───────────────────────────────────────────────────── */
.bh-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.bh-overlay.open { opacity: 1; pointer-events: all; }
.bh-modal-wrap { position: relative; }
.bh-modal {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 30px;
  width: 380px;
  max-width: 90vw;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--red);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.2s, background var(--tr);
  max-height: 90vh;
  overflow-y: auto;
}
.bh-overlay.open .bh-modal { transform: scale(1) translateY(0); }
.bh-modal-close {
  position: absolute; top: -11px; right: -11px;
  width: 30px; height: 30px;
  background: var(--navy);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: #fff;
  transition: background var(--tr);
  line-height: 1;
}
.bh-modal-close:hover { background: var(--red); }
.bh-modal-crest { display: flex; justify-content: center; margin-bottom: 18px; }
.bh-modal-crest img { max-height: 100px; max-width: 120px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)); }
.bh-modal-sh {
  width: 84px; height: 99px;
  clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: rgba(255,255,255,0.92);
  padding-bottom: 16%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.bh-modal-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; text-align: center; letter-spacing: 0.04em; color: var(--text); margin-bottom: 8px; }
.bh-modal-tags { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.bh-modal-tag { font-size: 11px; background: var(--tag-bg); color: var(--tag-text); padding: 3px 10px; border-radius: 20px; font-weight: 500; transition: background var(--tr); }
.bh-modal-info { border-top: 1px solid var(--border); padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.bh-modal-field { display: flex; flex-direction: column; gap: 2px; }
.bh-modal-field-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); font-weight: 700; }
.bh-modal-field-val { font-size: 13px; font-weight: 500; color: var(--text); }
.bh-modal-btns { display: flex; gap: 8px; }
.bh-modal-btn-dl { flex: 1; background: var(--red); color: #fff; border: none; border-radius: 7px; padding: 10px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--tr); }
.bh-modal-btn-dl:hover { background: var(--red-hover); }
.bh-modal-btn-fav { background: transparent; color: var(--text-sub); border: 1px solid var(--border); border-radius: 7px; padding: 10px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--tr); white-space: nowrap; }
.bh-modal-btn-fav:hover { background: #fff3cd; color: #d4a000; border-color: #d4a000; }

/* ── Footer ─────────────────────────────────────────────────── */
.bh-footer { background: var(--navy-deep); padding: 48px 24px 0; transition: background var(--tr); }
[data-theme="dark"] .bh-footer { background: #0A0F1A; }
.bh-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bh-f-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: #fff; letter-spacing: 1px; }
.bh-f-logo-sh { width: 30px; height: 35px; background: var(--red); clip-path: polygon(0 0,100% 0,100% 72%,50% 100%,0 72%); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; padding-bottom: 7px; font-family: 'Bebas Neue', sans-serif; }
.bh-f-desc { font-size: 13px; color: rgba(255,255,255,0.40); line-height: 1.7; max-width: 280px; }
.bh-f-col h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.bh-f-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bh-f-col a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color var(--tr); }
.bh-f-col a:hover { color: var(--red); }
.bh-f-bottom { max-width: 1280px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 8px; }
.bh-f-bottom-nav { }
.bh-f-bottom-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.bh-f-bottom-menu li a { color: rgba(255,255,255,0.28); text-decoration: none; font-size: 11px; transition: color var(--tr); }
.bh-f-bottom-menu li a:hover { color: var(--red); }

/* ── Pagination ─────────────────────────────────────────────── */
.bh-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0; flex-wrap: wrap; }
.bh-pagination a,
.bh-pagination span,
.bh-page-btn,
.bh-page-dots {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sub);
  transition: all var(--tr);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}
.bh-page-dots { cursor: default; border-color: transparent; background: transparent; }
.bh-pagination a:hover,
.bh-page-btn:hover:not(.current) { border-color: var(--red); color: var(--red); background: var(--bg-card); }
.bh-pagination .current,
.bh-page-btn.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Single club page ───────────────────────────────────────── */
.bh-single-hero {
  background: var(--navy);
  padding: 48px 0;
  transition: background var(--tr);
}
[data-theme="dark"] .bh-single-hero { background: #0A0F1A; }
.bh-single-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 40px; align-items: center; }
.bh-single-crest { flex-shrink: 0; }
.bh-single-crest img { max-height: 200px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3)); }
.bh-single-info h1 { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #fff; letter-spacing: 0.03em; line-height: 1; margin-bottom: 12px; }
.bh-single-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bh-single-tag { font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); padding: 5px 12px; border-radius: 20px; }
.bh-single-tag.red { background: var(--red); color: #fff; }
.bh-single-desc { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.7; }

/* ── Utility ────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bh-hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bh-main { grid-template-columns: 1fr; }
  .bh-sidebar { position: static; }
  .bh-hero-inner { grid-template-columns: 1fr; }
  .bh-shield-mosaic { display: none; }
  .bh-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .bh-fbar { top: 68px; }
}
@media (max-width: 768px) {
  .bh-nav-menu { display: none; }
  .bh-nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-nav); border-top: 1px solid rgba(255,255,255,0.08); padding: 8px 0; z-index: 200; }
  .bh-nav-menu.open li a { height: 44px; }
  .bh-hamburger { display: flex; }
  .bh-nav-search { display: none; }
}
@media (max-width: 600px) {
  .bh-cgrid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .bh-hero-stats { gap: 20px; }
  .bh-fbar-inner { gap: 6px; }
  .bh-f-bottom { flex-direction: column; text-align: center; }
}





/* ── Pre-footer — pełna szerokość ───────────────────────────── */
.bh-prefooter {
  background: var(--bg-alt, #F5F5F5);
  border-top: 1px solid var(--border, rgba(26,34,64,.1));
  border-bottom: 1px solid var(--border, rgba(26,34,64,.1));
  transition: background .25s;
}
[data-theme="dark"] .bh-prefooter {
  background: var(--bg-alt, #131929);
}
.bh-prefooter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
}
.bh-prefooter-widget {
  width: 100%;
}
.bh-prefooter-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--text, #1A1A2E);
  margin-bottom: 16px;
}
/* Footer sidebary */
.bh-f-widget h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-nav-m);
  margin-bottom: 12px;
}
.bh-f-widget ul { list-style: none; padding: 0; margin: 0; }
.bh-f-widget ul li { margin-bottom: 6px; }
.bh-f-widget ul li a {
  font-size: 13px;
  color: var(--text-nav-m);
  text-decoration: none;
  transition: color .2s;
}
.bh-f-widget ul li a:hover { color: var(--red); }
/* Footer favicon */
.bh-f-favicon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
/* Hero — własny obraz zamiast mozaiki */
.bh-shield-mosaic:has(.bh-hero-custom-img) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bh-hero-custom-img {
  max-height: 425px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
}
/* ── Single post layout ─────────────────────────────────────── */
.bh-single-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.bh-single-layout > div .bh-sb-box:not(.bh-sb-box--card) {
  box-shadow: none;
  border: none;
  padding-top: 0;
}

@media (max-width: 960px) {
  .bh-single-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 24px;
  }
  /* sidebar na dół — po lewej kolumnie z treścią */
  .bh-single-layout aside {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bh-single-layout aside .bh-sb-box {
    margin-bottom: 0;
  }
  .bh-single-layout > div {
    order: 1;
  }
}
@media (max-width: 600px) {
  .bh-single-layout aside {
    grid-template-columns: 1fr;
  }
  .bh-single-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
  }
  .bh-single-crest { margin: 0 auto; }
  .bh-single-info h1 { font-size: 32px; }
  .bh-single-meta { justify-content: center; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════
   DODATKI v2.1 — wyszukiwarki filtrów, social media
═══════════════════════════════════════════════ */

/* Sidebar — wyszukiwarka filtrów (powiat / województwo) */
.bh-sb-filter-search {
  padding: 8px 10px 4px;
  border-bottom: 1px solid var(--border);
}
.bh-sb-filter-search input {
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 10px 6px 28px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all var(--tr);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%238888AA' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
}
.bh-sb-filter-search input:focus { border-color: var(--red); }
.bh-sb-filter-search input::placeholder { color: var(--text-muted); }

/* Sidebar body — max height ze scrollem */
.bh-sb-body { max-height: 260px; overflow-y: auto; padding-bottom: 6px; overscroll-behavior: contain; }
.bh-sb-body::-webkit-scrollbar { width: 4px; }
.bh-sb-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
/* Blokuj scroll-into-view na elementach listy */
.bh-sb-body .bh-pi { scroll-margin-top: 0; scroll-margin-bottom: 0; }
/* Box Inne — overflow-y aby przeglądarka nie scrollowała strony do elementów wewnątrz */
.bh-sb-box--inne { overflow: hidden; }

/* ── Social Media — hero (poziome przyciski) ──── */
.bh-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  transition: all var(--tr);
  letter-spacing: .02em;
  white-space: nowrap;
}
.bh-social-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
}
.bh-social-btn.bh-social-coffee { border-color: rgba(255,184,0,.4); color: #FFD060; background: rgba(255,184,0,.10); }
.bh-social-btn.bh-social-coffee:hover { background: rgba(255,184,0,.22); border-color: rgba(255,184,0,.8); }

/* ── Social Media — sidebar (pionowe przyciski) ── */
.bh-social-sb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: all var(--tr);
}
.bh-social-sb-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.bh-social-sb-btn.bh-social-coffee:hover { border-color: #d4a000; color: #d4a000; background: rgba(212,160,0,.08); }

/* ── Social Media — stopka (kwadratowe ikony) ─── */
.bh-f-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.bh-f-social-btn {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all var(--tr);
}
.bh-f-social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-1px); }
.bh-f-social-btn.coffee:hover { background: #d4a000; border-color: #d4a000; }

/* ── Ulubione ─────────────────────────────────── */
.bh-cc-fav.saved { opacity: 1 !important; color: #d4a000; border-color: #d4a000; background: #fff8e1; }
[data-theme="dark"] .bh-cc-fav.saved { background: #2a1f00; border-color: #c8960a; color: #FFD060; }

/* ── Hero — social media przyciski (przywrócone) ─ */
.bh-hero-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ── Przycisk ulubionych na podstronie klubu ─── */
.bh-single-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
}
.bh-single-fav-btn:hover {
  border-color: #d4a000;
  color: #d4a000;
  background: rgba(212,160,0,0.06);
}
.bh-single-fav-btn.saved {
  border-color: #d4a000;
  color: #d4a000;
  background: rgba(212,160,0,0.08);
}
.bh-single-fav-btn .bh-fav-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s;
}
.bh-single-fav-btn.saved .bh-fav-icon { transform: scale(1.15); }
[data-theme="dark"] .bh-single-fav-btn.saved {
  background: rgba(212,160,0,0.12);
  border-color: #c8960a;
  color: #FFD060;
}

/* ═══════════════════════════════════════════════
   TAXONOMY LOKALIZACJA — szablon województwa/powiatu
═══════════════════════════════════════════════ */
.bh-tax-hero {
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 48px 0 40px;
}
.bh-tax-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.bh-tax-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.bh-tax-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: .03em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.1;
}
.bh-tax-desc {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 600px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.bh-tax-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-tax-count {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.bh-tax-count strong {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}
.bh-tax-parent {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.bh-tax-parent a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.bh-tax-parent a:hover { text-decoration: underline; }

/* Siatka podkategorii (powiaty w województwie) */
.bh-tax-sub {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  transition: background var(--tr);
}
.bh-tax-sub-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.bh-tax-sub-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--text);
  margin: 0 0 16px;
}
.bh-tax-sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bh-tax-sub-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--tr);
}
.bh-tax-sub-item:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}
.bh-tax-sub-cnt {
  background: var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  transition: all var(--tr);
}
.bh-tax-sub-item:hover .bh-tax-sub-cnt {
  background: var(--red);
  color: #fff;
}

/* Klub grid w taksonomii */
.bh-tax-clubs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.bh-tax-clubs-inner { /* same as .bh-tax-clubs but allows nesting */ }

/* ── Tag pills (single post sidebar) ───────────────────────── */
.bh-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(0, 158, 108, 0.3);
  text-decoration: none;
  transition: all var(--tr);
  white-space: nowrap;
}
.bh-tag-pill:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ── Ostatnio zaktualizowane — tag z datą ───────────────────── */
.bh-upd-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--bg-section);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   Brand Wall — wtyczka (dopasowanie do motywu)
═══════════════════════════════════════════════ */

/* ── Karuzela ───────────────────────────────────────────────── */
.bw-brands-carousel-wrapper {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 140px;
}

.bw-brand-slide {
  height: 160px;
}

.brand-content {
  background: var(--navy-mid, #1e2d4d);
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brand-content:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.brand-link,
.brand-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 14px 12px 8px;
}

.brand-logo {
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90px !important;
  object-fit: contain !important;
  display: block;
}

.brand-title {
  margin: 0;
  padding: 6px 10px 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  background: transparent;
  border-top: none;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

.brand-content:hover .brand-title {
  color: #009364;
}

.no-image-placeholder {
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
}

.no-image-placeholder span {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* ── Lista / Grid ───────────────────────────────────────────── */
.bw-brands-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.bw-columns-1 { grid-template-columns: 1fr; }
.bw-columns-2 { grid-template-columns: repeat(2, 1fr); }
.bw-columns-3 { grid-template-columns: repeat(3, 1fr); }
.bw-columns-4 { grid-template-columns: repeat(4, 1fr); }

.bw-brand-grid-item {
  display: block;
}

.bw-brand-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.bw-brand-item:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--red);
  transform: translateY(-1px);
}

.bw-brand-item-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.bw-brand-logo img {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.bw-brand-info {
  flex: 1;
  min-width: 0;
}

.bw-brand-info .brand-title {
  margin: 0 0 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--text);
  background: none;
  padding: 0;
  border: none;
  text-align: left;
  text-transform: uppercase;
}

.bw-brand-info .brand-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.bw-brand-info .brand-title a:hover {
  color: var(--red);
}

.brand-description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.brand-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  transition: all .18s ease;
}

.brand-visit-btn:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

/* ── Swiper — nawigacja i paginacja ────────────────────────── */
.bw-brands-carousel-wrapper .swiper-button-next,
.bw-brands-carousel-wrapper .swiper-button-prev {
  color: var(--red);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: var(--shadow);
  transition: background .2s, border-color .2s;
}

.bw-brands-carousel-wrapper .swiper-button-next::after,
.bw-brands-carousel-wrapper .swiper-button-prev::after {
  font-size: 13px;
  font-weight: 700;
}

.bw-brands-carousel-wrapper .swiper-button-next:hover,
.bw-brands-carousel-wrapper .swiper-button-prev:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.bw-brands-carousel-wrapper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
}

.bw-brands-carousel-wrapper .swiper-pagination-bullet-active {
  background: var(--red);
}

/* ── Dark mode ──────────────────────────────────────────────── */
[data-theme="dark"] .brand-content,
[data-theme="dark"] .bw-brand-item {
  background: var(--bg-card);
  border-color: var(--border-card);
}

[data-theme="dark"] .brand-content {
  background: var(--navy-mid, #1e2d4d);
  border: none;
}

[data-theme="dark"] .brand-title {
  background: transparent;
  color: #fff;
}

[data-theme="dark"] .no-image-placeholder {
  background: var(--bg-section);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bw-columns-2,
  .bw-columns-3,
  .bw-columns-4 {
    grid-template-columns: 1fr;
  }
  .bw-brand-item {
    flex-direction: column;
    text-align: center;
  }
  .bw-brand-item-link {
    flex-direction: column;
  }
  .bw-brand-info .brand-title {
    text-align: center;
  }
  .brand-description { text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bw-columns-3,
  .bw-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════
   Prześlij herb — przycisk + popup
═══════════════════════════════════════════════ */

/* Przycisk w sidebarze */
.bh-submit-herb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 9px;
  border: 1.5px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .06em;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.bh-submit-herb-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,158,108,.25);
}

/* Overlay */
.bh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bh-overlay-in .2s ease;
}
.bh-modal-overlay[hidden] { display: none; }

@keyframes bh-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Box */
.bh-submit-modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: bh-modal-in .22s ease;
}

@keyframes bh-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Zamknij */
.bh-submit-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-section);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s;
  z-index: 2;
}
.bh-submit-modal-close:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}

/* Treść */
.bh-submit-modal-inner {
  padding: 32px 28px 28px;
}

.bh-submit-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--text);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.1;
}

.bh-submit-modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 20px;
}

.bh-submit-modal-form {
  margin-top: 8px;
}

/* Blokada scrolla gdy modal otwarty */
body.bh-modal-open {
  overflow: hidden;
}

/* ── CF7 — reset i style wszystkich pól ─────────────────────── */
.bh-submit-modal-form .wpcf7-form p,
.bh-submit-modal-form .wpcf7-form div,
.bh-submit-modal-form .wpcf7-form br,
.wpcf7 .wpcf7-form p,
.wpcf7 .wpcf7-form div,
.wpcf7 .wpcf7-form br {
  margin-bottom: 10px;
}
/* Wspólna baza dla wszystkich inputów */
.bh-submit-modal-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.bh-submit-modal-form textarea,
.bh-submit-modal-form select,
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wpcf7 textarea,
.wpcf7 select {
  display: block;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  transition: border-color .18s, box-shadow .18s !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.bh-submit-modal-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.bh-submit-modal-form textarea:focus,
.bh-submit-modal-form select:focus,
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--red) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--red-soft) !important;
}
.bh-submit-modal-form textarea,
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}
/* Checkbox (zgoda RODO / akceptacja) */
.bh-submit-modal-form input[type="checkbox"],
.wpcf7 input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  border-radius: 4px !important;
  border: 1.5px solid var(--border) !important;
  background: var(--bg) !important;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}
.bh-submit-modal-form input[type="checkbox"]:hover,
.wpcf7 input[type="checkbox"]:hover {
  border-color: var(--red) !important;
}
.bh-submit-modal-form input[type="checkbox"]:checked,
.wpcf7 input[type="checkbox"]:checked {
  background: var(--red) !important;
  border-color: var(--red) !important;
}
.bh-submit-modal-form input[type="checkbox"]:checked::after,
.wpcf7 input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.bh-submit-modal-form input[type="checkbox"]:focus-visible,
.wpcf7 input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* Kontener acceptance CF7 */
.bh-submit-modal-form .wpcf7-acceptance,
.wpcf7 .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
}
.bh-submit-modal-form .wpcf7-acceptance .wpcf7-list-item,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  margin: 0;
}
.bh-submit-modal-form .wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  line-height: 1.5;
  cursor: pointer;
}
.bh-submit-modal-form .wpcf7-acceptance .wpcf7-list-item-label a,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a {
  color: var(--red);
  text-decoration: none;
}
.bh-submit-modal-form .wpcf7-acceptance .wpcf7-list-item-label a:hover,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a:hover {
  text-decoration: underline;
}
/* Input[file] */
.bh-submit-modal-form .wpcf7-file,
.bh-submit-modal-form input[type="file"],
.wpcf7 .wpcf7-file,
.wpcf7 input[type="file"] {
  width: 100% !important;
  font-size: 11px !important;
  color: var(--text-muted) !important;
  background: var(--bg-section) !important;
  border: 1.5px dashed var(--border) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  cursor: pointer;
  box-shadow: none !important;
}
.bh-submit-modal-form .wpcf7-file::file-selector-button,
.bh-submit-modal-form input[type="file"]::file-selector-button,
.wpcf7 .wpcf7-file::file-selector-button,
.wpcf7 input[type="file"]::file-selector-button {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  cursor: pointer;
  margin-right: 10px;
  transition: border-color .18s, color .18s;
}
.bh-submit-modal-form .wpcf7-file::file-selector-button:hover,
.bh-submit-modal-form input[type="file"]::file-selector-button:hover,
.wpcf7 .wpcf7-file::file-selector-button:hover,
.wpcf7 input[type="file"]::file-selector-button:hover {
  border-color: var(--red);
  color: var(--red);
}
/* Opisy pomocnicze */
.bh-submit-modal-form p,
.bh-submit-modal-form .wpcf7-form p,
.wpcf7 p,
.wpcf7 .wpcf7-form p {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* Span-wrappery CF7 */
.bh-submit-modal-form .wpcf7-form-control-wrap,
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
/* Przycisk wyślij */
.bh-submit-modal-form input[type="submit"],
.bh-submit-modal-form .wpcf7-submit,
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  border: none !important;
  background: var(--red) !important;
  color: #fff !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .18s, transform .15s !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.bh-submit-modal-form input[type="submit"]:hover,
.bh-submit-modal-form .wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: var(--red-hover) !important;
  transform: translateY(-1px);
}
/* Walidacja i komunikaty */
.bh-submit-modal-form .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #e05050;
  margin-top: 3px;
  display: block;
}
.bh-submit-modal-form .wpcf7-not-valid input,
.bh-submit-modal-form .wpcf7-not-valid textarea,
.wpcf7 .wpcf7-not-valid input,
.wpcf7 .wpcf7-not-valid textarea {
  border-color: #e05050 !important;
}
.bh-submit-modal-form .wpcf7-response-output,
.wpcf7 .wpcf7-response-output {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  margin-top: 12px !important;
  background: transparent !important;
}
.bh-submit-modal-form .wpcf7-mail-sent-ok,
.wpcf7 .wpcf7-mail-sent-ok {
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: var(--red-soft) !important;
}
.bh-submit-modal-form .wpcf7-validation-errors,
.wpcf7 .wpcf7-validation-errors {
  border-color: #e05050 !important;
  color: #e05050 !important;
}

/* ── Przycisk "Zgłoś błąd" w sidebarze stopki ──────────────── */
.bh-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.bh-report-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* ═══════════════════════════════════════════════
   Szablony stron — page.php, fullwidth, sidebar
═══════════════════════════════════════════════ */

/* Wspólne elementy strony */
.bh-page-article {
  padding: 32px 36px;
}
.bh-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: .04em;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.1;
}
.bh-page-article .entry-content {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}
.bh-page-article .entry-content p {
  margin-bottom: 1.2em;
}
.bh-page-article .entry-content h1,
.bh-page-article .entry-content h2,
.bh-page-article .entry-content h3,
.bh-page-article .entry-content h4 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text);
  letter-spacing: .04em;
  margin: 1.6em 0 .6em;
  line-height: 1.1;
}
.bh-page-article .entry-content h2 { font-size: 26px; }
.bh-page-article .entry-content h3 { font-size: 20px; }
.bh-page-article .entry-content h4 { font-size: 16px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; letter-spacing: 0; }
.bh-page-article .entry-content ul,
.bh-page-article .entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bh-page-article .entry-content li {
  line-height: 1.7;
}
.bh-page-article .entry-content strong,
.bh-page-article .entry-content b {
  font-weight: 600;
  color: var(--text);
}
.bh-page-article .entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bh-page-article .entry-content a:hover {
  color: var(--red-hover);
}
.bh-page-article .entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 10px 18px;
  margin: 1.4em 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}
.bh-page-article .entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.bh-page-article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 14px;
}
.bh-page-article .entry-content th,
.bh-page-article .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.bh-page-article .entry-content th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--text);
}

/* Standardowa strona (page.php) */
.bh-page-standard {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Pełna szerokość */
.bh-page-fullwidth {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Z sidebarem */
.bh-page-sidebar-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.bh-page-main {
  min-width: 0;
}
.bh-page-sidebar {
  position: sticky;
  top: 90px;
}

@media (max-width: 960px) {
  .bh-page-sidebar-layout {
    grid-template-columns: 1fr;
  }
  .bh-page-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .bh-page-article { padding: 24px 20px; }
  .bh-page-title { font-size: 28px; }
}

/* Przycisk "Postaw kawę" w sidebarze single.php */
.bh-coffee-sidebar-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #b8860b !important;
  color: #b8860b !important;
  background: rgba(255,184,0,.08) !important;
}
[data-theme="dark"] .bh-coffee-sidebar-btn {
  color: #FFD060 !important;
  border: 1.5px solid #FFD060 !important;
  background: rgba(255,184,0,.08) !important;
}
.bh-coffee-sidebar-btn:hover {
  background: rgba(255,184,0,.22) !important;
  color: #b8860b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,184,0,.2);
}
[data-theme="dark"] .bh-coffee-sidebar-btn:hover {
  color: #FFD060 !important;
  border-color: #FFD060 !important;
}


/* ═══════════════════════════════════════════════
   Widget statystyk [bh_statystyki]
═══════════════════════════════════════════════ */
.bh-stats-widget {
  background: var(--sb-bg);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bh-stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bh-stats-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  flex-shrink: 0;
}
.bh-stats-grid {
  display: flex;
  flex-direction: column;
}
.bh-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.bh-stat-item:last-child { border-bottom: none; }
.bh-stat-item:hover { background: var(--bg-alt); }

.bh-stat-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bh-stat-icon svg { width: 16px; height: 16px; }
/* Kolory ikon */
.bh-stat-green .bh-stat-icon  { background: rgba(0,158,108,.12); color: var(--red); }
.bh-stat-blue .bh-stat-icon   { background: rgba(59,130,246,.12); color: #60a5fa; }
.bh-stat-purple .bh-stat-icon { background: rgba(139,92,246,.12); color: #a78bfa; }
.bh-stat-orange .bh-stat-icon { background: rgba(251,146,60,.12); color: #fb923c; }

.bh-stat-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bh-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .03em;
  line-height: 1;
  color: var(--text);
}
.bh-stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Stats widget — 2-kolumnowa siatka */
.bh-stats-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bh-stats-grid--2col .bh-stat-item {
  border-right: 1px solid var(--border);
}
.bh-stats-grid--2col .bh-stat-item:nth-child(2n) {
  border-right: none;
}
.bh-stats-grid--2col .bh-stat-item:nth-last-child(-n+2) {
  border-bottom: none;
}

/* Stats widget — 3-kolumnowa siatka */
.bh-stats-grid--3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.bh-stats-grid--3col .bh-stat-item {
  border-right: 1px solid var(--border);
}
.bh-stats-grid--3col .bh-stat-item:nth-child(3n) {
  border-right: none;
}
.bh-stats-grid--3col .bh-stat-item:nth-last-child(-n+3) {
  border-bottom: none;
}

@media (max-width: 700px) {
  .bh-stats-grid--3col { grid-template-columns: 1fr 1fr; }
  .bh-stats-grid--3col .bh-stat-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .bh-stats-grid--3col .bh-stat-item:nth-child(2n) { border-right: none; }
  .bh-stats-grid--3col .bh-stat-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .bh-stats-grid--3col .bh-stat-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .bh-stats-grid--2col,
  .bh-stats-grid--3col { grid-template-columns: 1fr; }
  .bh-stats-grid--2col .bh-stat-item,
  .bh-stats-grid--3col .bh-stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .bh-stats-grid--2col .bh-stat-item:last-child,
  .bh-stats-grid--3col .bh-stat-item:last-child { border-bottom: none; }
}

/* Przycisk Zgłoś błąd w navbarze */
.bh-nav-report-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,.65);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.bh-nav-report-btn:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
/* Przycisk Zgłoś błąd — mobile/średnie: tylko ikona (label ukryty) */
@media (max-width: 960px) {
  .bh-nav-report-label { display: none; }
  .bh-nav-report-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
}
.bh-nav-report-mobile { display: none; }
.bh-nav-menu-report-item { display: none; }
.bh-nav-mobile-report { display: none; }
.bh-nav-menu-report-btn { display: none; }

/* Brand karuzela — jasny motyw: białe tło */
[data-theme="light"] .brand-link,
[data-theme="light"] .brand-image-wrapper {
  background: #fff !important;
}
[data-theme="light"] .brand-title {
  background: #fff !important;
}

/* Brand karuzela — jasny motyw: border #fff */
[data-theme="light"] .brand-logo,
[data-theme="light"] .brand-image-wrapper img,
[data-theme="light"] .brand-content,
[data-theme="light"] .brand-link,
[data-theme="light"] .brand-image-wrapper,
[data-theme="light"] .brand-title {
  border-color: #fff !important;
}

/* dlm-bh-wrap — ciemny motyw: wyraźniejsze tło */
[data-theme="dark"] .bh-single-layout > div .bh-sb-box {
  background: transparent !important;
}

/* ══════════════════════════════════════════════
   404
══════════════════════════════════════════════ */
.bh-404-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg);
}
.bh-404-inner {
  max-width: 680px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
}
.bh-404-shield {
  flex-shrink: 0;
  width: 140px;
  opacity: .92;
  filter: drop-shadow(0 8px 32px rgba(0,158,108,.18));
  animation: bh404float 4s ease-in-out infinite;
}
@keyframes bh404float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.bh-404-content { flex: 1; }
.bh-404-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.bh-404-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.1;
}
.bh-404-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 32px;
}
.bh-404-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bh-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.bh-404-btn--primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.bh-404-btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,158,108,.3);
}
.bh-404-btn--secondary {
  background: transparent;
  color: var(--text-sub);
  border: 2px solid var(--border);
}
.bh-404-redirect {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
#bh-404-countdown {
  font-weight: 700;
  color: var(--red);
}
.bh-404-btn--secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .bh-404-inner { flex-direction: column; gap: 32px; text-align: center; }
  .bh-404-shield { width: 100px; }
  .bh-404-actions { justify-content: center; }
}

