/* Hallmark · shape: app screen · genre: atmospheric · theme: Refract (by request) · job: join · draw: manual
 * hero: Stage, head left on plain paper, the top-5 table as a clear panel in the water light · nav: edge-aligned bar, mark and one action · footer: mast, the mark over three links · imagery: none (the product itself) · signature: the ranking lanes lying in the caustic light · refract: water/pool
 * brand: BaitNow (spec 2026-11-04) · axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E2 S3 R2 V3 · weakest: V (one screen is a form), kept the water on the auth cards and the hero only, never two lit grounds in a row */
/* waive: 47b (brand mark is the client's own PNG, not redrawn) · waive: F4 (the second hero action is the theme's clear secondary pill, not a filled primary) */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- podstawy ---------- */
body { color: var(--color-ink-2); display: flex; flex-direction: column; min-height: 100dvh; }
.main { flex: 1 0 auto; }
h1, h2, h3, .h2, .h3 { color: var(--color-ink); }
.h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.08; }
.h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.15; margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
h1 { font-size: var(--text-display-s); }
.lead { color: var(--color-muted); margin-top: var(--space-sm); }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.nowrap { white-space: nowrap; }
a { color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-accent); }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-inner); }
.skip:focus-visible { top: var(--space-md); }
.container { padding-inline: var(--gutter); }
.section { padding-block: var(--space-2xl) var(--section-gap-s); }
.section--narrow { max-width: 760px; }
.section--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.section + .section, .band + .section { padding-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); align-items: center; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.list { padding-left: 1.2em; display: grid; gap: var(--space-xs); }
.prose { white-space: normal; line-height: 1.6; }
.prose p { max-width: 65ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-2xl); align-items: start; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-card), var(--edge-btn); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--clear { background: color-mix(in oklab, var(--color-light) 82%, transparent); color: var(--color-ink); box-shadow: var(--edge-light), var(--shadow-card), 0 0 0 1px var(--color-rule); }
.btn--clear:hover { background: var(--color-light); color: var(--color-accent); }
.btn--sm { min-height: var(--control-h-sm); padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--wide { width: 100%; }
.link-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-accent); font: 500 var(--text-sm)/1 var(--font-body); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; border-radius: 4px; position: relative; }
.link-btn::before { content: ""; position: absolute; inset: -6px 0; }
.link-btn:hover { color: var(--color-accent-hi); }
.link-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.link-btn--danger { color: var(--color-error); }
.link-btn--danger:hover { color: var(--color-error); text-decoration-thickness: 2px; }
.inline-form { display: inline; }

/* ---------- pasek gorny ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: var(--tracking-display); }
.menu__list { display: flex; align-items: center; gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.menu__list a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2xs); text-decoration: none; color: var(--color-ink-2); font-weight: 500; font-size: var(--text-sm); border-bottom: 2px solid transparent; }
.menu__list a:not(.btn):hover { color: var(--color-accent); }
.menu__list a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.menu__btn { min-height: 44px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; border-radius: 4px; }
.menu__btn:hover { color: var(--color-accent); }
.menu__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-btn { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; min-width: 44px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; border-radius: var(--radius-inner); }
.menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-btn__bars { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-short) var(--ease-out); }
.menu-btn__bars::before { transform: translateY(-6px); }
.menu-btn__bars::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: rotate(-45deg); }

/* ---------- komunikaty ---------- */
.flashes { display: grid; gap: var(--space-xs); padding-top: var(--space-lg); }
.flash { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-accent-soft); color: var(--color-ink); font-size: var(--text-sm); box-shadow: 0 0 0 1px var(--color-rule); max-width: none; }
.flash--success { background: var(--color-success-soft); }
.flash--error { background: var(--color-error-soft); }

