/* ============================================================
   BLOG — Styles for home.php, single.php, archive.php, search.php
   Sections: Baza Wiedzy hero/grid/cards, Blog template, Sidebar
   ============================================================ */

/* ============================================================
   BAZA WIEDZY — Hero z wyszukiwarką
   ============================================================ */

.bw-hero {
  position: relative;
  background: var(--dark-bg);
  padding: var(--hero-pt) 0 0;
  overflow: hidden;
  text-align: center;
}

/* Gradient overlays — depth */
.bw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(46,107,71,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(46,107,71,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(46,107,71,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(0,0,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid pattern overlay */
.bw-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,107,71,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,107,71,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}

/* Accent top line */
.bw-hero__topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-light), var(--accent), var(--accent-light), transparent);
  opacity: 0.5;
}

/* Content wrapper */
.bw-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

/* H1 */
.bw-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
}

.bw-hero__heading em {
  font-style: normal;
  color: var(--accent-light);
}

/* Lead */
.bw-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-5);
}

/* Article count */
.bw-hero__count {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  background: rgba(46,107,71,0.1);
  border-radius: 100px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── Search bar ── */
.bw-hero__search {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-bottom: var(--space-5);
}

.bw-search {
  position: relative;
  display: flex;
  align-items: center;
}

.bw-search__icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: var(--dark-text-muted);
  pointer-events: none;
  transition: color 0.25s ease;
}

.bw-search__input {
  width: 100%;
  padding: 16px 56px 16px 52px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--dark-text);
  background: var(--dark-bg-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
}

.bw-search__input::placeholder {
  color: var(--dark-text-muted);
  font-weight: 400;
}

.bw-search__input:hover {
  border-color: var(--dark-border);
  background: rgba(26,61,43,0.8);
}

.bw-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,107,71,0.15), 0 8px 32px rgba(0,0,0,0.2);
  background: rgba(26,61,43,0.9);
}

.bw-search__input:focus ~ .bw-search__icon {
  color: var(--accent-light);
}

.bw-search__input:focus ~ .bw-search__kbd {
  opacity: 0;
}

/* Idle border pulse — draws attention before interaction */
@keyframes bwSearchPulse {
  0%, 100% { border-color: var(--dark-border); box-shadow: none; }
  50% { border-color: rgba(46,107,71,0.4); box-shadow: 0 0 0 3px rgba(46,107,71,0.06); }
}

.bw-search__input.is-idle {
  animation: bwSearchPulse 3s ease-in-out infinite;
}

.bw-search__input:focus,
.bw-search__input:not(:placeholder-shown) {
  animation: none;
}

/* Keyboard shortcut hint */
.bw-search__kbd {
  position: absolute;
  right: 16px;
  padding: 3px 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  line-height: 1.4;
}

/* Remove webkit search cancel button */
.bw-search__input::-webkit-search-cancel-button,
.bw-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Popular tags ── */
.bw-search__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.bw-search__tags-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-text-muted);
  margin-right: 2px;
}

.bw-search__tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border-subtle);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.bw-search__tag:hover {
  color: var(--accent-light);
  background: rgba(46,107,71,0.1);
  border-color: rgba(46,107,71,0.25);
}

/* ── Live search dropdown ── */
.bw-search__dropdown {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  overflow-y: auto;
  max-height: 420px;
  z-index: 9999;
  animation: bwDropdownIn 0.2s ease;
}

@keyframes bwDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bw-search__dropdown[hidden] {
  display: none;
}

.bw-search__dropdown-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s ease;
}

.bw-search__dropdown-item:hover,
.bw-search__dropdown-item.is-highlighted {
  background: rgba(46,107,71,0.05);
}

.bw-search__dropdown-title {
  font-family: var(--font-body);
  font-size: 0.90625rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.bw-search__dropdown-title mark {
  background: rgba(46,107,71,0.15);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
}

.bw-search__dropdown-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78125rem;
  color: var(--text-muted);
}

.bw-search__dropdown-cat {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0,0,0,0.05);
}

.bw-search__dropdown-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: rgba(46,107,71,0.04);
  transition: background 0.15s ease;
}

.bw-search__dropdown-all:hover {
  background: rgba(46,107,71,0.08);
}

.bw-search__dropdown-all svg {
  width: 16px;
  height: 16px;
}

.bw-search__dropdown-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.bw-search__dropdown-empty svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Trust bar ── */
.bw-hero__trust {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.bw-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--dark-text-muted);
  white-space: nowrap;
}

.bw-hero__trust-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.7;
}

.bw-hero__trust-item strong {
  font-weight: 600;
  color: var(--dark-text-secondary);
}

.bw-hero__trust-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dark-text-muted);
  opacity: 0.4;
  margin: 0 14px;
  flex-shrink: 0;
}

/* ── Entrance animations ── */
@keyframes bwFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bw-anim {
  opacity: 0;
  animation: bwFadeInUp 0.6s ease forwards;
}

.bw-anim--1 { animation-delay: 0.05s; }
.bw-anim--2 { animation-delay: 0.15s; }
.bw-anim--3 { animation-delay: 0.25s; }
.bw-anim--4 { animation-delay: 0.35s; }
.bw-anim--5 { animation-delay: 0.45s; }
.bw-anim--6 { animation-delay: 0.55s; }

/* ── Micro-CTA ── */
.bw-hero__micro-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--dark-text-muted);
}

.bw-hero__micro-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, gap 0.25s ease;
}

.bw-hero__micro-cta-link:hover {
  color: var(--accent-champagne);
  gap: 8px;
}

