/* =========================================================
   PUNKT DNIA — arkusz główny
   Portal informacyjny | biel + czerwień + grafit
   ========================================================= */

/* ---------- 1. Zmienne ---------- */
:root {
  --pd-red: #CE1126;
  --pd-red-dark: #A20D1E;
  --pd-red-soft: #FDECEE;
  --pd-ink: #14161A;
  --pd-ink-2: #2B2F36;
  --pd-muted: #6B7280;
  --pd-line: #E5E7EB;
  --pd-bg: #FFFFFF;
  --pd-bg-alt: #F6F7F9;
  --pd-dark: #0F1114;

  --pd-radius: 14px;
  --pd-radius-sm: 8px;
  --pd-radius-lg: 22px;
  --pd-shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --pd-shadow-lg: 0 18px 48px rgba(20, 22, 26, .14);

  --pd-container: 1280px;
  --pd-gap: 28px;

  --pd-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --pd-display: "Archivo", "Arial Narrow", var(--pd-font);

  --pd-header-h: 68px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pd-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pd-ink);
  background: var(--pd-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--pd-display);
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--pd-red); outline-offset: 2px; border-radius: 4px; }

.pd-container {
  width: 100%;
  max-width: var(--pd-container);
  margin: 0 auto;
  padding: 0 20px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.pd-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--pd-red); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.pd-skip-link:focus { left: 0; }

/* ---------- 3. Pasek górny ---------- */
.pd-topbar {
  background: var(--pd-ink);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.pd-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.pd-topbar__date { color: rgba(255,255,255,.72); text-transform: capitalize; }
.pd-topbar__links { display: flex; align-items: center; gap: 18px; }
.pd-topbar__list { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.pd-topbar__links a { color: rgba(255,255,255,.78); transition: color .18s; }
.pd-topbar__links a:hover { color: #fff; }
.pd-socials { display: flex; gap: 8px; }
.pd-socials a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  transition: background .18s, border-color .18s, transform .18s;
}
.pd-socials a:hover { background: var(--pd-red); border-color: var(--pd-red); transform: translateY(-1px); }
.pd-socials svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- 4. Nagłówek ---------- */
.pd-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--pd-line);
  transition: box-shadow .2s;
}
.pd-header.is-stuck { box-shadow: 0 6px 24px rgba(20,22,26,.08); }
.pd-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--pd-header-h);
}
.pd-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pd-brand img { max-height: 46px; width: auto; }
.pd-brand__text { display: flex; flex-direction: column; line-height: 1; }
.pd-brand__name {
  font-family: var(--pd-display);
  font-weight: 800; font-size: 24px; letter-spacing: -.03em; text-transform: uppercase;
}
.pd-brand__name em { font-style: normal; color: var(--pd-red); }
.pd-brand__tagline {
  font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--pd-muted); margin-top: 5px;
}

.pd-nav { margin-left: auto; }
.pd-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pd-nav li { position: relative; }
.pd-nav a {
  display: block; padding: 9px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--pd-ink-2);
  transition: color .18s, background .18s;
}
.pd-nav a:hover, .pd-nav .current-menu-item > a { color: var(--pd-red); background: var(--pd-red-soft); }

/* podmenu */
.pd-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-lg); padding: 8px; display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; flex-direction: column;
}
.pd-nav li:hover > .sub-menu, .pd-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.pd-nav .sub-menu a { border-radius: var(--pd-radius-sm); }

.pd-header__actions { display: flex; align-items: center; gap: 10px; }
.pd-iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--pd-line); background: #fff; border-radius: 50%;
  color: var(--pd-ink); transition: border-color .18s, color .18s, background .18s;
}
.pd-iconbtn:hover { border-color: var(--pd-red); color: var(--pd-red); }
.pd-iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.pd-burger { display: none; }

