/* =========================================================================
   Szkoła Pływania STRZAŁKA - arkusz stylów
   Bez frameworka, bez kroku budowania. Sekcje: tokens, reset, layout,
   typografia, komponenty, formularze, admin, utilities, media queries.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --color-navy-900: #0b3348;
  --color-navy-800: #103f59;
  --color-navy-700: #155471;
  /* teal-600/accent-600/accent-700 dobrane tak, by tekst w tym kolorze na
     białym/jasnym tle (i biały tekst na tym tle) miał kontrast >= 4.5:1
     (WCAG 2.2 AA). teal-500 zostaje jaśniejszy - używany wyłącznie
     dekoracyjnie (gradient hero), nigdy jako kolor tekstu. */
  --color-teal-600: #0d6b78;
  --color-teal-500: #1ba9bd;
  --color-teal-100: #e3f4f6;
  --color-accent-600: #b8551f;
  --color-accent-700: #9c4718;
  --color-accent-100: #fbe7d8;
  --color-bg: #f6faf9;
  --color-surface: #ffffff;
  --color-surface-alt: #eef5f5;
  --color-border: #dde7e7;
  --color-text: #17303a;
  --color-text-muted: #4c6570;
  --color-text-on-dark: #eaf4f5;
  --color-success: #237a4f;
  --color-success-bg: #e5f4ec;
  --color-danger: #b3352c;
  --color-danger-bg: #fbeae8;
  --color-warning-bg: #fdf3e2;
  --color-warning-text: #8a5a15;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(11, 51, 72, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 51, 72, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 51, 72, 0.14);

  --container-width: 1180px;
  --header-height: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
}
img, picture, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure { margin: 0 0 0.75em; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--color-navy-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
a { color: var(--color-teal-600); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-navy-800); }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Widoczny, spójny focus state: wymóg WCAG 2.2 AA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy-900);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.section--alt { background: var(--color-surface-alt); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: 0.5rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .two-col--reverse { grid-template-columns: 0.9fr 1.1fr; }
  .two-col--reverse > *:first-child { order: 2; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--color-accent-600); color: #fff; }
.btn-accent:hover { background: var(--color-accent-700); color: #fff; }
.btn-primary { background: var(--color-navy-900); color: #fff; }
.btn-primary:hover { background: var(--color-navy-800); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-navy-900); color: var(--color-navy-900); }
.btn-outline:hover { background: var(--color-navy-900); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-sm { padding: 0.5em 1em; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--color-navy-900); }
.brand img { height: 44px; width: auto; }
.brand__name { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand__name span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.main-nav > ul > li > a { color: var(--color-navy-900); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.main-nav > ul > li > a:hover { color: var(--color-teal-600); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone { display: none; align-items: center; gap: 0.4rem; color: var(--color-navy-900); text-decoration: none; font-weight: 700; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }

/* CTA "Sprawdź harmonogram": ukryty na telefonie (dubluje przyklejony pasek
   na dole ekranu), na desktopie celowo większy niż standardowy .btn, żeby
   się wyróżniał. */
.header-cta { display: none; }
@media (min-width: 960px) {
  .header-cta {
    display: inline-flex;
    padding: 0.95em 1.85em;
    font-size: 1rem;
  }
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-close { display: block; }

/* Menu mobilne: domknięte do wysokości 0 i animowane przy otwieraniu, żeby
   uniknąć nagłego "skoku" treści. Bez JS pozostaje zwinięte (brak regresji). */
.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}
.mobile-panel.is-open {
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.mobile-panel__inner {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0 1.5rem;
}
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem;
  color: var(--color-navy-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-panel__link svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--color-teal-600); }
.mobile-panel__link--top { font-weight: 700; font-size: 1rem; }
.mobile-panel__link--sub { padding-left: 1.5rem; }
.mobile-panel__link--sub svg { width: 17px; height: 17px; }
.mobile-panel__group-label {
  padding: 1.1rem 0.25rem 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-teal-600);
}
.mobile-panel__phone {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-navy-900);
  color: var(--color-navy-900);
  font-weight: 700;
  text-decoration: none;
}
.mobile-panel__phone svg { width: 18px; height: 18px; }

/* Blokada przewijania strony w tle, gdy menu mobilne jest otwarte. */
body.nav-open { overflow: hidden; }

.mega-menu { position: relative; }
.mega-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-navy-900);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.mega-menu__toggle:hover { color: var(--color-teal-600); }
.mega-menu__chevron { width: 15px; height: 15px; transition: transform 150ms ease; }
.mega-menu.is-open .mega-menu__chevron,
.mega-menu:hover .mega-menu__chevron { transform: rotate(180deg); }

.mega-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  width: 320px;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 110;
}
/* Pomost bez przerwy w hover, żeby kursor mógł swobodnie dojechać do panelu */
.mega-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 14px;
}
.mega-menu:hover .mega-menu__panel,
.mega-menu:focus-within .mega-menu__panel,
.mega-menu.is-open .mega-menu__panel { display: flex; }