.bw-hero__micro-cta-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bw-anim {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .bw-search__input.is-idle {
    animation: none;
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bw-hero {
    padding: 100px 0 0;
  }

  .bw-hero__lead {
    margin-bottom: var(--space-4);
  }

  .bw-hero__search {
    margin-bottom: var(--space-4);
  }

  .bw-search__input {
    padding: 14px 48px 14px 46px;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .bw-search__icon {
    left: 16px;
    width: 18px;
    height: 18px;
  }

  .bw-search__kbd {
    display: none;
  }

  .bw-hero__trust {
    flex-direction: column;
    gap: 8px;
  }

  .bw-hero__trust-sep {
    display: none;
  }

  .bw-search__tags {
    gap: 6px;
  }

  .bw-search__tag {
    font-size: 0.6875rem;
    padding: 3px 10px;
  }

  .bw-hero__micro-cta {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

/* ── Breaking News Ticker (bw-hero bottom strip) ── */
.bw-ticker {
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(74, 154, 106, 0.15);
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 56px);
  opacity: 0;
  animation: bwFadeInUp 0.5s ease 1.2s forwards;
}

@keyframes bwFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bw-ticker__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.bw-ticker__label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: var(--accent);
  clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
}

.bw-ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: bwTickerPulse 2s ease-in-out infinite;
}

@keyframes bwTickerPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

.bw-ticker__track {
  display: flex;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  padding-left: 16px;
}

.bw-ticker__scroll {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: bwTickerSlide var(--bw-ticker-duration, 35s) linear infinite;
}

.bw-ticker:hover .bw-ticker__scroll {
  animation-play-state: paused;
}

@keyframes bwTickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.bw-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.bw-ticker__item:hover {
  opacity: 0.7;
}

.bw-ticker__cat {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(46, 107, 71, 0.15);
  border: 1px solid rgba(46, 107, 71, 0.25);
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bw-ticker__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark-text-secondary);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-ticker__item:hover .bw-ticker__title {
  color: #fff;
}

.bw-ticker__sep {
  color: var(--dark-text-muted);
  margin: 0 16px;
  font-size: 0.5rem;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .bw-ticker__label {
    padding: 10px 14px;
    font-size: 0.625rem;
  }
  .bw-ticker__label::after {
    right: -8px;
    width: 16px;
  }
  .bw-ticker__title {
    font-size: 0.75rem;
    max-width: 240px;
  }
  .bw-ticker__cat {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-ticker {
    animation: none !important;
    opacity: 1 !important;
  }
  .bw-ticker__scroll {
    animation: none !important;
  }
  .bw-ticker__track {
    overflow-x: auto;
  }
}

/* ============================================================
   BAZA WIEDZY — Sekcja 2: Filtrowanie po kategoriach
   ============================================================ */

.bw-filters {
  background: var(--bg-primary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

/* ── Bar: categories + sorting ── */
.bw-filters__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* ── Desktop: pill buttons ── */
.bw-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.bw-filters__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bw-filters__pill:hover {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}

.bw-filters__pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.bw-filters__pill.is-active .bw-filters__pill-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.bw-filters__pill-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 100px;
  line-height: 1.4;
}

/* ── Hidden pills (collapsed state) ── */
.bw-filters__pill--hidden {
  display: none;
}

.bw-filters__pills.is-expanded .bw-filters__pill--hidden {
  display: inline-flex;
}

/* ── Expand / collapse button ── */
.bw-filters__expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px dashed rgba(46,107,71,0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bw-filters__expand:hover {
  border-color: var(--accent);
  background: rgba(46,107,71,0.04);
}

.bw-filters__expand-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.bw-filters__expand[aria-expanded="true"] .bw-filters__expand-icon {
  transform: rotate(180deg);
}

.bw-filters__expand-less {
  display: none;
}

.bw-filters__expand[aria-expanded="true"] .bw-filters__expand-more {
  display: none;
}

.bw-filters__expand[aria-expanded="true"] .bw-filters__expand-less {
  display: inline;
}

.bw-filters__expand-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── Sorting dropdown ── */
.bw-sort-dropdown {
  position: relative;
  flex-shrink: 0;
}

.bw-sort-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bw-sort-dropdown__trigger:hover {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-primary);
}

.bw-sort-dropdown__trigger[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(46,107,71,0.08);
}

.bw-sort-dropdown__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bw-sort-dropdown__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.bw-sort-dropdown__trigger[aria-expanded="true"] .bw-sort-dropdown__arrow {
  transform: rotate(180deg);
}

.bw-sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-primary);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13,13,13,0.1), 0 2px 8px rgba(13,13,13,0.06);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bw-sort-dropdown__menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.bw-sort-dropdown__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.bw-sort-dropdown__item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
}

.bw-sort-dropdown__item.is-active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(46,107,71,0.06);
}

/* ── Mobile: select dropdown (hidden on desktop) ── */
.bw-filters__select-wrap {
  position: relative;
  display: none;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bw-filters__select-wrap:hover {
  border-color: rgba(0,0,0,0.12);
}

.bw-filters__select-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,107,71,0.1);
}

/* Reset text-align for container */
.bw-filters .container {
  text-align: left;
}

/* ── Left icon ── */
.bw-filters__select-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Native select ── */
.bw-filters__select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 32px 12px 10px;
  cursor: pointer;
  min-width: 200px;
}

.bw-filters__select option {
  font-size: 0.875rem;
  padding: 8px;
}

/* ── Right arrow ── */
.bw-filters__select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.bw-filters__select-wrap:hover .bw-filters__select-arrow {
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bw-filters {
    padding: var(--space-2) 0;
  }

  .bw-filters__bar {
    flex-direction: column;
    gap: 10px;
  }

  /* Hide pills on mobile */
  .bw-filters__pills {
    display: none;
  }

  /* Show selects on mobile */
  .bw-filters__select-wrap {
    display: flex;
    width: 100%;
    border-radius: 10px;
  }

  .bw-filters .container {
    text-align: left;
  }

  .bw-filters__select {
    width: 100%;
    font-size: 0.84375rem;
    padding: 11px 32px 11px 10px;
  }
}

/* ============================================================
   BAZA WIEDZY — Sekcja 3+4: Grid artykułów + Sidebar
   ============================================================ */

.bw-listing {
  background: var(--bg-primary);
  padding: var(--space-7) 0 var(--space-10);
}

/* ── Layout: grid + sidebar ── */
.bw-listing__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: start;
}

.bw-listing__main {
  min-width: 0;
}

/* ── Sidebar ── */
.bw-sidebar {
  position: sticky;
  top: 100px;
}

.bw-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* CTA box */
.bw-sidebar__cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-4);
  text-align: center;
}

.bw-sidebar__cta-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  margin: 0 auto var(--space-2);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: bw-pulse 2s ease-in-out infinite;
}

@keyframes bw-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.bw-sidebar__cta-heading {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.bw-sidebar__cta-heading strong {
  font-weight: 700;
  color: var(--text-primary);
}

.bw-sidebar__cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.25s ease, border-color 0.25s ease;
  margin-bottom: 10px;
}

.bw-sidebar__cta-phone:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-border-solid);
}

.bw-sidebar__cta-phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bw-sidebar__cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
  margin-bottom: 6px;
}

.bw-sidebar__cta-wa:hover {
  color: #25d366;
  background: var(--bg-secondary);
}

.bw-sidebar__cta-wa svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bw-sidebar__cta-hours {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar sections */
.bw-sidebar__section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-3);
}

.bw-sidebar__heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

/* Popular articles list */
.bw-sidebar__popular {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: popular;
}

.bw-sidebar__popular li {
  counter-increment: popular;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.bw-sidebar__popular li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bw-sidebar__popular li:first-child {
  padding-top: 0;
}

.bw-sidebar__popular li::before {
  content: counter(popular) ".";
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}

.bw-sidebar__popular a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.bw-sidebar__popular a:hover {
  color: var(--accent);
}

/* Categories list */
.bw-sidebar__categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-sidebar__categories li {
  border-bottom: 1px solid var(--border);
}

.bw-sidebar__categories li:last-child {
  border-bottom: none;
}

.bw-sidebar__categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bw-sidebar__categories a:hover {
  color: var(--accent);
}

.bw-sidebar__cat-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

/* Tags */
.bw-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bw-sidebar__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.bw-sidebar__tag:hover {
  background: var(--accent-bg-solid);
  color: var(--accent);
}

/* Sidebar responsive — stack below grid on mobile */
@media (max-width: 960px) {
  .bw-listing__layout {
    grid-template-columns: 1fr;
  }

  .bw-sidebar {
    position: static;
  }
}

/* ── Article grid ── */
.bw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-4);
}

/* Emergency CTA spans full width of grid */
.bw-emergency-cta {
  grid-column: 1 / -1;
}

/* ── Article card ── */
.bw-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border-solid);
}

/* Card image */
.bw-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}

.bw-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bw-card:hover .bw-card__image {
  transform: scale(1.04);
}