.pd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--pd-red); color: #fff; font-weight: 700; font-size: 14.5px;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.pd-btn:hover { background: var(--pd-red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(206,17,38,.28); }
.pd-btn--ghost { background: transparent; color: var(--pd-ink); border: 1px solid var(--pd-line); }
.pd-btn--ghost:hover { background: var(--pd-ink); color: #fff; border-color: var(--pd-ink); box-shadow: none; }
.pd-btn--dark { background: var(--pd-ink); }
.pd-btn--dark:hover { background: #000; box-shadow: none; }
.pd-btn--sm { padding: 8px 16px; font-size: 13px; }

/* pasek kategorii */
.pd-catbar { border-bottom: 1px solid var(--pd-line); background: #fff; }
.pd-catbar__inner {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.pd-catbar__inner::-webkit-scrollbar { display: none; }
.pd-catbar a {
  position: relative; white-space: nowrap; padding: 12px 14px;
  font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--pd-ink-2); transition: color .18s;
}
.pd-catbar a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--pd-red); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.pd-catbar a:hover, .pd-catbar .current-menu-item > a { color: var(--pd-red); }
.pd-catbar a:hover::after, .pd-catbar .current-menu-item > a::after { transform: scaleX(1); }

/* ---------- 5. Pasek pilnych ---------- */
.pd-breaking {
  background: var(--pd-red); color: #fff; overflow: hidden;
}
.pd-breaking__inner { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.pd-breaking__label {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  background: rgba(0,0,0,.22); padding: 6px 12px; border-radius: 6px;
}
.pd-breaking__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pd-pulse 1.4s infinite;
}
@keyframes pd-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.pd-breaking__track { flex: 1; overflow: hidden; }
.pd-breaking__list {
  display: flex; gap: 48px; list-style: none; margin: 0; padding: 0;
  white-space: nowrap; animation: pd-marquee 38s linear infinite;
}
.pd-breaking:hover .pd-breaking__list { animation-play-state: paused; }
.pd-breaking__list a { font-size: 14px; font-weight: 600; }
.pd-breaking__list a:hover { text-decoration: underline; }
@keyframes pd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 6. Sekcje ---------- */
.pd-section { padding: 44px 0; }
.pd-section--alt { background: var(--pd-bg-alt); }
.pd-section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--pd-ink); padding-bottom: 10px; margin-bottom: 26px;
}
.pd-section__title {
  position: relative; margin: 0; font-size: 22px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.02em;
}
.pd-section__title::before, .pd-section__title::after {
  color: var(--pd-red); font-weight: 700; font-size: 24px; line-height: 1;
}
.pd-section__title::before { content: "["; }
.pd-section__title::after { content: "]"; }
.pd-section__more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--pd-red); white-space: nowrap;
}
.pd-section__more:hover { gap: 11px; }
.pd-section__more span { transition: transform .18s; }

/* ---------- 7. Karty ---------- */
.pd-card { display: flex; flex-direction: column; gap: 12px; }
.pd-card__media {
  position: relative; overflow: hidden; border-radius: var(--pd-radius);
  background: var(--pd-bg-alt); aspect-ratio: 16 / 10;
}
.pd-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.pd-card:hover .pd-card__media img { transform: scale(1.05); }
.pd-card__title {
  font-size: 17.5px; font-weight: 700; margin: 0; line-height: 1.32;
  font-family: var(--pd-display);
}
.pd-card a.pd-card__link:hover .pd-card__title,
.pd-card:hover .pd-card__title { color: var(--pd-red); }
.pd-card__excerpt { color: var(--pd-muted); font-size: 14.5px; margin: 0; }

.pd-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--pd-red); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  padding: 5px 10px; border-radius: 6px;
}
.pd-badge--dark { background: var(--pd-ink); }
.pd-badge--outline { background: rgba(255,255,255,.92); color: var(--pd-ink); }
.pd-badge--inline { position: static; display: inline-block; }