.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-navy-900);
}
.mega-menu__item:hover { background: var(--color-teal-100); }
.mega-menu__item strong { display: block; font-size: 0.92rem; font-weight: 700; }
.mega-menu__item small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 0.8rem; margin-top: 0.1rem; }
.mega-menu__item--highlight { border-top: 1px solid var(--color-border); margin-top: 0.3rem; padding-top: 0.75rem; }
.mega-menu__item--highlight .mega-menu__icon { background: var(--color-accent-100); color: var(--color-accent-700); }

.mega-menu__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-100);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-menu__icon svg { width: 19px; height: 19px; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* Przyklejony pasek akcji na telefonie */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(11,51,72,0.08);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
@media (min-width: 960px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* ---------- 6. Announcement bar ---------- */
.announcement-bar {
  background: var(--color-navy-900);
  color: var(--color-text-on-dark);
}
.announcement-bar--important { background: var(--color-accent-700); }
.announcement-bar--zapisy { background: var(--color-teal-600); }
.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.announcement-bar a.btn { flex-shrink: 0; }
.announcement-bar__close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.1rem;
  opacity: 0.85;
}
.announcement-bar__close:hover { opacity: 1; }

/* ---------- 7. Hero ----------
   Bez realnego zdjęcia: tło to zaprojektowana kompozycja gradientów w kolorach
   wody (nie losowy placeholder). Gdy pojawi się prawdziwe zdjęcie z
   IMAGES_NEEDED.md, wystarczy dodać modyfikator .hero--photo z inline
   background-image, patrz komentarz w resources/views/pages/home.blade.php. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-navy-900);
  background-image:
    radial-gradient(900px 560px at 12% -15%, rgba(27, 169, 189, 0.32), transparent 60%),
    radial-gradient(700px 560px at 105% 115%, rgba(217, 114, 54, 0.16), transparent 55%),
    linear-gradient(160deg, var(--color-navy-900) 0%, var(--color-navy-800) 60%, var(--color-navy-700) 130%);
  color: #fff;
  padding-block: clamp(3.5rem, 2.75rem + 4vw, 6.5rem);
}
.hero--photo {
  background-image:
    linear-gradient(160deg, rgba(11, 51, 72, 0.86) 0%, rgba(11, 51, 72, 0.68) 55%, rgba(16, 63, 89, 0.55) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: center;
}
.hero__decor {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(27, 169, 189, 0.35), rgba(27, 169, 189, 0) 70%);
  filter: blur(2px);
  z-index: -1;
  display: none;
}
@media (min-width: 900px) { .hero__decor { display: block; } }
.hero__inner { max-width: 640px; }
.hero h1 { color: #fff; }
.hero p.lead { color: var(--color-text-on-dark); font-size: 1.15rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.placeholder-media {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(27, 169, 189, 0.18), transparent 55%),
    linear-gradient(150deg, var(--color-surface-alt) 0%, var(--color-teal-100) 100%);
  border: 1px solid var(--color-border);
  color: var(--color-navy-800);
  width: 100%;
  height: 100%;
}
.placeholder-media__inner { padding: 1.5rem; }
.placeholder-media svg { width: 40px; height: 40px; color: var(--color-teal-600); margin-bottom: 0.75rem; opacity: 0.8; }
.placeholder-media__caption { font-size: 0.82rem; color: var(--color-text-muted); max-width: 34ch; margin-inline: auto; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.media-frame--shadow { box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Highlight strip (key facts) ---------- */
.fact-strip { margin-top: -1px; }
.fact-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (min-width: 640px) { .fact-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fact-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.fact-strip__item {
  background: var(--color-surface);
  padding: 1.25rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.fact-strip__item svg { width: 24px; height: 24px; color: var(--color-teal-600); flex-shrink: 0; margin-top: 2px; }
.fact-strip__item strong { display: block; color: var(--color-navy-900); }
.fact-strip__item span { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- 9. Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5rem; }
.offer-card { display: flex; flex-direction: column; height: 100%; }
.offer-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-100);
  color: var(--color-teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.offer-card__icon svg { width: 26px; height: 26px; }
.offer-card p { color: var(--color-text-muted); flex-grow: 1; }
.offer-card .btn { align-self: flex-start; margin-top: 1rem; }

/* ---------- 10. Schedule cards ---------- */
.schedule-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.filter-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .filter-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; } }
.filter-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.filter-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.95rem;
  color: var(--color-text);
}
.filter-actions { display: flex; gap: 0.6rem; }

.schedule-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .schedule-grid { grid-template-columns: repeat(3, 1fr); } }