/* Card body */
.bw-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-1);
}

/* Meta top */
.bw-card__meta-top {
  margin-bottom: 2px;
}

/* Category badge */
.bw-card__badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 100px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
}

[class*="bw-card__badge--"][class*="kryminalne"] {
  color: var(--accent);
  background: var(--accent-bg-solid);
}

[class*="bw-card__badge--"][class*="gospodarcze"] {
  color: #6B5B3E;
  background: var(--champagne-bg-solid);
}

[class*="bw-card__badge--"][class*="skarbowe"] {
  color: #4A6B8A;
  background: #EDF3F8;
}

[class*="bw-card__badge--"][class*="wykonawcze"] {
  color: var(--text-tertiary);
  background: var(--bg-secondary);
}

[class*="bw-card__badge--"][class*="pilne"] {
  color: var(--emergency-text);
  background: var(--emergency-bg);
}

/* Historia sprawy — realne rozstrzygnięcie, nie poradnik. Badge z obwódką,
   żeby odróżniał się od miękkich, wypełnionych badge'y kategorii. */
[class*="bw-card__badge--"][class*="historia-sprawy"] {
  color: var(--accent);
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* Title */
.bw-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bw-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bw-card__title a:hover {
  color: var(--accent);
}

/* Excerpt */
.bw-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.84375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-tertiary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta bottom */
.bw-card__meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--space-1);
}

.bw-card__meta-left {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Read more link */
.bw-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.25s ease;
}

.bw-card__read-more svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.bw-card__read-more:hover {
  gap: 6px;
}

.bw-card__read-more:hover svg {
  transform: translateX(2px);
}

.bw-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  margin: 0 8px;
  flex-shrink: 0;
}

/* ── Card filter animation ── */
.bw-card.is-hidden {
  display: none;
}

/* ── Scroll reveal ── */
.bw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── No results ── */
.bw-grid__empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.bw-grid__empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  opacity: 0.3;
}

/* ============================================================
   BAZA WIEDZY — Emergency CTA Strip (between articles)
   ============================================================ */

.bw-emergency-cta {
  margin: var(--space-2) 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--emergency-bg);
  position: relative;
}

/* Subtle shimmer */
.bw-emergency-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(74,154,106,0.04) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: bwEmShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bwEmShimmer {
  0%, 100% { background-position: 200% 200%; }
  50% { background-position: 0% 0%; }
}

.bw-emergency-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.bw-emergency-cta__content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Pulsing dot */
.bw-emergency-cta__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emergency-accent);
  flex-shrink: 0;
  position: relative;
}

.bw-emergency-cta__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--emergency-accent);
  animation: bwEmDotPulse 2s ease-in-out infinite;
  opacity: 0;
}

@keyframes bwEmDotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(2); opacity: 0.3; }
}

.bw-emergency-cta__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--emergency-text);
  line-height: 1.4;
}

.bw-emergency-cta__text strong {
  font-weight: 600;
  color: #fff;
}

.bw-emergency-cta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bw-emergency-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emergency-bg);
  background: var(--emergency-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.bw-emergency-cta__btn svg {
  width: 15px;
  height: 15px;
}

.bw-emergency-cta__btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,154,106,0.3);
}

.bw-emergency-cta__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #25D366;
  text-decoration: none;
  transition: background 0.25s ease;
}

.bw-emergency-cta__wa svg {
  width: 18px;
  height: 18px;
}

.bw-emergency-cta__wa:hover {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 600px) {
  .bw-emergency-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .bw-emergency-cta__actions {
    width: 100%;
  }
  .bw-emergency-cta__btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   BAZA WIEDZY — Pagination
   ============================================================ */

.bw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.bw-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.bw-pagination__btn svg {
  width: 16px;
  height: 16px;
}

.bw-pagination__btn:hover:not(.is-disabled) {
  color: var(--text-primary);
  border-color: var(--accent-border-solid);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.bw-pagination__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.bw-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bw-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.bw-pagination__page:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.bw-pagination__page.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46,107,71,0.18);
}

.bw-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ============================================================
   BLOG TEMPLATE
   ============================================================
   Layout architecture:
   - Urgency banner: full-width dark strip (conditional), clears fixed header
   - Article: single unified grid (.blog-layout) — light paper, obejmuje CAŁOŚĆ:
       Left column  = nagłówek (.blog-articlehead) + „W skrócie" + obraz + treść + FAQ/bio
       Right column = 300px sticky sidebar biegnący od samej góry (obok nagłówka)
   ============================================================ */

/* ── Section 2: Urgency Banner (conditional) ── */
.blog-urgency {
  background: var(--dark-bg-alt);
  /* padding-top clears fixed header: top-bar 44px + nav ~72px = 116px + 12px breathing */
  padding: 128px 0 8px;
}

.blog-urgency[hidden] { display: none; }

.blog-urgency__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 12px + 3vw, 96px);
}

.blog-urgency__desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-urgency__mobile { display: none; }

.blog-urgency__pulse {
  width: 6px;
  height: 6px;
  background: var(--emergency-accent);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.blog-urgency__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--emergency-accent);
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

.blog-urgency__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emergency-text);
}

.blog-urgency__phone {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--emergency-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-urgency__phone:hover { opacity: 0.8; }

@media (max-width: 1100px) {
  .blog-urgency { padding-top: 80px; }
}

@media (max-width: 768px) {
  .blog-urgency__desktop { display: none; }
  .blog-urgency__mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    text-decoration: none;
    color: var(--emergency-text);
  }
  .blog-urgency__mobile .blog-urgency__text { font-size: 0.8125rem; }
}

@media (max-width: 600px) {
  .blog-urgency { padding-top: 68px; }
}


/* ── Section 3: Article header (in-column, light) ──
   Nagłówek żyje w lewej kolumnie siatki (.blog-layout__content → .blog-articlehead),
   na jasnym papierze — sticky sidebar biegnie obok niego od samej góry (prototyp).
   Odstęp od góry (czyszczenie fixed headera) niesie .blog-layout (patrz niżej). */
.blog-articlehead {
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.blog-articlehead > .bc-slide {
  margin-bottom: clamp(18px, 2.5vw, 26px);
}

.blog-hero__breadcrumbs { margin-bottom: 20px; }

.blog-hero__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-hero__breadcrumbs li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  line-height: 1.4;
}

.blog-hero__breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  color: var(--dark-text-muted);
  opacity: 0.5;
}

.blog-hero__breadcrumbs a {
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-hero__breadcrumbs a:hover { color: var(--dark-text); }

.blog-hero__breadcrumbs li:last-child { opacity: 0.7; }

.blog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.blog-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 68ch;
  margin-bottom: 20px;
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-meta, #5C5C5C);
  padding-bottom: clamp(18px, 2.5vw, 26px);
  border-bottom: 1px solid var(--border, #E4E0D9);
}

.blog-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-hero__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Subtelny separator (szampanowa kropka) MIĘDZY informacjami meta.
   Trailing ::after → ładnie się zwija na mobile (żadnych osieroconych kropek na
   początku wiersza). Ostatnia informacja (wyświetlenia = :last-child) bez kropki.
   margin-left 6px + wewn. gap itemu 6px = 12px, równo z column-gap → kropka wyśrodkowana. */
.blog-hero__meta-item:not(:last-child)::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-champagne, #C5B99A);
  flex-shrink: 0;
  margin-left: 6px;
}