.pd-meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--pd-muted);
}
.pd-meta__avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--pd-line); flex-shrink: 0;
}
.pd-meta__author { color: var(--pd-ink); font-weight: 600; }
.pd-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* karta pozioma */
.pd-card--row { flex-direction: row; align-items: flex-start; gap: 14px; }
.pd-card--row .pd-card__media { width: 118px; flex-shrink: 0; aspect-ratio: 4 / 3; }
.pd-card--row .pd-card__title { font-size: 15px; }

/* karta z nakładką */
.pd-card--overlay { position: relative; border-radius: var(--pd-radius-lg); overflow: hidden; }
.pd-card--overlay .pd-card__media { border-radius: 0; aspect-ratio: 16 / 9; }
.pd-card--overlay .pd-card__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 28px; color: #fff;
  background: linear-gradient(to top, rgba(8,9,11,.94) 12%, rgba(8,9,11,.72) 46%, transparent 100%);
}
.pd-card--overlay .pd-card__title { color: #fff; font-size: clamp(22px, 3vw, 38px); font-weight: 800; }
.pd-card--overlay:hover .pd-card__title { color: #fff; }
.pd-card--overlay .pd-meta { color: rgba(255,255,255,.76); }
.pd-card--overlay .pd-meta__author { color: #fff; }
.pd-card--overlay .pd-badge {
  position: static; display: inline-block; margin-bottom: 12px;
}
.pd-card__cover { position: absolute; inset: 0; z-index: 3; }
.pd-card__cover:focus-visible { outline-offset: -4px; }
.pd-card--overlay .pd-card__body a { position: relative; z-index: 4; }
.pd-card__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(206,17,38,.10), rgba(20,22,26,.06)),
    repeating-linear-gradient(135deg, #F1F2F4 0 12px, #EAECEF 12px 24px);
}
.pd-card--row .pd-card__body { display: flex; flex-direction: column; gap: 7px; }
.pd-card--row .pd-badge--inline { align-self: flex-start; }

/* ---------- 8. Hero ---------- */
.pd-hero { padding: 26px 0 8px; }
.pd-hero__grid {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
}
.pd-hero__side { display: grid; gap: 18px; grid-template-rows: 1fr 1fr; }
.pd-hero__side .pd-card--overlay .pd-card__title { font-size: 18px; }
.pd-hero__side .pd-card--overlay .pd-card__body { padding: 18px; }
.pd-hero__main .pd-card__media { aspect-ratio: 16 / 9.6; }

/* ---------- 9. Siatki ---------- */
.pd-grid { display: grid; gap: var(--pd-gap); }
.pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-layout {
  display: grid; gap: 38px;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}
.pd-featured > * + *, .pd-catsection > * + * { margin-top: 26px; }

/* ---------- 10. Najnowsze (timeline) ---------- */
.pd-latest { list-style: none; margin: 0; padding: 0; }
.pd-latest li {
  display: flex; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--pd-line);
}
.pd-latest li:last-child { border-bottom: 0; }
.pd-latest__time {
  flex-shrink: 0; width: 48px; font-size: 12.5px; font-weight: 800;
  color: var(--pd-red); font-variant-numeric: tabular-nums; padding-top: 2px;
}
.pd-latest__title { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.pd-latest a:hover .pd-latest__title { color: var(--pd-red); }

/* ---------- 11. Relacja na żywo ---------- */
.pd-live {
  display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.pd-live__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--pd-red); margin-bottom: 14px;
}
.pd-live__items { list-style: none; margin: 0 0 18px; padding: 0 0 0 18px; border-left: 2px solid var(--pd-line); }
.pd-live__items li { position: relative; padding-bottom: 18px; }
.pd-live__items li::before {
  content: ""; position: absolute; left: -25px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pd-red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pd-red);
}
.pd-live__when { font-size: 12.5px; font-weight: 700; color: var(--pd-red); }
.pd-live__when span { color: var(--pd-muted); font-weight: 500; margin-left: 6px; }
.pd-live__text { font-size: 15px; margin: 5px 0 0; }
.pd-live__player {
  position: relative; border-radius: var(--pd-radius-lg); overflow: hidden;
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #3a0810 0%, #150204 55%, #0b0b0d 100%);
}
.pd-live__player::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(206,17,38,.35) 50%, transparent 60%);
}
.pd-live__play {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-weight: 700; backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.pd-live__play:hover { background: var(--pd-red); border-color: var(--pd-red); transform: scale(1.03); }

/* ---------- 12. Reklama ---------- */
.pd-ad { text-align: center; margin: 30px 0; }
.pd-ad__label {
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #A3A9B4; margin-bottom: 8px;
}
.pd-ad__slot {
  background: var(--pd-bg-alt); border: 1px dashed var(--pd-line);
  border-radius: var(--pd-radius); min-height: 96px;
  display: grid; place-items: center; color: #B4BAC4; font-size: 13px;
  overflow: hidden;
}
.pd-ad--side .pd-ad__slot { min-height: 250px; }

/* ---------- 13. Newsletter ---------- */
.pd-newsletter {
  position: relative; overflow: hidden;
  background: var(--pd-ink); color: #fff;
  border-radius: var(--pd-radius-lg); padding: 44px;
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
}
.pd-newsletter::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(206,17,38,.55), transparent 65%);
}
.pd-newsletter h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.pd-newsletter p { color: rgba(255,255,255,.7); margin: 0; }
.pd-newsletter__form { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.pd-newsletter__form input[type="email"] {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-size: 15px;
}
.pd-newsletter__form input::placeholder { color: rgba(255,255,255,.45); }
.pd-newsletter__note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }

