/* =========================================================
   Spółdzielnia — style strony
   Wszystkie wymiary w rem, więc przyciski "Rozmiar tekstu"
   skalują proporcjonalnie cały interfejs.
   ========================================================= */

:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --text: #111827;
  --muted: #4B5563;
  --border: #C9D0DE;
  --border-strong: #8A94A8;

  --blue: #2E54E8;          /* przyciski, linki (ciemniejszy wariant błękitu z logo dla kontrastu) */
  --blue-brand: #4169FF;
  --blue-soft: #E3E9FF;
  --on-blue: #FFFFFF;
  --red: #D41F06;           /* akcent: Zapisz się, Dzisiaj */
  --red-soft: #FDE7E3;
  --on-red: #FFFFFF;
  --ok: #0F766E;
  --ok-soft: #DDF4F1;
  --warn-soft: #FFF4D6;
  --focus: #F59E0B;

  --c-warsztaty: #D41F06;
  --c-kultura: #2E54E8;
  --c-scena: #BE185D;
  --c-gry: #0F766E;
  --c-ruch: #B45309;
  --c-inne: #7C3AED;
  --on-cat: #FFFFFF;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 14px rgba(17, 24, 39, .06);
  --font-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --surface: #1E293B; --surface-2: #273449; --text: #F8FAFC; --muted: #CBD5E1;
    --border: #3B4A63; --border-strong: #64748B;
    --blue: #7D98FF; --blue-brand: #7D98FF; --blue-soft: #23315A; --on-blue: #0B1226;
    --red: #FF7A66; --red-soft: #4A1E1A; --on-red: #1A0603;
    --ok: #2DD4BF; --ok-soft: #12352F; --warn-soft: #3A2F12; --focus: #FBBF24;
    --c-warsztaty: #FF7A66; --c-kultura: #8EA6FF; --c-scena: #F472B6; --c-gry: #2DD4BF; --c-ruch: #FBBF24; --c-inne: #C4B5FD;
    --on-cat: #0F172A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #1E293B; --surface-2: #273449; --text: #F8FAFC; --muted: #CBD5E1;
  --border: #3B4A63; --border-strong: #64748B;
  --blue: #7D98FF; --blue-brand: #7D98FF; --blue-soft: #23315A; --on-blue: #0B1226;
  --red: #FF7A66; --red-soft: #4A1E1A; --on-red: #1A0603;
  --ok: #2DD4BF; --ok-soft: #12352F; --warn-soft: #3A2F12; --focus: #FBBF24;
  --c-warsztaty: #FF7A66; --c-kultura: #8EA6FF; --c-scena: #F472B6; --c-gry: #2DD4BF; --c-ruch: #FBBF24; --c-inne: #C4B5FD;
  --on-cat: #0F172A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  color-scheme: dark;
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html[data-size="duzy"] { font-size: 118.75%; }
html[data-size="bardzo-duzy"] { font-size: 137.5%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 .75rem; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.ico circle[r="1.2"] { fill: currentColor; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }

.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--blue); color: var(--on-blue); padding: .75rem 1rem; border-radius: var(--radius-sm); z-index: 100; font-weight: 700; }
.skip-link:focus { top: .5rem; }