/* Pigułka „Zaktualizowano" — stoi PO dacie (data → pigułka) */
.blog-hero__updated-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--accent-bg-solid);
  border: 1px solid var(--accent-border-solid);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Obraz główny — zaraz pod nagłówkiem (opis + cienka linia niżej domykają blok) */
.blog-hero__image {
  margin: 0;
  position: relative;
}

.blog-hero__image-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 8px;
  line-height: 1;
}

.blog-hero__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Hero video poster overlay */
.blog-hero__image--has-video { cursor: pointer; }

.blog-hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.blog-hero__play:hover { transform: scale(1.08); }
.blog-hero__play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }

.blog-hero__play-icon {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
  transition: filter 0.2s ease;
}

.blog-hero__play:hover .blog-hero__play-icon { filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); }

@media (max-width: 600px) {
  .blog-hero__play-icon { width: 52px; height: 52px; }
}

/* Hero video playing state */
.blog-hero__image--playing img,
.blog-hero__image--playing .blog-hero__play,
.blog-hero__image--playing .blog-hero__image-badge { display: none; }

.blog-hero__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.blog-hero__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .blog-hero__video-wrap { border-radius: 8px; }
}

/* Header entrance stagger (na load; obraz nie należy do stagger — jest niżej w kolumnie) */
.blog-articlehead > .bc-slide,
.blog-hero__title,
.blog-hero__lead,
.blog-hero__meta {
  opacity: 0;
  transform: translateY(16px);
  animation: blogHeroFadeIn 0.6s ease-out forwards;
}

.blog-articlehead > .bc-slide { animation-delay: 0.05s; }
.blog-hero__title       { animation-delay: 0.18s; }
.blog-hero__lead        { animation-delay: 0.26s; }
.blog-hero__meta        { animation-delay: 0.34s; }

@keyframes blogHeroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-articlehead > .bc-slide,
  .blog-hero__title,
  .blog-hero__lead,
  .blog-hero__meta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .blog-hero__image img { border-radius: 8px; }
}


/* ============================================================
   BLOG — Unified Content + Sidebar Grid (nagłówek + treść + sidebar)
   Siatka obejmuje TERAZ także nagłówek artykułu (.blog-articlehead),
   więc sticky .blog-sidebar biegnie wzdłuż CAŁEJ strony (prototyp).
   ============================================================ */
.blog-layout {
  background: var(--bg-primary);
  /* padding-top czyści fixed header, gdy layout jest pierwszym elementem (bez urgency banner) */
  padding: 128px 0 clamp(40px, 5vw, 64px);
}
/* Gdy urgency banner poprzedza main — banner już wyczyścił header */
.blog-urgency + #main-content .blog-layout {
  padding-top: clamp(28px, 3vw, 44px);
}

@media (max-width: 1100px) {
  .blog-layout { padding-top: 96px; }
  .blog-urgency + #main-content .blog-layout { padding-top: clamp(24px, 3vw, 40px); }
}

@media (max-width: 600px) {
  .blog-layout { padding-top: 84px; }
  .blog-urgency + #main-content .blog-layout { padding-top: clamp(20px, 3vw, 32px); }
}

.blog-layout__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 12px + 3vw, 96px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 3.5vw, 56px);
  align-items: start;
}

.blog-layout__content {
  min-width: 0;
}

/* ── Prototyp: FAQ + cytat + bio WEWNĄTRZ kolumny artykułu ──
   Sekcje domykające kolumnę (renderowane przez $args['blog_column_tail'])
   tracą pełnoszerokościowe tła/pady i stają się blokami w kolumnie, dzięki
   czemu sticky .blog-sidebar biegnie wzdłuż CAŁEJ wysokości wpisu. */
.blog-layout__content > .blog-faq,
.blog-layout__content > .blog-social-proof,
.blog-layout__content > .blog-author-bio {
  background: transparent;
  padding: 0;
  margin: clamp(36px, 4.5vw, 56px) 0 0;
}

.blog-layout__content > .blog-faq {
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid var(--border, #E4E0D9);
}

.blog-layout__content .blog-faq__inner,
.blog-layout__content .blog-author-bio__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.blog-layout__content .blog-social-proof__inner {
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: none;
  margin: 0;
  padding: 0;
}

.blog-layout__content .blog-social-proof__stats {
  padding: 16px 0 0;
  border-left: none;
  border-top: 1px solid var(--bg-tertiary);
}


/* ── Section 4: Quick Answer (inside left column) ── */
.blog-qa {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.blog-qa[hidden] { display: none; }

.blog-qa__box {
  padding: 20px 24px;
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}

.blog-qa__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.blog-qa__text strong {
  font-weight: 700;
  color: var(--text-primary);
}

.blog-qa__cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.blog-qa__cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-qa__cta a:hover { color: var(--accent-hover); }

/* QA reveal animation */
.blog-qa__box {
  opacity: 0;
  transform: translateY(12px);
}

.blog-qa__box.is-visible {
  animation: blogQaReveal 0.5s ease-out forwards;
}

@keyframes blogQaReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-qa__box { opacity: 1; transform: none; }
  .blog-qa__box.is-visible { animation: none; }
}

@media (max-width: 600px) {
  .blog-qa__box { padding: 16px 18px; }
}


/* ── Section 5: Author E-E-A-T (inside left column) ── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blog-tags__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  padding: 6px 0;
}

.blog-tags__item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  line-height: 1;
}

/* ── Blog Share ── */
.blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.blog-share__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.blog-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.blog-share__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.blog-share__btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.blog-share__btn--copy.is-copied {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: var(--accent, #2563eb);
}

.blog-share__btn--facebook:hover  { color: #1877F2; border-color: #1877F2; }
.blog-share__btn--linkedin:hover  { color: #0A66C2; border-color: #0A66C2; }

.blog-share__btn--whatsapp:hover  { color: #25D366; border-color: #25D366; }
.blog-share__btn--email:hover     { color: var(--text-primary); }

.blog-share__btn--whatsapp svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .blog-share__btn span { display: none; }
  .blog-share__btn { padding: 8px 10px; }
}

/* ── Blog Disclaimer ── */
.blog-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--border);
  border-radius: 0 8px 8px 0;
}

.blog-disclaimer__text {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-tertiary);
  margin: 0;
}

.blog-disclaimer__text + .blog-disclaimer__text {
  margin-top: 8px;
}

.blog-author {
  display: flex;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 32px);
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-tertiary);
  border-radius: 12px;
}

.blog-author__body {
  flex: 1;
  min-width: 0;
}

.blog-author__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--bg-tertiary);
  object-fit: cover;
  flex-shrink: 0;
}

.blog-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-author__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.blog-author__role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.blog-author__bio {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 6px 0 0;
}

.blog-author__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.blog-author__google {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-author__google svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

.blog-author__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
  transition: gap 0.2s ease;
}

.blog-author__more:hover { gap: 8px; }

.blog-author__more svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .blog-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .blog-author__photo {
    width: 56px;
    height: 56px;
  }
  .blog-author__info { align-items: center; }
  .blog-author__bottom {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .blog-author__more { margin-left: 0; }
}


/* ── Mobile TOC accordion ── */
.blog-toc-mobile { display: none; }