.class-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.class-card__head {
  background: var(--color-navy-900);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.class-card__weekday { font-weight: 700; }
.class-card__time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--color-text-on-dark); }
.class-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex-grow: 1; }
.class-card__name { font-size: 1.05rem; font-weight: 700; color: var(--color-navy-900); }
.class-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; font-size: 0.88rem; color: var(--color-text-muted); }
.class-card__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.class-card__price { font-size: 1.1rem; font-weight: 800; color: var(--color-navy-900); margin-top: auto; }
.class-card__description {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.class-card__footer { padding: 0 1.25rem 1.25rem; margin-top: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--teal { background: var(--color-teal-100); color: var(--color-teal-600); }
.badge--accent { background: var(--color-accent-100); color: var(--color-accent-700); }
.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--warn { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge--danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge--muted { background: var(--color-surface-alt); color: var(--color-text-muted); }

details.session-dates { border-top: 1px solid var(--color-border); }
details.session-dates > summary {
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  color: var(--color-teal-600);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.session-dates > summary::-webkit-details-marker { display: none; }
details.session-dates > summary::after { content: "+"; font-size: 1.2rem; }
details.session-dates[open] > summary::after { content: "\2212"; }
.session-dates__list { padding: 0 1.25rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.session-dates__list span {
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.session-dates__item--cancelled {
  background: var(--color-danger-bg) !important;
  color: var(--color-danger) !important;
  text-decoration: line-through;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

/* ---------- 11. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item > summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 700;
  color: var(--color-navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--color-teal-600); font-size: 1.3rem; flex-shrink: 0; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item__answer { padding-bottom: 1.1rem; color: var(--color-text-muted); }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--color-navy-900); color: var(--color-text-on-dark); }
.site-footer a { color: var(--color-text-on-dark); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer ul a { text-decoration: none; font-size: 0.92rem; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-social-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 1.25rem;
  font-size: 0.82rem;
  color: rgba(234,244,245,0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- 13. Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--color-navy-900); }
.field .hint { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 0.85rem; margin-top: 0.35rem; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-field input { margin-top: 0.25rem; }
.checkbox-field label { font-weight: 400; font-size: 0.9rem; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-md); font-size: 0.95rem; margin-bottom: 1.5rem; }
.alert--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(35,122,79,0.25); }
.alert--error { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid rgba(179,53,44,0.25); }
.alert--info { background: var(--color-teal-100); color: var(--color-navy-800); border: 1px solid rgba(21,145,163,0.25); }

/* ---------- 14. Breadcrumbs ---------- */
.breadcrumbs { padding-block: 1rem; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-teal-600); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--color-border); }

/* ---------- 15. Misc content ---------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose--wide { max-width: 900px; }
.prose h2 { margin-top: 2em; }
.prose ul { color: var(--color-text-muted); }

/* Stylizowana lista numerowana (np. regulamin) - zamiast domyślnych,
   ciasno upakowanych numerków przeglądarki: pogrubione numery w kółkach
   i wyraźne odstępy między punktami. */
.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: numbered-list;
  color: var(--color-text-muted);
}
.numbered-list li {
  counter-increment: numbered-list;
  position: relative;
  padding-left: 3rem;
  line-height: 1.6;
}
.numbered-list li + li { margin-top: 1.5rem; }
.numbered-list li::before {
  content: counter(numbered-list);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-teal-100);
  color: var(--color-teal-600);
  font-weight: 700;
  font-size: 0.9rem;
}
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.info-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--color-teal-600); flex-shrink: 0; margin-top: 2px; }
.to-confirm { color: var(--color-warning-text); background: var(--color-warning-bg); padding: 0.1em 0.5em; border-radius: 4px; font-size: 0.85em; font-weight: 700; }
.narrow-column { max-width: 760px; margin-inline: auto; }

.collapsible-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.collapsible-panel > summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.collapsible-panel > summary::-webkit-details-marker { display: none; }
.collapsible-panel > summary::after { content: "+"; color: var(--color-teal-600); font-size: 1.4rem; flex-shrink: 0; }
.collapsible-panel[open] > summary::after { content: "\2212"; }
.collapsible-panel__content {
  padding: 0 1.5rem 1.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* ---------- 16. Admin ---------- */
.admin-body { background: var(--color-surface-alt); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--color-navy-900);
  color: var(--color-text-on-dark);
  flex-shrink: 0;
  display: none;
}
.admin-sidebar__brand { padding: 1.25rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.12); }
.admin-sidebar nav ul { list-style: none; margin: 0; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; }
.admin-sidebar nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { background: rgba(255,255,255,0.12); }
@media (min-width: 900px) { .admin-sidebar { display: block; } }

.admin-main { flex-grow: 1; min-width: 0; }
.admin-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-content { padding: 1.5rem; max-width: 1100px; }
.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-stats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat strong { display: block; font-size: 1.8rem; color: var(--color-navy-900); }
.admin-stat span { color: var(--color-text-muted); font-size: 0.85rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); }
.table-scroll { overflow-x: auto; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.mobile-topnav { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.75rem 1rem; background: var(--color-navy-900); }
.mobile-topnav a { color: var(--color-text-on-dark); text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); white-space: nowrap; }
.mobile-topnav a.is-active { background: rgba(255,255,255,0.15); }
@media (min-width: 900px) { .mobile-topnav { display: none; } }

/* ---------- 17. Utilities ---------- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