/* ---------- swiatlo wody ---------- */
.light { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 28%, var(--color-ink) 60%); mask-image: linear-gradient(to right, transparent 28%, var(--color-ink) 60%); }
.light::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--color-tile) 1px, transparent 1px), linear-gradient(to bottom, var(--color-tile) 1px, transparent 1px); background-size: 56px 56px; }
.light__canvas { width: 100%; height: 100%; display: block; }
.hero { position: relative; background: var(--color-paper); }
.hero .light { -webkit-mask-image: linear-gradient(to right, transparent 34%, var(--color-ink) 62%); mask-image: linear-gradient(to right, transparent 34%, var(--color-ink) 62%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; min-height: min(78dvh, 720px); padding-block: var(--space-2xl); }
.hero__text h1 { max-width: 14ch; }
.hero__note { margin-top: var(--space-md); font-size: var(--text-sm); }
.clear { background: color-mix(in oklab, var(--color-light) 82%, transparent); border-radius: var(--radius-card); box-shadow: var(--edge-light), var(--shadow-card); }
.hero__panel { position: relative; padding: var(--space-lg); box-shadow: var(--edge-light), var(--shadow-cast); max-width: 520px; justify-self: end; width: 100%; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-sm); }
.panel__title { font-size: var(--text-xl); margin: 0; }
.panel__more { font-size: var(--text-sm); color: var(--color-accent); }
.lanes { list-style: none; margin: 0; padding: 0; }
.lane { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); min-height: 56px; }
.lane:first-child { border-top: 0; }
.lane__pos { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; color: var(--color-ink); }
.lane__name { display: grid; color: var(--color-ink); font-weight: 500; }
.lane__name small { font-size: var(--text-xs); color: var(--color-muted); font-weight: 400; }
.lane__pts { font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.lane--me { background: var(--color-accent-soft); margin-inline: calc(-1 * var(--space-sm)); padding-inline: var(--space-sm); border-radius: var(--radius-inner); }
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- strona glowna ---------- */
.steps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.steps li { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.steps__n { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); color: var(--color-accent); line-height: 1; margin-bottom: var(--space-sm); }
.steps h3 { margin-bottom: var(--space-xs); }
.band { background: var(--color-paper-2); padding-block: var(--space-2xl); margin-block: var(--section-gap-s); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.figure { display: grid; gap: var(--space-2xs); }
.figure__n { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 300; font-size: var(--text-display-s); line-height: 1; color: var(--color-ink); letter-spacing: var(--tracking-display); }
.figure__l { color: var(--color-muted); }
.scoring { align-self: start; }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-sm) var(--space-sm); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.table thead th { color: var(--color-muted); font-weight: 500; font-size: var(--text-xs); white-space: nowrap; border-bottom-color: var(--color-ink); }
.table tbody th { font-weight: 500; color: var(--color-ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot th, .table tfoot td { border-bottom: 0; font-weight: 500; color: var(--color-ink); }
.table--tight { max-width: 520px; }
.table--ranking { font-size: var(--text-md); }
.table--ranking td { padding-block: var(--space-md); }
.table--ranking .pos { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); width: 4rem; }
.table--ranking .name { color: var(--color-ink); font-weight: 500; }
.table--ranking .pts-cell { font-size: var(--text-lg); color: var(--color-ink); }
.table--ranking .col-x { color: var(--color-muted); }
.table tr.is-me td { background: var(--color-accent-soft); }
.table tr.is-off td { color: var(--color-muted); }
.table--admin td { font-size: var(--text-sm); }
.actions-cell { white-space: nowrap; }
.actions-cell > * + * { margin-left: var(--space-xs); }
.toggle { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; font-size: var(--text-sm); color: var(--color-ink-2); cursor: pointer; }
.toggle input { accent-color: var(--color-accent); width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.chip { display: inline-flex; align-items: center; min-height: var(--control-h-sm); padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-light); box-shadow: var(--edge-light), 0 0 0 1px var(--color-rule); color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.chip:hover { color: var(--color-accent); }
.chip.is-on { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.chip.is-on:hover { color: var(--color-paper); }

/* ---------- statystyki ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin-bottom: var(--space-2xl); }
.stat { display: grid; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.stat__n { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 300; font-size: var(--text-3xl); line-height: 1; color: var(--color-ink); }
.stat__l { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- zgloszenia ---------- */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.entry { display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; gap: var(--space-lg); align-items: center; padding: var(--space-md) var(--space-lg); background: var(--color-light); border-radius: var(--radius-card); box-shadow: var(--edge-light), var(--shadow-card); }
.entry--rejected { opacity: 0.85; }
.entry__main { display: grid; gap: var(--space-3xs); min-width: 0; }
.entry__date { font-size: var(--text-xs); color: var(--color-muted); }
.entry__name { color: var(--color-ink); overflow-wrap: break-word; }
.entry__venue { font-size: var(--text-sm); }
.entry__places { display: flex; gap: var(--space-lg); margin: 0; }
.entry__places div { display: grid; }
.entry__places dt { font-size: var(--text-xs); color: var(--color-muted); }
.entry__places dd { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); }
.entry__side { display: grid; gap: var(--space-2xs); justify-items: end; text-align: right; }
.entry__actions { display: flex; gap: var(--space-sm); }
.entry__note { max-width: 24ch; color: var(--color-ink-2); }
.entries--compact .entry { padding: var(--space-sm) var(--space-md); grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-md); }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; background: var(--color-paper-3); color: var(--color-ink-2); }
.status--pending { background: var(--color-pending-soft); color: var(--color-pending-ink); }
.status--approved { background: var(--color-success-soft); color: var(--color-success); }
.status--rejected { background: var(--color-error-soft); color: var(--color-error); }
.empty { padding: var(--space-xl); border: 1px dashed var(--color-rule); border-radius: var(--radius-card); display: grid; gap: var(--space-xs); justify-items: start; }
.empty p { max-width: none; color: var(--color-ink); }
.empty .actions { margin-top: var(--space-sm); }

/* ---------- kolejka organizatora ---------- */
.subnav { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-xl); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm); border-radius: var(--radius-inner); text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.subnav a:hover { background: var(--color-paper-2); color: var(--color-accent); }
.subnav a[aria-current="page"] { background: var(--color-ink); color: var(--color-paper); }
.stats--admin { margin-bottom: var(--space-xl); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.queue__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); gap: var(--space-lg); padding: var(--space-lg); align-items: start; }
.queue__who, .queue__what { display: grid; gap: var(--space-2xs); min-width: 0; }
.queue__who strong, .queue__what strong { color: var(--color-ink); }
.queue__what .entry__places { margin-top: var(--space-xs); }
.queue__decide { display: grid; gap: var(--space-sm); }
.queue__btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.filters { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.search { display: flex; gap: var(--space-xs); margin-bottom: var(--space-lg); max-width: 420px; }
.search .input { flex: 1; }
.notice { padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); }
.notice p { max-width: none; }
.copy { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); max-width: 640px; }
.copy .input { flex: 1; min-width: 0; font-size: var(--text-xs); }
.invites { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.invite { padding: var(--space-md) var(--space-lg); background: var(--color-light); border-radius: var(--radius-card); box-shadow: var(--edge-light), var(--shadow-card); }
.invite.is-off { opacity: 0.7; }
.invite__head { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.invite__head strong { color: var(--color-ink); }
.invite .inline-form { margin-left: var(--space-xs); }

/* ---------- formularze ---------- */
.form { display: grid; gap: var(--space-xs); max-width: 640px; }
.form--inline { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); align-items: end; padding: var(--space-lg); margin-bottom: var(--space-xl); max-width: none; }
.form--inline .actions { grid-column: 1 / -1; margin-top: 0; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.field__req { font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); }
.field input:not([type="checkbox"]), .field textarea, .field select, .input { width: 100%; min-height: var(--control-h); padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-light); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.field textarea { padding: var(--space-sm) var(--space-md); resize: vertical; min-height: 6rem; line-height: 1.5; }
.field input:hover, .field textarea:hover, .input:hover { background: var(--color-paper-2); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, .input:focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.field input::placeholder, .input::placeholder { color: var(--color-muted); }
.field input:disabled, .input:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--color-error); }
.field__help { min-height: 1lh; font-size: var(--text-xs); color: var(--color-muted); max-width: none; }
.is-error .field__help { color: var(--color-error); }
.field--check label { display: flex; gap: var(--space-xs); align-items: flex-start; font-weight: 400; color: var(--color-ink-2); min-height: 44px; padding-top: var(--space-3xs); cursor: pointer; }
.field--check input { width: 20px; height: 20px; margin: var(--space-3xs) 0 0; accent-color: var(--color-accent); flex: none; }
.field--check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.input--sm { min-height: var(--control-h-sm); font-size: var(--text-sm); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: var(--space-md); top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; padding-right: var(--space-xl); }
.points-preview { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-accent-soft); color: var(--color-ink); font-size: var(--text-sm); max-width: none; }
.points-preview strong { font-size: var(--text-lg); font-family: var(--font-display); font-weight: 400; }