@media (max-width: 960px) {
  .blog-toc-mobile {
    display: block;
    margin-bottom: 24px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 10px;
    background: var(--bg-elevated);
  }

  .blog-toc-mobile__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
  }

  .blog-toc-mobile__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
  }

  .blog-toc-mobile__trigger[aria-expanded="true"] .blog-toc-mobile__chevron {
    transform: rotate(180deg);
  }

  .blog-toc-mobile__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .blog-toc-mobile__panel.is-open { max-height: 600px; }

  .blog-toc-mobile__panel ol {
    list-style: none;
    padding: 0 16px 14px;
    margin: 0;
    border-top: 1px solid var(--bg-tertiary);
  }

  .blog-toc-mobile__panel li { margin: 0; }

  .blog-toc-mobile__panel a {
    display: block;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .blog-toc-mobile__panel a:hover { color: var(--accent); }
}


/* ── Sidebar ── */
.blog-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Sidebar CTA dark box — tylko nagłówek + numer telefonu */
.blog-sidebar__cta {
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.blog-sidebar__cta-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark-text);
  margin: 0 0 12px;
}

.blog-sidebar__cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-sidebar__cta-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.blog-sidebar__cta-phone:hover { color: var(--dark-text); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .blog-sidebar__cta-phone:hover { transform: none; } }

/* Microcopy: dostępność ograniczona do spraw pilnych (kropka = żywy sygnał) */
.blog-sidebar__cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 0.71875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dark-text-muted);
}
.blog-sidebar__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  animation: ctaNotePulse 2.4s ease-in-out infinite;
}
@keyframes ctaNotePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 154, 106, 0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(74, 154, 106, 0); }
}
@media (prefers-reduced-motion: reduce) { .blog-sidebar__cta-dot { animation: none; } }

/* Sidebar TOC — zwijana (disclosure), także na desktopie */
.blog-sidebar__toc {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-tertiary);
  border-radius: 14px;
  padding: 18px 22px 20px;
}

/* Header TOC = przycisk zwijania: tytuł + chevron */
.blog-sidebar__toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid var(--bg-tertiary);
  background: none;
  cursor: pointer;
  text-align: left;
}

.blog-sidebar__toc-title {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.blog-sidebar__toc-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.blog-sidebar__toc-toggle:hover .blog-sidebar__toc-chevron { color: var(--accent); }
.blog-sidebar__toc.is-expanded .blog-sidebar__toc-chevron { transform: rotate(180deg); }

/* Mało pozycji (≤3) — bez zwijania: chevron ukryty, header nieklikalny */
.blog-sidebar__toc.is-static .blog-sidebar__toc-toggle { cursor: default; }
.blog-sidebar__toc.is-static .blog-sidebar__toc-chevron { display: none; }

.blog-sidebar__toc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-left: 2px solid var(--bg-tertiary);
}

/* Zwijalna lista: płynny max-height (JS ustawia px) + maska „jest więcej" w stanie zwiniętym */
.blog-sidebar__toc.is-collapsible .blog-sidebar__toc-list {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-sidebar__toc.is-collapsible:not(.is-expanded) .blog-sidebar__toc-list {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent);
  mask-image: linear-gradient(to bottom, #000 74%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .blog-sidebar__toc.is-collapsible .blog-sidebar__toc-list { transition: none; }
  .blog-sidebar__toc-chevron { transition: color 0.2s ease; }
}

.blog-sidebar__toc-list li { margin: 0; }

.blog-sidebar__toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
}

.blog-sidebar__toc-list a:hover {
  padding-left: 20px;
  border-left-color: var(--accent-border-solid);
  color: var(--text-secondary);
}

.blog-sidebar__toc-list a.is-active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* Sidebar popular posts */
.blog-sidebar__popular {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-tertiary);
  border-radius: 14px;
  padding: 22px;
}

.blog-sidebar__popular-title {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.blog-sidebar__popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: popular;
}

.blog-sidebar__popular-item {
  counter-increment: popular;
  border-bottom: 1px solid var(--bg-tertiary);
  padding: 10px 0;
}

.blog-sidebar__popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-sidebar__popular-item:first-child {
  padding-top: 0;
}

.blog-sidebar__popular-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.blog-sidebar__popular-link::before {
  content: counter(popular) ".";
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 18px;
}

.blog-sidebar__popular-link:hover {
  color: var(--accent);
}

.blog-sidebar__popular-name {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.blog-sidebar__popular-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.blog-sidebar__popular-views svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}


/* ── Rich Text (.rt) ── */
.rt h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  border-top: 1px solid var(--bg-tertiary);
  padding-top: 1.2em;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.rt h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.rt h3 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.rt p {
  font-size: clamp(0.9375rem, 0.90625rem + 0.15vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1em;
}

.rt p:first-of-type {
  font-size: clamp(1rem, 0.96875rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-primary);
}

.rt a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-border-solid);
  transition: color 0.2s ease;
}

.rt a:hover { color: var(--accent-hover); }

.rt strong { font-weight: 600; color: var(--text-primary); }

.rt ul { margin: 0.75em 0; padding-left: 1.5em; list-style: disc; }
.rt ol { margin: 0.75em 0; padding-left: 1.5em; list-style: decimal; }
.rt li { margin-bottom: 0.5em; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.rt li::marker { color: var(--accent); }

.rt blockquote {
  background: var(--accent-bg-solid);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 1.2em 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-primary);
  line-height: 1.6;
}

.rt img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.2em 0;
}

.rt table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.875rem;
}

.rt th {
  background: var(--bg-secondary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--bg-tertiary);
  color: var(--text-primary);
}

.rt td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}


/* ── Section 7: CTA inline ── */
.blog-cta-inline {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border-solid);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  margin: 2em 0;
  text-align: center;
}

.blog-cta-inline__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg-solid);
  border-radius: 12px;
}

.blog-cta-inline__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.blog-cta-inline__heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.blog-cta-inline__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.blog-cta-inline__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

a.blog-cta-inline__btn {
  font-size: 0.8125rem;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
}

.blog-cta-inline__btn svg {
  width: 16px;
  height: 16px;
}

.blog-cta-inline__btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-border-solid);
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.blog-cta-inline__btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  text-decoration: underline;
}

