/* ===== tokeny ===== */
/* ---------- Tokeny: portal (Customizer -> :root) ---------- */

.tp, .tp-c {
  --tekst: #161616;
  --tekst-tresc: #1C1C1C;
  --tekst-pom: #595959;
  --tlo: #FFFFFF;
  --tlo-sekcji: #F4F4F2;
  --linia: #E0E0E0;
  --czern: #111111;
  --f-tytul: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-tresc: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Portal 1: motoryzacja – akcent z logo czerwony */

/* Portal 2: dom i ogród – akcent zielony (jasny) + akcent-2 ciemnozielony */

/* ---------- Tokeny: kolory kategorii (Customizer -> .kat-{slug}) ---------- */

.kat { --kc: var(--akcent); --kc-on: var(--na-akcencie); }

/* porady, prawo-i-ubezpieczenia (+ podkategorie) oraz wszystkie kategorie portalu "dom": brak koloru -> akcent */

/* ===== baza ===== */
/* =========================================================
   Motyw portali Traffic Peaks — arkusz stylów makiet
   Tokeny kolorów = zmienne CSS generowane z Customizera.
   ========================================================= */

/* ---------- Baza ---------- */

.tp { container: tp / inline-size; background: var(--tlo); color: var(--tekst); font-family: var(--f-tresc); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; position: relative; }

.tp *, .tp *::before, .tp *::after, .tp-c *, .tp-c *::before, .tp-c *::after { box-sizing: border-box; }

.tp img { max-width: 100%; display: block; }

.tp a { color: inherit; }

.tp h1, .tp h2, .tp h3, .tp p, .tp ul, .tp ol, .tp figure, .tp blockquote { margin: 0; }

.tp button { font: inherit; color: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: 80px; }

.nw { white-space: nowrap; }

.ico { width: 22px; height: 22px; flex: none; }

.ico-s { width: 16px; height: 16px; flex: none; }

/* Tekst pomocniczy / etykiety */

.label { font-family: var(--f-tytul); font-stretch: 100%; font-weight: 600; font-size: 12px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.label-mark { display: inline-block; width: 10px; height: 10px; background: var(--kc, var(--akcent)); flex: none; }

.label-plain { font-family: var(--f-tytul); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tekst-pom); }

.meta { font-family: var(--f-tytul); font-stretch: 100%; font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--tekst-pom); }

.meta a { color: var(--tekst); text-decoration: underline; text-decoration-color: #BDBDBD; text-underline-offset: 3px; }

.meta a:hover { color: var(--akcent-tekst); text-decoration-color: currentColor; }

/* ===== przyciski ===== */
/* ---------- Przyciski ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--f-tytul); font-stretch: 110%; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--czern); background: var(--czern); color: #FFFFFF; cursor: pointer; }

.btn:hover, .btn.is-hover { background: var(--akcent); border-color: var(--akcent); color: var(--na-akcencie); }

.btn--akcent { background: var(--akcent); border-color: var(--akcent); color: var(--na-akcencie); }

.btn--akcent:hover, .btn--akcent.is-hover { background: var(--czern); border-color: var(--czern); color: #FFFFFF; }

.btn--ghost { background: transparent; color: var(--tekst); }

.btn--ghost:hover, .btn--ghost.is-hover { background: var(--czern); border-color: var(--czern); color: #FFFFFF; }

.btn:focus-visible, .tp a:focus-visible, .tp button:focus-visible, .btn.is-focus { outline: 3px solid var(--czern); outline-offset: 3px; box-shadow: 0 0 0 6px #FFFFFF; }

.link-more { font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--tekst); display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--akcent); padding-bottom: 3px; }

.link-more:hover { color: var(--akcent-tekst); border-color: currentColor; }

/* ===== maszt ===== */
/* ---------- Nagłówek ---------- */

.hdr { background: #FFFFFF; position: relative; z-index: 20; }

.hdr-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 108px; gap: 24px; }

.hdr-left { display: flex; align-items: center; gap: 4px; }

.hdr-right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }

