@import url("/css/fonts.css");
/* MBnPS: motyw jasny „Północ” (kolory logo: granat, błękit, jasny błękit, limonka na chłodnym papierze)
   i ciemny „Żar” (indygo, pomarańcz, brąz, piasek). Pas nagłówka zawsze w kolorze z logo. */
:root {
  --bg: #F1F2EE; --surface: #FBFBF9; --surface-2: #E4E7EA; --ink: #1B2348; --muted: #555B72; --line: #D3D7DE;
  --primary: #2F5BBF; --primary-hover: #244AA0; --primary-ink: #FFFFFF;
  --accent: #56700A; --accent-soft: #E4EFB4; --rust: #405407;
  --blue: #3451A3; --sky: #87BBD7; --lime: #DAF561; --lime-ink: #132441;
  --band: #132441; --band-2: #1B2F56; --band-ink: #EAF0FA; --band-muted: #A4B6D4;
  --st-todo-bg: #FBE3D4; --st-todo: #9A4220; --st-wip-bg: #DDE6F8; --st-wip: #26479A; --st-done-bg: #E9F3C3; --st-done: #4B5A08;
  --sev-crit: #9B1C1C; --sev-crit-bg: #F8DEDA; --sev-high: #A34A16; --sev-high-bg: #FBE4D3; --sev-med: #776009; --sev-med-bg: #F5ECCB; --sev-low: #4A5873; --sev-low-bg: #E4E9F2;
  --info-bg: #E3EAF8; --metoda-bg: #EDF3D3; --uwaga-bg: #FBE4D6;
  --shadow: none;
  --show-light: block; --show-dark: none;
  /* krój domyślny: „antykwa” (Półtawski Nowy, polska antykwa + Lato Łukasza Dziedzica) */
  --f-display: "Poltawski Nowy", Georgia, "Times New Roman", serif;
  --f-body: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-ui: var(--f-body);
  --input-line: #7C8396;
  --w-heavy: 700; --w-bold: 600; --track-display: 0; --body-lh: 1.65; --body-size: 17px;
  --r: 4px; --r-sm: 3px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1B1D3A; --surface: #24274B; --surface-2: #2B2F58; --ink: #F2E9DC; --muted: #B9AB98; --line: #3B3F69;
  --primary: #E3804F; --primary-hover: #F09462; --primary-ink: #1B1D3A;
  --accent: #E3804F; --accent-soft: #4A3240; --rust: #C9673C;
  --blue: #C17150; --sky: #C9B08C; --lime: #E3804F; --lime-ink: #1B1D3A;
  --band: #14152E; --band-2: #1F2147; --band-ink: #F2E9DC; --band-muted: #B9AB98;
  --st-todo-bg: #4A3240; --st-todo: #F3B08B; --st-wip-bg: #2F3B66; --st-wip: #B8C7F0; --st-done-bg: #3C4326; --st-done: #DCE89A;
  --sev-crit: #F3A097; --sev-crit-bg: #4C2630; --sev-high: #F3B08B; --sev-high-bg: #4A3240; --sev-med: #E9CF7A; --sev-med-bg: #433A2A; --sev-low: #BCC6DA; --sev-low-bg: #33375E;
  --info-bg: #2B3360; --metoda-bg: #2F3826; --uwaga-bg: #4A3240;
  --shadow: none;
  --show-light: none; --show-dark: block; --input-line: #6E73A6; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #1B1D3A; --surface: #24274B; --surface-2: #2B2F58; --ink: #F2E9DC; --muted: #B9AB98; --line: #3B3F69;
  --primary: #E3804F; --primary-hover: #F09462; --primary-ink: #1B1D3A;
  --accent: #E3804F; --accent-soft: #4A3240; --rust: #C9673C;
  --blue: #C17150; --sky: #C9B08C; --lime: #E3804F; --lime-ink: #1B1D3A;
  --band: #14152E; --band-2: #1F2147; --band-ink: #F2E9DC; --band-muted: #B9AB98;
  --st-todo-bg: #4A3240; --st-todo: #F3B08B; --st-wip-bg: #2F3B66; --st-wip: #B8C7F0; --st-done-bg: #3C4326; --st-done: #DCE89A;
  --sev-crit: #F3A097; --sev-crit-bg: #4C2630; --sev-high: #F3B08B; --sev-high-bg: #4A3240; --sev-med: #E9CF7A; --sev-med-bg: #433A2A; --sev-low: #BCC6DA; --sev-low-bg: #33375E;
  --info-bg: #2B3360; --metoda-bg: #2F3826; --uwaga-bg: #4A3240;
  --shadow: none;
  --show-light: none; --show-dark: block; --input-line: #6E73A6; color-scheme: dark;
}