/* ---------- 14. Wpis ---------- */
.pd-single { padding: 34px 0 60px; }
.pd-single__head { max-width: 780px; margin: 0 auto 26px; text-align: center; }
.pd-single__title { font-size: clamp(28px, 4.2vw, 46px); margin: 14px 0 16px; }
.pd-single__lead { font-size: 19px; color: var(--pd-ink-2); }
.pd-single__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pd-single__thumb { border-radius: var(--pd-radius-lg); overflow: hidden; margin-bottom: 32px; }
.pd-single__thumb img { width: 100%; }
.pd-entry { font-size: 17.5px; line-height: 1.75; }
.pd-entry > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.pd-entry h2 { font-size: 27px; margin-top: 1.6em; }
.pd-entry h3 { font-size: 21px; margin-top: 1.4em; }
.pd-entry a { color: var(--pd-red); text-decoration: underline; text-underline-offset: 3px; }
.pd-entry blockquote {
  border-left: 4px solid var(--pd-red); padding: 4px 0 4px 22px; margin: 1.8em auto;
  font-size: 21px; font-family: var(--pd-display); font-weight: 600; font-style: italic;
}
.pd-entry img, .pd-entry figure { max-width: 100%; border-radius: var(--pd-radius); }
.pd-entry figcaption { font-size: 13px; color: var(--pd-muted); text-align: center; margin-top: 8px; }
.pd-entry ul li, .pd-entry ol li { margin-bottom: .5em; }

.pd-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 34px auto; max-width: 720px; }
.pd-share__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pd-muted); }
.pd-share a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--pd-line); border-radius: 50%; transition: all .18s;
}
.pd-share a:hover { background: var(--pd-red); border-color: var(--pd-red); color: #fff; }
.pd-share svg { width: 15px; height: 15px; fill: currentColor; }

.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 0 auto 34px; }
.pd-tags a {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--pd-bg-alt); color: var(--pd-ink-2); transition: all .18s;
}
.pd-tags a:hover { background: var(--pd-red); color: #fff; }

.pd-author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--pd-bg-alt); border-radius: var(--pd-radius);
  padding: 22px; max-width: 720px; margin: 0 auto 40px;
}
.pd-author-box img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pd-author-box h4 { margin: 0 0 4px; font-size: 17px; }
.pd-author-box p { margin: 0; font-size: 14.5px; color: var(--pd-muted); }

