/* =============================================================================
   PanoLive.eu v2 — eu.css (jedyny arkusz strony)
   Kolory i typografia zgodne z szablonem panolive.pl v2 (#4466ae, Source Sans 3),
   ale wszystkie klasy są własne — brak zależności od plików panolive.pl.
   ============================================================================= */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #4466ae;
  --blue-d: #2d4a8a;
  --blue-m: #3a5a9c;
  --blue-l: #eaf0fb;
  --bg: #edf2fb;
  --line: #d4e0f5;
  --line-l: #edf2fb;
  --ink: #1a2a4a;
  --ink-2: #2c3a55;
  --muted: #4a5568;
  --muted-2: #5c6f93;     /* 5:1 na białym (WCAG AA) */
  --red: #c0392b;
  --navy: #13203a;
  --warn: #e08c1a;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 4px rgba(68, 102, 174, .08);
  --shadow-h: 0 12px 32px rgba(26, 42, 74, .22);
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
img, canvas, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 50vh; }

/* ---------- topbar + nagłówek ---------- */
.topbar { background: var(--blue); color: rgba(255, 255, 255, .9); font-size: 13px; line-height: 1; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; color: rgba(255, 255, 255, .8); }
.topbar-social a:hover { color: #fff; }

.hdr { background: #fff; border-bottom: 1px solid #e8eaed; position: sticky; top: 0; z-index: 100; }
.hdr-in { display: flex; justify-content: space-between; align-items: center; height: 70px; gap: 16px; position: relative; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; }
.nav a { display: block; padding: 0 16px; line-height: 70px; color: #2c2c2c; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; color: #2c2c2c; cursor: pointer; }

/* ---------- przyciski, znaczniki ----------
   .eu-btn, nie .btn: player Nimio dokłada do strony globalną regułę .btn dla swoich przycisków */
.eu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); font: 600 15px/1 var(--font); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.eu-btn:hover { transform: translateY(-1px); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-p { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-p:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn-o { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-o:hover { background: var(--blue-l); color: var(--blue); }
.btn-w { background: #fff; border-color: #fff; color: var(--ink); }
.btn-w:hover { background: var(--blue-l); border-color: var(--blue-l); color: var(--ink); }
.btn-d { background: rgba(19, 32, 58, .4); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-d:hover { background: rgba(19, 32, 58, .6); color: #fff; }

.b-live { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; line-height: 1.2; }
.b-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: eu-pulse 1.6s ease-in-out infinite; }
.b-cur { position: absolute; top: 8px; right: 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; line-height: 1.2; }
.ov-tl { position: absolute; top: 10px; left: 10px; }
@keyframes eu-pulse { 50% { opacity: .25; } }

/* ---------- sekcje, nagłówki ---------- */
.sec { padding: 48px 0 64px; }
.sec-tight { padding: 0 0 48px; }
.sec-bottom { padding: 8px 0 64px; }
.sec-bottom .h-sec { margin-bottom: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.h-page { font-size: 36px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.h-sec { font-size: 26px; font-weight: 800; line-height: 1.2; }
.h-card { font-size: 22px; font-weight: 800; line-height: 1.2; }
.h-sub { font-size: 18px; font-weight: 700; margin-top: 14px; }
.sub { font-size: 15px; color: var(--muted); }
.txt { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-top: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ttl { padding: 28px 0 20px; }
.ttl-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ttl .crumbs + .ttl-row { margin-top: 8px; }
.ttl-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-2); }
.crumbs a:hover { text-decoration: underline; }
.empty-box { margin-top: 16px; text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- strona główna: losowa kamera ----------
   jak strona kamery: player (proporcje obrazu ze strumienia) + karta z nazwą, pogodą i przyciskami */
.hero { padding: 24px 0 0; }
.hero + .sec { padding-top: 40px; }
.hero .ptile { align-self: start; }   /* kafelek = wysokość obrazu (bez pasów); karta obok ma co najmniej tę wysokość */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-gmina { font-size: 15px; font-weight: 700; color: var(--blue); margin-top: 10px; }
.hero-name { font-size: 28px; font-weight: 800; line-height: 1.15; margin-top: 2px; overflow-wrap: anywhere; }
.hero-wx .wx-now { margin-top: 10px; }
.hero-wx .wx { margin-top: 10px; }
.hero-wx .wx-src { padding-top: 8px; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.hero-actions .eu-btn { width: 100%; height: 44px; }

/* ---------- kafelki kamer ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--blue-m); box-shadow: 0 1px 4px rgba(26, 42, 74, .12); transition: transform .2s, box-shadow .2s; min-width: 0; }
.ct:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); color: #fff; }
.ct img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 12%; background: linear-gradient(160deg, var(--blue-m) 0%, var(--navy) 100%); color: rgba(255, 255, 255, .35); }
.ct.is-cur { box-shadow: 0 0 0 3px var(--blue); }
.scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(19, 32, 58, 0) 30%, rgba(19, 32, 58, .55) 60%, rgba(19, 32, 58, .92) 100%); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; flex-direction: column; }
.cap-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-title { font-size: 18px; font-weight: 800; line-height: 1.2; color: #fff; }

/* ---------- strona główna: spis wszystkich kamer, O PanoLive, pytania ---------- */
.now { margin-top: 6px; max-width: 80ch; }
.dir { columns: 4 230px; column-gap: 32px; margin-top: 14px; }
.dir-g { break-inside: avoid; padding: 12px 0 10px; border-top: 1px solid var(--line); }
.dir-h { font-size: 16px; font-weight: 800; line-height: 1.3; }
.dir-h .gmeta { display: block; font-weight: 400; }
.dir-l { list-style: none; padding: 0; margin-top: 4px; }
.dir-l li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 15px; line-height: 1.35; }
.dir-l a { color: var(--blue-d); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dir-l a:hover { text-decoration: underline; }
.dir-t { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dir-off { flex-shrink: 0; font-size: 13px; color: var(--muted-2); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.about-offer { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.about-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.faq .h-card { margin-bottom: 6px; }
.faq details { border-top: 1px solid var(--line-l); }
.faq summary { position: relative; padding: 12px 32px 12px 0; font-size: 16px; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 9px; font-size: 22px; font-weight: 600; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--blue-d); }
.faq details .txt { margin: 0 0 14px; }

/* ---------- lokalizacje ---------- */
.search { display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%; height: 44px; padding: 0 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--muted-2); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68, 102, 174, .12); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 16px var(--font); color: var(--ink); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.s3 { grid-column: span 3; } .s6 { grid-column: span 6; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 90px; }
.gcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.gname { font-size: 19px; font-weight: 800; line-height: 1.25; }
.gmeta { font-size: 13px; color: var(--muted-2); }
.gcount { flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--blue-l); color: var(--blue-d); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.gcams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gcams .ct { border-radius: 10px; }
.gcams .cap { padding: 10px 12px; }
.gcams .cap-title { font-size: 17px; }
.join { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; border: 1.5px dashed #9db0cc; border-radius: var(--r-lg); color: var(--ink); }
.join svg { color: #c47d0e; }
.join:hover { border-color: var(--blue); background: #f7f9fd; color: var(--ink); }
.join-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.join-text { font-size: 14px; color: var(--muted); }
.join-link { font-weight: 700; color: var(--blue-d); }

/* ---------- strona kamery ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; }
.ptile { border-radius: var(--r-lg); overflow: hidden; background: var(--navy); display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(26, 42, 74, .18); }
/* proporcje = obraz ze strumienia (--ar); całość mieści się w oknie — przy wysokim obrazie boki zostają ciemne */
.player16 { position: relative; aspect-ratio: var(--ar, 1.7778); width: min(100%, max(320px, calc((100vh - 220px) * var(--ar, 1.7778)))); margin: 0 auto; background: #000; }
.player16 .poster, .player-box { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.player16 .poster { object-fit: contain; }
/* cały obraz kamery bez przycinania */
.player-box video { width: 100% !important; height: 100% !important; object-fit: contain !important; display: block; background: #000; }
/* obraz z playera pojawia się, gdy ruszy transmisja — do tego czasu widać zdjęcie z kamery (bez czarnego ekranu) */
.player-box { z-index: 1; opacity: 0; transition: opacity .35s ease; }
.is-playing > .player-box, [data-player]:not([data-autoplay="1"]) > .player-box { opacity: 1; }
/* Nimio bez własnego paska (pauza, LIVE, PiP, pełny ekran) — sterowanie jest w granatowym pasku pod obrazem;
   kliknięcia w obraz nie trafiają do Nimio (bez przypadkowej pauzy) */
.player-box { pointer-events: none; }
.player-box .nimio-controls, .player-box .play-pause { display: none !important; }

/* łączenie z kamerą: ostatni kadr przyciemniony + napis, do pierwszej klatki obrazu */
.player-load { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: #fff; background: rgba(19, 32, 58, .55); font-size: 17px; font-weight: 700; letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); pointer-events: none; }
.is-loading > .player-load { display: flex; }
.player-load i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: eu-spin .9s linear infinite; }
@keyframes eu-spin { to { transform: rotate(360deg); } }

/* pełny ekran (przycisk w pasku pod obrazem albo podwójne kliknięcie) — logo zostaje w rogu obrazu, nie ekranu */
.player16:fullscreen { --fw: min(100vw, calc(100vh * var(--ar, 1.7778))); --fh: min(100vh, calc(100vw / var(--ar, 1.7778))); width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.player16:-webkit-full-screen { --fw: min(100vw, calc(100vh * var(--ar, 1.7778))); --fh: min(100vh, calc(100vw / var(--ar, 1.7778))); width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.player16:fullscreen .cam-logo { top: calc((100vh - var(--fh)) / 2 + var(--fh) * .03); right: calc((100vw - var(--fw)) / 2 + var(--fw) * .025); max-width: calc(var(--fw) * .18); max-height: calc(var(--fh) * .13); }
.player16:-webkit-full-screen .cam-logo { top: calc((100vh - var(--fh)) / 2 + var(--fh) * .03); right: calc((100vw - var(--fw)) / 2 + var(--fw) * .025); max-width: calc(var(--fw) * .18); max-height: calc(var(--fh) * .13); }
/* Safari < 15 (iOS 14 i starsze) nie zna aspect-ratio: bez tego player i kafelki mają wysokość 0 px
   (obraz widać tylko w pełnym ekranie). Wysokość z proporcji przez padding-top elementu ::before —
   procent liczy się od szerokości rodzica, czyli ramki playera / kafelka. */
@supports not (aspect-ratio: 1 / 1) {
  .ct::before { content: ''; display: block; padding-top: 56.25%; }
  .player16::before { content: ''; display: block; padding-top: calc(100% / var(--ar, 1.7778)); }
  .player16:-webkit-full-screen::before { display: none; }
}
/* Safari < 14.1 (iOS 14.0–14.4) nie zna odstępów gap we flexboksie (pojawiły się razem z inset) — marginesy zastępcze */
@supports not (inset: 0) {
  .crumbs > * + * { margin-left: 8px; }
  .ttl-meta > * + *, .hero-top > * + * { margin-left: 12px; }
  .pb-tools > * + * { margin-left: 8px; }
  .segs > * + * { margin-left: 2px; }
  .pb-live i { margin-right: 8px; }
  .b-live i { margin-right: 6px; }
  .eu-btn > svg:first-child { margin-right: 8px; }
  .eu-btn > svg:last-child:not(:first-child) { margin-left: 8px; }
  .hero-actions > * + * { margin-top: 8px; }
  .share > * + *, .about-actions > * + * { margin-left: 8px; }
  .topbar-social > * + * { margin-left: 4px; }
}
/* krzyżyk zamykający pełny ekran: lewy górny róg ekranu (w prawym jest logo), znika po 3 s bez ruchu razem z kursorem */
.fs-close { display: none; position: absolute; z-index: 6; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(19, 32, 58, .7); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease, background-color .15s ease; }
.player16:fullscreen .fs-close { display: flex; }
.player16:-webkit-full-screen .fs-close { display: flex; }
.player16.fs-ui .fs-close, .fs-close:focus-visible { opacity: 1; pointer-events: auto; }
.fs-close:hover, .fs-close:focus-visible { background: rgba(19, 32, 58, .92); }
.player16:fullscreen:not(.fs-ui) { cursor: none; }
.player16:-webkit-full-screen:not(.fs-ui) { cursor: none; }

.cam-logo { position: absolute; z-index: 3; top: 3%; right: 2.5%; max-width: 18%; max-height: 13%; width: auto; height: auto; object-fit: contain; pointer-events: none; }   /* logo na obrazie — bez tła */
.player-msg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: #fff; background: rgba(19, 32, 58, .78); font-size: 16px; }
.player-msg strong { font-size: 19px; }
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; color: #fff; }
.pb-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pb-live i { width: 9px; height: 9px; border-radius: 50%; background: #ef5a4c; animation: eu-pulse 1.6s ease-in-out infinite; }
.pb-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.segs { display: flex; background: rgba(255, 255, 255, .08); border-radius: var(--r); padding: 3px; gap: 2px; }
.seg { height: 36px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .85); font: 700 14px var(--font); cursor: pointer; }
.seg[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pfs { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.pfs:hover { background: rgba(255, 255, 255, .18); }
.pfs svg + svg, .pfs[aria-pressed="true"] svg:first-child { display: none; }
.pfs[aria-pressed="true"] svg + svg { display: block; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.card-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.side { height: 0; min-height: 100%; }   /* wysokość wyznacza player, lista przewija się */
.mts { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; flex: 1; min-height: 0; overflow-y: auto; }
.mts .ct { border-radius: 10px; flex-shrink: 0; }
.mts .cap { padding: 10px 12px; }
.mts .cap-title { font-size: 16px; }
.side-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; padding-top: 8px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.row2.no-wx { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wx-now { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--blue); }
.wx-temp { font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); }
.wx-desc { font-size: 14px; color: var(--muted); }
.wx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wx div { background: #f7f9fd; border: 1px solid var(--line-l); border-radius: var(--r); padding: 6px 10px; }
.wx dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.wx dd { font-size: 15px; font-weight: 700; }
.wx-src { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--muted-2); }
.tags { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 16px; background: var(--line-l); color: var(--blue-d); font-size: 14px; font-weight: 600; }
.irows { margin-top: 8px; }
.irows div { padding: 7px 0; border-bottom: 1px solid #f1f4fa; }
.irows div:last-child { border-bottom: 0; }
.irows dt { font-size: 12px; color: var(--muted-2); }
.irows dd { font-size: 15px; font-weight: 600; line-height: 1.35; }
.share { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-title + .share { margin-top: 0; }
.sbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--blue-l); color: var(--blue); cursor: pointer; }
.sbtn:hover { border-color: var(--blue); color: var(--blue); }
.sbtn.is-done, .eu-btn.is-done { background: #edf5f0; border-color: #b8dfc8; color: #14794a; }

/* ---------- kontakt, błąd ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-big { font-size: 22px; font-weight: 800; margin-top: 8px; }
.contact-offer { color: var(--ink); gap: 8px; }
.contact-offer svg { color: #c47d0e; }
.contact-offer:hover { border-color: var(--blue); color: var(--ink); }
.contact-offer .join-link { margin-top: auto; }
.err { max-width: 640px; margin: 48px auto 0; text-align: center; align-items: center; padding: 40px 24px; }
.err-code { font-size: 64px; font-weight: 800; line-height: 1; color: var(--blue); }
.err-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- stopka (jak szablon panolive) ---------- */
.foot { background: #2c2c2c; color: rgba(255, 255, 255, .75); padding: 48px 0 0; font-size: 14px; }
.foot a { color: rgba(255, 255, 255, .75); }
.foot a:hover { color: #fff; }
.foot p { line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.foot-h { font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot-social { display: flex; flex-direction: column; gap: 6px; }
.foot-bottom { margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .62); text-align: center; }
.foot-bottom a { color: rgba(255, 255, 255, .62); }

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .side { height: auto; min-height: 0; }
  .mts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); overflow: visible; }
  .row2, .row2.no-wx { grid-template-columns: 1fr; }
  .g12 .s3 { grid-column: span 6; }
  .g12 .s6, .g12 .s9, .g12 .s12 { grid-column: span 12; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar-contact { display: none; }
  /* bez JS: menu w zawijanym wierszu pod logo */
  .hdr-in { height: auto; min-height: 70px; flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .nav a { line-height: 1.4; padding: 12px 14px; }
  /* z JS: menu rozwijane przyciskiem */
  .js .hdr-in { height: 70px; flex-wrap: nowrap; }
  .js .burger { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid #e8eaed; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 20px; border-bottom: 1px solid #f5f6f8; }
  .hero { padding-top: 16px; }
  .hero-name { font-size: 26px; }
  .h-page { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .g12 .s3 { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- tryb diagnostyczny playera (adres z #debug) ---------- */
.dbg { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 9999; max-height: 45vh; display: flex; flex-direction: column; background: rgba(10, 18, 34, .94); color: #cfe3ff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); font: 11px/1.45 ui-monospace, Menlo, Consolas, monospace; }
.dbg-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.dbg-head button { font: inherit; padding: 3px 10px; border: 0; border-radius: 4px; background: #fff; color: #13203a; cursor: pointer; }
.dbg pre { margin: 0; padding: 8px 10px; overflow: auto; white-space: pre-wrap; word-break: break-all; user-select: text; }