/* ---------- Nagłówek ---------- */
.topbar { background: var(--surface); border-bottom: 2px solid var(--border); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand__mark { width: 3.25rem; height: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; color: var(--blue-brand); text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand__tag { font-size: .95rem; color: var(--muted); }

.a11y { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.a11y__size { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.a11y__label { font-weight: 700; font-size: 1rem; }
.seg { display: inline-flex; border: 2px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg__btn { font: inherit; font-size: .95rem; background: var(--surface); color: var(--text); border: 0; border-right: 2px solid var(--border); padding: .45rem .7rem; min-height: 2.75rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.seg__btn:last-child { border-right: 0; }
.seg__btn[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); font-weight: 700; }
.seg__a { font-family: var(--font-head); font-weight: 900; line-height: 1; }
.seg__a--1 { font-size: .9rem; } .seg__a--2 { font-size: 1.1rem; } .seg__a--3 { font-size: 1.35rem; }
.theme-btn { font: inherit; font-size: .95rem; font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .9rem; border-radius: var(--radius-sm); border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-btn:hover, .seg__btn:hover:not([aria-pressed="true"]) { background: var(--surface-2); }

@media (max-width: 40rem) {
  .topbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding-top: .6rem; padding-bottom: .6rem; }
  .brand__mark { width: 2.4rem; }
  .brand__name { font-size: 1.3rem; }
  .brand__tag { font-size: .82rem; }
  .a11y { display: contents; }
  .a11y__size { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
  .a11y__label { font-size: .9rem; line-height: 1.15; max-width: 4.5rem; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; justify-content: center; flex-direction: column; gap: 0; font-size: .8rem; padding: .3rem .2rem; line-height: 1.15; }
  .theme-btn { grid-row: 1; grid-column: 2; flex-direction: column; gap: .1rem; font-size: .8rem; padding: .3rem .55rem; line-height: 1.1; }
  .theme-btn__extra { display: none; }
}

/* Główne menu: 4 duże przyciski z podpisami */
.mainnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding-bottom: .75rem; }
.mainnav__link { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: .6rem .75rem; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.mainnav__link:hover { border-color: var(--blue); }
.mainnav__link[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.mainnav__link--add:not([aria-current="page"]) { border-color: var(--blue); color: var(--blue); background: var(--surface); }
@media (max-width: 40rem) {
  .mainnav { grid-template-columns: 1fr 1fr; }
  .mainnav__link { gap: .4rem; font-size: 1rem; min-height: 3.1rem; padding: .45rem .5rem; }
}

/* ---------- Ogólne przyciski ---------- */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .6rem 1.15rem; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--accent { background: var(--red); color: var(--on-red); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--link { background: none; border: 0; color: var(--blue); text-decoration: underline; min-height: 2.75rem; padding: .25rem .25rem; }
.btn--big { min-height: 3.5rem; font-size: 1.15rem; padding: .75rem 1.5rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

main { padding-top: 1.25rem; padding-bottom: 3rem; min-height: 60vh; }
main:focus { outline: none; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }

/* ---------- Powitanie ---------- */
.hero { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin-bottom: .5rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 700; }
.hero__stats span { display: inline-flex; align-items: center; gap: .4rem; }
.howto { background: var(--blue-soft); border: 2px solid var(--blue); border-radius: var(--radius); padding: 0; }
.howto summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; list-style: none; min-height: 3rem; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "Rozwiń ▾"; margin-left: auto; font-weight: 400; font-size: .95rem; color: var(--blue); }
.howto[open] summary::after { content: "Zwiń ▴"; }
.howto ol { margin: 0; padding: 0 1rem 1rem 1rem; list-style: none; display: grid; gap: .75rem; counter-reset: s; }
@media (min-width: 48rem) { .howto ol { grid-template-columns: repeat(3, 1fr); } }
.howto li { counter-increment: s; background: var(--surface); border-radius: var(--radius-sm); padding: .75rem 1rem .75rem 3.4rem; position: relative; }
.howto li::before { content: counter(s); position: absolute; left: .8rem; top: .75rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }

/* ---------- Filtry ---------- */
.filters { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; display: grid; gap: 1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.filters__title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 0; }
.fgroup { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup > legend, .flabel { font-weight: 700; padding: 0; margin-bottom: .1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: 1rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; line-height: 1.2; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-weight: 700; }
.chip .dot { width: .85rem; height: .85rem; border-radius: 50%; background: var(--cat); flex: none; box-shadow: 0 0 0 2px var(--surface); }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--on-blue); }
.frow { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .frow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .frow--3 { grid-template-columns: 2fr 1fr 1fr; } }
.input, .select, .textarea {
  font: inherit; width: 100%; min-height: 3rem; padding: .55rem .8rem; border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.textarea { min-height: 7rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.search { position: relative; }
.search .ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 2.6rem; }
.filters__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; border-top: 2px solid var(--border); padding-top: .75rem; }
.result-count { font-weight: 700; font-size: 1.15rem; margin: 0; }

/* ---------- Lista i karty ---------- */
.day { margin-bottom: 1.5rem; }
.day__head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: .6rem 0; margin: 0 0 .5rem; font-size: 1.3rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; border-bottom: 3px solid var(--text); }
.day__rel { color: var(--on-red); background: var(--red); padding: .1rem .55rem; border-radius: .35rem; font-size: 1rem; }
.day__count { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card { --cat: var(--c-inne); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-left: .55rem solid var(--cat); border-radius: var(--radius); padding: 1rem 1rem 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.card__top { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .55rem; }
.card__title { font-size: 1.2rem; margin-bottom: .5rem; overflow-wrap: anywhere; }
.card__meta { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .3rem; }
.card__meta li { display: flex; gap: .5rem; align-items: flex-start; }
.card__meta .ico { margin-top: .15em; color: var(--muted); }
.card__desc { color: var(--muted); margin-bottom: .75rem; }
.card__count { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ok); margin-bottom: .6rem; }
.card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 26rem) { .card__actions { grid-template-columns: 1.4fr 1fr; } }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; line-height: 1.4; }
.pill--cat { background: var(--cat); color: var(--on-cat); }
.pill--today { background: var(--red); color: var(--on-red); }
.pill--free { background: var(--ok-soft); color: var(--ok); border: 1.5px solid var(--ok); }
.pill--sold { background: var(--warn-soft); color: var(--text); border: 1.5px solid var(--border-strong); }
.pill--plain { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border); }
.pill--user { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue); }

.more { display: flex; justify-content: center; margin: 1.5rem 0; }
.empty { text-align: center; background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 2rem 1rem; }
.empty p { color: var(--muted); }

/* kolory kategorii */
[data-cat="warsztaty"] { --cat: var(--c-warsztaty); }
[data-cat="kultura"] { --cat: var(--c-kultura); }
[data-cat="scena"] { --cat: var(--c-scena); }
[data-cat="gry"] { --cat: var(--c-gry); }
[data-cat="ruch"] { --cat: var(--c-ruch); }
[data-cat="inne"] { --cat: var(--c-inne); }

/* ---------- Szczegóły wydarzenia ---------- */
.backbar { margin-bottom: 1rem; }
.detail { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) { .detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .detail__side { position: sticky; top: 1rem; } }
.panel { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.panel + .panel { margin-top: 1.25rem; }
/* Na telefonie formularz zapisu jest zaraz pod najważniejszymi informacjami */
@media (max-width: 61.99rem) {
  .detail__main { display: contents; }
  .detail__main > .panel + .panel { margin-top: 0; }
  .detail__head { order: 0; }
  .detail__side { order: 1; }
  .detail__main > .panel:not(.detail__head) { order: 2; }
}
.detail__head { border-top: .55rem solid var(--cat); }
.detail__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin: .5rem 0 1rem; overflow-wrap: anywhere; }
.facts { display: grid; gap: .75rem; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { display: flex; gap: .75rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.fact .ico { width: 1.6rem; height: 1.6rem; color: var(--blue); margin-top: .1rem; }
.fact dt { font-weight: 700; font-size: .95rem; color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.section-title { display: flex; align-items: center; gap: .55rem; font-size: 1.35rem; margin-bottom: .75rem; }
.section-title .ico { color: var(--blue); }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.note { display: flex; gap: .6rem; background: var(--warn-soft); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: 1rem; }
.note .ico { margin-top: .15rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; min-height: 2.75rem; overflow-wrap: anywhere; }
.mapframe { width: 100%; aspect-ratio: 4 / 3; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: block; }
@media (min-width: 48rem) { .mapframe { aspect-ratio: 16 / 9; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.btn-row .btn { flex: 1 1 14rem; }
.address { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }

/* zapisy */
.signup h2 { font-size: 1.5rem; }
.signup__count { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: .65rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field label, .field > .flabel { font-weight: 700; }
.hint { font-size: .95rem; color: var(--muted); margin: 0; }
.error-msg { color: var(--red); font-weight: 700; font-size: 1rem; margin: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.stepper { display: flex; align-items: stretch; gap: .5rem; }
.stepper .btn { min-width: 3.25rem; font-size: 1.5rem; padding: 0; }
.stepper .input { text-align: center; font-weight: 700; font-size: 1.25rem; max-width: 6rem; }
.success { display: flex; gap: .75rem; background: var(--ok-soft); border: 2px solid var(--ok); border-radius: var(--radius-sm); padding: 1rem; }
.success .ico { color: var(--ok); width: 1.75rem; height: 1.75rem; }
.success p { margin: 0; }
.ticket-note { font-size: .98rem; color: var(--muted); margin-top: .75rem; }

/* ---------- Kalendarz ---------- */
.cal { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.cal__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.cal__month { font-size: 1.6rem; margin: 0; text-transform: capitalize; order: -1; width: 100%; text-align: center; }
@media (min-width: 48rem) { .cal__month { order: 0; width: auto; } }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.cal__dow { text-align: center; font-weight: 700; font-size: .9rem; color: var(--muted); padding: .25rem 0; }
.cal__day { font: inherit; min-height: 4.25rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); padding: .35rem; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; cursor: pointer; text-align: left; min-width: 0; }
.cal__day:hover:not([disabled]) { border-color: var(--blue); }
.cal__day[disabled] { cursor: default; background: transparent; border-style: dashed; color: var(--muted); }
.cal__day--out { visibility: hidden; }
.cal__num { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.cal__day--today { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.cal__day--today .cal__num { color: var(--red); }
.cal__day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.cal__day[aria-pressed="true"] .cal__num { color: var(--on-blue); }
.cal__n { font-size: .85rem; font-weight: 700; line-height: 1.15; }
.cal__dots { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: auto; }
.cal__dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--cat); display: block; }
.cal__day[aria-pressed="true"] .cal__dots i { box-shadow: 0 0 0 1.5px var(--on-blue); }
@media (min-width: 48rem) { .cal__day { min-height: 6rem; padding: .5rem; } .cal__n { font-size: .95rem; } }
@media (max-width: 30rem) { .cal__n-word { display: none; } .cal__day { min-height: 3.75rem; padding: .25rem; } .cal__grid { gap: .2rem; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem; font-size: .95rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--cat); display: block; }

/* ---------- Mapa ---------- */
.mapwrap { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); }
.map-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.map-controls .btn { flex: 1 1 10rem; }
#bigmap { height: 65vh; min-height: 22rem; border-radius: var(--radius-sm); border: 2px solid var(--border); z-index: 0; }
.map-pin { width: 2.6rem; height: 2.6rem; border-radius: 50% 50% 50% 0; background: var(--cat); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); display: grid; place-items: center; }
.map-pin span { transform: rotate(45deg); color: var(--on-cat); font-weight: 800; font-family: var(--font-head); font-size: 1rem; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; }
.leaflet-container { font-family: var(--font-body) !important; font-size: 1rem !important; }
.leaflet-popup-content { margin: .9rem 1rem !important; }
.popup h3 { font-size: 1.15rem; margin-bottom: .25rem; color: #111827; }
.popup p { margin: 0 0 .5rem; color: #374151; }
.popup ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .4rem; max-height: 9.5rem; overflow: auto; }
.popup li { border-left: 4px solid var(--cat); padding-left: .5rem; color: #111827; }
.popup li small { display: block; color: #4B5563; font-size: .9rem; }
.popup .btn { width: 100%; min-height: 2.75rem; font-size: 1rem; margin-top: .25rem; background: #2E54E8; color: #fff; }
.popup a.plain { color: #2E54E8; font-weight: 700; }
.map-fallback { padding: 2rem 1rem; text-align: center; }

/* ---------- Formularz dodawania ---------- */
.form-intro { max-width: 48rem; }
.form-steps { display: grid; gap: 1.25rem; }
.fs { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 0; min-width: 0; box-shadow: var(--shadow); }
.fs > legend { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; padding: 0 .5rem; display: flex; align-items: center; gap: .6rem; }
.fs__num { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-size: 1.1rem; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); font-size: .95rem; }
.choice-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .choice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .choice-grid--3 { grid-template-columns: 1fr 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 3.25rem; padding: .6rem .9rem; border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 700; }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--blue); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice .dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--cat); flex: none; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; }
.error-summary { background: var(--red-soft); border: 2px solid var(--red); border-radius: var(--radius-sm); padding: 1rem; }
.error-summary h2 { font-size: 1.2rem; color: var(--red); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
[hidden] { display: none !important; }

/* ---------- Stopka ---------- */
.footer { background: var(--surface); border-top: 2px solid var(--border); padding: 2rem 0; }
.footer__inner { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.footer__logo { width: 8rem; height: auto; }
.footer__text { flex: 1 1 18rem; color: var(--muted); }
.footer__text strong { color: var(--text); }
.footer__links a { font-weight: 700; }

/* ---------- Powiadomienie ---------- */
.toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .9rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; z-index: 1000; max-width: calc(100% - 2rem); box-shadow: 0 6px 24px rgba(0,0,0,.3); }

@media print {
  .topbar, .footer, .filters, .card__actions, .btn-row, .signup, .backbar { display: none !important; }
}

/* Telefon: przyciski miesięcy i mapy obok siebie */
@media (max-width: 47.99rem) {
  .cal__nav { display: grid; grid-template-columns: 1fr 1fr; }
  .cal__nav .btn { padding: .5rem .4rem; }
  .map-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .map-controls .btn { padding: .5rem .4rem; font-size: 1rem; }
  #bigmap { height: 60vh; }
}
.toast { width: max-content; }