/* CTA type: pilne */
.blog-cta-inline[data-cta-type="pilne"] {
  background: var(--dark-bg-alt);
  border-color: var(--dark-border);
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__icon {
  background: rgba(74, 154, 106, 0.15);
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__heading {
  color: var(--emergency-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__heading::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--emergency-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__desc {
  color: var(--dark-text-secondary);
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__btn {
  background: var(--accent-light);
  color: #fff;
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__btn--ghost {
  color: var(--accent-light);
  border-color: var(--dark-border);
}

.blog-cta-inline[data-cta-type="pilne"] .blog-cta-inline__btn--ghost:hover {
  border-color: var(--accent-light);
  background: rgba(74, 154, 106, 0.1);
}


/* ── Section 8: CTA rotacyjne (wstawiane automatycznie w środek treści) ──────
   Karta z kadrem po lewej i tekstem po prawej, doklejana do każdego wpisu
   i każdej historii sprawy. Wariant wybiera serwer — patrz
   inc/data/blog-cta-rotator.php i template-parts/blog/cta-rotator.php.

   DLACZEGO INNY RYSUNEK NIŻ .blog-cta-inline. Tamten blok jest wyśrodkowany,
   wąski i zielony; gdyby ta sekcja wyglądała tak samo, na wpisie z dwoma
   wezwaniami ręcznymi czytelnik zobaczyłby trzy bliźniacze ramki i przestałby
   je widzieć. Tutaj: kadr, nagłówek szeryfowy, wyrównanie do lewej.

   SIŁA SELEKTORÓW. Sekcja siedzi wewnątrz <article class="rt">, gdzie reguły
   `.rt p`, `.rt p:first-of-type`, `.rt a` i `.rt img` mają siłę (0,1,1) i biją
   pojedynczą klasę. Szablon omija to znacznikami (div/span zamiast p), a tam,
   gdzie znacznika nie da się zmienić (obraz, odnośniki), selektor jest pisany
   z rodzicem, czyli (0,2,x).

   MOBILE FIRST: baza to układ telefonu, próg 720px rozkłada kartę na dwie
   kolumny. Blog ma kolumnę treści do ~950px, więc kadr 38% zostawia tekstowi
   komfortową miarę wiersza. */

.blog-cta-rot {
  display: grid;
  grid-template-columns: 1fr;
  margin: clamp(32px, 4vw, 48px) 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.blog-cta-rot__media {
  position: relative; /* kotwica dla .ks-play i .ks-video-wrap (inset: 0) */
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* (0,2,1) — bije `.rt img`, które dokłada margines, zaokrąglenie i height:auto. */
.blog-cta-rot .blog-cta-rot__img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.blog-cta-rot__body {
  padding: clamp(20px, 3vw, 32px);
}

.blog-cta-rot__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog-cta-rot__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Accent-Em Rule: kursywa w akcencie wyróżnia fragment nagłówka. */
.blog-cta-rot__heading em {
  font-style: italic;
  color: var(--accent);
}

.blog-cta-rot__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.blog-cta-rot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* (0,2,0) — bije `.rt a` (kolor i podkreślenie treści). */
.blog-cta-rot .blog-cta-rot__btn {
  font-size: 0.875rem;
  padding: 13px 26px;
  color: #fff;
  text-decoration: none;
}

.blog-cta-rot__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.blog-cta-rot .blog-cta-rot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-border-solid);
  transition: color 0.2s ease;
}

.blog-cta-rot .blog-cta-rot__link:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

.blog-cta-rot__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .blog-cta-rot {
    grid-template-columns: minmax(0, 38%) 1fr;
    align-items: stretch;
  }

  /* W dwóch kolumnach o wysokości karty decyduje TEKST, a kadr ją wypełnia.
     Dlatego obraz wychodzi z układu (position: absolute): inaczej zdjęcie
     kwadratowe albo pionowe rozpychało kartę do swojej wysokości i po prawej
     stronie zostawała pusta ćwiartka. Dolna granica pilnuje, żeby przy krótkim
     wariancie kadr nie zmalał do paska. */
  .blog-cta-rot__media {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .blog-cta-rot .blog-cta-rot__img {
    position: absolute;
    inset: 0;
  }

  .blog-cta-rot__body {
    align-self: center;
  }

  .blog-cta-rot--no-media {
    grid-template-columns: 1fr;
  }
}


/* ── Section 9: Lead Magnet ── */
.blog-lead-magnet {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 24px;
  margin: 2em 0;
  text-align: center;
}

.blog-lead-magnet[hidden] { display: none; }

.blog-lead-magnet__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-lead-magnet__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.blog-lead-magnet__heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.blog-lead-magnet__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.blog-lead-magnet__form {
  max-width: 420px;
  margin: 0 auto;
}

.blog-lead-magnet__fields {
  display: flex;
  gap: 8px;
}

.blog-lead-magnet__input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-lead-magnet__input::placeholder { color: var(--text-muted); }

.blog-lead-magnet__input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.blog-lead-magnet__submit {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 12px 20px;
}

.blog-lead-magnet__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.blog-lead-magnet__disclaimer svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* Lead Magnet: download variant */
.blog-lead-magnet__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blog-lead-magnet__file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.blog-lead-magnet__file-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.blog-lead-magnet__download .blog-lead-magnet__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.blog-lead-magnet__download .blog-lead-magnet__submit svg {
  width: 16px;
  height: 16px;
}


/* ── Responsive: Content + Sidebar ── */
@media (max-width: 960px) {
  .blog-layout__inner {
    grid-template-columns: 1fr;
  }

  .blog-layout__content {
    max-width: 100%;
  }

  .blog-sidebar {
    position: static;
    display: none;
  }

  /* ── Answer-first na mobile: „W skrócie" + „Pilne" CTA PRZED obrazem ──
     Na desktopie obraz zostaje pod nagłówkiem (source order); tu przestawiamy
     kolejność flexem, tak by na wąskim ekranie box odpowiedzi był w pierwszym
     ekranie, a duży obraz zszedł pod niego (prototyp / raport GEO). */
  .blog-layout__content {
    display: flex;
    flex-direction: column;
  }
  .blog-layout__content > * { order: 9; } /* domyślnie: reszta w źródłowej kolejności */
  .blog-layout__content > .blog-articlehead      { order: 1; }
  .blog-layout__content > .blog-tldr             { order: 2; }
  .blog-layout__content > .blog-bridge-mini      { order: 3; }
  .blog-layout__content > .blog-cta-inline--lead { order: 4; }
  .blog-layout__content > .blog-hero__image      { order: 5; }
  .blog-layout__content > .blog-figure-rule      { order: 6; }
}

@media (max-width: 600px) {
  .blog-cta-inline__actions {
    flex-direction: column;
  }

  .blog-cta-inline__btn,
  .blog-cta-inline__btn--ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .blog-lead-magnet__fields {
    flex-direction: column;
  }

  .blog-lead-magnet__submit,
  .blog-lead-magnet__download .blog-lead-magnet__submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}


/* ── Section 11: Social Proof ── */
.blog-social-proof {
  background: var(--bg-secondary);
  padding: clamp(48px, 5vw, 72px) 0;
}

@media (min-width: 701px) {
  .blog-social-proof {
    padding: 36px 0;
  }
}

.blog-social-proof[hidden] { display: none; }

.blog-social-proof__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 12px + 3vw, 96px);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* Quote card */
.blog-social-proof__quote {
  position: relative;
}

.blog-social-proof__quote-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-tertiary);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}

.blog-social-proof__quote-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 12px;
}

.blog-social-proof__text {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
}

.blog-social-proof__text p { margin: 0; }

.blog-social-proof__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-tertiary);
}

.blog-social-proof__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-bg-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-social-proof__avatar svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.blog-social-proof__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-social-proof__cite {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text-primary);
}

.blog-social-proof__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.blog-social-proof__verified svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Stats column */
.blog-social-proof__stats {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--bg-tertiary);
}

.blog-social-proof__stat-google {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-social-proof__stat-google svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

@media (max-width: 700px) {
  .blog-social-proof__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-social-proof__stats {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--bg-tertiary);
    padding-top: 24px;
  }
}