.icon-btn { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 10px; background: transparent; border: 0; cursor: pointer; color: var(--tekst); font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.icon-btn:hover { color: var(--akcent-tekst); }

.hdr-links { display: flex; gap: 22px; list-style: none; padding: 0; }

.hdr-links a { font-family: var(--f-tytul); font-weight: 500; font-size: 13px; text-decoration: none; color: var(--tekst); padding: 12px 0; display: inline-block; }

.hdr-links a:hover { color: var(--akcent-tekst); text-decoration: underline; text-underline-offset: 4px; }

.hdr-mobile-search { display: none; }

/* Logo (placeholder logotypu 320×50, czarny napis) */

.logo { display: inline-flex; align-items: center; justify-content: center; width: 320px; height: 50px; text-decoration: none; color: #000; }

.logo-word { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 30px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }

.logo-mark { width: 30px; height: 30px; background: var(--akcent); display: inline-flex; align-items: center; justify-content: center; flex: none; }

.logo-mark::after { content: ""; width: 12px; height: 12px; background: #FFFFFF; transform: rotate(45deg); }

.logo-tld { font-stretch: 100%; font-weight: 600; font-size: 15px; letter-spacing: .02em; align-self: flex-end; padding-bottom: 3px; }

.logo--sm { width: 200px; height: 32px; }

.logo--sm .logo-word { font-size: 19px; gap: 7px; }

.logo--sm .logo-mark { width: 20px; height: 20px; }

.logo--sm .logo-mark::after { width: 8px; height: 8px; }

.logo--sm .logo-tld { font-size: 11px; padding-bottom: 2px; }

/* Pasek reklamowy (Automat) */

.baner-pas { background: var(--tlo-sekcji); padding: 10px 0 14px; border-top: 1px solid var(--linia); }

.baner-rzad { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.baner-etykieta { font-family: var(--f-tytul); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tekst-pom); align-self: center; }

.baner { position: relative; background: #FFFFFF repeating-linear-gradient(135deg, transparent 0 10px, #EFEFEC 10px 11px); border: 1px solid var(--linia); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--tekst-pom); text-align: center; max-width: 100%; }

.baner--maszt { width: 1150px; height: 90px; }

.baner--300 { width: 300px; height: 50px; font-size: 11px; }

.baner .baner-rozm-t, .baner .baner-rozm-m { display: none; }

/* Menu kategorii */

.nav { border-top: 1px solid var(--czern); border-bottom: 1px solid var(--czern); background: #FFFFFF; position: relative; z-index: 15; }

.nav-list { display: flex; justify-content: center; align-items: stretch; list-style: none; padding: 0; margin: 0; }

.nav-item { position: relative; }

.nav-link { position: relative; display: flex; align-items: center; gap: 6px; height: 56px; padding: 6px 20px 0; font-family: var(--f-tytul); font-stretch: 112%; font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--tekst); background: transparent; border: 0; cursor: pointer; }

.nav-link::before { content: ""; position: absolute; top: 10px; left: 20px; right: 20px; height: 4px; background: var(--kc); transition: height .12s; }

.nav-link:hover::before, .nav-item.is-open > .nav-link::before, .nav-link[aria-current="page"]::before { height: 8px; top: 8px; }

.nav-link[aria-current="page"] { font-weight: 700; }

.nav-sub-toggle .ico-s { transition: transform .15s; }

.nav-item.is-open .nav-sub-toggle .ico-s { transform: rotate(180deg); }

.nav-sep { width: 1px; background: var(--linia); margin: 14px 8px; }

.nav-client { display: flex; align-items: center; height: 56px; padding: 0 20px; font-family: var(--f-tytul); font-weight: 500; font-size: 13px; color: var(--tekst); text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.nav-client:hover { color: var(--akcent-tekst); }

.sub { display: none; position: absolute; top: calc(100% + 1px); left: 8px; min-width: 280px; background: #FFFFFF; border: 1px solid var(--czern); border-top: 4px solid var(--kc); box-shadow: 0 16px 32px rgba(0,0,0,.10); padding: 8px 0; list-style: none; margin: 0; }

.nav-item:hover > .sub, .nav-item.is-open > .sub, .nav-item:focus-within > .sub { display: block; }

.sub a { display: block; padding: 12px 20px; font-family: var(--f-tytul); font-weight: 500; font-size: 15px; text-decoration: none; color: var(--tekst); }

.sub a:hover, .sub a.is-hover { background: var(--tlo-sekcji); text-decoration: underline; text-underline-offset: 4px; }

.sub .sub-all { border-top: 1px solid var(--linia); margin-top: 6px; padding-top: 14px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Menu mobilne (szuflada) */

.drawer-layer { position: absolute; inset: 0; z-index: 100; }

.drawer-bg { position: absolute; inset: 0; background: rgba(17,17,17,.55); border: 0; width: 100%; cursor: pointer; }

.drawer { position: absolute; top: 0; left: 0; bottom: 0; width: min(88%, 380px); background: #FFFFFF; display: flex; flex-direction: column; overflow-y: auto; box-shadow: 8px 0 32px rgba(0,0,0,.18); }

.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--czern); }

.drawer-search { padding: 16px; border-bottom: 1px solid var(--linia); }

.drawer-list { list-style: none; padding: 8px 0; margin: 0; }

.drawer-item { border-bottom: 1px solid var(--linia); }

.drawer-row { display: flex; align-items: stretch; }

.drawer-link { flex: 1; position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 16px 0 32px; font-family: var(--f-tytul); font-stretch: 112%; font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--tekst); }

.drawer-link::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 4px; background: var(--kc); }

.drawer-tg { width: 56px; border: 0; border-left: 1px solid var(--linia); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.drawer-item.is-open .drawer-tg { background: var(--tlo-sekcji); }

.drawer-item.is-open .drawer-tg .ico-s { transform: rotate(180deg); }

.drawer-sub { list-style: none; padding: 4px 0 12px; margin: 0; background: var(--tlo-sekcji); }

.drawer-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 16px 0 48px; font-family: var(--f-tytul); font-weight: 500; font-size: 15px; color: var(--tekst); text-decoration: none; }

.drawer-sub a:hover { text-decoration: underline; }

.drawer-client { padding: 16px; border-bottom: 1px solid var(--linia); }

.drawer-help { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 2px; }

.drawer-help a { display: flex; align-items: center; min-height: 44px; font-family: var(--f-tytul); font-weight: 500; font-size: 15px; color: var(--tekst); }

.drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--linia); }

/* Formularz wyszukiwania */

.search { display: flex; border: 2px solid var(--czern); background: #FFFFFF; max-width: 640px; }

.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 52px; font-family: var(--f-tresc); font-size: 18px; color: var(--tekst); background: transparent; }

.search input::placeholder { color: var(--tekst-pom); }

.search input:focus { outline: none; }

.search:focus-within { outline: 3px solid var(--akcent); outline-offset: 2px; }

.search button { border: 0; background: var(--czern); color: #FFFFFF; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; min-height: 48px; }

.search button:hover { background: var(--akcent); color: var(--na-akcencie); }

.search--sm input { height: 44px; font-size: 16px; }

.search--sm button { padding: 0 14px; }

/* ===== okruszki ===== */
/* ---------- Breadcrumbs ---------- */

.bc { padding: 22px 0 18px; }

.bc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-family: var(--f-tytul); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--tekst-pom); }

.bc li { display: inline-flex; align-items: center; }

.bc a { color: var(--tekst); text-decoration: underline; text-decoration-color: #BDBDBD; text-underline-offset: 3px; }

.bc a:hover { color: var(--akcent-tekst); text-decoration-color: currentColor; }

.bc .sep { margin: 0 10px; color: var(--tekst-pom); font-size: 15px; }

.bc [aria-current] { color: var(--tekst-pom); max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* ===== glowna ===== */
/* ---------- Pasek tytułowy strony głównej (H1 = slogan) ---------- */

.mast { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0 16px; border-bottom: 1px solid var(--czern); margin-bottom: 32px; }

.mast-h1 { font-family: var(--f-tytul); font-stretch: 120%; font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.005em; }

.mast-date { font-family: var(--f-tytul); font-weight: 500; font-size: 13px; color: var(--tekst-pom); }

/* ---------- Hero (zdjęcie + panel w kolorze kategorii) ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--kc); color: var(--kc-on); position: relative; }

.hero-media { position: relative; aspect-ratio: 4 / 3; background: #E9E8E4; }

.hero-media .ph, .hero-media .ph-img { position: absolute; inset: 0; }

.hero-panel { padding: 48px 56px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.hero-panel .label { color: inherit; }

.hero-panel .label-mark { background: currentColor; }

.hero-title { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 46px; line-height: 1.15; letter-spacing: -.012em; }

.hero-title a { text-decoration: none; color: inherit; }

.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.hero-lead { font-family: var(--f-tresc); font-size: 19px; line-height: 1.55; max-width: 34em; }

.hero-meta { font-family: var(--f-tytul); font-weight: 500; font-size: 14px; line-height: 1.5; margin-top: auto; display: flex; flex-wrap: wrap; column-gap: 6px; }

.hero-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.hero-meta strong { font-weight: 700; }

.hero-pager { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid currentColor; }

.hero-pager button { width: 44px; height: 44px; border: 2px solid currentColor; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; }

.hero-pager button:hover { background: var(--kc-on); color: var(--kc); }

.hero-dots { display: flex; gap: 6px; margin-left: 8px; }

.hero-dots span { width: 28px; height: 4px; background: currentColor; opacity: .35; }

.hero-dots span.on { opacity: 1; }

.hero-count { font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .1em; margin-left: auto; }

/* ---------- Sekcja kategorii na głównej ---------- */

.sec { padding-top: 72px; }

.sec-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; border-top: 1px solid var(--czern); margin-bottom: 32px; }

.sec-head::before { content: ""; position: absolute; top: -1px; left: 0; width: 96px; height: 8px; background: var(--kc); }

.sec-title { font-family: var(--f-tytul); font-stretch: 122%; font-weight: 800; font-size: 36px; line-height: 1.15; letter-spacing: -.01em; }

.sec-title a { text-decoration: none; }

.sec-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.sec-subs { display: flex; gap: 16px; margin-left: 28px; flex: 1; }

.sec-subs a { font-family: var(--f-tytul); font-weight: 500; font-size: 14px; color: var(--tekst); text-underline-offset: 3px; text-decoration-color: #BDBDBD; }

/* Siatki */

.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }

.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }

.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }

.g-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }

.g-feat-list { display: flex; flex-direction: column; gap: 0; }

.g-feat-list > * { border-top: 1px solid var(--linia); padding: 20px 0; }

.g-feat-list > *:first-child { border-top: 0; padding-top: 0; }

/* ===== kafelek ===== */
/* ---------- Kafelek wpisu ---------- */

.tile { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tile-media { position: relative; aspect-ratio: 4 / 3; background: #E9E8E4; overflow: visible; }

.tile-media .ph-img { position: absolute; inset: 0; }

.tile-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.tile-label { position: relative; z-index: 2; align-self: flex-start; }

.tile-label:hover { text-decoration: underline; text-underline-offset: 4px; }

.tile-title { font-family: var(--f-tytul); font-stretch: 112%; font-weight: 700; font-size: 20px; line-height: 1.28; letter-spacing: -.005em; color: var(--tekst); overflow-wrap: anywhere; hyphens: manual; }

.tile-title a { text-decoration: none; color: inherit; }

.tile-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.tile:hover .tile-title a, .tile.is-hover .tile-title a { text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.tile-ex { font-family: var(--f-tresc); font-size: 16px; line-height: 1.55; color: #333333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tile .meta { position: relative; }

.tile-spons { font-family: var(--f-tytul); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-pom); }

/* rozmiary */

.tile--lg { gap: 20px; }

.tile--lg .tile-title { font-size: 28px; line-height: 1.22; font-stretch: 118%; }

.tile--lg .tile-ex { font-size: 18px; -webkit-line-clamp: 4; }

.tile--row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }

.tile--row .tile-title { font-size: 18px; line-height: 1.3; }

.tile--row .tile-body { gap: 8px; }

.tile--sm .tile-title { font-size: 17px; line-height: 1.3; }

.tile--mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }

.tile--mini .tile-title { font-size: 15px; line-height: 1.35; font-stretch: 105%; font-weight: 600; }

.tile--mini .tile-body { gap: 6px; }

.tile--mini .meta { font-size: 12px; }

.tile--mini .ai { left: 6px; bottom: 6px; }

.tile--mini .ai-tip { left: 0; }

.tile--sp { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }

.tile--sp .tile-title { font-size: 14px; line-height: 1.38; font-stretch: 100%; font-weight: 600; }

.tile--sp .tile-body { gap: 6px; }

.tile--sp .meta { font-size: 12px; }

.tile--sp .ai { display: none; }

.tile--side { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--linia); }