/* ---------- warianty kroju (Ustawienia → Krój pisma) ---------- */
:root[data-font="raport"] { --f-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; --f-body: "IBM Plex Serif", Georgia, serif; --f-ui: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; --w-heavy: 700; --w-bold: 600; --track-display: -.01em; --body-lh: 1.72; --body-size: 16.5px; }
:root[data-font="grotesk"] { --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; --w-heavy: 800; --w-bold: 700; --track-display: -.02em; --body-lh: 1.6; --body-size: 17px; }
:root[data-font="znak"] { --f-display: "Saira Semi Condensed", "Arial Narrow", sans-serif; --f-body: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif; --w-heavy: 800; --w-bold: 700; --track-display: -.005em; --body-lh: 1.65; --body-size: 16.5px; }

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--body-size)/var(--body-lh) var(--f-body); text-rendering: optimizeLegibility; font-kerning: normal; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: var(--track-display); }
h1 { font-weight: var(--w-heavy); font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-weight: var(--w-bold); font-size: clamp(26px, 3vw, 34px); }
h3 { font-weight: var(--w-bold); font-size: 21px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; z-index: 20; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .9em; }
.eyebrow { font: 500 15px/1.4 var(--f-body); color: var(--muted); margin-bottom: 10px; }
.eyebrow a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.ico { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -.17em; margin-right: .35em; }
.ico svg, .tool svg, .mnav summary svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* elementy zależne od motywu */
.logo-midnight, .lens-paper { display: var(--show-light); }
.logo-ember, .lens-ember { display: var(--show-dark); }
.t-sun { display: var(--show-dark); }
.t-moon { display: var(--show-light); }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 10px 20px; border-radius: 4px; border: 2px solid transparent; font: 600 15.5px/1.2 var(--f-ui); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn .ico { margin: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { filter: brightness(1.06); color: var(--lime-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.more .ico { margin: 0 0 0 .3em; transition: transform .15s; }
.more:hover .ico, a:hover > .more .ico { transform: translateX(3px); }

/* ---------- nagłówek ---------- */
.band { background: var(--band); color: var(--band-ink); }
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, .06); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--band); z-index: 11; }
.site-head { top: env(safe-area-inset-top, 0px); }
.head-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand .logo { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; max-width: 300px; }
.brand-name { font: var(--w-bold) 16.5px/1.2 var(--f-display); letter-spacing: 0; }
.brand-sub { font-size: 12px; color: var(--band-muted); margin-top: 3px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.main-nav a { color: var(--band-ink); text-decoration: none; font: 600 14.5px var(--f-ui); padding: 8px 10px; border-radius: 4px; white-space: nowrap; }
.main-nav a:hover { background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 8px 8px 0 0; }
.head-tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--band-ink); background: transparent; border: 0; cursor: pointer; padding: 10px; }
.tool:hover { background: rgba(255, 255, 255, .1); color: var(--band-ink); }
.tool > span { width: 100%; height: 100%; }
.tool > span svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.head-join { min-height: 40px; padding: 8px 18px; margin-left: 4px; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; cursor: pointer; color: var(--band-ink); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: rgba(255, 255, 255, .12); }
.mnav-panel { position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 90px); overflow-y: auto; background: var(--band-2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.mnav-panel a { color: var(--band-ink); text-decoration: none; padding: 11px 14px; border-radius: 8px; font-weight: 600; }
.mnav-panel a:hover, .mnav-panel a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.mnav-panel .btn { margin-top: 8px; }
@media (min-width: 1440px) { .brand-text { display: flex; } }
@media (max-width: 1180px) { .main-nav { display: none; } .mnav { display: block; } .head-tools { margin-left: auto; } }
@media (min-width: 1181px) and (max-width: 1400px) {
  .brand-sub { display: none; }
  .brand-text { max-width: 200px; }
  .brand-name { font-size: 14px; }
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .head-row { gap: 12px; }
  .head-join { padding: 8px 14px; }
}
@media (max-width: 520px) { .head-join { display: none; } .brand .logo { height: 46px; } .head-row { min-height: 66px; } .mnav-panel { top: 50px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.display { font: var(--w-heavy) clamp(40px, 5.6vw, 74px)/1.0 var(--f-display); letter-spacing: -.015em; }
.dots-off::before { content: ""; display: inline-block; width: 34px; height: 10px; margin-right: 10px; vertical-align: 1px; background: radial-gradient(circle at 5px 5px, var(--blue) 4.5px, transparent 5px), radial-gradient(circle at 17px 5px, var(--accent) 4.5px, transparent 5px), radial-gradient(circle at 29px 5px, var(--sky) 4.5px, transparent 5px); }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-art .lens { width: 100%; height: auto; transform: rotate(-4deg); }
.float-ticket { position: absolute; left: -6%; bottom: 8%; max-width: 270px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 14px 16px 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transform: rotate(-2.5deg); border: 1px solid var(--line); }
.float-ticket strong { font: var(--w-bold) 17px/1.2 var(--f-display); }
.ft-row { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { width: min(78%, 340px); } .float-ticket { left: auto; right: 0; bottom: 0; } }

/* ---------- sekcje ---------- */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section.alt { background: var(--surface-2); }
.section-tight { padding-top: 8px; padding-bottom: clamp(48px, 6vw, 80px); }
.section-title { font: var(--w-heavy) clamp(26px, 3vw, 36px)/1.1 var(--f-display); margin-bottom: 22px; }
.section-title.gap { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head .section-title { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-side { position: static; } }
.empty { color: var(--muted); padding: 18px 0; }

/* filary */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 24px; background: var(--surface); border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.pillar p { color: var(--muted); flex: 1; }
.pillar .more { color: var(--primary); }
.pillar-mark { width: 54px; height: 54px; border-radius: 50%; position: relative; }
.pm-1 { background: radial-gradient(circle at 30% 34%, var(--blue) 0 9px, transparent 10px), radial-gradient(circle at 72% 30%, var(--accent) 0 7px, transparent 8px), radial-gradient(circle at 52% 74%, var(--sky) 0 11px, transparent 12px); }
.pm-2 { background: conic-gradient(var(--blue) 0 28%, var(--sky) 0 52%, var(--accent) 0 78%, var(--blue) 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }
.pm-3 { background: conic-gradient(var(--accent) 0 35%, var(--sky) 0 62%, var(--blue) 0); -webkit-mask: radial-gradient(circle at 42% 42%, transparent 11px, #000 12px, #000 18px, transparent 19px); mask: radial-gradient(circle at 42% 42%, transparent 11px, #000 12px, #000 18px, transparent 19px); }
.pm-3::after { content: ""; position: absolute; width: 16px; height: 7px; background: var(--accent); border-radius: 4px; right: 4px; bottom: 9px; transform: rotate(45deg); }
@media (max-width: 880px) { .pillar-grid { grid-template-columns: 1fr; } }

/* statystyki */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; }
.stats b { font: var(--w-heavy) 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- bilety (baza badań) ---------- */
.tickets { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket-link { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ticket-link:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.ticket-code { font: 500 13px var(--f-mono); color: var(--accent); letter-spacing: .02em; }
.ticket-link > .ticket-code { align-self: stretch; display: flex; align-items: center; justify-content: center; border-right: 2px dashed var(--line); padding: 14px 8px; }
.ticket-main { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; min-width: 0; }
.ticket-title { font: var(--w-bold) 18px/1.25 var(--f-display); margin: 0; display: block; }
.ticket-sub { font-size: 13.5px; color: var(--muted); }
.ticket-claim { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 2px; }
.ticket-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 16px 14px 0; max-width: 260px; }
@media (max-width: 720px) {
  .ticket-link { grid-template-columns: 74px minmax(0, 1fr); }
  .ticket-tags { grid-column: 2; justify-content: flex-start; padding: 0 18px 14px; max-width: none; }
  .ticket-link > .ticket-code { grid-row: span 2; font-size: 12px; }
}
.tracker-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; margin-bottom: 16px; }
.tracker-count { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 880px) { .tracker-tools { grid-template-columns: 1fr 1fr; } .tracker-tools .search { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tracker-tools { grid-template-columns: 1fr; } }

/* pigułki i tagi */
.pill { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--f-body); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill.mwe { font: 500 12px/1 var(--f-mono); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill-quiet { background: var(--surface-2); color: var(--muted); }
.st-do-omowienia { background: var(--st-todo-bg); color: var(--st-todo); }
.st-w-trakcie { background: var(--st-wip-bg); color: var(--st-wip); }
.st-omowione { background: var(--st-done-bg); color: var(--st-done); }
.diff-latwy, .diff-sredni, .diff-trudny { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.diff-trudny { border-color: var(--sev-crit); color: var(--sev-crit); }
.sev-crit { background: var(--sev-crit-bg); color: var(--sev-crit); }
.sev-high { background: var(--sev-high-bg); color: var(--sev-high); }
.sev-med { background: var(--sev-med-bg); color: var(--sev-med); }
.sev-low { background: var(--sev-low-bg); color: var(--sev-low); }
.tag { display: inline-block; font: 600 12px/1.2 var(--f-ui); padding: 4px 9px; border-radius: 3px; background: var(--surface-2); color: var(--ink); }
.tag-quiet { background: var(--surface-2); color: var(--muted); }
.tag-warn { background: var(--sev-med-bg); color: var(--sev-med); }
.tag-narzedzie { background: var(--st-wip-bg); color: var(--st-wip); }
.tag-warsztat { background: var(--st-done-bg); color: var(--st-done); }
.tag-cwiczenie { background: var(--sev-high-bg); color: var(--sev-high); }

/* ---------- karty ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card-body h3 { font-size: 21px; }
.card-body p:last-child { color: var(--muted); font-size: 15px; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-lab { border-top: 4px solid var(--sky); }
.ring-pattern { position: relative; overflow: hidden; }
.ring-pattern span { position: absolute; width: 46%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); border-radius: 50%;
  background: conic-gradient(var(--blue) 0 26%, var(--accent) 0 48%, var(--sky) 0 74%, var(--blue) 0);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 72%, transparent 73%); mask: radial-gradient(circle, transparent 56%, #000 57%, #000 72%, transparent 73%); opacity: .9; }
.ring-pattern::before, .ring-pattern::after { content: ""; position: absolute; border-radius: 50%; width: 7%; aspect-ratio: 1; }
.ring-pattern::before { background: var(--blue); left: 24%; top: 16%; }
.ring-pattern::after { background: var(--accent); right: 24%; top: 18%; }
.card:nth-child(3n+2) .ring-pattern span { --rot: 120deg; }
.card:nth-child(3n) .ring-pattern span { --rot: 240deg; }

/* ---------- wydarzenia ---------- */
.events { display: flex; flex-direction: column; gap: 12px; }
.event-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.event-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-main h3 a { color: var(--ink); text-decoration: none; }
.event-main h3 a:hover { color: var(--primary); }
.events-past .event-row { background: transparent; }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; padding: 10px 4px; border-radius: 10px; background: var(--band); color: var(--band-ink); line-height: 1; }
.datebox .d { font: var(--w-heavy) 34px/1 var(--f-display); }
.datebox .m { font: var(--w-bold) 14px var(--f-display); color: var(--lime); margin-top: 4px; }
.datebox .y { font-size: 11px; color: var(--band-muted); margin-top: 4px; }
.event-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.event-head > div { display: flex; flex-direction: column; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
@media (max-width: 560px) { .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; } .datebox { width: 64px; } .datebox .d { font-size: 26px; } .event-head { grid-template-columns: 1fr; } }

/* ---------- ludzie ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 40px; }
.people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (max-width: 620px) { .people-2 { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.person h3 { font-size: 20px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.avatar-i { display: grid; place-items: center; font: var(--w-heavy) 24px var(--f-display); color: var(--band-ink); background: radial-gradient(circle at 70% 25%, var(--accent) 0 7px, transparent 8px), var(--band); box-shadow: inset 0 0 0 4px var(--band), inset 0 0 0 7px var(--sky); }
.role { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 2px; }
.bio { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.person-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-top: 6px; }

/* ---------- nagłówki podstron i treść ---------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-head .wrap.event-head { display: grid; }
.byline { color: var(--muted); font-size: 15px; }
.page-cover { display: block; width: 100%; border-radius: var(--r); margin-bottom: 32px; aspect-ratio: 21 / 9; object-fit: cover; }
.prose-wrap { padding-bottom: clamp(48px, 6vw, 80px); }
.prose { max-width: 720px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; display: flex; flex-direction: column; gap: 22px; }
.prose > h2 { font-size: clamp(25px, 2.6vw, 31px); margin-top: 18px; }
.prose > h3 { margin-top: 8px; }
.rt { display: flex; flex-direction: column; gap: 14px; }
.rt ul, .rt ol, .prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.rt h3 { font-size: 22px; }
.rt mark { background: var(--accent-soft); color: inherit; padding: 0 .15em; border-radius: 3px; }
.lead-in { font-size: 20px; line-height: 1.6; color: var(--muted); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fig img { border-radius: var(--r-sm); width: 100%; }
.fig-small { max-width: 420px; align-self: center; }
.fig-wide { margin-left: clamp(-120px, -8vw, 0px); margin-right: clamp(-120px, -8vw, 0px); }
.fig-full { margin-left: calc(50% - 50vw + 20px); margin-right: calc(50% - 50vw + 20px); }
.fig figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .fig-wide, .fig-full { margin-left: 0; margin-right: 0; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); display: block; }
.embed-box { position: relative; aspect-ratio: 16 / 9; }
.embed-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r-sm); }
.pull { margin: 6px 0; padding: 6px 0 6px 26px; border-left: 5px solid var(--accent); }
.pull p { font: 600 clamp(21px, 2.2vw, 26px)/1.35 var(--f-display); }
.pull cite { display: block; margin-top: 8px; font-style: normal; color: var(--muted); font-size: 14px; }
.callout { padding: 18px 22px; border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.callout-info { background: var(--info-bg); }
.callout-metoda { background: var(--metoda-bg); }
.callout-uwaga { background: var(--uwaga-bg); }
.callout-title { font: var(--w-bold) 18px var(--f-display); }
.callout ul { margin: 0; padding-left: 1.2em; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 680px) { .cols2 { grid-template-columns: 1fr; } }
.sep { border: 0; height: 10px; margin: 10px 0; background: radial-gradient(circle at 50% 50%, var(--accent) 3px, transparent 4px) center / 22px 10px repeat-x; width: 66px; align-self: center; }
.preview-bar { background: var(--sev-med-bg); color: var(--sev-med); font-weight: 600; padding: 10px 20px; border-radius: 0 0 10px 10px; }

/* strona badania */
.study-body { display: flex; flex-direction: column; gap: 28px; padding-bottom: 72px; font-size: 17px; }
.study-body section { display: flex; flex-direction: column; gap: 12px; }
.study-body h2 { font-size: 26px; }
.claim { margin: 0; background: var(--band); color: var(--band-ink); border-radius: var(--r); padding: 22px 26px; }
.claim-label { font: 600 14px var(--f-body); color: var(--lime); margin-bottom: 8px; }
.claim p:last-child { font: 600 clamp(20px, 2.2vw, 25px)/1.35 var(--f-display); }
.qlist { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.issues li { display: grid; grid-template-columns: 92px 84px minmax(0, 1fr); justify-items: start; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15.5px; }
@media (max-width: 560px) { .issues li { grid-template-columns: auto 1fr; } .issues li p { grid-column: 1 / -1; } }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.links li::before { content: "↗"; color: var(--accent); margin-right: 8px; }
.mwe-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mwe-list div { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; background: var(--surface); border-radius: var(--r-sm); padding: 9px 12px; border: 1px solid var(--line); }
.mwe-list dt { font: 500 12.5px var(--f-mono); color: var(--accent); }
.mwe-list dd { margin: 0; font-size: 14.5px; }
.mwe-n { font: var(--w-bold) 16px var(--f-display) !important; color: var(--muted); }
@media (max-width: 680px) { .mwe-list { grid-template-columns: 1fr; } }

/* nawigacja tagów */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font: var(--w-bold) 18px/1.25 var(--f-display); background: var(--surface); }
.prevnext a span { font: 600 12px var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.prevnext .pn-next { text-align: right; grid-column: 2; }

/* ---------- formularze ---------- */
input, select, textarea { font: 400 16px var(--f-ui); color: var(--ink); background: var(--surface); border: 1.5px solid var(--input-line); border-radius: var(--r); padding: 11px 14px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.fine { font-size: 13px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.notice.ok { background: var(--st-done-bg); color: var(--st-done); }
.notice.err { background: var(--sev-crit-bg); color: var(--sev-crit); }
.search { position: relative; display: flex; align-items: center; gap: 10px; }
.search > svg, .search > .ico { position: absolute; left: 14px; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { padding-left: 42px; }
.search.big input { font-size: 18px; min-height: 54px; }
.narrow-left { max-width: 820px; margin-left: auto; margin-right: auto; }
.results { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.results a { font: var(--w-bold) 19px var(--f-display); text-decoration: none; }

/* ---------- newsletter i stopka ---------- */
.news-band { position: relative; overflow: hidden; }
.news-band-off::after { content: ""; position: absolute; width: 360px; aspect-ratio: 1; right: -90px; top: -120px; border-radius: 50%; background: conic-gradient(var(--blue) 0 30%, var(--lime) 0 55%, var(--sky) 0 80%, var(--blue) 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%); mask: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%); opacity: .35; pointer-events: none; }
.news-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.news-copy { display: flex; flex-direction: column; gap: 10px; }
.news-copy .eyebrow { color: var(--lime); }
.news-copy p:last-child { color: var(--band-muted); }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: var(--band-ink); min-height: 50px; }
.nl-row input::placeholder { color: var(--band-muted); }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--band-muted); line-height: 1.5; }
.nl-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--lime); }
@media (max-width: 820px) { .news-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nl-row { flex-direction: column; } }
.site-foot { background: var(--surface-2); padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .logo-round { width: 84px; height: 84px; border-radius: 50%; background: var(--band); padding: 6px; flex: none; }
.foot-name { font: var(--w-bold) 18px/1.25 var(--f-display); margin-bottom: 6px; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--primary); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; color: var(--muted); font-size: 13.5px; }
.foot-bottom a { color: inherit; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- menu: Działania koła ---------- */
.nav-dd { position: relative; display: flex; }
.main-nav .nav-dd-top { display: inline-flex; align-items: center; gap: 7px; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s; }
.nav-dd:hover .caret, .nav-dd:focus-within .caret { transform: translateY(1px) rotate(225deg); }
.nav-dd-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 330px; padding: 8px; background: var(--band-2); border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 30; }
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .nav-dd-panel a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; white-space: normal; }
.main-nav .nav-dd-panel a b { font-weight: 700; font-size: 14.5px; }
.main-nav .nav-dd-panel a span { font-weight: 500; font-size: 12.5px; color: var(--band-muted); line-height: 1.35; }
.main-nav .nav-dd-panel a:hover { background: rgba(255, 255, 255, .08); }
.main-nav .nav-dd-panel a[aria-current="page"] { background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--lime); border-radius: 10px; }
.main-nav .nav-dd-panel .nav-dd-all { flex-direction: row; align-items: center; gap: 6px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 10px 10px; color: var(--lime); font-size: 13.5px; }
.nav-dd-all .ico { width: 16px; height: 16px; }
.mnav-group { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mnav-panel .mnav-group-title { font-size: 13px; color: var(--band-muted); padding: 8px 14px 4px; }
.mnav-group a:not(.mnav-group-title) { padding-left: 26px; }

/* ---------- działania koła ---------- */
.pillars .pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .pillars .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pillars .pillar-grid { grid-template-columns: 1fr; } }
.act-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.act-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.act-count { margin-right: auto; font-weight: 600; }
.act-grid .more { display: flex; align-items: center; gap: 6px; }
.pillar-new { border-style: dashed; background: transparent; }
.pm-4 { background:
  linear-gradient(var(--blue), var(--blue)) 9px 26px / 9px 20px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 22px 12px / 9px 34px no-repeat,
  linear-gradient(var(--sky), var(--sky)) 35px 20px / 9px 26px no-repeat; border-radius: 0; }
.pm-5 { background: radial-gradient(circle at 50% 50%, var(--accent) 0 8px, transparent 9px), conic-gradient(var(--blue) 0 25%, transparent 0 50%, var(--sky) 0 75%, transparent 0); }
.pm-new { border: 2px dashed var(--line); background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px); }
.pm-new::before, .pm-new::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--muted); transform: translate(-50%, -50%); }
.pm-new::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ---------- konferencje ---------- */
.tag-part-organizujemy { background: var(--st-done-bg); color: var(--st-done); }
.tag-part-wystapienie { background: var(--st-wip-bg); color: var(--st-wip); }
.tag-part-udzial { background: var(--surface-2); color: var(--muted); }
.tag-part-patronat { background: var(--st-todo-bg); color: var(--st-todo); }
.datebox-tba .d { opacity: .6; }
.cfp-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 11px; border-radius: 3px; background: var(--st-todo-bg); color: var(--st-todo); font-weight: 600; font-size: 13px; }
.cfp-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.talks { padding-left: 1.1em; }
.talks li { margin: .4em 0; }

/* ---------- korekta: mniej „szablonowo” ---------- */
.pillar { background: none; border: 0; border-top: 3px solid var(--ink); border-radius: 0; padding: 18px 2px 4px; box-shadow: none; }
.pillar:hover { transform: none; box-shadow: none; }
.pillar:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.pillar-new { border-top: 3px dashed var(--muted); }
.pillar .pillar-mark { transform: scale(.8); transform-origin: left center; }
.card { box-shadow: none; }
.card:hover { box-shadow: none; transform: none; }
.card .card-link:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.hero .display { max-width: 15ch; }
@media (max-width: 1260px) { .brand-text { max-width: 260px; } }
@media (max-width: 620px) { .brand-name { font-size: 14px; } .brand-sub { display: none; } .brand-text { max-width: 190px; } }

/* ---------- dostępność ---------- */
.band :focus-visible { outline-color: var(--lime); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nav-dd.closed .nav-dd-panel { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
a.float-ticket { text-decoration: none; transition: border-color .15s; }
a.float-ticket:hover { border-color: var(--primary); }
a.float-ticket:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.ft-label { font-size: 12.5px; color: var(--muted); }
.a11y-decl time, .a11y-decl [id^="a11y-data"] { font-weight: 600; }

/* ---------- wariant tła: papier gazetowy (tylko tryb jasny) ---------- */
:root { --paper-img: none; }
:root[data-paper="gazeta"][data-theme="light"] {
  --bg: #EADFC2; --surface: #F5EEDC; --surface-2: #E1D3AE; --line: #CDBE96; --muted: #4B4F63;
  --primary: #1F4496; --primary-hover: #183A80; --accent: #4C6309; --accent-soft: #DDE6A8;
  --paper-img: url(/img/paper-gazeta.webp); --input-line: #7A6F52;
}
@media (prefers-color-scheme: light) {
  :root[data-paper="gazeta"]:not([data-theme="dark"]) {
    --bg: #EADFC2; --surface: #F5EEDC; --surface-2: #E1D3AE; --line: #CDBE96; --muted: #4B4F63;
    --primary: #1F4496; --primary-hover: #183A80; --accent: #4C6309; --accent-soft: #DDE6A8;
    --paper-img: url(/img/paper-gazeta.webp); --input-line: #7A6F52;
  }
}
body { background-image: var(--paper-img); background-size: 640px 640px; }
.section.alt { background-color: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ---------- poprawki po testach (dostępność, UX, błędy) ---------- */
body { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand-text { min-width: 0; max-width: 240px; }
.brand-name { font-size: 15.5px; }
.head-row { gap: 16px; }
.mnav-search { display: none; }
@media (max-width: 600px) {
  .head-row { gap: 8px; }
  .head-join, .head-tools > .tool[href="/szukaj"] { display: none; }
  .mnav-search { display: block; }
  .brand .logo { height: 42px; }
  .brand-text { max-width: 200px; }
  .brand-name { font-size: 12.5px; line-height: 1.25; }
}
@media (max-width: 360px) { .brand-text { display: none; } }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.band input[type="checkbox"]:focus-visible, .nl-row input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.nl-row input:focus { border-color: var(--lime); }
.callout a { color: var(--ink); text-decoration-thickness: 1.5px; }
.eyebrow a { text-decoration-color: currentColor; }
.link-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom { border-top: 0; position: relative; }
.foot-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: max(20px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); }
.nl-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--band-ink); }
@media (max-width: 560px) { .issues li { grid-template-columns: auto auto; } .issues li p { grid-column: 1 / -1; } }
.f-lab { display: flex; flex-direction: column; gap: 5px; font: 600 13.5px var(--f-ui); color: var(--muted); }
.tracker-tools { align-items: end; }
.tracker-tools .search { flex-direction: column; align-items: stretch; }
.tracker-tools .search > .ico { top: auto; bottom: 14px; }

/* ---------- baza badań: karty jak wycinki prasowe ----------
   Papier z gry Pragotronic tylko tu: badanie to zawsze „to, co podano w gazecie”.
   Wycinek ma własne, jasne tokeny w obu motywach (jak kartka leżąca na ciemnym biurku). */
.ticket, .claim-wrap { filter: drop-shadow(0 1px 1px rgba(20, 22, 40, .18)) drop-shadow(0 4px 10px rgba(20, 22, 40, .10)); }
.ticket-link, .claim {
  --ink: #1B2348; --muted: #474B5E; --line: rgba(27, 35, 72, .28); --accent: #4C6309; --surface: #F4ECD8; --surface-2: #E1D3AE;
  --st-todo-bg: #F6D9C4; --st-todo: #8A3A1B; --st-wip-bg: #D8E1F5; --st-wip: #22418C; --st-done-bg: #E2EDB6; --st-done: #435107;
  --sev-crit: #8E1A1A; --sev-crit-bg: #F3D6D1; --sev-high: #933F12; --sev-high-bg: #F6DCC8; --sev-med: #6A5507; --sev-med-bg: #EFE4BE; --sev-low: #414E68; --sev-low-bg: #DDE3EE;
  background: #EADFC2 url(/img/paper-gazeta.webp) center / 640px 640px; color: var(--ink); border: 0; border-radius: 0;
}
.ticket-link { clip-path: polygon(0 0, 100% 0, 100% 100%, 92% calc(100% - 2px), 83% 100%, 71% calc(100% - 3px), 60% 100%, 47% calc(100% - 2px), 35% 100%, 22% calc(100% - 3px), 11% 100%, 0 calc(100% - 2px)); transition: transform .15s; }
.ticket:nth-child(3n+2) .ticket-link { clip-path: polygon(0 1px, 30% 0, 64% 2px, 100% 0, 100% 100%, 88% calc(100% - 3px), 75% 100%, 62% calc(100% - 1px), 50% 100%, 37% calc(100% - 3px), 24% 100%, 12% calc(100% - 2px), 0 100%); }
.ticket:nth-child(3n) .ticket-link { clip-path: polygon(0 0, 45% 2px, 100% 0, calc(100% - 1px) 50%, 100% 100%, 90% calc(100% - 2px), 78% 100%, 66% calc(100% - 3px), 52% 100%, 40% calc(100% - 2px), 27% 100%, 14% calc(100% - 3px), 0 100%); }
.ticket-link:hover { border: 0; box-shadow: none; transform: translateY(-2px); }
.ticket-link:hover .ticket-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .15em; }
.ticket-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ticket-title { font-size: 19.5px; letter-spacing: -.005em; }
.ticket-link > .ticket-code { border-right: 1px dashed var(--line); color: #4C6309; }
.ticket-claim { color: #3A3D4D; }
/* twierdzenie na stronie badania: nagłówek z wycinka */
.claim { clip-path: polygon(0 2px, 18% 0, 41% 3px, 63% 0, 85% 2px, 100% 0, 100% 100%, 86% calc(100% - 3px), 70% 100%, 55% calc(100% - 2px), 38% 100%, 21% calc(100% - 3px), 0 100%); padding: 24px 28px 26px; }
.claim-label { color: var(--muted); font: 600 13.5px var(--f-ui); }
.claim p:last-child { color: var(--ink); font-weight: var(--w-heavy); }
@media (prefers-reduced-motion: reduce) { .ticket-link:hover { transform: none; } }

/* ---------- projekty badawcze: tracker etapów ---------- */
.pillars .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .pillars .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pillars .pillar-grid { grid-template-columns: 1fr; } }
.pm-6 { background: radial-gradient(circle at 32% 36%, var(--blue) 0 8px, transparent 9px), radial-gradient(circle at 68% 36%, var(--sky) 0 8px, transparent 9px), radial-gradient(ellipse 14px 9px at 32% 76%, var(--blue) 0 99%, transparent 100%), radial-gradient(ellipse 14px 9px at 68% 76%, var(--sky) 0 99%, transparent 100%); }
.pm-7 { background: radial-gradient(circle at 36% 50%, transparent 0 11px, var(--blue) 12px 15px, transparent 16px), radial-gradient(circle at 64% 50%, transparent 0 11px, var(--accent) 12px 15px, transparent 16px); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.project h3 { font-size: 22px; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.project-q { margin: 0; color: var(--muted); }
.project-last { margin: 0; font-size: 15px; }
.stepper { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: st; }
.stepper li { position: relative; display: flex; flex-direction: column; gap: 6px; font: 600 13px/1.3 var(--f-ui); color: var(--muted); padding-right: 6px; }
.stepper li::before { content: ""; position: absolute; top: 7px; left: 16px; right: 0; height: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: var(--primary); }
.stepper .dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--input-line); background: var(--surface); }
.stepper li.done .dot { background: var(--primary); border-color: var(--primary); }
.stepper li.now .dot { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--primary); }
.stepper li.now { color: var(--ink); }
.stepper li.done { color: var(--ink); }
.stepper.compact { margin: 4px 0 2px; }
.stepper.compact .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stepper.compact li.now .lbl { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
@media (max-width: 620px) {
  .stepper:not(.compact) { grid-template-columns: 1fr; gap: 10px; }
  .stepper:not(.compact) li { flex-direction: row; align-items: center; gap: 10px; }
  .stepper:not(.compact) li::before { display: none; }
}
.facts-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 24px; }
.facts-dl dt { font-weight: 700; }
.facts-dl dd { margin: 0; }
@media (max-width: 520px) { .facts-dl { grid-template-columns: 1fr; gap: 2px; } .facts-dl dd { margin-bottom: 8px; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline time { font: 600 14px var(--f-ui); color: var(--muted); }
.timeline p { margin: 2px 0 0; }

/* ---------- formularze: panel badawczy i współpraca ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.checks { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 14px; }
.checks legend { font-weight: 700; padding: 0 6px; }
.form label.check, .checks label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.h3 { font-size: 22px; margin-bottom: 10px; }
.plain-steps { padding-left: 1.2em; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.plain-list { padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.prose ol.stepper, ol.stepper { display: grid; list-style: none; padding: 0; margin: 10px 0 28px; }
.prose ol.stepper li { margin: 0; padding-left: 0; }
.prose ol.timeline { padding-left: 0; list-style: none; }
.prose ol.timeline li { margin: 0; }
.projects + .callout, .projects + .section-title { margin-top: 32px; }
@media (min-width: 621px) { .prose ol.stepper:not(.compact) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Poprawka typografii nagłówków - brak dzielenia wyrazów (np. spo-łeczne) i równe łamanie linii */
h1, h2, h3, h4, .hero h1, .hero-title {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

/* Lekkie dopasowanie rozmiaru H1 w sekcji Hero, aby "problemy społeczne" mieściło się w jednym wierszu */
.hero h1, .hero-title, main > section:first-of-type h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  max-width: 18ch;
}

/* === Poprawki UI/UX: typografia nagłówków, oddech w pasku górnym i spójne CTA === */

/* 1. Wyłączenie dzielenia wyrazów (brak "spo-łeczne") i równe łamanie nagłówka Hero */
h1, h2, h3, h4, .display {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal;
  word-break: normal;
}

.hero .display {
  font-size: clamp(2rem, 3.15vw, 2.85rem);
  line-height: 1.12;
  max-width: 19ch;
  text-wrap: balance;
}

/* 2. Więcej oddechu w górnym pasku nawigacji przy logo i 5 liniach tekstu */
.site-head .head-row {
  padding-block: 0.75rem;
  min-height: 5.25rem;
  align-items: center;
}

.site-head .brand {
  gap: 0.85rem;
  padding-block: 0.2rem;
}

.site-head .brand-text {
  line-height: 1.25;
  gap: 0.22rem;
}

/* 3. Spójny główny przycisk CTA w sekcji Hero z przyciskiem "Dołącz" w nagłówku */
.hero .btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-weight: 700;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: color-mix(in srgb, var(--lime) 86%, var(--ink));
  color: var(--lime-ink);
}