/* ── Section 12: Bridge — panel „Powiązana specjalizacja" (wewnątrz kolumny) ── */
.blog-bridge {
  position: relative;
  margin: clamp(32px, 4.5vw, 52px) 0 0;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border-solid);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* cienki malachitowy akcent u góry — sygnatura „insertu kancelarii" */
.blog-bridge::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
/* znak wodny — glif dokumentu (motyw „akta sprawy"), głęboko w tle */
.blog-bridge__watermark {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 210px;
  height: 210px;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.blog-bridge > :not(.blog-bridge__watermark) { position: relative; z-index: 1; }

.blog-bridge__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 12px;
}
.blog-bridge__kicker-rule {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.blog-bridge__h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 12px;
  text-wrap: balance;
  max-width: 30ch;
}

.blog-bridge__lead {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 58ch;
}

.blog-bridge__action {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  /* stały głęboki malachit (nie token) — biały tekst czytelny w OBU motywach:
     w dark mode --accent jaśnieje do #4A9A6A i biały spada poniżej 4.5:1 */
  background: #2E6B47;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  transition: background 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.blog-bridge__action:hover {
  background: #37805A;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 30px rgba(46, 107, 71, 0.30);
}

.blog-bridge__action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.blog-bridge__action-icon svg { width: 21px; height: 21px; }

.blog-bridge__action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.blog-bridge__action-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.blog-bridge__action-name {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.blog-bridge__action-go {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease;
}
.blog-bridge__action:hover .blog-bridge__action-go { background: #fff; }
.blog-bridge__arrow {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}
.blog-bridge__action:hover .blog-bridge__arrow { transform: translateX(3px); color: #2E6B47; }

.blog-bridge__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 20px;
}

.blog-bridge__rating {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  background: var(--champagne-bg-solid);
  border: 1px solid var(--champagne-border-solid);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.blog-bridge__stars { display: inline-flex; gap: 2px; }
.blog-bridge__stars svg { width: 13px; height: 13px; }
.blog-bridge__stars svg polygon { fill: var(--accent); }
.blog-bridge__rating-text strong { font-weight: 700; color: var(--text-primary); }

.blog-bridge__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.84375rem;
  color: var(--text-tertiary);
}
.blog-bridge__phone svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.blog-bridge__phone a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.blog-bridge__phone a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .blog-bridge__action,
  .blog-bridge__action-go,
  .blog-bridge__arrow { transition: none; }
  .blog-bridge__action:hover { transform: none; }
  .blog-bridge__action:hover .blog-bridge__arrow { transform: none; }
}

@media (max-width: 560px) {
  .blog-bridge__action-icon { display: none; }
  .blog-bridge__foot { flex-direction: column; align-items: flex-start; }
}

/* ── Bridge (mini) — subtelny CTA pod „W skrócie" ── */
.blog-bridge-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: 12px 14px 12px 16px;
  background: var(--champagne-bg-solid);
  border: 1px solid var(--champagne-border-solid);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.blog-bridge-mini:hover {
  border-color: var(--accent-border-solid);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.blog-bridge-mini__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-bg-solid);
  border-radius: 10px;
}
.blog-bridge-mini__icon svg { width: 18px; height: 18px; }

.blog-bridge-mini__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.blog-bridge-mini__label {
  font-family: var(--font-body);
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-brass);
}
.blog-bridge-mini__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-bridge-mini__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-border-solid);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--accent);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.blog-bridge-mini:hover .blog-bridge-mini__go {
  background: #2E6B47; /* stały malachit — biały tekst „Sprawdź" czytelny też w dark */
  border-color: #2E6B47;
  color: #fff;
}
.blog-bridge-mini__arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-bridge-mini:hover .blog-bridge-mini__arrow { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .blog-bridge-mini,
  .blog-bridge-mini__go,
  .blog-bridge-mini__arrow { transition: none; }
  .blog-bridge-mini:hover { transform: none; }
  .blog-bridge-mini:hover .blog-bridge-mini__arrow { transform: none; }
}

@media (max-width: 480px) {
  .blog-bridge-mini { padding: 12px 14px; gap: 12px; }
  .blog-bridge-mini__go-text { display: none; }
  .blog-bridge-mini__go { padding: 9px; }
  .blog-bridge-mini__name { font-size: 1.05rem; }
}


/* ── Section 13: Blog FAQ ── */
.blog-faq {
  background: var(--bg-secondary);
  padding: clamp(48px, 5vw, 72px) 0;
}

.blog-faq[hidden] { display: none; }

.blog-faq__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 12px + 3vw, 96px);
}

.blog-faq__eyebrow {
  /* wygląd w components/atoms/eyebrow */
  margin-bottom: 20px;
}

/* Reuses .faq__accordion, .faq__item, .faq__question,
   .faq__icon, .faq__answer from the main FAQ styles.
   Only override font-size for the blog context. */
.blog-faq .faq__question {
  font-size: 0.9375rem;
  padding: 20px 0;
}

.blog-faq .faq__answer-inner p {
  font-size: 0.875rem;
}


/* ── Section 14: Powiązane artykuły ── */
.blog-related {
  background: var(--bg-primary);
  padding: clamp(48px, 5vw, 72px) 0;
}

.blog-related__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 12px + 3vw, 96px);
}

.blog-related__header {
  text-align: center;
  margin-bottom: 32px;
}

.blog-related__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.blog-related__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-related__cta {
  text-align: center;
  margin-top: 32px;
}

.blog-related__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-related__cta-link:hover {
  gap: 12px;
}

.blog-related__cta-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .blog-related__grid {
    grid-template-columns: 1fr;
  }
}


/* ── Slide-in CTA ── */
.slide-cta {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 900;
  width: 360px;
  background: #1A1A1A;
  border: 1px solid rgba(220, 60, 60, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Red accent glow at top */
.slide-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #DC3C3C, #E85555, #DC3C3C);
}

.slide-cta:not(.is-visible):not(.is-dismissing) {
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: none;
}

.slide-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.slide-cta.is-dismissing {
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: none;
}

/* Close button */
.slide-cta__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.slide-cta__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.slide-cta__close svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* Desktop content */
.slide-cta__desktop {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.slide-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #DC3C3C;
  margin-bottom: 12px;
}

.slide-cta__pulse {
  width: 6px;
  height: 6px;
  background: #DC3C3C;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.slide-cta__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #DC3C3C;
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

.slide-cta__heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #F8F6F2;
  margin: 0 0 14px;
  padding-right: 28px;
  line-height: 1.35;
}

.slide-cta__phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: background 0.2s ease;
}

.slide-cta__phone-row:hover {
  background: rgba(220, 60, 60, 0.14);
}

.slide-cta__phone-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DC3C3C;
  border-radius: 8px;
  flex-shrink: 0;
}

