/* Basen Posnania, Stowarzyszenie Razem Dla Sportu. Jeden arkusz: strona publiczna i panel.
   Język wizualny: morski granat, bursztynowy akcent, wąski krój nagłówków, jasne tło z kratką,
   lina torowa jako przerywnik, zdjęcia hali. Informacja (godziny, grafik, ceny, zapisy) przed dekoracją.
   Fonty z własnej domeny (assets/fonts, podzbiór łaciński z polskimi znakami). */

/* ================= Fonty ================= */
@font-face { font-family: 'Big Shoulders Display'; src: url('assets/fonts/big-shoulders-display-800.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
/* Zapasowe kroje o zbliżonych metrykach: mniejsze przesunięcie tekstu przy podmianie fontu */
@font-face { font-family: 'Display Fallback'; src: local('Arial Narrow Bold'), local('ArialNarrow-Bold'), local('Arial Narrow'), local('Arial'); size-adjust: 86%; ascent-override: 100%; descent-override: 24%; }
@font-face { font-family: 'Text Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica'); size-adjust: 99%; ascent-override: 96%; descent-override: 25%; }

/* ================= Tokeny ================= */
:root {
  --deep: #082a36;
  --deep-2: #0d3a4a;
  --deep-3: #124b5e;
  --teal: #17a2bf;          /* wypełnienia (wolny tor), bez tekstu */
  --teal-ink: #0b7890;      /* tekst i linki na jasnym tle */
  --teal-deep: #0b6f86;     /* tło z białym tekstem */
  --on-dark-link: #9ee0ee;  /* linki na granacie */
  --shallow: #cdeef4;
  --foam: #e8f6f8;
  --tile: #f3f7f6;
  --tile-line: #e2ecea;
  --line: #d3e0df;
  --paper: #fffdf7;
  --amber: #f6be4f;
  --amber-hover: #ffd06e;
  --rope: #e0493e;
  --ink: #0a1e27;
  --ink-2: #3a5360;
  --ink-3: #586d76;         /* najsłabszy tekst: min. 4,5:1 na bieli i kafelku */
  --err: #b42318;
  --white: #fff;
  --focus: var(--deep);
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --max: 1240px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --sec: clamp(56px, 8vw, 112px);
  --display: 'Big Shoulders Display', 'Display Fallback', 'Arial Narrow', sans-serif;
  --text: 'Instrument Sans', 'Text Fallback', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.dark, .on-dark, .site-header, .site-footer, .mobile-bar, .page-hero, .summary, .transit, .adm-top { --focus: var(--amber); }

/* ================= Podstawy ================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--tile); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-synthesis-weight: none; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--amber); color: var(--ink); }
address { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; margin: 0 0 .4em; color: var(--deep); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.02; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.note { margin-top: 14px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a.sr-only:focus-visible { position: fixed !important; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; background: var(--amber); color: var(--ink); font-weight: 600; border-radius: var(--r-s); outline-color: var(--deep); }

/* Dark sections: text and links */
.dark a:not(.btn), .on-dark a:not(.btn), .page-hero a:not(.btn), .site-footer a, .transit a:not(.ln) { color: var(--on-dark-link); }
.dark a:not(.btn):hover, .on-dark a:not(.btn):hover, .page-hero a:not(.btn):hover, .site-footer a:hover, .transit a:not(.ln):hover { color: var(--white); }

/* Kafel basenowy: tło jasnych sekcji */
.tiles { background-color: var(--tile); background-image: linear-gradient(var(--tile-line) 1px, transparent 1px), linear-gradient(90deg, var(--tile-line) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }

/* Lina torowa: przerywnik sekcji */
.rope { height: 12px; background: radial-gradient(ellipse 7px 5px at 8px 6px, var(--rope) 92%, transparent 100%) 0 0 / 16px 12px repeat-x, linear-gradient(transparent 5px, #b8c9cf 5px, #b8c9cf 7px, transparent 7px); }
.rope.blue { background: radial-gradient(ellipse 7px 5px at 8px 6px, var(--teal) 92%, transparent 100%) 0 0 / 16px 12px repeat-x, linear-gradient(transparent 5px, #b8c9cf 5px, #b8c9cf 7px, transparent 7px); }

/* ================= Przyciski ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.15 var(--text); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-hover); color: var(--ink); }
.btn-amber:active { background: #e9ab33; }
.btn-deep { background: var(--deep); color: var(--white); }
.btn-deep:hover { background: var(--deep-3); color: var(--white); }
.btn-deep:active { background: #04161d; }
.btn-line { border-color: currentColor; color: var(--deep); background: transparent; }
.btn-line:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn-line:active { background: #04161d; border-color: #04161d; color: var(--white); }
.on-dark .btn-line, .dark .btn-line, .site-header .btn-line, .mobile-bar .btn-line, .adm-top .btn-line { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.on-dark .btn-line:hover, .dark .btn-line:hover, .mobile-bar .btn-line:hover, .adm-top .btn-line:hover { background: var(--white); color: var(--deep); border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled:hover { background: inherit; }
.btn-amber:disabled:hover { background: var(--amber); }
.btn-deep:disabled:hover { background: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; max-width: none; }

/* ================= Nagłówek ================= */
.site-header { position: sticky; top: calc(-1 * var(--notice-h, 0px)); z-index: 50; background: var(--deep); color: var(--white); }
.site-header.over-hero { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
.site-header.over-hero.scrolled, body.menu-open .site-header.over-hero { background: var(--deep); transform: translateY(calc(-1 * var(--notice-h, 0px))); }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand:hover { color: var(--white); }
.brand img { width: 48px; height: 50px; flex: none; }
.brand .word { display: block; font: 800 1.5rem/.95 var(--display); letter-spacing: .01em; }
.brand .sub { display: block; font: 400 .76rem/1.25 var(--text); color: #bfe0e7; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; color: #e6f4f7; text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: var(--r-s); white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav a.btn { margin-left: 10px; padding: 0 20px; border-radius: 999px; background: var(--amber); color: var(--ink); box-shadow: none; }
.nav a.btn:hover { background: var(--amber-hover); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6); background: none; font: 600 .95rem var(--text); color: var(--white); cursor: pointer; gap: 10px; align-items: center; }
.nav-toggle::before { content: ''; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav-toggle[aria-expanded="true"]::before { height: 2px; box-shadow: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--deep); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255, 255, 255, .12); max-height: calc(100svh - 64px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; padding: 0 14px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); background: rgba(255, 255, 255, .06); }
  .nav a.btn { margin: 12px 0 0; }
}

/* Pasek komunikatu z CMS */
.notice-bar { background: var(--amber); color: var(--ink); }
.notice-bar .wrap { padding: 9px 0; }
.notice-bar p { display: flex; align-items: baseline; gap: 4px 14px; margin: 0; max-width: none; font: 600 .92rem/1.4 var(--text); }
.notice-bar .nb-text { min-width: 0; }
.notice-bar a { flex: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.notice-bar a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
.preview-bar { position: sticky; top: 0; z-index: 100; margin: 0; max-width: none; padding: 10px 16px; background: #fff4e5; color: #6b3d00; border-bottom: 2px solid #f0c27b; font-weight: 600; text-align: center; }

/* ================= Hero strony głównej ================= */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: flex-end; color: var(--white); background: var(--deep); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8, 42, 54, .9) 0%, rgba(8, 42, 54, .66) 38%, rgba(8, 42, 54, .12) 70%, rgba(8, 42, 54, 0) 100%), linear-gradient(0deg, rgba(8, 42, 54, .82) 0%, transparent 42%), linear-gradient(180deg, rgba(8, 42, 54, .7) 0%, transparent 24%); }
.hero .wrap { position: relative; padding: calc(132px + var(--notice-h, 0px)) 0 clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-kicker { margin: 0 0 14px; font: 600 .95rem/1.3 var(--text); letter-spacing: .02em; color: var(--amber); }
.hero h1 { color: var(--white); margin: 0 0 22px; }
.h1-main { display: block; font-size: clamp(3.6rem, 9.6vw, 8.6rem); line-height: .86; }
.h1-sub { display: block; margin-top: .3em; font-size: clamp(1.5rem, 3.1vw, 2.7rem); line-height: 1.02; color: var(--shallow); }
.hero .lead { color: #d6eef3; margin-bottom: 22px; max-width: 54ch; }
.hero-hours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; width: fit-content; max-width: 100%; margin: 0 0 26px; padding: 10px 16px; border-left: 4px solid var(--amber); background: rgba(4, 22, 29, .62); color: var(--white); font-size: 1rem; line-height: 1.4; }
.hh-label { font: 600 .78rem/1.4 var(--text); text-transform: uppercase; letter-spacing: .07em; color: var(--amber); }
.page-hero .hero-hours { margin: 18px 0 0; background: rgba(255, 255, 255, .06); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Pieczęć stowarzyszenia (dekoracja, tylko szeroki ekran) */
.seal { width: clamp(150px, 15vw, 200px); aspect-ratio: 1; position: relative; justify-self: end; }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal svg.ring text { font: 600 11.2px var(--text); letter-spacing: .22em; fill: var(--white); }
.seal .core { position: absolute; inset: 21%; border-radius: 50%; background: rgba(8, 42, 54, .7); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.seal .core span { font: 800 2.5rem/.8 var(--display); text-align: center; color: var(--white); }
.seal .core small { display: block; font: 600 .66rem/1.2 var(--text); letter-spacing: .04em; color: #bfe4ec; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fakty pod hero */
.facts { background: var(--deep); color: #cfe9ef; border-top: 1px solid rgba(255, 255, 255, .08); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 24px 24px 26px 0; border-right: 1px solid rgba(255, 255, 255, .12); }
.facts li + li { padding-left: 24px; }
.facts li:last-child { border-right: 0; }
.facts b { display: block; font: 800 2.5rem/1 var(--display); color: var(--white); margin-bottom: 4px; }
.facts span { font-size: .95rem; }

/* ================= Sekcje ================= */
.section { padding: var(--sec) 0; position: relative; }
.section-tight { padding-top: 32px; }
.section.dark { background: var(--deep); color: #d3eef3; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .muted, .section.dark .lead { color: #b3dbe3; }
.section.foam { background: var(--foam); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.head h2, .head p { margin: 0; }
.kicker { display: inline-block; font: 600 .95rem var(--text); color: var(--teal-ink); margin-bottom: 12px; }
.dark .kicker { color: var(--amber); }
.see-also { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 80ch; }

/* ================= Tablica ogłoszeń ================= */
.board { padding: clamp(40px, 6vw, 72px) 0; background-color: #e7efee; background-image: linear-gradient(#dbe6e4 1px, transparent 1px), linear-gradient(90deg, #dbe6e4 1px, transparent 1px); background-size: 32px 32px; scroll-margin-top: 80px; }
.board-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 24px; display: flex; align-items: center; gap: 14px; }
.board-title::before { content: ''; width: 34px; height: 6px; background: var(--amber); flex: none; }
.board-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: stretch; }
.notice-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid #d4dfdd; border-top: 6px solid var(--amber); border-radius: 4px; padding: 30px clamp(18px, 3vw, 30px) 22px; scroll-margin-top: 96px; }
.notice-card::before { content: ''; position: absolute; top: -14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--deep); border: 3px solid var(--paper); }
.notice-card:nth-child(even) { border-top-color: var(--teal-deep); }
.notice-label { align-self: flex-start; margin: 0 0 12px; padding: 4px 10px; border-radius: 3px; background: var(--amber); color: var(--ink); font: 600 .78rem/1.3 var(--text); text-transform: uppercase; letter-spacing: .08em; }
.notice-card:nth-child(even) .notice-label { background: var(--teal-deep); color: var(--white); }
.notice-title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; margin: 0 0 14px; }
.notice-body { font-size: 1rem; }
.notice-body p { margin: 0 0 12px; }
.notice-body ul { list-style: none; margin: 0 0 14px; padding: 0; }
.notice-body li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.notice-body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--deep); }
.notice-body strong { color: var(--deep); }
.notice-card a { font-weight: 600; overflow-wrap: anywhere; }
.notice-card a[href^="mailto:"] { white-space: normal; }
.notice-card a[href^="mailto:"]::before, .notice-card a[href^="tel:"]::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain; }
.notice-card a[href^="mailto:"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m3 6 9 7 9-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.notice-card a[href^="tel:"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.notice-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed #b9cdd1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.notice-foot p { margin: 0; }
.notice-contact a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-left: 4px; border: 2px solid var(--deep); border-radius: 999px; color: var(--deep); text-decoration: none; white-space: nowrap; }
.notice-contact a[href^="tel:"]:hover { background: var(--deep); color: var(--white); }
.notice-action { margin-left: auto; }
.notice-empty { margin: 0; padding: 22px 24px; color: var(--ink-2); background: var(--paper); border: 1px solid #d4dfdd; border-radius: 4px; }
@media (min-width: 761px) {
  .board-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-body:has(> .notice-card:only-child) { grid-template-columns: minmax(0, 780px); }
}
@media (min-width: 1101px) { .board-body:has(> .notice-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ================= Grafik torów (widżet) ================= */
.sched-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(14px, 2.6vw, 28px); }
.sched-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-bottom: 14px; min-height: 44px; }
.sched-head p { margin: 0; color: var(--ink-2); font-weight: 600; }
.sched-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
/* Miejsce na grafik rysowany przez JS (bez przesunięć układu); bez JS ukrywa go noscript.css */
.day-tabs { display: flex; gap: 6px; margin: 0 0 12px; min-height: 52px; }
.sched-host:empty { min-height: 340px; }
.day-tabs button { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 6px 8px; border-radius: var(--r-m); background: var(--tile); border: 1px solid transparent; color: var(--ink); font: 600 .95rem/1.2 var(--text); cursor: pointer; }
.day-tabs button:hover { border-color: var(--teal-ink); }
.day-tabs button small { font: 600 .72rem/1.1 var(--text); color: var(--teal-ink); }
.day-tabs button[aria-pressed="true"] { background: var(--deep); color: var(--white); }
.day-tabs button[aria-pressed="true"] small { color: var(--amber); }
.day-tabs button.closed { color: var(--ink-3); background: transparent; border: 1px dashed var(--line); }
.day-tabs button.closed small { color: var(--ink-3); font-weight: 400; }
.day-tabs .short-name { display: none; }
.sched-closed { padding: 40px 10px; text-align: center; font: 800 1.8rem var(--display); color: var(--ink-2); margin: 0 auto; max-width: none; }
.sched-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }
.sched-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; background: #e3eaeb; border: 1px solid #c9d5d6; }
.sched-legend i.o { background: var(--teal); border-color: var(--teal); }
.sched-legend i.p { background: var(--c); border-color: var(--c); }
.view-mobile { display: none; }
.grid-scroll { overflow-x: auto; }
.lane-grid { border-collapse: separate; border-spacing: 0; min-width: 920px; width: 100%; font-size: .9rem; }
.lane-grid th, .lane-grid td { padding: 0; text-align: center; }
.lane-grid thead th { font: 600 .92rem var(--text); color: var(--deep); padding: 10px 2px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lane-grid thead th.now { color: var(--ink); background: rgba(246, 190, 79, .3); border-radius: 8px 8px 0 0; }
.lane-grid tbody th { position: sticky; left: 0; z-index: 1; background: var(--white); text-align: left; padding: 0 16px 0 4px; font: 800 1.2rem var(--display); color: var(--deep); white-space: nowrap; }
.lane-grid td { height: 46px; padding: 0 2px; }
.lane-grid td i { display: block; height: 36px; margin: 5px 0; border-radius: var(--r-s); background: #e6ecee; }
.lane-grid td.free i { background: var(--teal); }
.lane-grid td.now { background: rgba(246, 190, 79, .3); }
.lane-grid tbody tr:last-child td.now { border-radius: 0 0 8px 8px; }
.lane-grid td a { display: block; }
.lane-grid td a:hover i, .lane-grid td a:focus-visible i { background: var(--deep); }
.lane-grid td a:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.lane-grid td.prog { padding: 4px 2px; vertical-align: middle; }
.lane-mobile { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.lane-mobile thead th { position: sticky; top: 72px; z-index: 2; background: var(--white); font: 800 1.05rem var(--display); color: var(--deep); padding: 8px 0 6px; text-align: center; }
.lane-mobile thead th:first-child { width: 52px; text-align: left; font: 600 .78rem var(--text); color: var(--ink-2); }
.lane-mobile tbody th { text-align: left; font: 800 1.05rem/1 var(--display); color: var(--deep); padding: 0 2px; white-space: nowrap; }
.lane-mobile tbody th small { display: block; font: 600 .66rem var(--text); color: var(--ink); margin-top: 2px; }
.lane-mobile td { padding: 0; }
.lane-mobile td a { display: block; }
.lane-mobile td i { display: block; height: 44px; border-radius: var(--r-s); background: #e6ecee; }
.lane-mobile td.free i { background: var(--teal); }
.lane-mobile td a:active i, .lane-mobile td a:focus-visible i { background: var(--deep); }
.lane-mobile tr.now th, .lane-mobile tr.now td { background: rgba(246, 190, 79, .32); }
.lane-mobile tr.now th { border-radius: 8px 0 0 8px; padding-left: 4px; }
.lane-mobile tr.now td:last-child { border-radius: 0 8px 8px 0; }
.lane-mobile td.prog { padding: 0; }
/* Zajęcia stowarzyszenia w grafiku */
.c-teal { --c: #23946a; --c-bg: #e2f4ec; } .c-amber { --c: #e0a126; --c-bg: #fff4dc; } .c-navy { --c: #2f5b86; --c-bg: #e6eef7; }
.c-pink { --c: #c9567f; --c-bg: #fbe8ef; } .c-violet { --c: #6a51b5; --c-bg: #eeeafa; } .c-brick { --c: #bf4f36; --c-bg: #fbe9e4; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--c, var(--teal)); }
.prog-btn { display: grid; align-content: center; justify-items: center; gap: 2px; width: 100%; height: 100%; min-height: 44px; padding: 6px 2px; border: 0; border-radius: var(--r-s); background: var(--c); color: var(--white); cursor: pointer; font: inherit; text-align: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.prog-btn:hover { box-shadow: inset 0 0 0 3px var(--deep); }
.prog-btn:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.prog-btn b { font: 800 .95rem/1 var(--display); letter-spacing: .01em; }
.prog-btn small { font: 600 .68rem/1.15 var(--text); }
.prog-btn em { font: 600 .66rem/1 var(--text); font-style: normal; }
.c-amber .prog-btn, .prog-btn.c-amber { color: var(--ink); }
.lane-grid td.prog .prog-btn { min-height: 82px; }
.lane-grid td.prog[rowspan="1"] .prog-btn { min-height: 36px; }
.lane-grid td.prog[rowspan="3"] .prog-btn { min-height: 128px; }
.lane-mobile td.prog .prog-btn { min-height: 44px; padding: 4px; gap: 1px; }
.lane-mobile td.prog[rowspan="2"] .prog-btn { min-height: 91px; }
.lane-mobile td.prog .prog-btn b { font-size: .86rem; white-space: nowrap; }
.lane-mobile td.prog .prog-btn small, .lane-mobile td.prog .prog-btn em { font-size: .64rem; white-space: nowrap; }
@media (max-width: 960px) {
  .view-desktop { display: none; }
  .view-mobile { display: block; }
  .day-tabs { gap: 4px; }
  .day-tabs button { padding: 6px 0; font-size: .9rem; }
  .day-tabs .full-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .day-tabs .short-name { display: inline; }
  .day-tabs button.closed small { display: none; }
}
@media (min-width: 761px) and (max-width: 960px) { .lane-mobile thead th { top: 72px; } }

/* ================= O nas ================= */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about .photo { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--deep-2); }
.about .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.photo-img { display: contents; }
.photo-note { position: absolute; left: 14px; bottom: 14px; z-index: 1; max-width: calc(100% - 28px); background: rgba(8, 42, 54, .88); color: #e3f3f6; font-size: .82rem; line-height: 1.35; padding: 6px 12px; border-radius: var(--r-s); }
.about-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.about .big { font: 800 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--display); color: var(--amber); margin: 0 0 24px; max-width: 24ch; }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid rgba(255, 255, 255, .2); }
.timeline li { position: relative; padding: 0 0 24px 28px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--deep); border: 3px solid var(--teal); }
.timeline li:last-child::before { background: var(--amber); border-color: var(--amber); }
.timeline b { display: block; font: 800 1.7rem/1 var(--display); color: var(--amber); margin-bottom: 4px; }
.timeline p { margin: 0; color: #cbe6ec; }

/* ================= Oferta: wiersze ze zdjęciem i ceną ================= */
.offer-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; scroll-margin-top: 96px; }
.offer-row + .offer-row { border-top: 1px solid var(--line); }
.offer-row .pic { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 2; background: var(--shallow); }
.offer-row .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-row .pic .badge { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--deep); border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--text); }
.offer-row h2, .offer-row h3 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-bottom: 14px; }
.offer-row .btn { margin: 0 10px 10px 0; }
.cms-cards .offer-row:nth-child(odd) .pic { order: 2; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 20px 0 24px; padding: 14px 0; border-top: 1px dashed #b9cdd1; border-bottom: 1px dashed #b9cdd1; }
.price-line .p { font: 800 2.5rem/1 var(--display); color: var(--deep); }
.price-line .u { color: var(--ink-2); font-size: .95rem; }
.price-line .alt { width: 100%; font-size: .92rem; color: var(--ink-2); }
.params { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: .95rem; }
.params dt { color: var(--ink-2); }
.params dd { margin: 0; font-weight: 600; }

/* Zajęcia z instruktorem (kafelki na granacie) */
.home-progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp { display: grid; grid-template-rows: auto 1fr; background: var(--deep-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: #d3eef3; transition: border-color .15s, background-color .15s; }
.dark a.hp { color: #d3eef3; }
.hp:hover, .dark a.hp:hover { background: var(--deep-3); border-color: var(--amber); color: #d3eef3; }
.hp img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hp-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.hp-body b { font: 800 1.7rem/1 var(--display); color: var(--white); }
.hp-body small { font-size: .95rem; color: #b3dbe3; }
.hp-cta { margin-top: 8px; font-weight: 600; color: var(--amber); }
.hp-cta::after { content: ' →'; }

/* Kto u nas pływa */
.crew-photo { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 21 / 8; margin-bottom: 32px; background: var(--shallow); }
.crew-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--deep); }
.crew div { padding: 24px 28px 28px 0; }
.crew div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.crew h3 { font-size: 1.65rem; margin-bottom: 8px; }
.crew p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Cytat (pokazuje się tylko, gdy panel ma treść cytatu) */
.underwater { background: var(--deep); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.underwater:has(> .wrap:empty) { display: none; }
.underwater blockquote { margin: 0; max-width: 22ch; font: 800 clamp(2.2rem, 5vw, 4rem)/1 var(--display); }
.underwater cite { display: block; margin-top: 18px; font: 400 1rem var(--text); color: #bfe4ec; font-style: normal; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 600; font-size: 1.06rem; color: var(--deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 800 1.6rem/1 var(--display); color: var(--teal-ink); }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--teal-ink); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* Aktualności */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 2px solid var(--deep); }
.news time { font: 800 1.45rem/1.1 var(--display); color: var(--deep); }
.news p { margin: 0; }
.news li.hot p { font-weight: 600; color: var(--deep); }

/* Salon */
.salon { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.salon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; aspect-ratio: 3 / 2; }
.salon-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-m); min-height: 0; }
.salon-grid > img:first-child, .salon-grid > picture:first-child img { grid-column: span 2; grid-row: span 2; }
.promo { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--amber); padding: 14px 18px; border-radius: var(--r-s); margin: 20px 0; max-width: 680px; }
.promo p { margin: 0; }

/* Wezwanie na dole strony (bursztyn) */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 40px; align-items: center; background: var(--amber); border-radius: var(--r-l); padding: clamp(26px, 5vw, 56px); }
.cta h2 { color: var(--ink); }
.cta p, .cta .lead { color: #3d3217; }
.cta a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: underline; }
.cta a:not(.btn):hover { color: var(--ink); text-decoration-thickness: 2.5px; }
.cta-place { margin: 16px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn-line { color: var(--ink); border-color: var(--ink); }
.cta .btn-line:hover { background: var(--ink); color: var(--amber); }

/* ================= Podstrony ================= */
.page-hero { background: var(--deep); color: #c4e3ea; padding: clamp(26px, 4vw, 48px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { color: var(--white); margin: 0 0 12px; max-width: 22ch; }
.page-hero p { color: #c4e3ea; font-size: 1.08rem; max-width: 64ch; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 14px; padding: 0; font-size: .9rem; color: #a9d3dc; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #6f9aa5; }
.crumbs a { display: inline-block; padding: 4px 0; }

/* Grafik tygodniowy jako tekst (grafik.html, widoczny bez JavaScriptu) */
.lanes-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 14px; }
.lw-day { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px 12px; }
.lw-day h3 { font-size: 1.5rem; margin: 0 0 2px; }
.lw-hours, .lw-closed { margin: 0 0 8px; font-size: .92rem; color: var(--ink-2); }
.lw-day ul { list-style: none; margin: 0; padding: 0; }
.lw-day li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; padding: 7px 0 7px 12px; border-top: 1px solid var(--tile-line); font-size: .93rem; line-height: 1.4; }
.lw-day li::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 4px; border-radius: 2px; background: #c9d5d6; }
.lw-day li.lw-free::before { background: var(--teal); }
.lw-time { flex: 0 0 104px; font-weight: 600; color: var(--deep); }
.lw-busy { color: var(--ink-3); }
.lw-busy .lw-time { color: var(--ink-2); }
.lw-note { font-weight: 600; color: var(--deep); }
.lw-toggle { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; color: var(--deep); font: inherit; text-align: left; cursor: pointer; }
.lw-name { font: 800 1.5rem/1 var(--display); }
.lw-sum { font: 400 .9rem var(--text); color: var(--ink-2); white-space: nowrap; }
.lw-sum::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.lw-day.open .lw-sum::after { transform: translateY(1px) rotate(-135deg); }
.lw-fold .lw-day h3 { margin: 0; }
.lw-fold .lw-body { padding-top: 10px; }
.lw-fold .lw-day:not(.open) .lw-body { display: none; }

/* Godziny */
.hours { width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 8px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font: 800 1.3rem var(--display); color: var(--deep); white-space: nowrap; padding-left: 16px; }
.hours tr.today td { color: var(--teal-ink); font-weight: 600; }
.hours tr.today td:last-child { color: var(--teal-ink); }

/* ================= Cennik ================= */
.ticket-rule { display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal-deep); border-radius: var(--r-s); padding: 16px 20px; margin: 0 0 40px; max-width: 760px; }
.ticket-rule b { font-size: 1.05rem; color: var(--deep); }
.ticket-rule span { color: var(--ink-2); }
.price-heading { margin-bottom: 28px; }
.price-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 56px; align-items: start; }
.price-group { min-width: 0; scroll-margin-top: 96px; }
.price-group h3 { font-size: 2rem; padding-bottom: 10px; margin: 0; border-bottom: 3px solid var(--deep); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable td small { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.ptable td.amt { text-align: right; padding-left: 16px; white-space: nowrap; font: 800 1.45rem/1.1 var(--display); color: var(--deep); font-variant-numeric: tabular-nums; }
.ptable td.zl::after { content: '\00a0zł'; font: 600 .85rem var(--text); color: var(--ink-2); }
.price-more { margin: 12px 0 0; }
.price-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.price-more a::after { content: '→'; margin-left: 8px; }
.notes { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.notes p { margin: 0; padding: 14px 18px; background: var(--white); border-radius: var(--r-m); border: 1px solid var(--line); font-size: .95rem; }

/* ================= Zajęcia i zapisy ================= */
.prog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: grid; grid-template-rows: auto 1fr; scroll-margin-top: 96px; min-width: 0; }
.pc-pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; }
.pc-body h2, .pc-body h3 { font-size: 1.9rem; margin-bottom: 10px; }
.pc-body p { font-size: .98rem; color: var(--ink-2); }
.pc-body .params { margin-top: auto; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav button { min-width: 44px; min-height: 44px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--tile); font: 600 1.2rem var(--text); color: var(--deep); cursor: pointer; padding: 0 12px; }
.week-nav button:hover:not(:disabled) { border-color: var(--deep); }
.week-nav button.btn-sm { font-size: .9rem; }
.week-nav button:disabled { opacity: .45; cursor: not-allowed; }
.week-nav span { font: 800 1.35rem var(--display); color: var(--deep); min-width: 190px; text-align: center; }
.prog-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-filter button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 .9rem var(--text); color: var(--ink); cursor: pointer; }
.prog-filter button:hover { border-color: var(--deep); }
.prog-filter button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.class-table { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.class-table thead th { font: 600 .95rem var(--text); color: var(--deep); padding: 8px 4px; text-align: left; }
.class-table thead th small { display: block; font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.class-table thead th.today { color: var(--teal-ink); }
.class-table tbody th { width: 150px; text-align: left; font: 800 1.15rem/1.1 var(--display); color: var(--deep); vertical-align: middle; }
.class-table td { vertical-align: top; height: 92px; background: var(--tile); border-radius: var(--r-m); padding: 4px; }
.class-table td.today { background: rgba(246, 190, 79, .16); }
.cls-chip { display: grid; gap: 2px; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; border-left: 4px solid var(--c); background: var(--c-bg); color: var(--ink); cursor: pointer; font: 400 .86rem var(--text); }
.cls-chip + .cls-chip { margin-top: 6px; }
.cls-chip:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--c); }
.cls-chip .t { font: 800 1.25rem/1 var(--display); color: var(--deep); }
.cls-chip .t small { font-weight: 600; color: var(--ink-2); }
.cls-chip .n { font-weight: 600; font-size: .84rem; }
.cls-chip .s { font-size: .82rem; color: var(--teal-ink); font-weight: 600; }
.cls-chip.st-few .s { color: #8f5200; }
.cls-chip.st-full .s { color: var(--err); }
.cls-chip.st-past { opacity: .6; cursor: default; }
.cls-chip.st-past .s { color: var(--ink-2); }
.cg-mobile { display: none; }
.cg-day { padding: 12px 0; border-top: 1px solid var(--line); }
.cg-day h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cg-day h3 small { font: 400 .86rem var(--text); color: var(--ink-2); }
.cg-day.today h3 small { color: var(--teal-ink); }
.cg-day .cls-chip { grid-template-columns: 74px 1fr; grid-template-areas: "t n" "t s"; column-gap: 12px; }
.cg-day .cls-chip .t { grid-area: t; align-self: center; }
.cg-day .cls-chip .n { grid-area: n; font-size: .95rem; }
.cg-day .cls-chip .s { grid-area: s; }
.cg-none { margin: 0; color: var(--ink-3); font-size: .92rem; }
/* Stałe terminy (wypieczone; JS dokłada wolne miejsca i zapis) */
.cw-lead { font-weight: 600; color: var(--deep); margin-bottom: 10px; }
.class-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.class-week li { display: flow-root; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-s); padding: 12px 14px; line-height: 1.5; }
.class-week li b { display: inline-block; min-width: 6.4em; color: var(--deep); }
.class-week li .num { font: 800 1.3rem/1 var(--display); color: var(--deep); }
.class-week .cw-live { float: right; margin: -6px 0 -6px 12px; }
.cw-note { margin: 12px 0 0; font-size: .92rem; color: var(--ink-2); }
.class-week-box h3 { margin-bottom: 14px; }
.wrap:has(> .class-week-box) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 56px; align-items: start; }
.wrap:has(> .class-week-box) > .head { grid-column: 1 / -1; margin-bottom: 0; }
/* Nauka pływania: dla dzieci i dla dorosłych */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.aud { min-width: 0; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--amber); border-radius: var(--r-m); padding: clamp(20px, 3vw, 32px); scroll-margin-top: 96px; }
.aud + .aud { border-top-color: var(--teal-deep); }
.aud h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.aud-body p:last-child { margin-bottom: 0; }

/* ================= Rezerwacja ================= */
.booking { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.booking-main { min-width: 0; }
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; font-size: .9rem; font-weight: 600; color: var(--ink-3); padding-top: 10px; border-top: 4px solid var(--line); }
.steps li::before { content: counter(s) '. '; }
.steps li.active { color: var(--deep); border-color: var(--amber); }
.steps li.done { color: var(--teal-ink); border-color: var(--teal); }
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-panel h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice label { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-m); cursor: pointer; }
.choice label:hover { border-color: var(--teal-ink); }
.choice label:has(input:checked) { border-color: var(--deep); background: var(--foam); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-s); }
.choice .t { display: block; font: 800 1.4rem/1 var(--display); color: var(--deep); }
.choice .d { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 5px; line-height: 1.4; }
.slot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-picker button { min-height: 56px; font: 800 1.15rem/1 var(--display); padding: 8px 6px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--white); color: var(--deep); cursor: pointer; }
.slot-picker button small { display: block; font: 400 .74rem var(--text); color: var(--ink-2); margin-top: 4px; }
.slot-picker button:hover:not(:disabled) { border-color: var(--teal-ink); }
.slot-picker button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.slot-picker button[aria-pressed="true"] small { color: #bfe4ec; }
.slot-picker button:disabled { cursor: not-allowed; background: var(--tile); color: var(--ink-3); border-style: dashed; }
.lane-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lane-picker button { display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 64px; padding: 14px 4px 10px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--white); font: 800 1.2rem/1 var(--display); color: var(--deep); cursor: pointer; position: relative; overflow: hidden; }
.lane-picker button::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--rope) 0 8px, #f3f7f6 8px 16px); }
.lane-picker button small { font: 400 .76rem var(--text); color: var(--ink-2); }
.lane-picker button:hover:not(:disabled) { border-color: var(--teal-ink); }
.lane-picker button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.lane-picker button[aria-pressed="true"] small { color: var(--amber); }
.lane-picker button:disabled { cursor: not-allowed; background: var(--tile); color: var(--ink-3); border-style: dashed; }
.lane-picker button:disabled small { color: var(--ink-3); }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.summary { position: sticky; top: 96px; background: var(--deep); color: #d3eef3; border-radius: var(--r-l); padding: 24px; overflow: hidden; }
.summary .ph { margin: -24px -24px 20px; aspect-ratio: 16 / 9; overflow: hidden; }
.summary .ph img { width: 100%; height: 100%; object-fit: cover; }
.summary h3 { color: var(--white); font-size: 1.8rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .95rem; }
.summary dt { color: #a9d3dc; }
.summary dd { margin: 0; color: var(--white); font-weight: 600; }
.dl-row { display: contents; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.summary .total b { font: 800 2.6rem/1 var(--display); color: var(--amber); white-space: nowrap; }
.summary .note { font-size: .86rem; color: #a9d3dc; margin: 12px 0 0; }
.confirm { background: var(--white); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); border: 2px solid var(--teal-ink); }
.confirm .code { font: 800 3.2rem/1 var(--display); color: var(--teal-ink); margin: 8px 0 14px; }

/* ================= Formularze ================= */
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field .lbl { font-weight: 600; font-size: .95rem; color: var(--deep); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--text); min-height: 48px; padding: 11px 14px; border: 1px solid #b9cccf; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--deep); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--tile); color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
[aria-invalid="true"] { border-color: var(--err) !important; border-width: 2px !important; }
.f-err { color: var(--err); font-size: .88rem; font-weight: 600; }
.f-err:empty { display: none; }
.err { margin: 14px 0 0; padding: 12px 16px; background: #fdf0ee; color: #7a1a10; border-left: 4px solid var(--err); border-radius: var(--r-s); max-width: none; }
.form-hint { margin: 0 0 14px; color: var(--ink-2); font-size: .94rem; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; margin: 4px 0; font-size: .94rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--deep); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-card { background: var(--white); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); scroll-margin-top: 88px; }
.sg-ok { font: 800 1.3rem var(--display); color: var(--teal-ink); margin: 18px 0 0; }

/* Okno zapisu */
.signup { width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow-y: auto; border: 0; border-radius: var(--r-l); padding: 28px; color: var(--ink); }
.signup::backdrop { background: rgba(4, 22, 29, .72); }
.signup h2 { font-size: 2.3rem; margin: 0 0 6px; padding-right: 48px; }
.signup .kicker { margin-bottom: 6px; }
.sg-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--deep); }
.sg-close:hover { border-color: var(--deep); }
.sg-status { padding: 10px 14px; border-radius: 10px; background: #e3f5f9; color: var(--deep); font-weight: 600; font-size: .95rem; }
.sg-status.st-few { background: #fff4dc; }
.sg-status.st-full { background: #fde8e6; }
.signup form .btn-block { margin-top: 16px; }
.confirm-code { font: 800 3rem/1 var(--display); color: var(--deep); margin: 4px 0 12px; }
.sg-dates { list-style: none; margin: 0 0 8px; padding: 0; max-height: 240px; overflow-y: auto; }
.sg-dates li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.sg-dates b { font-weight: 600; color: var(--teal-ink); white-space: nowrap; }
.sg-dates b.st-waitlist { color: #8f5200; }
.sg-dates b.st-closed { color: var(--err); }
.sg-dates b.st-duplicate { color: var(--ink-2); }

/* ================= Kontakt ================= */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.h-block { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.h-sub { margin-top: 36px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 18px; }
.contact dt { font-weight: 600; color: var(--deep); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.transit { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-m); background: var(--deep); color: #cfe9ef; }
.transit h3 { color: var(--white); font-size: 1.6rem; }
.transit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.transit li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.transit .ln { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-s); font: 800 1.2rem var(--display); background: var(--amber); color: var(--ink); text-decoration: none; }
.transit .ln.bus { background: var(--teal-deep); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.transit a.ln:hover { box-shadow: inset 0 0 0 3px var(--white); }
.transit-map { margin: 16px 0 0; }
.transit-map a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Polityka prywatności */
.legal-text { max-width: 820px; overflow-wrap: anywhere; }
.legal-text h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 40px 0 12px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text li { margin-bottom: 8px; }

/* ================= Stopka ================= */
.site-footer { background: var(--deep); color: #c0e2e9; padding: clamp(48px, 7vw, 88px) 0 0; font-size: .95rem; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.foot-cols h2 { color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.foot-cols p { margin: 0 0 8px; }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 62px; height: 64px; }
.foot-brand b { font: 800 1.8rem/.95 var(--display); color: var(--white); }
.foot-big::before { content: 'Razem dla sportu'; display: block; font: 800 clamp(3rem, 12.4vw, 12rem)/.82 var(--display); color: rgba(255, 255, 255, .07); white-space: nowrap; margin-bottom: -.06em; }
.legal { background: var(--tile); color: var(--ink-2); font-size: .88rem; }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 12px 0; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-ink); }
.made-by { display: inline-flex; align-items: center; gap: 10px; }
.made-by img { width: 96px; height: 14px; object-fit: cover; }
.made-by a { display: inline-flex; align-items: center; min-height: 44px; }

/* Pasek szybkich akcji (telefon) */
.mobile-bar { display: none; }

/* ================= Telefony i tablety ================= */
@media (max-width: 1100px) {
  .prog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .booking { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .booking-main { display: contents; }
  .booking .steps { order: 1; margin-bottom: 14px; }
  .booking .summary { order: 2; position: static; margin-bottom: 24px; padding: 14px 16px; border-radius: var(--r-m); }
  .booking .step-panel { order: 3; }
  .summary .ph { display: none; }
  .summary h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .summary dl { gap: 4px 14px; font-size: .9rem; }
  .summary .total { margin-top: 10px; padding-top: 10px; }
  .summary .total b { font-size: 1.9rem; }
  .summary .note { margin-top: 6px; font-size: .8rem; }
  .cg-desktop { display: none; }
  .cg-mobile { display: block; }
  .week-nav { width: 100%; }
  .week-nav span { min-width: 0; flex: 1; font-size: 1.15rem; }
  .prog-filter { width: 100%; }
  .prog-filter button { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .home-progs { grid-template-columns: minmax(0, 1fr); }
  .hp { grid-template-columns: 38% 1fr; grid-template-rows: none; }
  .hp img { height: 100%; aspect-ratio: auto; }
  .hp-body { padding: 16px; }
  .hp-body b { font-size: 1.4rem; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .wrap:has(> .class-week-box) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .head, .about, .offer-row, .faq, .salon, .cta { grid-template-columns: minmax(0, 1fr); }
  .head { gap: 12px; }
  .cms-cards .offer-row:nth-child(odd) .pic { order: 0; }
  .about .photo { aspect-ratio: 16 / 10; }
  .crew { grid-template-columns: minmax(0, 1fr); }
  .crew div, .crew div + div { padding: 18px 0; border-left: 0; }
  .crew div + div { border-top: 1px solid var(--line); }
  .cta-actions { justify-content: flex-start; }
  .audience { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 76px; scroll-padding-bottom: 84px; }
  .header-bar { min-height: 64px; gap: 12px; }
  .brand img { width: 42px; height: 44px; }
  .brand .word { font-size: 1.3rem; }
  .nav { max-height: calc(100svh - 64px - 72px); }
  .notice-bar .wrap { padding: 7px 0; }
  .notice-bar p { font-size: .86rem; line-height: 1.35; }
  .notice-bar .nb-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .page-home .notice-bar.to-board { display: none; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid rgba(255, 255, 255, .14); }
  .mobile-bar .btn { min-height: 48px; padding: 0 10px; font-size: .98rem; }
  .mobile-bar[hidden] { display: none; }
  body.no-bar { padding-bottom: 0; }
  body.menu-open .mobile-bar { display: none; }

  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding: calc(88px + var(--notice-h, 0px)) 0 32px; gap: 0; }
  .page-home .hero .wrap { padding-top: 88px; }
  .seal { display: none; }
  .hero-kicker { margin-bottom: 10px; font-size: .9rem; }
  .hero h1 { margin-bottom: 14px; }
  .h1-main { font-size: clamp(2.9rem, 15vw, 4.2rem); }
  .h1-sub { font-size: clamp(1.35rem, 6.4vw, 1.8rem); }
  .hero .lead { font-size: 1rem; margin-bottom: 16px; }
  .hero-hours { margin-bottom: 18px; padding: 8px 12px; font-size: .95rem; }
  .hero-media img { object-position: 62% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(8, 42, 54, .95) 0%, rgba(8, 42, 54, .78) 50%, rgba(8, 42, 54, .5) 100%); }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-actions .btn { width: 100%; }

  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 16px 10px 16px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .facts b { font-size: 1.8rem; }
  .facts span { font-size: .86rem; }

  .head { margin-bottom: 22px; }
  .kicker { margin-bottom: 8px; font-size: .9rem; }
  .board-title { margin-bottom: 20px; }
  .board-body { gap: 26px; }
  .notice-card { padding: 26px 18px 18px; }
  .notice-foot { gap: 10px; }
  .notice-action, .notice-action .btn { margin-left: 0; width: 100%; }

  .sched-box { padding: 12px 8px 16px; border-radius: var(--r-m); margin: 0 calc(-1 * var(--gutter) + 8px); }
  .sched-head { margin: 4px 6px 8px; font-size: .92rem; }
  .sched-legend { gap: 6px 14px; font-size: .84rem; margin: 12px 6px 0; }
  .lane-mobile thead th { top: 64px; }
  .sched-host:empty { min-height: 70vh; }

  .offer-row { gap: 18px; padding: 28px 0; }
  .offer-row .pic { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
  .offer-row .pic .badge { left: 12px; bottom: 12px; font-size: .84rem; padding: 6px 12px; }
  .offer-row h2, .offer-row h3 { font-size: 2.1rem; margin-bottom: 10px; }
  .offer-row .btn { width: 100%; margin-right: 0; }
  .params { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .params dt { font-size: .82rem; margin-top: 8px; }
  .price-line { margin: 16px 0 18px; padding: 12px 0; }
  .price-line .p { font-size: 2.2rem; }

  .about .photo, .crew-photo { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
  .crew-photo { margin-bottom: 20px; }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .news time { font-size: 1.25rem; }
  .salon-grid { aspect-ratio: 4 / 3; gap: 6px; }
  .cta { padding: 24px 18px; border-radius: var(--r-m); gap: 18px; }
  .cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cta-actions .btn { width: 100%; }

  .page-hero { padding: 18px 0 24px; }
  .page-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); margin-bottom: 8px; }
  .page-hero p { font-size: 1rem; }
  .crumbs ol { margin-bottom: 8px; font-size: .86rem; }
  .page-hero .hero-hours { margin-top: 12px; }
  .section-tight { padding-top: 20px; }

  .lw-fold .lanes-week, .lanes-week.lw-fold { gap: 8px; }
  .lw-fold .lw-day { padding: 0; }
  .lw-fold .lw-toggle { min-height: 56px; padding: 12px 16px; }
  .lw-fold .lw-body { padding: 0 16px 12px; }
  .lw-time { flex-basis: 96px; }

  .price-group h3 { font-size: 1.8rem; }
  .ptable td { padding: 11px 0; font-size: .95rem; }
  .ptable td.amt { font-size: 1.3rem; }
  .notes { margin-top: 32px; }
  .prog-cards { grid-template-columns: minmax(0, 1fr); }
  .pc-actions .btn { flex: 1 1 100%; }
  .class-week .cw-live { float: none; display: flex; margin: 10px 0 0; width: 100%; }

  .steps { gap: 4px; }
  .steps li { font-size: .76rem; padding-top: 8px; }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .choice label { grid-template-columns: 64px 1fr; gap: 12px; padding: 8px; }
  .choice img { width: 64px; height: 64px; }
  .choice .t { font-size: 1.3rem; }
  .slot-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .slot-picker button { padding: 8px 2px; font-size: 1.05rem; }
  .lane-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-actions { display: grid; grid-template-columns: auto 1fr; }
  .step-actions .btn { width: 100%; }
  .step-actions > :only-child { grid-column: 1 / -1; }
  .confirm .code { font-size: 2.5rem; }
  #sg-done .step-actions { grid-template-columns: minmax(0, 1fr); }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact dt { margin-top: 12px; font-size: .86rem; }
  .form-card { padding: 22px 16px; border-radius: var(--r-m); }
  .transit { padding: 18px 16px; }
  .signup { padding: 22px 18px 24px; border-radius: var(--r-m); }
  .signup h2 { font-size: 1.9rem; }

  .site-footer { padding-top: 44px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 28px; }
  .legal .wrap { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (max-width: 520px) {
  .brand .sub { display: none; }
  .sched-box { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; padding: 12px 6px 16px; }
  .lane-mobile { border-spacing: 2px 3px; }
  .lane-mobile thead th:first-child { width: 48px; }
}
@media (max-width: 360px) {
  .day-tabs button { font-size: .8rem; }
  .slot-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts b { font-size: 1.55rem; }
  .mobile-bar { grid-template-columns: 1fr 1.2fr; }
  .h1-main { font-size: 2.75rem; }
}

/* ================= Ruch ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================= Panel administratora ================= */
html:has(body.adm) { background: var(--tile); }
body.adm { background: var(--tile); padding-bottom: 0; }
html:has(body.adm) { scroll-padding-top: 120px; scroll-padding-bottom: 140px; }
/* Logowanie */
.auth { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.auth-card { width: min(420px, 100%); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--deep); border-radius: var(--r-m); padding: clamp(22px, 5vw, 32px); }
.auth-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--deep); }
.auth-brand img { width: 44px; height: 46px; }
.auth-brand span { font: 800 1.35rem/1 var(--display); }
.auth-brand small { display: block; margin-top: 3px; font: 400 .8rem var(--text); color: var(--ink-2); }
.auth-card h1 { font-size: 2.3rem; margin: 22px 0 18px; }
.auth-card .btn { margin-top: 6px; }
.auth-note { margin: 16px 0 0; font-size: .88rem; color: var(--ink-2); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 18px; margin: 0; font-size: .86rem; color: var(--ink-2); }
.auth-foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* Nagłówek i zakładki */
.adm-top { background: var(--deep); color: var(--white); }
.adm-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.adm-top .brand img { width: 39px; height: 40px; }
.adm-top .brand .word { font-size: 1.35rem; }
.adm-top-actions { display: flex; gap: 8px; }
.adm-tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.adm-tab-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 4px; padding: 4px 0; }
.tab-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding: 0 12px; }
.tab-group:first-child { padding-left: 0; }
.tab-group + .tab-group { border-left: 1px solid var(--line); }
.tg-label { margin-right: 6px; font: 600 .72rem var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.adm-tabs button { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 10px; background: none; border: 0; border-radius: var(--r-s); color: var(--ink-2); font: 600 .93rem var(--text); cursor: pointer; }
.adm-tabs button:hover { color: var(--deep); background: var(--tile); }
.adm-tabs button[aria-current="page"] { color: var(--deep); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.adm-badge { background: var(--amber); color: var(--ink); border-radius: 99px; font-size: .75rem; padding: 1px 7px; font-weight: 600; }
.adm-tab-pick { display: none; padding: 10px 0 12px; }
.adm-tab-pick label { display: block; color: var(--ink-2); font: 600 .85rem var(--text); margin-bottom: 4px; }
.adm-tab-pick select { width: 100%; min-height: 48px; font: 600 1rem var(--text); padding: 10px 12px; border-radius: 10px; border: 1px solid #b9cccf; background: var(--white); color: var(--deep); }
.adm-publish { margin: 0; max-width: none; padding: 12px 16px; background: #fff4e5; color: #6b3d00; border-bottom: 1px solid #f0c27b; font-weight: 600; text-align: center; }
.adm-main { padding: 28px 0 64px; min-height: 70vh; min-width: 0; }
.adm-main input, .adm-main select, .adm-main textarea { min-height: 44px; }
body.adm > #app > .legal { margin-top: 0; }
/* Nagłówek zakładki, karty edytora */
.ed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.ed-head h1 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin: 0 0 6px; }
.ed-head p { margin: 0; max-width: 760px; }
.ed-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px 12px; margin: 0 0 14px; min-width: 0; }
fieldset.ed-card > legend { padding: 0 6px; margin-left: -6px; font-size: 1rem; color: var(--deep); }
.ed-card-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; }
.ed-card-head .grow { flex: 1; }
.ed-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ed-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.ed-grid3 .span2 { grid-column: span 2; }
.ed-sub { font-size: 1.6rem; margin: 30px 0 12px; padding-top: 18px; border-top: 2px solid var(--deep); }
.ed-sub-in { font-size: 1.3rem; border-top-width: 1px; border-top-color: var(--line); margin-top: 18px; }
.hint { display: block; color: var(--ink-3); font-size: .86rem; }
.mt { margin-top: 18px; }
.field textarea { field-sizing: content; min-height: 88px; max-height: 70vh; }
.field .count { display: block; font-size: .84rem; color: var(--ink-2); }
.field .count.over { color: #8f5200; font-weight: 600; }
.tok-warn { display: block; color: #8f5200; font-size: .86rem; font-weight: 600; }
.row-tools { display: inline-flex; gap: 8px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--white); color: var(--deep); font-size: 1.05rem; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover:not(:disabled) { border-color: var(--deep); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.del { color: var(--err); margin-left: 12px; }
.icon-btn.del:hover:not(:disabled) { border-color: var(--err); background: #fdf0ee; }
.list-ed { margin-bottom: 18px; }
.list-item .ed-card-head { align-items: center; margin-bottom: 8px; }
.li-title { min-width: 0; overflow-wrap: anywhere; color: var(--deep); }
.sub-list { margin: 8px 0 4px; padding: 12px 14px; border-radius: var(--r-m); background: var(--tile); }
.sub-list h3 { margin: 0 0 8px; font: 600 .95rem var(--text); color: var(--deep); }
.sub-list .ed-card { margin-bottom: 8px; }
.add-btn { margin: 4px 0 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 6px; }
.img-pick { display: flex; gap: 10px; align-items: center; }
.img-pick img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-s); flex: none; background: var(--tile); }
.img-pick select { flex: 1; min-width: 0; }
.serp { display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: Arial, sans-serif; }
.serp-u { font-size: .8rem; color: #4d5156; }
.serp-t { font-size: 1.15rem; color: #1a0dab; overflow-wrap: anywhere; }
.serp-d { font-size: .88rem; color: #4d5156; overflow-wrap: anywhere; }
.page-pick select { font-weight: 600; }
.fmt-help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--deep); }
.fmt-help code, .tok-list code { background: var(--tile); padding: 1px 5px; border-radius: 4px; }
.tok-list { columns: 2; padding-left: 1.1em; font-size: .9rem; }
.adm-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fff4e5; color: #6b3d00; border: 1px solid #f0c27b; max-width: none; }
/* Przyklejony pasek zapisu */
.ed-save { position: sticky; bottom: 0; z-index: 20; margin-top: 28px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -1px 0 var(--line); padding: 10px 0; }
.ed-save .wrap-in { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
#ed-status { margin-right: auto; font-size: .92rem; color: var(--ink-2); }
#ed-status.warn { color: #8f5200; font-weight: 600; }
#ed-status.ok { color: #0b6b3a; font-weight: 600; }
/* Cennik w panelu */
.price-rows { display: grid; gap: 6px; margin: 6px 0 12px; }
.price-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 120px auto; gap: 8px; align-items: center; }
.price-row.head span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.price-row > label { display: grid; min-width: 0; }
.price-row .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price-row input { font: 400 .95rem var(--text); padding: 9px 11px; border: 1px solid #b9cccf; border-radius: 8px; width: 100%; min-width: 0; }
.price-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--deep); }
.price-row .price-in { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
/* Zajęcia, godziny, aktualności */
.prog-ed.off { opacity: .8; }
.prog-toggle { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-height: 44px; text-align: left; background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; color: var(--ink); }
.prog-toggle .dot { grid-row: span 2; margin: 0; }
.prog-toggle small { color: var(--ink-2); }
.prog-ed .ed-card-head { align-items: center; margin-bottom: 8px; }
.slot-row { display: grid; grid-template-columns: 170px 120px 1fr auto; gap: 12px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.slot-row .field { margin: 0; }
.lane-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.lane-pick button { width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid #b9cccf; background: var(--white); font: 600 1rem var(--text); cursor: pointer; color: var(--ink-2); }
.lane-pick button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.hours-ed { display: grid; gap: 8px; margin-bottom: 18px; }
.hours-row { display: grid; grid-template-columns: 130px 110px 160px 160px; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.hours-row .field, .hours-row .check { margin: 0; }
.hours-row .field { grid-template-columns: auto 1fr; align-items: center; }
.news-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.news-row .field { margin: 0; }
.news-side { display: grid; gap: 8px; justify-items: end; padding-top: 24px; }
/* Grafik torów w panelu */
.lane-days, .seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.lane-days button, .seg button { min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 0 16px; font: 600 .92rem var(--text); cursor: pointer; color: var(--deep); }
.lane-days button:hover, .seg button:hover { border-color: var(--deep); }
.lane-days button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }
.lane-day-field { display: none; }
.lane-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.lane-key { display: inline-flex; gap: 6px; align-items: center; }
.lane-key i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.lane-key .free, .cell.free { background: var(--white); border: 1px solid #a9bfc3; }
.lane-key .busy, .cell.busy { background: #4f646b; border: 1px solid #3f5359; }
.lane-key .closed, .cell.closed { background: repeating-linear-gradient(45deg, #eef2f2, #eef2f2 4px, #dfe7e7 4px, #dfe7e7 8px); border: 1px solid var(--line); }
.lane-key .prog { background: var(--teal-deep); }
.lane-copy { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lane-copy select { font: 600 .9rem var(--text); padding: 0 10px; border-radius: 8px; border: 1px solid #b9cccf; min-height: 44px; }
.lane-ed-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.lane-ed { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 640px; font-size: .86rem; table-layout: fixed; }
.lane-ed thead th:first-child { width: 96px; }
.lane-ed thead th:last-child { width: 180px; }
.lane-ed th { font-weight: 600; color: var(--ink-2); padding: 4px 6px; text-align: center; white-space: nowrap; }
.lane-ed tbody th { position: sticky; left: 0; z-index: 1; background: var(--white); text-align: left; color: var(--deep); font-variant-numeric: tabular-nums; }
.lane-ed tbody th small { color: var(--ink-2); font-weight: 400; }
.lane-ed td { padding: 0; }
.cell { position: relative; display: block; width: 100%; height: 40px; border-radius: var(--r-s); font: 600 .78rem var(--text); color: var(--ink-2); cursor: pointer; }
.cell.busy { color: var(--white); }
.cell.prog { display: grid; place-items: center; color: var(--white); background: var(--c, var(--teal-deep)); cursor: default; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; font-size: .72rem; }
.cell.prog.c-amber { color: var(--ink); }
.cell.closed { cursor: default; }
.cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.row-act { white-space: nowrap; }
.btn-sm.link { min-height: 44px; background: none; border: 0; color: var(--teal-ink); font: 600 .84rem var(--text); cursor: pointer; padding: 0 6px; text-decoration: underline; }
.scroll-hint { display: none; }
/* Zapisy */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.adm-toolbar select { font: 600 .95rem var(--text); min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #b9cccf; background: var(--white); }
.adm-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.kpis div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.kpis b { display: block; font: 800 1.9rem/1 var(--display); color: var(--deep); }
.kpis span { font-size: .86rem; color: var(--ink-2); }
.adm-day { font-size: 1.5rem; margin: 22px 0 10px; }
.adm-sess { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 8px; overflow: hidden; }
.adm-sess.past { opacity: .8; }
.adm-head { width: 100%; display: grid; grid-template-columns: auto 110px 1fr 160px 90px; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: none; border: 0; cursor: pointer; text-align: left; font: 400 .95rem var(--text); color: var(--ink); }
.adm-head:hover { background: var(--tile); }
.adm-head .dot { margin: 0; }
.adm-t { font: 800 1.2rem var(--display); color: var(--deep); }
.adm-n { font-weight: 600; }
.adm-bar { height: 8px; background: var(--tile-line); border-radius: 99px; overflow: hidden; }
.adm-bar i { display: block; width: 0; height: 100%; background: var(--teal-deep); border-radius: 99px; }
.adm-c { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-c em { font-style: normal; color: #8f5200; font-size: .86rem; }
.adm-body { padding: 0 16px 16px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table td small { display: block; color: var(--ink-2); font-size: .8rem; }
.adm-table tr.cancelled td { opacity: .6; text-decoration: line-through; }
.adm-table tr.waitlist td:first-child b { color: #8f5200; }
.adm-table select { font: 600 .88rem var(--text); min-height: 44px; padding: 0 8px; border-radius: 8px; border: 1px solid #b9cccf; }
.adm-del { min-height: 44px; min-width: 44px; background: none; border: 1px solid transparent; border-radius: var(--r-s); color: var(--err); font-weight: 600; cursor: pointer; padding: 0 10px; }
.adm-del:hover { border-color: var(--err); background: #fdf0ee; }
.adm-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm-add input { flex: 1 1 180px; font: 400 .95rem var(--text); padding: 0 12px; border-radius: 10px; border: 1px solid #b9cccf; }
.adm-empty { color: var(--ink-2); padding: 12px 0; }
.orphans summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Wiadomości, zdjęcia, historia, retencja */
.msg { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-m); padding: 14px 16px; margin-bottom: 10px; }
.msg.done { border-left-color: var(--line); }
.msg-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.msg-top time { margin-left: auto; color: var(--ink-2); font-size: .86rem; }
.msg-kind { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--foam); color: var(--teal-deep); }
.msg-kind.booking { background: #fff1d6; color: #7a4d00; }
.msg-det { margin: 8px 0 0; }
.msg-text { margin: 6px 0 0; white-space: pre-wrap; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.msg-actions small { margin-left: auto; }
.msg-links, .msg-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.media-up { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.media-item { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.media-item img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--tile); }
.media-item figcaption { padding: 10px 12px 12px; display: grid; gap: 6px; }
.media-btns { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.hist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.hist small { display: block; color: var(--ink-2); }
.hist-meta { min-width: 0; }
.hist-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-diff { flex-basis: 100%; overflow-x: auto; }
.diff { width: 100%; border-collapse: collapse; font-size: .86rem; }
.diff th, .diff td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.diff .was { color: #8a1c12; background: #fdf0ee; }
.diff .now { color: #0b5a32; background: #eef8f2; }
.ret-row { display: flex; padding: 8px 0; border-top: 1px solid var(--line); }
.ret-row small { display: block; color: var(--ink-2); }
.adm-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--r-m); background: var(--deep); color: var(--white); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; }
.adm-toast.show { opacity: 1; }
.adm-toast.err { background: #8a1c12; }
@media (max-width: 1080px) {
  .tg-label { display: none; }
  .tab-group { padding: 0 6px; }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-head { grid-template-columns: auto 1fr auto; grid-template-areas: "d t c" "d n n" "b b b"; row-gap: 6px; }
  .adm-head .dot { grid-area: d; align-self: start; margin-top: 6px; }
  .adm-t { grid-area: t; } .adm-n { grid-area: n; } .adm-bar { grid-area: b; } .adm-c { grid-area: c; }
  .adm-actions { margin-left: 0; width: 100%; }
  .adm-actions .btn { flex: 1; }
  .adm-toolbar select { width: 100%; }
}
@media (max-width: 760px) {
  .adm-tab-bar { display: none; }
  .adm-tab-pick { display: block; }
  .adm-tabs { position: static; }
  .adm-top-actions .btn:first-child { display: none; }
  .adm-main { padding-top: 20px; }
  .ed-head { flex-direction: column; }
  .ed-grid2, .ed-grid3 { grid-template-columns: minmax(0, 1fr); }
  .ed-grid3 .span2 { grid-column: auto; }
  .ed-card { padding: 14px 12px 8px; }
  .ed-card-head { flex-wrap: wrap; }
  .price-row { grid-template-columns: minmax(0, 1fr) 104px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .price-row.head { display: none; }
  .price-row .lbl { position: static; width: auto; height: auto; clip: auto; font-size: .82rem; font-weight: 600; color: var(--deep); }
  .price-row .pr-note { grid-column: 1 / -1; order: 3; }
  .price-row .row-tools { grid-column: 1 / -1; order: 4; justify-content: flex-end; }
  .slot-row { grid-template-columns: 1fr 1fr; }
  .slot-row .row-tools { grid-column: 1 / -1; justify-content: flex-end; }
  .hours-row { grid-template-columns: 1fr auto; }
  .news-row { grid-template-columns: minmax(0, 1fr); }
  .news-side { justify-items: start; padding-top: 0; grid-auto-flow: column; align-items: center; }
  .lane-copy { margin-left: 0; }
  .lane-days { display: none; }
  .lane-day-field { display: grid; }
  .lane-ed { min-width: 0; table-layout: auto; border-spacing: 2px; }
  .lane-ed thead th:first-child { width: 54px; }
  .lane-ed thead th:last-child { width: auto; }
  .lane-ed th { padding: 2px; font-size: .72rem; white-space: normal; }
  .lane-ed tbody th small { display: block; }
  .cell { height: 44px; min-width: 34px; }
  .cell span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cell.busy::after { content: '×'; font-size: 1rem; }
  .cell.prog { font-size: .6rem; }
  .row-act { white-space: normal; }
  .row-act .btn-sm.link { display: block; font-size: .74rem; padding: 2px; }
  .media-up { grid-template-columns: minmax(0, 1fr); }
  .tok-list { columns: 1; }
  /* Zapisy jako karty */
  .adm-body { padding: 0 12px 12px; overflow: visible; }
  .adm-table { min-width: 0; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--tile); }
  .adm-table td { border: 0; padding: 2px 0; }
  .adm-table td[data-l="Uczestnik"], .adm-table td[data-l="Termin"], .adm-table td[data-l="Kontakt"], .adm-table td[data-l="Status"] { grid-column: 1 / -1; }
  .adm-table td[data-l="Wiek"]::before, .adm-table td[data-l="Opiekun"]::before { content: attr(data-l) ': '; color: var(--ink-2); }
  .adm-table td.act { grid-column: 1 / -1; text-align: right; }
  .adm-table select { width: 100%; }
  .adm-add input, .adm-add .btn { flex: 1 1 100%; min-height: 44px; }
  .hist li { display: grid; }
  .hist-btns .btn { flex: 1 1 100%; }
  .diff thead { display: none; }
  .diff tr { display: grid; border-top: 1px solid var(--line); }
  .diff td { border: 0; }
  .diff td::before { content: attr(data-l) ': '; font-weight: 600; }
  .msg-actions { display: grid; gap: 8px; }
  .msg-actions small { margin-left: 0; }
  .ed-save { padding: 8px 0; }
  .ed-save .wrap-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 4px 6px; }
  #ed-status { grid-column: 1 / -1; font-size: .8rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ed-save .btn { min-height: 48px; padding: 4px 8px; font-size: .84rem; line-height: 1.15; }
  .adm-toast { bottom: 150px; }
}
@media (min-width: 1101px) { .home-progs:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 1100px) { .home-progs:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-cols:has(> .price-group:only-child) { grid-template-columns: minmax(0, 620px); }
.lw-fold .lw-hours { display: none; }