/* ---------- logowanie ---------- */
.auth { position: relative; min-height: calc(100dvh - 68px); display: grid; align-items: center; padding-block: var(--space-2xl); }
.auth .light { -webkit-mask-image: linear-gradient(to bottom, transparent 8%, var(--color-ink) 45%); mask-image: linear-gradient(to bottom, transparent 8%, var(--color-ink) 45%); }
.auth__row { position: relative; display: grid; justify-items: center; }
.auth__card { width: 100%; max-width: 460px; padding: var(--space-xl); box-shadow: var(--edge-light), var(--shadow-cast); background: color-mix(in oklab, var(--color-light) 90%, transparent); }
.auth__card .h2 { margin-bottom: var(--space-2xs); }
.auth__card form { margin-top: var(--space-lg); display: grid; gap: var(--space-xs); }
.auth__card .small { margin-top: var(--space-md); }

/* ---------- stopka ---------- */
.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); background: var(--color-paper-2); margin-top: auto; }
.footer__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.footer__brand { display: flex; gap: var(--space-md); align-items: flex-start; }
.footer__brand p { color: var(--color-ink); font-weight: 500; }
.footer__mark { width: 40px; height: 40px; flex: none; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.footer__links a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__note { font-size: var(--text-sm); }

/* ---------- responsywnosc ---------- */
@media (max-width: 60rem) {
  .menu-btn { display: inline-flex; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); box-shadow: var(--shadow-card); }
  .js .menu.is-open { display: block; }
  .menu__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-xs) var(--gutter) var(--space-md); }
  .menu__list li { border-top: var(--rule-hair) solid var(--color-rule-2); }
  .menu__list a:not(.btn), .menu__btn { width: 100%; min-height: 48px; justify-content: flex-start; text-align: left; font-size: var(--text-md); border-bottom: 0; }
  .menu__list a[aria-current="page"] { color: var(--color-accent); }
  .menu__list .btn { margin-top: var(--space-sm); width: 100%; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .hero .light { -webkit-mask-image: linear-gradient(to bottom, transparent 30%, var(--color-ink) 58%); mask-image: linear-gradient(to bottom, transparent 30%, var(--color-ink) 58%); }
  .hero__panel { justify-self: stretch; max-width: none; }
  .steps, .figures, .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section--split, .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .queue__item { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .footer__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .form--inline { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .toggle { display: inline-flex; }
  .table--ranking:not(.show-x) .col-x { display: none; }
  .table--ranking { font-size: var(--text-sm); }
  .table--ranking th, .table--ranking td { padding-inline: var(--space-xs); }
}
@media (max-width: 40rem) {
  h1 { font-size: var(--text-2xl); }
  .steps, .figures { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
  .row-2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .entry { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md); }
  .entry__side { justify-items: start; text-align: left; }
  .entry__note { max-width: none; }
  .entries--compact .entry { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .section { padding-top: var(--space-xl); }
  .page-head .btn { width: 100%; }
  .auth__card { padding: var(--space-lg); }
  .brand__name { font-size: var(--text-md); }
  .hero__panel { padding: var(--space-md); }
  .lane { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .light::after { background-size: 40px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, a, .link-btn, .menu-btn__bars::before, .menu-btn__bars::after { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media print { .topbar, .footer, .light, .toggle, .actions, .chips, .btn { display: none !important; } .table--ranking .col-x { display: table-cell !important; } }