.slide-cta__phone-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.slide-cta__phone {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #F8F6F2;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.slide-cta__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}

.slide-cta__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile content — hidden on desktop */
.slide-cta__mobile { display: none; }

/* Overlay — mobile only */
.slide-cta__overlay { display: none; }

@media (max-width: 768px) {
  .slide-cta {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 35vh;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 2px solid #DC3C3C;
    padding: 16px 20px 28px;
  }

  .slide-cta::before { display: none; }

  .slide-cta:not(.is-visible):not(.is-dismissing) {
    transform: translateY(100%);
  }

  .slide-cta.is-visible {
    transform: translateY(0);
  }

  .slide-cta.is-dismissing {
    transform: translateY(100%);
  }

  .slide-cta__desktop { display: none; }
  .slide-cta__close { display: none; }

  .slide-cta__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .slide-cta__handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
  }

  .slide-cta__mobile-btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    background: #DC3C3C;
    font-size: 0.9375rem;
  }

  .slide-cta__mobile-btn:hover {
    background: #C53030;
  }

  .slide-cta__mobile-btn svg {
    width: 18px;
    height: 18px;
  }

  .slide-cta__mobile .slide-cta__avail {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
  }

  /* Overlay */
  .slide-cta__overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .slide-cta__overlay:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
  }

  .slide-cta__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-cta { transition: none; }
  .slide-cta__overlay { transition: none; }
}


/* ── Exit Intent Popup ── */
.exit-popup[hidden] { display: none; }

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: exitFadeIn 0.3s ease both;
}

.exit-popup__modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(13, 13, 13, 0.18), 0 8px 24px rgba(13, 13, 13, 0.1);
  overflow: hidden;
  animation: exitScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

.exit-popup__close:hover {
  background: var(--bg-tertiary);
}

.exit-popup__close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-tertiary);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.exit-popup__body {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.exit-popup__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg-solid);
  border-radius: 16px;
  margin-bottom: var(--space-3);
}

.exit-popup__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.exit-popup__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 4px;
}

.exit-popup__sub {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
}

.exit-popup__desc {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0 0 var(--space-3);
  max-width: 340px;
}

.exit-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.exit-popup__btn:active {
  transform: scale(0.98);
}

.exit-popup__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.exit-popup__btn--phone {
  background: var(--accent);
  color: var(--text-inverse);
  margin-bottom: 10px;
}

.exit-popup__btn--phone:hover {
  background: var(--accent-hover);
}

.exit-popup__btn--phone svg {
  color: var(--text-inverse);
}

.exit-popup__btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.exit-popup__btn-content strong {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.exit-popup__btn-content small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

.exit-popup__btn--meeting {
  background: var(--accent-bg-solid);
  color: var(--accent);
  border: 1px solid var(--accent-border-solid);
  margin-bottom: var(--space-3);
}

.exit-popup__btn--meeting:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.exit-popup__proof {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

.exit-popup__stars {
  display: flex;
  gap: 2px;
}

.exit-popup__stars svg {
  width: 14px;
  height: 14px;
  color: #E5A100;
}

.exit-popup__rating {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* Exit popup animations */
@keyframes exitFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes exitScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Exit popup dismissing state */
.exit-popup.is-dismissing .exit-popup__overlay {
  animation: exitFadeOut 0.25s ease both;
}

.exit-popup.is-dismissing .exit-popup__modal {
  animation: exitScaleOut 0.25s ease both;
}

@keyframes exitFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes exitScaleOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
}

/* Exit popup — mobile */
@media (max-width: 600px) {
  .exit-popup {
    align-items: flex-end;
    padding: 0;
  }

  .exit-popup__modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: exitSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .exit-popup__body {
    padding: 32px 24px 28px;
  }

  .exit-popup.is-dismissing .exit-popup__modal {
    animation: exitSlideDown 0.25s ease both;
  }

  @keyframes exitSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes exitSlideDown {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(100%);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit-popup__overlay,
  .exit-popup__modal,
  .exit-popup.is-dismissing .exit-popup__overlay,
  .exit-popup.is-dismissing .exit-popup__modal {
    animation: none;
  }
}



/* ============================================================
   BLOG — nowe bloki wg prototypu (answer-first, podstawa prawna,
   tag prawny, figcaption, bio E-E-A-T). Tokeny 1:1 z motywu.
   ============================================================ */

.blog-hero__meta-legal b { color: var(--text-secondary); font-weight: 600; }

/* ── Opis zdjęcia (figcaption) — drobne literki, Space Grotesk, tuż pod obrazem ── */
.blog-hero__caption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.78125rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-meta, #5C5C5C);
}

/* ── Cienka linia pod obrazkiem/opisem (separator przed „W skrócie") ── */
.blog-figure-rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--border, #E4E0D9);
  margin: clamp(16px, 2.4vw, 24px) 0 clamp(24px, 3.4vw, 34px);
}

/* ── „W skrócie" (answer-first, box tl;dr) ──
   Karta-odpowiedź: subtelny malachitowy nalot u góry gaśnie w biel, akcentowa
   ramka, punkty jako zielone dyski z białym „check" (potwierdzone fakty),
   stopka „liczy się czas" oddzielona szampanową kreską. */
.blog-tldr {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border-solid);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 32px);
  margin: 0 0 clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.blog-tldr__label { margin-bottom: 15px; }
.blog-tldr__lead {
  font-size: clamp(1.02rem, 0.97rem + 0.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--text-primary);
  margin: 0 0 18px;
}
.blog-tldr__lead strong { font-weight: 700; color: var(--accent-hover); }
.blog-tldr__points { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.blog-tldr__points li {
  position: relative;
  padding-left: 32px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
/* Malachitowy dysk z białym „check" (jeden pseudo-element: tło koloru + SVG check) */
.blog-tldr__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.blog-tldr__ref { color: var(--ink-brass); font-size: 0.88em; font-weight: 600; white-space: nowrap; }
.blog-tldr__fact {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--champagne-border-solid);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-tertiary);
  display: flex; gap: 10px; align-items: flex-start;
}
.blog-tldr__fact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.blog-tldr__fact b { color: var(--text-secondary); font-weight: 600; }

/* ── Lead CTA (nad treścią) — dziedziczy .blog-cta-inline ── */
.blog-cta-inline--lead { margin-top: 0; }

/* ── „Podstawa prawna" (szampanowy box) ── */
.blog-legal {
  background: var(--champagne-bg-solid);
  border: 1px solid var(--champagne-border-solid);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
  margin: clamp(28px, 4vw, 48px) 0;
}
.blog-legal__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.blog-legal__icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.blog-legal__head svg { width: 20px; height: 20px; color: var(--accent); }
.blog-legal__title { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--text-primary); }
.blog-legal__list { display: grid; gap: 14px; margin: 0; }
.blog-legal__item dt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84375rem;
  color: var(--accent-hover);
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}
.blog-legal__item dd { margin: 0; font-size: 0.90625rem; line-height: 1.55; color: var(--text-secondary); }
.blog-legal__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--champagne-border-solid);
  font-size: 0.78125rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ── Bio autora (E-E-A-T) — sekcja pełnej szerokości na końcu ── */
.blog-author-bio { padding: clamp(32px, 4vw, 56px) 0; background: var(--bg-primary); }
.blog-author-bio__inner { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.blog-author-bio__card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.blog-author-bio__photo {
  flex: none;
  width: 74px; height: 74px;
  border-radius: 14px;
  object-fit: cover;
}
.blog-author-bio__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--text-primary); line-height: 1.1; }
.blog-author-bio__role { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 5px 0 11px; }
.blog-author-bio__txt { font-size: 0.90625rem; line-height: 1.6; color: var(--text-secondary); max-width: 56ch; margin: 0; }
.blog-author-bio__link { margin-top: 12px; }
@media (max-width: 560px) {
  .blog-author-bio__card { flex-direction: column; gap: 14px; }
}