.tile--side .tile-media { order: 2; }

.tile--side .tile-title { font-size: 15px; line-height: 1.38; font-stretch: 100%; font-weight: 600; }

.tile--side .tile-body { gap: 6px; }

.tile--side .meta { font-size: 12px; }

.tile--side .ai { display: none; }

/* ---------- Znaczek AI ---------- */

.ai { position: absolute; left: 10px; bottom: 10px; z-index: 3; height: 26px; min-width: 30px; padding: 0 7px; border-radius: 3px; border: 1px solid rgba(255,255,255,.65); background: rgba(17,17,17,.84); color: #FFFFFF; font-family: var(--f-tytul); font-stretch: 100%; font-weight: 700; font-size: 11px; letter-spacing: .08em; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: help; }

.ai-tip { display: none; position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 9px 11px; background: #111111; color: #FFFFFF; border-radius: 3px; font-family: var(--f-tytul); font-weight: 500; font-size: 12.5px; letter-spacing: 0; line-height: 1.4; text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.2); }

.ai-tip::after { content: ""; position: absolute; left: 12px; top: 100%; border: 6px solid transparent; border-top-color: #111111; }

.ai:hover .ai-tip, .ai:focus .ai-tip, .ai.is-open .ai-tip { display: block; }

.ai:hover, .ai.is-open { background: #000000; }

/* ---------- Zdjęcia zastępcze (w motywie: <img> z wpisu) ---------- */

.ph-img { display: block; width: 100%; height: 100%; }

.ph-1 { background: radial-gradient(circle at 72% 30%, #E8DCC4 0 9%, transparent 9.5%), linear-gradient(#C9D2D6 0 56%, #5E6B66 56% 100%); }

.ph-2 { background: linear-gradient(#2B3238 0 40%, #3C454D 40% 62%, #8C969C 62% 100%); }

.ph-3 { background: radial-gradient(ellipse at 30% 78%, #3F4A3A 0 22%, transparent 22.5%), linear-gradient(#D9D3C7 0 64%, #8D9A84 64% 100%); }

.ph-4 { background: linear-gradient(90deg, #B7B2A8 0 38%, #A39D92 38% 100%); }

.ph-5 { background: radial-gradient(circle at 50% 55%, #1E1E1E 0 24%, #3A3A3A 24.5% 34%, transparent 34.5%), linear-gradient(#CFCBC4 0 100%); }

.ph-6 { background: linear-gradient(#9FB3BF 0 48%, #E1E4E1 48% 70%, #6F7C7A 70% 100%); }

.ph-7 { background: radial-gradient(circle at 26% 34%, #F1E7CF 0 7%, transparent 7.5%), linear-gradient(#56627A 0 60%, #2E3442 60% 100%); }

.ph-8 { background: linear-gradient(160deg, #C7BBA6 0 45%, #9B8B73 45% 100%); }

.ph-9 { background: radial-gradient(ellipse at 70% 80%, #4F6B3C 0 30%, transparent 30.5%), linear-gradient(#DCE3D2 0 55%, #7E9668 55% 100%); }

.ph-10 { background: linear-gradient(#E7E2DA 0 30%, #C4BBAE 30% 72%, #776D61 72% 100%); }

.ph-11 { background: radial-gradient(circle at 60% 40%, #A7C08A 0 16%, transparent 16.5%), linear-gradient(#EDEBE3 0 100%); }

.ph-12 { background: linear-gradient(#384A33 0 35%, #5D7550 35% 66%, #A3B38E 66% 100%); }

/* ===== paginacja ===== */
/* ---------- Paginacja ---------- */

.pag { display: flex; justify-content: center; padding: 56px 0 8px; }

.pag ol { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }

.pag a, .pag span.pg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 14px; font-family: var(--f-tytul); font-stretch: 110%; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--tekst); border: 1.5px solid var(--linia); }

.pag a:hover { border-color: var(--czern); }

.pag [aria-current="page"] { background: var(--akcent); border-color: var(--akcent); color: var(--na-akcencie); font-weight: 700; }

.pag .pg-prev, .pag .pg-next { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-color: var(--czern); }

.pag .pg-dis { color: var(--tekst-pom); border-style: dashed; border-color: #BDBDBD; }

.pag .pg-gap { border: 0; min-width: 24px; padding: 0; color: var(--tekst-pom); }

/* ===== archiwum ===== */
/* ---------- Strona kategorii ---------- */

.cat-head { padding: 12px 0 36px; border-bottom: 1px solid var(--czern); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }

.cat-bar { width: 96px; height: 8px; background: var(--kc); margin-bottom: 22px; }

.cat-h1 { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 68px; line-height: 1.08; letter-spacing: -.02em; }

.cat-count { margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }

.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--czern); font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--tekst); }

.chip:hover { background: var(--czern); color: #FFFFFF; }

.chip[aria-current="page"] { background: var(--kc); color: var(--kc-on); border-color: var(--kc); }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 40px; }

.layout-full { padding-top: 40px; }

.side { position: sticky; top: 24px; }

.side-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--czern); }

.cat-desc { max-width: 760px; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--linia); display: grid; gap: 14px; }

.cat-desc p.txt { font-family: var(--f-tresc); font-size: 18px; line-height: 1.65; color: var(--tekst-tresc); }

/* ===== wpis ===== */
/* ---------- Artykuł ---------- */

.art-hero .hero-title { font-size: 42px; }

.art-hero .hero-media { background: #ECEBE7; }

.art-hero .hero-media .fit { position: absolute; inset: 0; }

/* object-fit: contain – pełne zdjęcie 4:3 bez przycinania */

.art-hero .hero-panel { gap: 20px; }

.art-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tag-spons { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1.5px solid currentColor; font-family: var(--f-tytul); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.art-meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-tytul); font-weight: 500; font-size: 14px; line-height: 1.5; margin-top: auto; }

.art-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

.art-grid { display: grid; grid-template-columns: minmax(0, 720px) 320px; justify-content: center; column-gap: 112px; padding-top: 56px; align-items: start; }

.art-main { min-width: 0; }

.lead { font-family: var(--f-tresc); font-size: 23px; line-height: 1.58; color: var(--tekst); font-weight: 400; }

.lead::after { content: ""; display: block; clear: both; }

.dropcap { float: left; font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 82px; line-height: 1; padding: 16px 14px 4px; margin: 6px 16px 0 0; background: var(--akcent-2); color: var(--na-akcencie-2); }

.toc { margin: 40px 0 8px; background: var(--tlo-sekcji); padding: 26px 32px 28px; border-top: 4px solid var(--czern); }

.toc-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: 2px; }

.toc > ol > li { counter-increment: t; }

.toc a { display: inline-flex; gap: 12px; padding: 6px 0; font-family: var(--f-tytul); font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--tekst); text-decoration: underline; text-decoration-color: #BDBDBD; text-underline-offset: 4px; }

.toc a:hover { text-decoration-color: var(--akcent); color: var(--akcent-tekst); }

.toc > ol > li > a::before { content: counter(t, decimal-leading-zero); font-weight: 700; font-size: 13px; padding-top: 2px; color: var(--tekst-pom); text-decoration: none; min-width: 22px; }

.toc ol ol { padding-left: 34px; }

.toc ol ol a { font-size: 15px; }

.prose { font-family: var(--f-tresc); font-size: 19px; line-height: 1.68; color: var(--tekst-tresc); }

.prose > * + * { margin-top: 1.15em; }

.prose h2 { font-family: var(--f-tytul); font-stretch: 115%; font-weight: 700; font-size: 31px; line-height: 1.22; letter-spacing: -.008em; color: var(--tekst); margin-top: 2.1em; padding-top: 18px; border-top: 1px solid var(--czern); scroll-margin-top: 24px; }

.prose h3 { font-family: var(--f-tytul); font-stretch: 105%; font-weight: 700; font-size: 23px; line-height: 1.3; color: var(--tekst); margin-top: 1.7em; scroll-margin-top: 24px; }

.prose h2 + *, .prose h3 + * { margin-top: .6em; }

.prose a { color: var(--tekst); text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose a:hover { color: var(--akcent-tekst); text-decoration-color: currentColor; }

.prose strong { font-weight: 600; color: var(--tekst); }

.prose ul, .prose ol { padding-left: 0; list-style: none; }

.prose li { position: relative; padding-left: 34px; }

.prose li + li { margin-top: .5em; }

.prose ul > li::before { content: ""; position: absolute; left: 8px; top: .68em; width: 8px; height: 8px; background: var(--czern); }

.prose ol { counter-reset: n; }

.prose ol > li { counter-increment: n; }

.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; top: .12em; font-family: var(--f-tytul); font-stretch: 110%; font-weight: 700; font-size: .85em; color: var(--tekst); }

.tbl { margin-top: 1.6em !important; }

.tbl-box { overflow-x: auto; border: 1px solid #BDBDBD; -webkit-overflow-scrolling: touch; }

.tbl table { width: 100%; min-width: 600px; border-collapse: collapse; font-family: var(--f-tytul); font-stretch: 100%; font-size: 15px; line-height: 1.45; color: var(--tekst); }

.tbl caption { caption-side: top; text-align: left; font-family: var(--f-tytul); font-weight: 600; font-size: 14px; padding: 0 0 10px; color: var(--tekst); }

.tbl th { background: var(--czern); color: #FFFFFF; text-align: left; font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 13px 16px; white-space: nowrap; }

.tbl td { padding: 13px 16px; border-top: 1px solid var(--linia); vertical-align: top; }

.tbl tbody tr:nth-child(even) td { background: var(--tlo-sekcji); }

.tbl td:first-child { font-weight: 600; }

.tbl-hint { display: none; font-family: var(--f-tytul); font-weight: 500; font-size: 13px; color: var(--tekst-pom); padding-top: 8px; }

.quote { position: relative; margin: 2.2em 0 !important; padding: 34px 0 30px 0; border-top: 6px solid var(--akcent); border-bottom: 1px solid var(--czern); }

.quote-mark { position: absolute; top: 4px; right: 0; font-family: var(--f-tresc); font-weight: 600; font-size: 120px; line-height: .9; color: var(--tekst); }

.quote p { font-family: var(--f-tresc); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.45; color: var(--tekst); padding-right: 64px; }

.quote footer { margin-top: 18px; font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--tekst); }

.quote footer span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tekst-pom); font-size: 14px; }

.fig { margin-top: 2em !important; }

.fig-media { position: relative; aspect-ratio: 4 / 3; background: #E9E8E4; }

.fig-media .ph-img { position: absolute; inset: 0; }

.fig figcaption { font-family: var(--f-tytul); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--tekst-pom); padding: 12px 0; border-bottom: 1px solid var(--linia); }

.fig figcaption strong { color: var(--tekst); font-weight: 600; }

.video { margin-top: 2em !important; }

.video-box { position: relative; aspect-ratio: 16 / 9; background: #1B1B1B; display: flex; align-items: center; justify-content: center; }

.video-play { width: 76px; height: 76px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; border: 0; }

.video-cap { position: absolute; left: 16px; bottom: 14px; color: #FFFFFF; font-family: var(--f-tytul); font-size: 13px; font-weight: 500; }

.faq { margin-top: 1.4em !important; border-top: 2px solid var(--czern); }

.faq-item { border-bottom: 1px solid #BDBDBD; }

.faq-item summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 12px; align-items: start; padding: 22px 0; cursor: pointer; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-num { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 15px; line-height: 1.6; color: var(--tekst-pom); }

.faq-q { font-family: var(--f-tytul) !important; font-stretch: 105% !important; font-weight: 700; font-size: 20px !important; line-height: 1.38 !important; color: var(--tekst); margin: 0 !important; padding: 0 !important; border: 0 !important; }

.faq-ico { width: 36px; height: 36px; border: 1.5px solid var(--czern); display: flex; align-items: center; justify-content: center; }

.faq-item[open] .faq-ico { background: var(--czern); color: #FFFFFF; }

.faq-item[open] .faq-ico .v { display: none; }

.faq-a { padding: 0 48px 26px 56px; font-size: 18px; line-height: 1.65; }

.faq-item:hover .faq-q { text-decoration: underline; text-decoration-color: var(--akcent); text-underline-offset: 4px; }

.spons-end { margin-top: 48px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 2px solid var(--czern); font-family: var(--f-tytul); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.spons-end span.d { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tekst-pom); font-size: 14px; }

.abox { margin-top: 56px; background: var(--tlo-sekcji); padding: 30px 36px 32px; border-top: 4px solid var(--czern); display: grid; gap: 12px; }

.abox-name { font-family: var(--f-tytul); font-stretch: 115%; font-weight: 700; font-size: 24px; line-height: 1.25; }

.abox-name a { text-decoration: none; }

.abox-name a:hover { text-decoration: underline; text-underline-offset: 4px; }

.abox-desc { font-family: var(--f-tresc); font-size: 17px; line-height: 1.62; color: var(--tekst-tresc); }

.rel { margin-top: 88px; padding-top: 20px; border-top: 1px solid var(--czern); }

.rel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }

/* ===== autor ===== */
/* ---------- Strona autora / redakcja ---------- */

.au-head { padding: 12px 0 40px; border-bottom: 1px solid var(--czern); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: end; }

.au-h1 { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 60px; line-height: 1.1; letter-spacing: -.018em; }

.au-desc { font-family: var(--f-tresc); font-size: 18px; line-height: 1.65; color: var(--tekst-tresc); }

.au-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; }

.au-card { border-top: 4px solid var(--czern); background: var(--tlo-sekcji); padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; }

.au-card-name { font-family: var(--f-tytul); font-stretch: 115%; font-weight: 700; font-size: 23px; line-height: 1.25; }

.au-card-name a { text-decoration: none; }

.au-card-name a:hover { text-decoration: underline; text-underline-offset: 4px; }

.au-card p.d { font-family: var(--f-tresc); font-size: 16px; line-height: 1.6; color: var(--tekst-tresc); }

.au-card .link-more { margin-top: auto; align-self: flex-start; }

/* ===== strony ===== */
/* ---------- Strony stałe / tekst prawny ---------- */

.page-head { padding: 12px 0 40px; border-bottom: 1px solid var(--czern); }

.page-h1 { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 60px; line-height: 1.1; letter-spacing: -.018em; }

.page-col { max-width: 760px; margin: 0 auto; padding-top: 48px; }

.legal { font-family: var(--f-tresc); font-size: 18px; line-height: 1.7; color: var(--tekst-tresc); }

.legal > * + * { margin-top: 1em; }

.legal h2 { font-family: var(--f-tytul); font-stretch: 115%; font-weight: 700; font-size: 28px; line-height: 1.25; color: var(--tekst); margin-top: 2.2em; padding-top: 16px; border-top: 1px solid var(--czern); }

.legal h3 { font-family: var(--f-tytul); font-stretch: 105%; font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--tekst); margin-top: 1.8em; letter-spacing: .01em; }

.legal h2 + *, .legal h3 + * { margin-top: .7em; }

.legal ol, .legal ul { padding-left: 0; list-style: none; }

.legal ol { counter-reset: l; }

.legal ol > li { counter-increment: l; position: relative; padding-left: 40px; }

.legal ol > li::before { content: counter(l) "."; position: absolute; left: 0; top: .15em; font-family: var(--f-tytul); font-weight: 700; font-size: .85em; min-width: 28px; }

.legal ol ol { counter-reset: la; margin-top: .5em; }

.legal ol ol > li { counter-increment: la; }

.legal ol ol > li::before { content: counter(la, lower-alpha) ")"; font-weight: 600; }

.legal ul > li { position: relative; padding-left: 28px; }

.legal ul > li::before { content: ""; position: absolute; left: 6px; top: .7em; width: 7px; height: 7px; background: var(--czern); }

.legal li + li { margin-top: .5em; }

.legal a { color: var(--tekst); text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }

.legal a:hover { color: var(--akcent-tekst); }

.legal strong { font-weight: 600; }

.contact-mail { display: inline-block; margin-top: 18px; font-family: var(--f-tytul); font-stretch: 115%; font-weight: 700; font-size: 36px; line-height: 1.2; color: var(--tekst); text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 4px; text-underline-offset: 8px; overflow-wrap: anywhere; }

.contact-mail:hover { color: var(--akcent-tekst); }

/* Mapa serwisu */

.smap { columns: 3; column-gap: 56px; padding-top: 48px; }

.smap-cat { break-inside: avoid; margin-bottom: 40px; }

.smap-h2 { font-family: var(--f-tytul); font-stretch: 118%; font-weight: 800; font-size: 22px; line-height: 1.25; padding-top: 12px; border-top: 4px solid var(--kc); margin-bottom: 10px; }

.smap-h2 a { text-decoration: none; }

.smap-h2 a:hover { text-decoration: underline; }

.smap-h2 .par { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-pom); font-stretch: 100%; margin-bottom: 2px; }

.smap ul { list-style: none; padding: 0; margin: 0; }

.smap li { border-bottom: 1px solid var(--linia); }

.smap li a { display: block; padding: 8px 0; font-family: var(--f-tresc); font-size: 15.5px; line-height: 1.45; color: var(--tekst); text-decoration: none; }

.smap li a:hover { text-decoration: underline; text-decoration-color: var(--akcent); }

/* Wyszukiwarka, 404 */

.srch-head { padding: 12px 0 36px; border-bottom: 1px solid var(--czern); display: grid; gap: 24px; }

.srch-h1 { font-family: var(--f-tytul); font-stretch: 122%; font-weight: 800; font-size: 48px; line-height: 1.12; letter-spacing: -.012em; overflow-wrap: anywhere; }

.srch-h1 em { font-style: normal; box-shadow: inset 0 -0.18em 0 var(--akcent); }

.empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-top: 48px; }

.empty-msg { font-family: var(--f-tresc); font-size: 22px; line-height: 1.55; }

.tips { margin-top: 20px; display: grid; gap: 10px; font-family: var(--f-tresc); font-size: 17px; line-height: 1.55; list-style: none; padding: 0; }

.tips li { position: relative; padding-left: 26px; }

.tips li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; background: var(--czern); }

.catlinks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 16px; }

.catlinks .chip { position: relative; padding-left: 26px; }

.catlinks .chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--kc); }

.e404 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0 56px; border-bottom: 1px solid var(--czern); }

.e404-num { font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 260px; line-height: .9; letter-spacing: -.04em; color: var(--tekst); position: relative; display: inline-block; }

.e404-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 16px; background: var(--akcent); }

.e404-h1 { font-family: var(--f-tytul); font-stretch: 120%; font-weight: 800; font-size: 40px; line-height: 1.15; }

.e404-p { font-family: var(--f-tresc); font-size: 19px; line-height: 1.6; margin-top: 14px; color: var(--tekst-tresc); }

/* ===== sponsorowane ===== */
/* ---------- Materiały sponsorowane (dół głównej) ---------- */

.spons-sec { margin-top: 96px; background: var(--tlo-sekcji); padding: 28px 0 36px; border-top: 1px solid var(--linia); }

.spons-sec .spons-lbl { display: block; margin-bottom: 20px; }

.spons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }

/* ===== stopka ===== */
/* ---------- Stopka ---------- */

.ftr { background: #FFFFFF; border-top: 6px solid var(--czern); padding: 56px 0 28px; }

.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }

.ftr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ftr-lbl { padding-bottom: 10px; border-bottom: 1px solid var(--czern); }

.ftr-desc { font-family: var(--f-tresc); font-size: 16px; line-height: 1.6; color: var(--tekst-tresc); }

.ftr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }

.ftr-list a { display: inline-flex; align-items: center; min-height: 34px; font-family: var(--f-tytul); font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--tekst); text-decoration: none; }

.ftr-list a:hover { text-decoration: underline; text-decoration-color: var(--akcent); text-underline-offset: 3px; }

.ftr-list .par > a { font-weight: 700; }

.ftr-list .ch { padding-left: 18px; position: relative; }

.ftr-list .ch::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 1px; background: var(--tekst-pom); }

.ftr-list--posts a { font-family: var(--f-tresc); font-weight: 400; font-size: 15px; padding: 6px 0; min-height: 0; }

.ftr-list--posts li { border-bottom: 1px solid var(--linia); }

.ftr-banners { display: grid; gap: 10px; justify-items: start; }

.ai-note { display: flex; align-items: stretch; border: 2px solid var(--czern); max-width: 360px; background: #FFFFFF; }

.ai-note-mark { flex: none; width: 56px; background: var(--czern); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--f-tytul); font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: .02em; }

.ai-note-txt { padding: 10px 14px; font-family: var(--f-tytul); font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--tekst); }

.ftr-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--czern); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }

.ftr-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; margin: 0; }

.ftr-legal a { font-family: var(--f-tytul); font-weight: 500; font-size: 14px; color: var(--tekst); text-underline-offset: 3px; display: inline-flex; min-height: 36px; align-items: center; }

.ftr-legal a:hover { color: var(--akcent-tekst); }

.ftr-copy { font-family: var(--f-tytul); font-weight: 500; font-size: 13px; color: var(--tekst-pom); }

/* ===== dogory ===== */
/* ---------- Do góry ---------- */

.totop { position: absolute; right: 24px; bottom: 24px; z-index: 30; width: 52px; height: 52px; border: 2px solid var(--czern); background: #FFFFFF; color: var(--tekst); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.12); }

.totop:hover { background: var(--czern); color: #FFFFFF; }

/* ===== zapytania ===== */
/* =========================================================
   Responsywność – container queries (szerokość strony)
   ========================================================= */

@container tp (max-width: 1240px) {
  .wrap { padding-inline: 40px; }
  .baner--maszt { width: 728px; }
  .baner--maszt .baner-rozm-d { display: none; }
  .baner--maszt .baner-rozm-t { display: inline; }
  .g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-grid { grid-template-columns: minmax(0, 720px); }
  .art-side { display: none; }
  .hero-title { font-size: 36px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smap { columns: 2; }
}

@container tp (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  /* nagłówek */
  .hdr-row { height: 64px; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .hdr-links, .hdr-left .hdr-search-d, .icon-btn .t { display: none; }
  .hdr-left .icon-btn { padding: 0; }
  .hdr-mobile-search { display: inline-flex; }
  .logo { width: 200px; height: 32px; max-width: 100%; }
  .logo .logo-word { font-size: 19px; gap: 7px; }
  .logo .logo-mark { width: 20px; height: 20px; }
  .logo .logo-mark::after { width: 8px; height: 8px; }
  .logo .logo-tld { font-size: 11px; padding-bottom: 2px; }
  .nav { display: none; }
  .hdr { border-bottom: 1px solid var(--czern); }
  .baner-pas { padding: 8px 0 10px; }
  .baner--maszt { width: 300px; height: 50px; font-size: 11px; }
  .baner--maszt .baner-rozm-t { display: none; }
  .baner--maszt .baner-rozm-m { display: inline; }
  /* typografia */
  .mast { padding: 18px 0 12px; margin-bottom: 0; flex-direction: column; gap: 4px; }
  .mast-h1 { font-size: 19px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-inline: -16px; }
  .hero-panel { padding: 24px 16px 22px; gap: 14px; }
  .hero-title, .art-hero .hero-title { font-size: 28px; line-height: 1.18; }
  .hero-lead { font-size: 17px; }
  .hero-pager button { width: 44px; height: 44px; }
  .sec { padding-top: 48px; }
  .sec-head { margin-bottom: 20px; padding-top: 18px; flex-wrap: wrap; }
  .sec-title { font-size: 26px; }
  .sec-subs { display: none; }
  .sec-more { font-size: 12px; }
  .g4, .g3, .g2, .g-feat { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-m > * { border-top: 1px solid var(--linia); padding: 18px 0; }
  .g-m > *:first-child { border-top: 0; padding-top: 0; }
  .g-feat-list > *:first-child { border-top: 1px solid var(--linia); padding-top: 18px; }
  .g-m .tile:not(.tile--first) { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .g-m .tile:not(.tile--first) .tile-title { font-size: 16.5px; line-height: 1.32; font-stretch: 105%; }
  .g-m .tile:not(.tile--first) .tile-ex { display: none; }
  .g-m .tile:not(.tile--first) .tile-body { gap: 6px; }
  .g-m .tile:not(.tile--first) .meta { font-size: 12px; }
  .g-m .tile:not(.tile--first) .ai { left: 6px; bottom: 6px; height: 22px; min-width: 26px; font-size: 10px; padding: 0 5px; }
  .g-m .tile.tile--first { padding-bottom: 6px; }
  .tile--lg .tile-title, .tile--first .tile-title { font-size: 22px; line-height: 1.25; }
  .tile-ex { font-size: 16px; }
  .tile--row { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .tile--row .tile-title { font-size: 16.5px; }
  .spons-sec { margin-top: 56px; padding: 22px 0 26px; }
  .spons-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* kategoria */
  .cat-head { grid-template-columns: minmax(0, 1fr); padding-bottom: 24px; }
  .cat-h1 { font-size: 38px; line-height: 1.12; }
  .cat-bar { margin-bottom: 16px; width: 64px; height: 6px; }
  .chips { margin-top: 16px; }
  .layout-side { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .layout-full { padding-top: 24px; }
  .side { position: static; }
  .cat-desc { margin-top: 40px; }
  .cat-desc p.txt { font-size: 17px; }
  .pag { padding-top: 36px; }
  .pag a, .pag span.pg { min-width: 44px; height: 44px; padding: 0 10px; font-size: 14px; }
  .pag .pg-num-far { display: none; }
  .pag .pg-prev .t, .pag .pg-next .t { display: none; }
  /* artykuł */
  .art-grid { padding-top: 28px; }
  .art-meta { font-size: 13.5px; }
  .lead { font-size: 20px; line-height: 1.55; }
  .dropcap { font-size: 64px; padding: 12px 11px 3px; margin: 5px 12px 0 0; }
  .toc { padding: 20px 18px 22px; margin-top: 28px; }
  .toc a { font-size: 15.5px; }
  .toc ol ol { padding-left: 20px; }
  .prose { font-size: 18px; line-height: 1.65; }
  .prose h2 { font-size: 25px; line-height: 1.25; }
  .prose h3 { font-size: 20px; }
  .tbl-hint { display: block; }
  .quote { padding: 28px 0 24px; }
  .quote p { font-size: 22px; padding-right: 36px; }
  .quote-mark { font-size: 84px; }
  .faq-item summary { grid-template-columns: 30px minmax(0, 1fr) 36px; gap: 10px; padding: 18px 0; }
  .faq-q { font-size: 17.5px !important; }
  .faq-num { font-size: 13px; line-height: 1.75; }
  .faq-a { padding: 0 0 22px 40px; font-size: 17px; }
  .abox { padding: 22px 18px 24px; margin-top: 44px; }
  .abox-name { font-size: 21px; }
  .abox-desc { font-size: 16.5px; }
  .rel { margin-top: 56px; }
  .spons-end { padding: 14px 16px; flex-wrap: wrap; gap: 6px 12px; }
  /* autor, strony stałe */
  .au-head { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
  .au-h1, .page-h1 { font-size: 36px; line-height: 1.15; }
  .au-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; }
  .page-col { padding-top: 28px; }
  .legal { font-size: 17px; }
  .legal h2 { font-size: 23px; }
  .legal h3 { font-size: 18px; }
  .contact-mail { font-size: 24px; text-decoration-thickness: 3px; }
  .smap { columns: 1; padding-top: 28px; }
  .srch-h1 { font-size: 30px; }
  .empty, .e404 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .e404-num { font-size: 140px; }
  .e404-h1 { font-size: 28px; }
  /* stopka */
  .ftr { padding-top: 36px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .ftr-legal { flex-direction: column; gap: 0; }
  .ftr-banners .baner--300 { width: 100%; max-width: 300px; }
  .totop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ===== v2 ===== */
/* =========================================================
   v2 – poprawki po uwagach
   ========================================================= */

/* Portal 3: NaszeKrosno.pl – akcent z logo (fiolet) */

/* Prawdziwe zdjęcia: <img> wypełnia kadr 4:3 */

img.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.art-hero .hero-media img.fit { object-fit: contain; }

/* Logo jako obraz */

.logo-img { height: 60px; width: auto; display: block; }

.logo--sm .logo-img { height: 40px; }

/* Hamburger tylko na telefonie (na desktopie menu kategorii jest pod logo) */

.hdr-burger { display: none !important; }

/* Kategoria z panelem bocznym: 20 wpisów = 1 duży (2 kolumny) + 19 → pełne 7 rzędów */

@container tp (min-width: 1241px) {
  .layout-side .g3 > :first-child { grid-column: span 2; }
  .layout-side .g3 > :first-child .tile-title { font-size: 28px; line-height: 1.22; font-stretch: 118%; }
}

@container tp (max-width: 760px) {
  .hdr-burger { display: inline-flex !important; }
  .hdr-row { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .logo-img { height: 40px; }
  .hero-title, .art-hero .hero-title { font-size: 24px; line-height: 1.2; }
  .hero-lead { font-size: 16px; }
  .mast-h1 { font-size: 16px; }
  .sec-title { font-size: 22px; }
  .cat-h1 { font-size: 32px; }
  .tile--first .tile-title, .tile--lg .tile-title { font-size: 20px; }
}

/* Panel boczny artykułu < 1240 px: nie ukryty, tylko pod wpisem */

@container tp (max-width: 1240px) {
  .art-side { display: block !important; position: static; margin-top: 56px; }
}

/* ===== v3 ===== */
/* =========================================================
   v3 – odświeżenie 2026: zaokrąglenia, miękkie cienie, mikrointerakcje
   (układy bez zmian; wszystkie kolory z tokenów, cienie neutralne)
   ========================================================= */

.tp, .tp-c {
  --r-s: 8px; --r-m: 14px; --r-l: 20px; --r-pill: 999px;
  --cien-1: 0 1px 2px rgba(17,17,17,.06), 0 4px 12px rgba(17,17,17,.06);
  --cien-2: 0 2px 4px rgba(17,17,17,.06), 0 14px 32px rgba(17,17,17,.12);
  --cien-3: 0 24px 60px rgba(17,17,17,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  --akcent-mgla: color-mix(in srgb, var(--akcent) 9%, #FFFFFF);
}

.tp { scroll-behavior: smooth; text-rendering: optimizeLegibility; font-synthesis: none; }

.tp ::selection { background: var(--akcent); color: var(--na-akcencie); }

/* Zdjęcia: zaokrąglenie, miękki cień, uniesienie przy hover */

.tile-media, .hero-media, .fig-media { border-radius: var(--r-m); box-shadow: var(--cien-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

.tile-media img.ph-img, .fig-media img.ph-img { border-radius: inherit; transition: filter .35s var(--ease); }

.tile:hover .tile-media, .tile.is-hover .tile-media { transform: translateY(-4px); box-shadow: var(--cien-2); }

.tile:hover .tile-media img.ph-img, .tile.is-hover .tile-media img.ph-img { filter: saturate(1.08) contrast(1.03); }

.tile--mini .tile-media, .tile--sp .tile-media, .tile--side .tile-media { border-radius: var(--r-s); }

/* Tytuły kafelków: animowane podkreślenie w kolorze akcentu */

.tile-title a { background-image: linear-gradient(var(--akcent), var(--akcent)); background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }

.tile:hover .tile-title a, .tile.is-hover .tile-title a { text-decoration: none; background-size: 100% 3px; }

/* Etykieta kategorii jako delikatna „pigułka” */

.tile-label { padding: 5px 10px 5px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--kc, var(--akcent)) 10%, #FFFFFF); transition: background .2s; }

.tile-label .label-mark { width: 8px; height: 8px; border-radius: 50%; }

.tile-label:hover { text-decoration: none; background: color-mix(in srgb, var(--kc, var(--akcent)) 18%, #FFFFFF); }

/* Hero: zaokrąglona karta z cieniem, płynny zoom zdjęcia */

.hero { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--cien-2); }

.hero .hero-media { border-radius: 0; box-shadow: none; overflow: hidden; }

.hero .hero-media img.ph-img { transition: transform .8s var(--ease); }

.hero:hover .hero-media img.ph-img { transform: scale(1.035); }

.art-hero:hover .hero-media img.ph-img { transform: none; }

.hero-panel .label { padding: 5px 12px 5px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--kc-on) 14%, transparent); align-self: flex-start; }

.hero-panel .label-mark { border-radius: 50%; }

.hero-pager button { border-radius: 50%; transition: background .2s, color .2s, transform .2s; }

.hero-pager button:active { transform: scale(.94); }

.hero-dots span { border-radius: 2px; transition: opacity .3s, width .3s; }

.hero-dots span.on { width: 40px; }

/* Nagłówek: przyklejony, półprzezroczysty z rozmyciem */

.hdr { position: sticky; top: 0; background: color-mix(in srgb, #FFFFFF 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }

.icon-btn { border-radius: var(--r-pill); transition: background .2s, color .2s; }

.icon-btn:hover { background: var(--tlo-sekcji); color: var(--tekst); }

.hdr-links a { position: relative; }

.hdr-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--akcent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }

.hdr-links a:hover { text-decoration: none; color: var(--tekst); }

.hdr-links a:hover::after { transform: scaleX(1); }

/* Menu kategorii: pasek rośnie płynnie, podmenu jako zaokrąglona karta z animacją */

.nav { border-top-color: var(--linia); }

.nav-link { transition: color .2s; }

.nav-link::before { border-radius: 0 0 3px 3px; transition: height .2s var(--ease), top .2s var(--ease); }

.sub { border: 1px solid var(--linia); border-top: 4px solid var(--kc); border-radius: 0 0 var(--r-m) var(--r-m); box-shadow: var(--cien-3); padding: 8px; }

.nav-item:hover > .sub, .nav-item.is-open > .sub, .nav-item:focus-within > .sub { animation: tp-pop .22s var(--ease); }

.sub a { border-radius: var(--r-s); transition: background .15s; }

.sub a:hover, .sub a.is-hover { text-decoration: none; background: var(--akcent-mgla); }

.sub .sub-all { border-top: 0; margin-top: 4px; }

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

/* Menu mobilne: wsuwanie, przyciemnione tło z rozmyciem */

.drawer { border-radius: 0 var(--r-l) var(--r-l) 0; animation: tp-slide .3s var(--ease); }

.drawer-bg { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: tp-fade .3s; }

.drawer-link::before { border-radius: 2px; }

.drawer-tg { transition: background .2s; }

.drawer-tg .ico-s { transition: transform .25s var(--ease); }

@keyframes tp-slide { from { transform: translateX(-100%); } to { transform: none; } }

@keyframes tp-fade { from { opacity: 0; } to { opacity: 1; } }

/* Przyciski, linki „więcej”, chipsy, paginacja – pigułki */

.btn { border-radius: var(--r-pill); transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }

.btn:hover, .btn.is-hover { transform: translateY(-1px); box-shadow: var(--cien-1); }

.btn:active { transform: translateY(0) scale(.98); }

.link-more { border-bottom: 0; background-image: linear-gradient(var(--akcent), var(--akcent)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: gap .25s var(--ease), color .2s; }

.link-more:hover { gap: 12px; }

.chip { border-radius: var(--r-pill); border-color: var(--linia); background: #FFFFFF; transition: background .2s, color .2s, border-color .2s; }

.chip:hover { background: var(--czern); border-color: var(--czern); }

.pag a, .pag span.pg { border-radius: var(--r-pill); transition: border-color .2s, background .2s, transform .2s; }

.pag a:hover { transform: translateY(-1px); background: var(--tlo-sekcji); }

.pag [aria-current="page"] { box-shadow: 0 6px 16px color-mix(in srgb, var(--akcent) 35%, transparent); }

/* Wyszukiwarka */

.search { border-radius: var(--r-pill); border-width: 1.5px; overflow: hidden; box-shadow: var(--cien-1); transition: box-shadow .2s; }

.search:focus-within { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--akcent) 25%, transparent), var(--cien-1); }

.search input { padding-left: 22px; }

.search button { border-radius: var(--r-pill); margin: 4px; min-height: 0; }

/* Znaczek AI: szkło + płynny dymek */

.ai { border-radius: var(--r-pill); background: rgba(17,17,17,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.45); transition: background .2s; }

.ai-tip { display: block; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; border-radius: var(--r-s); }

.ai:hover .ai-tip, .ai:focus .ai-tip, .ai.is-open .ai-tip { opacity: 1; visibility: visible; transform: none; }

/* Treść artykułu: karty i zaokrąglenia */

.toc { border-top: 0; border-radius: var(--r-m); box-shadow: inset 4px 0 0 var(--akcent); }

.toc a { transition: color .15s, text-decoration-color .15s; }

.dropcap { border-radius: var(--r-m); }

.tbl-box { border-radius: var(--r-m); border-color: var(--linia); box-shadow: var(--cien-1); }

.tbl tbody tr { transition: background .15s; }

.tbl tbody tr:hover td { background: var(--akcent-mgla); }

.quote { border-top: 0; border-bottom: 0; padding: 32px 36px 30px; border-radius: var(--r-l); background: var(--akcent-mgla); }

.quote-mark { top: 10px; right: 24px; color: var(--akcent-tekst); opacity: .35; }

.fig figcaption { border-bottom: 0; }

.video-box { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--cien-2); }

.video-play { box-shadow: var(--cien-2); transition: transform .25s var(--ease); }

.video-box:hover .video-play { transform: scale(1.08); }

.faq { border-top: 0; display: grid; gap: 10px; }

.faq-item { border: 1px solid var(--linia); border-radius: var(--r-m); padding: 0 20px; background: #FFFFFF; transition: box-shadow .2s, border-color .2s; }

.faq-item:hover { box-shadow: var(--cien-1); }

.faq-item[open] { border-color: transparent; box-shadow: var(--cien-2); }

.faq-ico { border-radius: 50%; transition: background .2s, color .2s, transform .25s var(--ease); }

.faq-item[open] .faq-ico { transform: rotate(180deg); }

.spons-end { border-radius: var(--r-m); border-width: 1.5px; }

.abox { border-top: 0; border-radius: var(--r-l); box-shadow: inset 0 4px 0 var(--czern); }

.tag-spons { border-radius: var(--r-pill); }

/* Panele, karty, sekcje */

.side-head { border-bottom-width: 1px; }

.tile--side { border-radius: var(--r-s); transition: background .2s; padding: 14px 10px; margin: 0 -10px; }

.tile--side:hover { background: var(--tlo-sekcji); }

.au-card { border-top: 0; border-radius: var(--r-l); box-shadow: inset 0 4px 0 var(--czern); transition: transform .25s var(--ease), box-shadow .25s; }

.au-card:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 var(--czern), var(--cien-2); }

.spons-sec { border-top: 0; }

.baner { border-radius: var(--r-s); }

.ai-note { border-radius: var(--r-s); border-width: 1.5px; }

.sec-head::before { border-radius: 0 0 4px 4px; }

.cat-bar { border-radius: 4px; }

.e404-num::after { border-radius: 8px; }

.smap-h2 { border-top-width: 3px; }

.ftr { border-top-width: 1px; border-top-color: var(--linia); background: linear-gradient(#FFFFFF, #FFFFFF) padding-box; }

/* Do góry: okrągły, pływający */

.totop { border-radius: 50%; border: 0; background: var(--czern); color: #FFFFFF; box-shadow: var(--cien-2); transition: transform .25s var(--ease), background .2s; }

.totop:hover { transform: translateY(-3px); background: var(--akcent); color: var(--na-akcencie); }

/* Pasek postępu czytania (artykuł) – CSS scroll-driven animation, bez JS */

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--akcent); transform-origin: 0 50%; transform: scaleX(0); }

@supports (animation-timeline: scroll()) {
  .read-progress { animation: tp-progress linear both; animation-timeline: scroll(root); }
}

@keyframes tp-progress { to { transform: scaleX(1); } }

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

@container tp (max-width: 760px) {
  .hero { border-radius: 0; box-shadow: none; }
  .quote { padding: 26px 20px 22px; }
  .faq-item { padding: 0 14px; }
  .tile-media { border-radius: var(--r-s); }
}

/* poprawka: kolor tekstu znaczka AI i przycisku „do góry” (nadpisywany przez .tp button) */

.tp .ai, .tp-c .ai { color: #FFFFFF; }

.tp .totop { color: #FFFFFF; }

.tp .totop:hover { color: var(--na-akcencie); }

/* v4: spójny rytm nagłówka kategorii/autora */

.tp .cat-head{padding:8px 0 40px}

.tp .cat-head .cat-bar{margin:0 0 24px}

.tp .cat-head .cat-h1{margin:0}

.tp .cat-head .cat-count{margin:12px 0 0;font-size:14px}

.tp .cat-head .chips{margin:24px 0 0}

@container tp (max-width:760px){
  .tp .cat-head{padding-bottom:28px}
  .tp .cat-head .cat-bar{margin-bottom:16px}
  .tp .cat-head .cat-count{margin-top:8px}
  .tp .cat-head .chips{margin-top:16px}
}

/* v5: kategoria – wszystkie kafelki równe (bez wyróżnionego 1. wpisu na 2 kolumny) */

@container tp (min-width: 1241px) {
  .layout-side .g3 > :first-child { grid-column: auto; }
  .layout-side .g3 > :first-child .tile-title { font-size: 20px; line-height: 1.28; font-stretch: 112%; }
}

/* v6: mniejsza przerwa pod podpisem zdjęcia w treści */

.tp .prose .fig + h2, .tp .prose figure + h2 { margin-top: 36px; }

.tp .prose .fig + h3, .tp .prose figure + h3, .tp .prose .fig + p, .tp .prose figure + p { margin-top: 24px; }

/* v7: zdjęcia w treści wpisu – oryginalne proporcje, bez przycinania */

.tp .prose .fig-media { aspect-ratio: auto; overflow: hidden; }

.tp .prose .fig-media img.ph-img { position: static; inset: auto; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }

/* v8: kolumna stron stałych wyrównana do lewej, jak nagłówek i breadcrumbs */

.tp .page-col { margin-left: 0; margin-right: auto; }

/* v9: bez pustej przestrzeni między nagłówkiem strony a treścią (regulamin, polityka) */

.tp .page-col { padding-top: 40px; }

.tp .page-col .legal > :first-child { margin-top: 0 !important; }

.tp .page-col .legal > h2:first-child { border-top: 0; padding-top: 0; }

@container tp (max-width: 760px) { .tp .page-col { padding-top: 28px; } }

/* ===== poprawki ===== */
/* rubryka — poprawki do arkusza z dostawy.
   =========================================================================
   TEN PLIK PISZEMY RĘCZNIE I TYLKO TEN.

   Pozostałe partiale w tym katalogu generuje narzedzia/wyciagnij-css.py
   z makieta/theme.css — poprawka wpisana w nie zniknie przy pierwszym
   ponownym wyciągnięciu. Tutaj trafia to, co w dostawie jest BŁĘDEM, a nie
   decyzją: rzeczy złapane pomiarem, których nie da się naprawić u źródła,
   bo makieta jest zamkniętą dostawą.

   Każda reguła niżej ma przy sobie liczbę, która ją uzasadnia. Bez liczby
   nie wchodzi — inaczej ten plik w pół roku stanie się drugim arkuszem.

   Wczytywany OSTATNI (patrz main.scss), żeby wygrywał z blokiem „v3”
   bez podbijania swoistości selektorów.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. LINKI REDAKCYJNE W SZUFLADZIE.

   Pomiar: `.hdr-links` dostaje `display:none` w `@container tp
   (max-width:760px)` (_zapytania.scss). Poniżej tej szerokości Redakcja,
   Mapa serwisu i Kontakt znikają z całej górnej części strony, a makieta
   zostawia `.drawer-foot` pusty — czytelnik na telefonie ma do nich
   dotrzeć przez stopkę, czyli przez całą stronę przewijania.

   W motywie siostrzanym to samo zgłoszono dwa razy („na mobilce wciąż
   jest widoczny pasek z linkami do redakcji itd”), bo za pierwszym razem
   poprawiłem szufladę, nie pasek.
   ------------------------------------------------------------------------- */

.drawer-foot-list { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.drawer-foot-list a { font-family: var(--f-tytul); font-weight: 500; font-size: 14px; text-decoration: none; color: var(--tekst); padding: 8px 0; display: inline-block; }
.drawer-foot-list a:hover { color: var(--akcent-tekst); text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------------------
   2. AKCENT MA WARTOŚĆ ZAPASOWĄ W ARKUSZU.

   Pomiar: w dostawie jedynymi definicjami `--akcent` były bloki
   `[data-portal="moto"|"dom"|"nk"]` — czyli dane trzech przykładowych
   serwisów. Motyw ich nie wypisuje (patrz narzedzia/wyciagnij-css.py,
   `dane_przykladowe`), a kolory bierze z panelu przez `rub_zmienne_css()`.

   Gdyby ten jeden wpis inline nie doszedł — wtyczka cache'ująca zjadła
   `wp_add_inline_style`, panel oddał pusty kolor, portal jeszcze nie
   skonfigurowany — `var(--akcent)` byłoby NIEZDEFINIOWANE. To nie znaczy
   „kolor domyślny”: `background: var(--akcent)` bez wartości jest nieprawidłowe
   i przeglądarka wyrzuca całą deklarację. Plakietki, kreski działów i przyciski
   zostają wtedy przezroczyste, a biały tekst na nich — niewidoczny.

   Wartości: fiolet RUB_AKCENT_DOMYSLNY (#651FFF, L = 0,109 → tekst biały,
   kontrast 6,3:1), ten sam, który w PHP stoi jako akcent domyślny.
   ------------------------------------------------------------------------- */

.tp, .tp-c {
  --akcent: #651FFF;
  --na-akcencie: #FFFFFF;
  --akcent-tekst: #651FFF;
  --akcent-2: #651FFF;
  --na-akcencie-2: #FFFFFF;
}

/* -------------------------------------------------------------------------
   3. ŚRODKOWA KOLUMNA MASZTU I ODNOŚNIK „PRZEJDŹ DO TREŚCI”.

   `.hdr-row` to siatka trzech kolumn; makieta trzyma logo w anonimowym
   `<div>` ze stylem inline (`display:flex; justify-content:center`),
   którego w motywie nie ma gdzie powtórzyć. Jedna klasa zamiast atrybutu.

   Odnośnik pomijający nawigację musi stać się WIDOCZNY przy fokusie —
   `.sr-only` bez tej reguły daje odnośnik, którego osoba używająca
   klawiatury nigdy nie zobaczy, czyli WCAG 2.4.1 bez efektu.
   ------------------------------------------------------------------------- */

.hdr-mid { display: flex; align-items: center; justify-content: center; position: relative; }

.skip:focus { position: static !important; width: auto; height: auto; clip: auto; display: inline-block; margin: 8px 16px; padding: 10px 16px; background: var(--czern); color: #FFFFFF; font-family: var(--f-tytul); font-weight: 600; font-size: 14px; text-decoration: none; }

/* -------------------------------------------------------------------------
   4. PRZYCISK „DO GÓRY” JEST PRZYPIĘTY DO OKNA, NIE DO KOŃCA DOKUMENTU.

   Pomiar: w dostawie `.totop` ma `position: absolute`, a najbliższym
   przodkiem z pozycjonowaniem jest `.tp` (`position: relative`), czyli
   w motywie element `body`. Przycisk ląduje więc na SAMYM DOLE dokumentu:
   na wpisie o 2000 słów czytelnik widzi go dopiero wtedy, gdy przewinął
   wszystko — a wtedy już nie potrzebuje skrótu na górę.

   W makiecie to nie przeszkadzało, bo każda strona podglądu jest wysoka
   na jeden ekran. Na portalu przeszkadza.
   ------------------------------------------------------------------------- */

.totop { position: fixed; }

/* -------------------------------------------------------------------------
   5. PASEK POSTĘPU CZYTANIA.

   Dokłada go skrypt (assets/js/scripts.js) tylko na wpisie. Arkusz
   dostawy nie ma dla niego reguły, bo makieta jest statyczna.

   `transform: scaleX()` zamiast `width`: zmiana szerokości przelicza
   układ przy każdej klatce przewijania, zmiana transformacji nie rusza
   układu wcale. Na telefonie to różnica między paskiem płynnym a paskiem
   skaczącym co kilka klatek.
   ------------------------------------------------------------------------- */

.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--akcent); transform: scaleX(0); transform-origin: left center; will-change: transform; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .read-bar { transition: none; }
}

/* -------------------------------------------------------------------------
   6. ATRYBUT `hidden` MUSI WYGRYWAĆ Z `display` Z ARKUSZA.

   Pomiar na podglądzie: karuzela pokazywała wszystkie trzy slajdy naraz,
   a przycisk „do góry” wisiał na ekranie od pierwszej chwili — mimo że
   oba elementy miały w znacznikach `hidden`.

   Powód jest w kaskadzie, nie w skrypcie. Reguła przeglądarki brzmi
   `[hidden] { display: none }` i ma najniższy priorytet; każda nasza
   reguła z `display: grid` albo `display: flex` ją nadpisuje. Element
   zostaje widoczny, a w DOM-ie wygląda na ukryty — czyli objaw, którego
   nie widać w narzędziach, tylko na ekranie.

   `!important` jest tu właściwym narzędziem, a nie obejściem: `hidden`
   znaczy „tego nie ma” i żadna reguła wyglądu nie ma prawa tego cofnąć.
   ------------------------------------------------------------------------- */

[hidden] { display: none !important; }