/* ---------- 15. Archiwum / paginacja ---------- */
.pd-page-head { padding: 34px 0 10px; }
.pd-page-head__kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pd-red); margin-bottom: 8px;
}
.pd-page-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0; }
.pd-page-head p { color: var(--pd-muted); margin: 10px 0 0; max-width: 640px; }

.pd-pagination { margin: 40px 0 10px; }
.pd-pagination .nav-links, .pd-pagination ul {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0;
}
.pd-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--pd-line); border-radius: 10px;
  font-weight: 700; font-size: 14.5px; transition: all .18s;
}
.pd-pagination .page-numbers:hover { border-color: var(--pd-red); color: var(--pd-red); }
.pd-pagination .page-numbers.current { background: var(--pd-red); border-color: var(--pd-red); color: #fff; }

/* ---------- 16. Sidebar / widgety ---------- */
.pd-sidebar { position: sticky; top: calc(var(--pd-header-h) + 18px); display: grid; gap: 30px; }
.pd-widget { }
.pd-widget__title {
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--pd-ink);
  display: flex; align-items: center; gap: 8px;
}
.pd-widget__title::before { content: "["; color: var(--pd-red); }
.pd-widget__title::after { content: "]"; color: var(--pd-red); }
.pd-widget ul { list-style: none; padding: 0; margin: 0; }
.pd-widget ul li { padding: 9px 0; border-bottom: 1px solid var(--pd-line); font-size: 14.5px; }
.pd-widget ul li:last-child { border-bottom: 0; }
.pd-widget a:hover { color: var(--pd-red); }

.pd-rank { counter-reset: pdrank; }
.pd-rank li { display: flex; gap: 14px; align-items: flex-start; }
.pd-rank li::before {
  counter-increment: pdrank; content: counter(pdrank);
  font-family: var(--pd-display); font-size: 24px; font-weight: 800;
  color: var(--pd-red); line-height: 1; min-width: 26px;
}

/* ---------- 17. Wyszukiwarka (overlay) ---------- */
.pd-searchbox { position: relative; }
.pd-searchbox input[type="search"], .pd-searchbox input[type="text"] {
  width: 100%; padding: 14px 52px 14px 20px;
  border: 1px solid var(--pd-line); border-radius: 999px; font-size: 15.5px;
  background: #fff; color: var(--pd-ink);
}
.pd-searchbox button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--pd-red); color: #fff; display: grid; place-items: center;
}
.pd-searchbox svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

.pd-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,17,20,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.pd-overlay.is-open { opacity: 1; visibility: visible; }
.pd-search-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 210;
  background: #fff; padding: 28px 0 34px;
  transform: translateY(-100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--pd-shadow-lg);
}
.pd-search-panel.is-open { transform: translateY(0); }
.pd-search-panel__row { display: flex; align-items: center; gap: 16px; }
.pd-search-panel .pd-searchbox { flex: 1; }
.pd-search-hint { margin-top: 14px; font-size: 13px; color: var(--pd-muted); }
.pd-search-hint a { color: var(--pd-red); font-weight: 600; margin-right: 12px; }

/* menu mobilne */
.pd-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(360px, 88vw);
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--pd-shadow-lg);
}
.pd-mobile-menu.is-open { transform: translateX(0); }
.pd-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pd-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.pd-mobile-menu > ul > li > a, .pd-mobile-menu ul li a {
  display: block; padding: 13px 4px; font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--pd-line);
}
.pd-mobile-menu ul li a:hover { color: var(--pd-red); }
.pd-mobile-menu .sub-menu a { font-size: 14.5px; font-weight: 500; padding-left: 18px; color: var(--pd-muted); }
.pd-mobile-menu__footer { margin-top: 24px; display: grid; gap: 10px; }

