/* =============================================================================
   PIME BESS Analytics — raport (szkielet + komponenty treści)
   Ładowany po serwis.css. Reguły przeniesione z wydania sierpniowego
   (/analizy/sierpien/) i lipcowego (PDF) bez zmian wyglądu; nowe: paywall,
   konto w pasku bocznym, podgląd PDF, stopka.
   Klasy treści raportu zostają angielskie (kpi, figure, report-block…) —
   tak składamy każde kolejne wydanie.
   ========================================================================== */

:root { --wciecie-legendy: 13px; }

h1,h2,h3,h4,dt,th,summary,button,.side-nav span,.kpi-label,.chart-title,.stat-label { text-wrap-style: balance; }
p,li,dd,td,.kpi-change { text-wrap-style: balance; }

/* ------------------------------------------------------------ pasek boczny */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 30px 24px 24px;
  overflow-y: auto;
  color: white;
  background: var(--navy-950);
}
.back-btn { display: flex; width: 100%; padding: 10px 9px; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: #7f95aa; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: color .18s, background .18s; }
.back-btn:hover { color: white; background: rgba(255,255,255,.075); }
.back-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.logo-link { display: inline-block; line-height: 0; }
.side-nav { display: grid; gap: 6px; margin-top: 22px; }
.side-nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 11px 10px;
  border-radius: 10px;
  color: #91a7bc;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.side-nav a:hover, .side-nav a.active { color: white; background: rgba(255,255,255,.075); }
.nav-no { color: var(--accent); }
.sidebar-controls { margin-top: auto; padding-top: 22px; }
.sidebar-controls .top-actions { gap: 9px; }
.sidebar-controls .month-select, .sidebar-controls .month-btn { width: 100%; }
.sidebar-controls .month-menu { top: auto; right: auto; bottom: calc(100% + 9px); left: 0; width: 100%; }

/* konto i język pod wyborem wydania */
.sidebar-konto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-konto .back-btn { width: auto; min-width: 0; }
.sidebar-konto .back-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-konto .jezyki { flex: 0 0 auto; padding-right: 6px; font-size: 11px; }

main { display: flex; min-height: 100vh; margin-left: 252px; overflow: hidden; flex-direction: column; }

/* nagłówek wspólny z serwisem; pasek boczny sięga pod niego, więc na górze może być przezroczysty */
.menu-sekcja { margin: 18px 0 2px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.menu-strony-panel .menu-rozdzial { padding: 9px 0; font-size: 15px; font-weight: 600; }
.menu-strony-panel .menu-rozdzial.wybrany { color: var(--accent); }

/* ------------------------------------------------------ wybór wydania */

.top-actions { display: flex; gap: 10px; }
.month-btn { display: flex; min-width: 140px; height: 52px; padding: 0 15px 0 17px; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid rgba(132,185,221,.34); border-radius: 15px; color: white; background: rgba(255,255,255,.055); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s; }
.month-btn:hover { border-color: rgba(132,205,239,.55); background: rgba(255,255,255,.09); }
.chevron { width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.month-select { position: relative; }
.month-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: 170px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: #082746;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}
.month-select.open .month-menu { display: grid; gap: 4px; }
.month-menu a, .month-menu button { display: block; padding: 10px 11px; border: 0; border-radius: 8px; color: #9fb7ca; background: transparent; text-align: left; font-size: 13px; cursor: pointer; text-decoration: none; }
.month-menu a:hover, .month-menu button:hover, .month-menu .active { color: white; background: rgba(255,255,255,.07); }
.month-menu .active::after { float: right; color: var(--accent); content: "●"; }

/* ------------------------------------------------------------ hero raportu */

.hero {
  position: relative;
  min-height: 0;
  padding: 34px clamp(34px,6vw,90px) 112px;
  overflow: hidden;
  color: white;
  background: var(--granat-tlo);
}
.hero-pattern { position: absolute; z-index: 1; top: 0; right: -330px; width: min(58vw,790px); height: auto; opacity: .2; mix-blend-mode: screen; filter: invert(1) hue-rotate(122deg) saturate(1.05) brightness(.95); pointer-events: none; user-select: none; }
.hero-copy { position: relative; z-index: 2; max-width: 960px; margin-top: calc(var(--naglowek-h) + 40px); }
.hero-logo { width: 340px; max-width: 100%; height: auto; margin-bottom: 34px; }
.hero h1 { max-width: 900px; margin: 12px 0 22px; font-size: clamp(28px,2.8vw,40px); line-height: 1.08; letter-spacing: -.04em; }
/* raport bez kafli KPI: hero nie potrzebuje miejsca na nachodzące kafle */
.hero--bez-kpi { min-height: 0; padding-bottom: 72px; }
.hero--bez-kpi .hero-copy { margin-top: 56px; }
.report-period { margin: 0; color: var(--accent); font-size: 18px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; }

.znacznik-dostepu {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin-top: 22px;
  padding: .75em .7em .75em 1.2em;
  border: 1px solid rgba(var(--accent-rgb), .42);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s, border-color .18s;
}
a.znacznik-dostepu:hover {
  border-color: rgba(var(--accent-rgb), .75);
  background: rgba(var(--accent-rgb), .2);
}
.znacznik-dostepu svg { width: 1.4em; height: 1.4em; flex: 0 0 auto; }
.znacznik-dostepu .cta {
  padding: .35em 1.1em .35em 1.2em;
  border-left: 1px solid rgba(var(--accent-rgb), .42);
  color: white;
}
.znacznik-dostepu .cta:after { margin-left: .6em; content: ""; display: inline-block; width: .5em; height: .85em; vertical-align: -.06em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5 6.5 7l-5 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5 6.5 7l-5 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* bez wezwania (dostęp aktywny) — równy odstęp z prawej */
.znacznik-dostepu--aktywny { padding-right: 1.3em; }

/* ------------------------------------------------------------------- KPI */

.kpi-wrap { position: relative; z-index: 5; margin: -74px clamp(24px,5vw,72px) 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.kpi { position: relative; min-width: 0; min-height: 204px; padding: 23px 24px 21px; overflow: hidden; border: 1px solid rgba(13,52,87,.1); border-radius: 19px; background: white; box-shadow: 0 16px 38px rgba(4,35,65,.08); }
.kpi-label { display: flex; min-height: 39px; align-items: flex-start; justify-content: space-between; gap: 10px; color: #526b80; font-size: 13px; font-weight: 700; }
.kpi-sub { color: #7f93a6; font-weight: 400; }
.kpi-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 11px; color: var(--navy-900); font-size: clamp(31px,3.2vw,45px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.kpi-value small { color: #27465f; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.kpi-change { margin-top: 19px; padding-top: 13px; border-top: 1px solid #e9eef2; color: var(--muted); font-size: 11px; }
.kpi-change b { color: var(--navy-900); }
.kpi-trend { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; border-radius: 7px; }
.kpi-trend svg { width: 9px; height: 7px; fill: currentColor; }
.kpi-trend--up { color: #1E8F5B; background: rgba(var(--accent-rgb),.13); }
.kpi-trend--down { color: #C4342B; background: rgba(196,52,43,.10); }

/* ------------------------------------------------------------------ paywall */

.paywall {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(44px,5vw,64px) clamp(24px,5vw,72px) clamp(52px,6vw,76px);
  scroll-margin-top: 12px;
}
/* ciemna karta jak cennik na stronach serwisu; ramki wariantów z serwis.css */
.paywall-karta {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(26px,4vw,42px);
  border-radius: var(--radius);
  color: white;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.paywall h2 { margin: 0 0 26px; color: white; font-size: clamp(24px,2.4vw,32px); text-align: center; }
.paywall-akcje { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; text-align: center; }
.paywall-akcje p { margin: 0; color: #b7cbdd; font-size: 13px; }
.paywall-karta :is(a, button):focus-visible { outline: 2px solid white; outline-offset: 3px; }
/* spis rozdziałów wydania nad paywallem — osobny kafel */
.w-wydaniu { width: 100%; max-width: 1380px; margin: 0 auto; padding: clamp(44px,5vw,64px) clamp(24px,5vw,72px) 0; }
.w-wydaniu + .paywall { padding-top: 18px; }
.w-wydaniu-karta { max-width: 1000px; margin: 0 auto; padding: clamp(24px,3.4vw,34px) clamp(26px,4vw,42px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.w-wydaniu h2 { margin: 0 0 14px; color: var(--navy-900); font-size: 20px; letter-spacing: -.02em; }
.paywall-stan { margin: 0 0 24px; }

/* -------------------------------------------------------- treść raportu */

.content { max-width: 1380px; margin: 0 auto; padding: 65px clamp(24px,5vw,72px) 34px; width: 100%; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
.section-no { margin-bottom: 9px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h2 { margin: 0; color: var(--navy-900); font-size: clamp(27px,2.7vw,40px); line-height: 1.12; letter-spacing: -.035em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; }

.band { padding: 0; background: transparent; }
.band-inner {
  position: relative;
  display: flex;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(40px,5vw,64px) clamp(24px,5vw,72px) 0;
  align-items: center;
  gap: clamp(18px,3vw,34px);
}
.band-no { color: var(--accent); font-size: clamp(38px,4.6vw,64px); font-weight: 700; letter-spacing: -.05em; line-height: 1; flex: 0 0 auto; }
.band h2 { color: var(--navy-900); }
.band-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(24px,5vw,72px);
  left: clamp(24px,5vw,72px);
  border-top: 1px solid var(--line);
}
.band--pierwszy .band-inner::before { content: none; }

.report-blocks { display: grid; gap: 12px; }
.report-block { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.report-block > summary { display: grid; grid-template-columns: 1fr 30px; gap: 14px; align-items: center; padding: 19px 24px; cursor: pointer; list-style: none; }
.report-block > summary::-webkit-details-marker { display: none; }
.report-block h3 { margin: 0; color: var(--navy-900); font-size: 17px; }
.report-block .plus { display: grid; width: 30px; height: 30px; place-items: center; color: var(--navy-900); background: transparent; font-size: 28px; font-weight: 300; line-height: 1; transition: transform .2s; }
.report-block[open] .plus { transform: rotate(45deg); }
.report-body { padding: 0 24px 25px; color: #4a6277; font-size: 14px; }
.report-body p { margin: 10px 0; }
.report-body h4 { margin: 20px 0 8px; color: var(--navy-900); font-size: 14px; }
.report-body li { margin: 7px 0; }
.report-body ul, .report-body ol { padding-left: 20px; }

.abbr { display: grid; grid-template-columns: 185px 1fr; margin: 0; }
.abbr dt,.abbr dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.abbr dt { color: var(--navy-900); font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th,.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--navy-900); background: #f2f7f9; }
.data-table td:last-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.footnotes { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: #7c8fa1; font-size: 11px; line-height: 1.6; }
.footnotes p { margin: 6px 0; }

.chapter-card { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); align-items: start; gap: 28px; margin-bottom: 56px; }
.chapter-scope { padding: 4px 4px 4px 0; }
.chapter-scope p { margin: 0; color: #324f67; font-size: 19px; line-height: 1.55; }
.chapter-scope p + p { margin-top: 20px; }
.chapter-scope ul { margin: 16px 0 0; padding-left: 20px; color: #4a6277; font-size: 15px; }
.chapter-scope li + li { margin-top: 10px; }
.disclaimer-panel { padding: 31px 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: white; background: var(--navy-900); box-shadow: 0 15px 40px rgba(4,35,65,.09); }
.disclaimer-panel h3 { margin: 0 0 13px; color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.disclaimer-panel p { margin: 0 0 10px; color: #b6cad9; font-size: 12px; line-height: 1.65; }
.disclaimer-panel p:last-child { margin-bottom: 0; }
.subsection-head { margin-top: 12px; }
.subsection-head h2 { font-size: clamp(24px,2.4vw,36px); }

.figure { margin: 0 0 22px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 15px 40px rgba(4,35,65,.06); }
.figure > header { margin-bottom: 4px; }
.figure h3 { margin: 0; color: var(--navy-900); font-size: 19px; letter-spacing: -.02em; }
.figure-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.figure-body { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 22px; margin-top: 20px; }
.charts { display: grid; gap: 18px; min-width: 0; }
.charts.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.charts.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.chart-box { min-width: 0; }
.chart-title { margin: 0 0 10px; padding-left: var(--wciecie-legendy); color: var(--navy-900); font-size: 13px; font-weight: 700; line-height: 1.45; }
.charts.two .chart-title,
.charts.three .chart-title { min-height: 2.9em; }
@supports (grid-template-rows: subgrid) {
  .charts.two, .charts.three { grid-auto-rows: auto auto; }
  .charts.two > .chart-box,
  .charts.three > .chart-box { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 5px; }
  .charts.two .chart-title,
  .charts.three .chart-title { min-height: 0; margin-bottom: 0; }
}
.chart-holder { position: relative; height: 360px; min-width: 0; }
.chart-holder.tall { height: 470px; }
.chart-holder.short { height: 290px; }
.notes { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #f7fafb; color: #4a6277; font-size: 13px; }
.notes h4 { margin: 0 0 10px; color: var(--navy-900); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.notes p { margin: 0 0 9px; }
.notes p:last-child { margin-bottom: 0; }
.notes ul { margin: 0 0 9px; padding-left: 18px; }
.notes li { margin: 5px 0; }
@media (min-width:1000px) {
  .notes { column-count: 2; column-gap: 40px; }
  .notes h4, .notes .stats { column-span: all; }
  .notes > p, .notes > ul, .notes > ol { break-inside: avoid; }
  .notes > p:first-of-type { margin-top: 0; }
}

.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
@media (max-width:900px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.stat { display: grid; align-content: start; gap: 3px; padding: 13px 15px; background: white; }
.stat-label { color: var(--muted); font-size: 11px; letter-spacing: .02em; min-height: 2.9em; }
.stat-value { color: var(--navy-900); font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.stat-value i { font-size: 11px; font-style: normal; font-weight: 700; color: #27465f; }
.stat-prev { color: #8193a1; font-size: 11px; }
.stat-prev b { color: var(--muted); font-weight: 700; white-space: nowrap; }
.figure-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.source { margin: 0; color: #8193a1; font-size: 10px; }
.legend-note { margin: 0; color: #8193a1; font-size: 10px; }

/* ------------------------------------------------ raport PDF (jak lipiec) */

.ekran-pdf {
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  padding: calc(var(--naglowek-h) + 56px) clamp(24px,6vw,72px) 72px;
  color: white;
  background: var(--granat-tlo);
}
.ekran-pdf-tresc { max-width: 720px; text-align: center; }
.ekran-pdf .logo { width: 340px; max-width: 100%; height: auto; margin-bottom: 34px; }
.ekran-pdf h1 { margin: 0 0 20px; font-size: clamp(26px,2.6vw,36px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; text-wrap-style: balance; }
.ekran-pdf .okres { margin: 0; color: var(--accent); font-size: 18px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; }
.ekran-pdf .opis { max-width: 520px; margin: 30px auto 0; color: #b7cbdd; font-size: 15px; text-wrap-style: balance; }
.ekran-pdf .przyciski { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.podglad-pdf { width: 100%; max-width: 1380px; margin: 0 auto; padding: clamp(40px,5vw,60px) clamp(24px,5vw,72px) clamp(48px,6vw,72px); }
.podglad-pdf .ramka { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 15px 40px rgba(4,35,65,.06); }
.podglad-pdf iframe { display: block; width: 100%; height: min(88vh, 1100px); border: 0; }
.podglad-pdf .zapasowy { margin: 14px 0 0; color: #8193a1; font-size: 12px; text-align: center; }

/* ----------------------------------------------------------- stopka raportu */

main > .stopka { margin-top: auto; }
main > .stopka .stopka-wnetrze { max-width: 1380px; margin: 0 auto; padding: 0 clamp(24px,5vw,72px); }

/* -------------------------------------------------------- punkty przejścia */

@media (max-width:1250px) {
  .charts.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1050px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .chapter-card { grid-template-columns: 1fr; }

  main { width: 100%; margin-left: 0; }
  /* logo jest już w pasku u góry */
  .hero-logo, .ekran-pdf .logo { display: none; }

  .mobile-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 62px;
    padding: 0 12px 0 20px;
    color: white;
    background: transparent;
    transition: background .2s, box-shadow .2s;
  }
  .mobile-bar.przewiniety { background: rgba(4, 31, 62, .97); box-shadow: 0 6px 24px rgba(0, 10, 25, .2); }
  .mobile-bar .logo-link { margin-right: auto; }
  .mobile-bar .ikona-konta { display: grid; width: 40px; height: 40px; place-items: center; color: white; }
  .mobile-bar .ikona-konta svg { width: 21px; height: 21px; }
  .ekran-pdf { padding-top: 104px; }
  .mobile-bar img { width: 140px; height: auto; }
  .mobile-bar .logo-link { display: flex; align-items: center; }
  .menu-btn {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    color: white;
    background: none;
    cursor: pointer;
  }
  .menu-ico { position: relative; display: block; width: 19px; height: 13px; }
  .menu-ico i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .15s ease, top .25s ease;
  }
  .menu-ico i:nth-child(1) { top: 0; }
  .menu-ico i:nth-child(2) { top: 5.5px; }
  .menu-ico i:nth-child(3) { top: 11px; }
  .menu-btn[aria-expanded="true"] .menu-ico i:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-ico i:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

  /* rozdziały i wydania są w menu nagłówka */
  .sidebar { display: none; }
  html:has(.sidebar) .menu-strony { display: grid; }
  .sidebar.open { transform: none; }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(3,26,53,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
}
@media (max-width:820px) {
  .charts.two, .charts.three { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:700px) {
  .hero { min-height: 0; padding: 0 20px 104px; }
  .hero-pattern { top: 215px; right: -325px; width: 520px; opacity: .15; }
  .hero-copy { margin-top: calc(var(--naglowek-h) + 28px); }
  .hero--bez-kpi { min-height: 0; padding-bottom: 60px; }
  .hero--bez-kpi .hero-copy { margin-top: 48px; }
  .hero h1 { font-size: 25px; overflow-wrap: anywhere; }
  .report-period { font-size: 15px; }
  .kpi-wrap { margin-right: 14px; margin-left: 14px; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .kpi { min-height: auto; padding: 14px; border-radius: 12px; }
  .kpi-label { min-height: 44px; gap: 6px; font-size: 12px; }
  .kpi-value { margin-top: 8px; font-size: 28px; }
  .kpi-value small { font-size: 11px; }
  .kpi-change { margin-top: 12px; padding-top: 10px; font-size: 10px; }
  .kpi-trend { width: 19px; height: 19px; border-radius: 6px; }
  .kpi-trend svg { width: 8px; height: 6px; }
  .content { padding: 48px 16px 26px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .report-block > summary { grid-template-columns: 1fr 30px; gap: 10px; padding: 17px 16px; }
  .report-block h3 { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
  .report-body { padding: 0 16px 21px 16px; font-size: 13px; }
  .abbr { grid-template-columns: 1fr; }
  .abbr dt { border-bottom: 0; padding-bottom: 0; }
  .figure { padding: 18px 14px; }
  .chart-holder { height: 300px; }
  .chart-holder.tall { height: 380px; }
  .disclaimer-panel { padding: 24px; }

  .paywall { padding: 40px 14px 48px; }
  .paywall-karta { padding: 24px 18px; }
  .ekran-pdf { min-height: 0; padding: 104px 20px 56px; }
  .ekran-pdf h1 { font-size: 27px; }
  .ekran-pdf .okres { font-size: 15px; }
  .ekran-pdf .logo { width: 260px; margin-bottom: 24px; }
  .ekran-pdf .przycisk { width: 100%; }
  .podglad-pdf { padding: 32px 14px 44px; }
  .podglad-pdf iframe { height: 75vh; }
}

/* znacznik serii w hero wydania (komponent .rodzaj z serwis.css) */
.hero .rodzaj--seria, .ekran-pdf .rodzaj--seria { color: var(--accent); background: rgba(var(--accent-rgb), .14); }

/* ------------------------------------------- jedna kolumna treści w raporcie */
/* nagłówek, hero, KPI, „W tym wydaniu”, paywall, rozdziały i stopka mają tę samą lewą i prawą krawędź */
html:has(.sidebar) { --kolumna: 1380px; --margines: clamp(24px,5vw,72px); }
html:has(.sidebar) .naglowek-wnetrze { max-width: var(--kolumna); padding: 0 var(--margines); }
.hero { padding-right: var(--margines); padding-left: var(--margines); }
.hero-copy { max-width: calc(var(--kolumna) - 2 * var(--margines)); margin-right: auto; margin-left: auto; }
.hero-copy > * { max-width: 900px; }
.kpi-wrap { width: 100%; max-width: var(--kolumna); margin: -74px auto 0; padding: 0 var(--margines); }
.w-wydaniu, .paywall, .content, .band-inner, .podglad-pdf { padding-right: var(--margines); padding-left: var(--margines); }
.w-wydaniu-karta, .paywall-karta { max-width: none; }
@media (max-width:700px) {
  html:has(.sidebar) { --margines: 16px; }
  .kpi-wrap { margin: -74px auto 0; }
}

/* treść wydania na telefonie: jedna wielkość zwykłego tekstu, mniejsze tylko podpisy i źródła */
@media (max-width:700px) {
  .chapter-scope p, .chapter-scope ul, .notes, .report-body { font-size: 15px; line-height: 1.55; }
  .chapter-scope p + p { margin-top: 14px; }
  .figure-sub, .chart-title { font-size: 14px; }
  .report-block h3 { font-size: 16px; }
  .source, .legend-note, .footnotes, .disclaimer-panel p, .kpi-change, .stat-label, .stat-prev { font-size: 12px; }
  table td, table th { font-size: 13px; }
}

/* poprawki z audytu 21.10 */
/* 10: nieparzysta liczba wykresów w dwóch kolumnach: ostatni na całą szerokość */
.charts.two > .chart-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* 14, 18: zwykły tekst w treści wydania w jednej wielkości, wiersze nie za długie */
.notes, .report-body { font-size: 15px; line-height: 1.6; }
.report-body > p, .report-body > ul, .report-body > ol { max-width: 75ch; }
.source, .legend-note { font-size: 12px; }
.footnotes, .kpi-change, .stat-label, .stat-prev { font-size: 12px; }
/* 6: KPI obok paska bocznego w dwóch kolumnach, dopóki nie ma miejsca na cztery */
@media (min-width:1051px) and (max-width:1300px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
/* 11: ekran PDF w tej samej kolumnie co reszta wydania */
.ekran-pdf { place-items: start stretch; padding-right: var(--margines); padding-left: var(--margines); }
.ekran-pdf-tresc { width: 100%; max-width: calc(var(--kolumna) - 2 * var(--margines)); margin: 0 auto; text-align: left; }
.ekran-pdf-tresc > * { max-width: 900px; }
.ekran-pdf .opis { margin-left: 0; }
.ekran-pdf .przyciski { justify-content: flex-start; }
@media (max-width:700px) {
  /* 4: stopka w kolumnie */
  main > .stopka .stopka-wnetrze { padding: 0 var(--margines); }
  /* 8: tabela metodyki bez ucinania */
  .data-table td:last-child { white-space: normal; }
  /* 12: podgląd PDF w iframe nie działa na telefonach, zostaje przycisk pobierania */
  .podglad-pdf .ramka { display: none; }
  .podglad-pdf .zapasowy { margin-top: 0; font-size: 15px; }
  /* 13: hierarchia: rozdział mniejszy niż tytuł raportu */
  .band h2 { font-size: 22px; }
  .band-no { font-size: 34px; }
  /* 19 */
  .band-inner { align-items: flex-start; }
  .stat-label { min-height: 0; }
  .stat { align-content: space-between; }
  .ekran-pdf { padding-right: var(--margines); padding-left: var(--margines); }
}

/* odstęp do stopki jak na pozostałych stronach */
.paywall, .podglad-pdf { padding-bottom: var(--odstep-stopka); }
.tylko-dostep > .content:last-child { padding-bottom: calc(var(--odstep-stopka) - 22px); }
@media (max-width:700px) { .podglad-pdf { padding-bottom: var(--odstep-stopka); } }
/* wariant PDF: pobieranie w karcie pod banerem (jak raport specjalny) */
.pobieranie { width: 100%; max-width: var(--kolumna); margin: 0 auto; padding: clamp(40px,5vw,56px) var(--margines) var(--odstep-stopka); }
.pobieranie .dostep-karta { margin-top: 0; }
.kpi-grid--3 { grid-template-columns: repeat(3,1fr) !important; }
.stats--3 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
@media (max-width:700px) {
  .kpi-grid--3 { grid-template-columns: minmax(0,1fr) !important; }
  .stats--3 { grid-template-columns: minmax(0,1fr) !important; }
  .kpi-grid--3 .kpi { padding: 18px 20px; }
  .kpi-grid--3 .kpi-label { min-height: 0; font-size: 15px; }
  .kpi-grid--3 .kpi-value { margin-top: 14px; font-size: 40px; }
  .kpi-grid--3 .kpi-value small { font-size: 14px; }
  .kpi-grid--3 .kpi-change { margin-top: 14px; padding-top: 12px; font-size: 14px; }
}