/* ---------- 18. Stopka ---------- */
.pd-footer { background: var(--pd-dark); color: rgba(255,255,255,.66); margin-top: 60px; }
.pd-footer__top { padding: 54px 0 40px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.pd-footer__brand .pd-brand__name { color: #fff; font-size: 28px; }
.pd-footer__brand .pd-brand__tagline { color: rgba(255,255,255,.45); }
.pd-footer__about { margin: 18px 0; font-size: 14.5px; max-width: 340px; }
.pd-footer h4 {
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.pd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-footer ul a { font-size: 14.5px; transition: color .18s; }
.pd-footer ul a:hover { color: var(--pd-red); }
.pd-footer .pd-socials a { border-color: rgba(255,255,255,.18); }
.pd-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.pd-footer__bottom nav, .pd-footer__legal {
  display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}

/* ---------- 19. 404 / brak wyników ---------- */
.pd-empty { text-align: center; padding: 70px 20px; }
.pd-empty__code {
  font-family: var(--pd-display); font-size: clamp(70px, 14vw, 150px);
  font-weight: 800; line-height: 1; color: var(--pd-red); letter-spacing: -.04em;
}
.pd-empty h1 { font-size: clamp(24px, 4vw, 34px); margin: 10px 0 12px; }
.pd-empty p { color: var(--pd-muted); max-width: 480px; margin: 0 auto 24px; }

/* ---------- 20. Pasek postępu czytania ---------- */
.pd-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--pd-red); z-index: 300;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .1s linear; will-change: transform;
}
.pd-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--pd-ink); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; box-shadow: var(--pd-shadow-lg);
}
.pd-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pd-totop:hover { background: var(--pd-red); }
.pd-totop svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ---------- 21. Komentarze / formularze ---------- */
.pd-comments { max-width: 720px; margin: 0 auto; padding-top: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--pd-line); padding: 18px 0; }
.comment-list .children { list-style: none; padding-left: 26px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--pd-line);
  border-radius: 10px; font: inherit; background: #fff; color: var(--pd-ink);
}
textarea { min-height: 130px; resize: vertical; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="submit"], .wp-block-search__button {
  background: var(--pd-red); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 26px; font-weight: 700; cursor: pointer;
}

/* WP core */
.alignleft { float: left; margin: 0 1.6em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1080px !important; }
.alignfull { max-width: 100% !important; width: 100%; }
.sticky .pd-card__title::before { content: "📌 "; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }

/* ---------- 22. Animacje wejścia ---------- */
.pd-reveal { opacity: 0; transform: translateY(18px); }
.pd-reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }

/* ---------- 23. RWD ---------- */
@media (max-width: 1100px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); display: grid; }
  .pd-footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .pd-nav, .pd-topbar__links { display: none; }
  .pd-burger { display: grid; }
  .pd-hero__grid { grid-template-columns: 1fr; }
  .pd-hero__side { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto; }
  .pd-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pd-live { grid-template-columns: 1fr; }
  .pd-newsletter { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 720px) {
  :root { --pd-gap: 22px; }
  .pd-section { padding: 32px 0; }
  .pd-grid--3, .pd-grid--2 { grid-template-columns: 1fr; }
  .pd-hero__side { grid-template-columns: 1fr; }
  .pd-sidebar { grid-template-columns: 1fr; }
  .pd-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .pd-card--overlay .pd-card__body { padding: 18px; }
  .pd-brand__name { font-size: 20px; }
  .pd-brand__tagline { font-size: 8.5px; letter-spacing: .2em; }
  .pd-section__title { font-size: 19px; }
  .pd-entry { font-size: 16.5px; }
  .pd-topbar__inner { justify-content: center; }
  .pd-author-box { flex-direction: column; }
  .pd-gallery, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  /* na telefonie karty 4-kolumnowe schodzą do jednej kolumny */
  .pd-grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pd-card--row .pd-card__media { width: 96px; }
  .pd-breaking__label span:last-child { display: none; }
}

/* ---------- 24. Wydruk / dostępność ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .pd-reveal { opacity: 1; transform: none; }
}
@media print {
  .pd-header, .pd-topbar, .pd-catbar, .pd-breaking, .pd-footer, .pd-ad, .pd-totop, .pd-share { display: none !important; }
}
