.k0 { background: #e3f3f8; color: #0b2a3a; } .pg-leg-poz.l0 i { background: #e3f3f8; }
.k1 { background: #a6dbe8; color: #0b2a3a; } .pg-leg-poz.l1 i { background: #a6dbe8; }
.k2 { background: #68b9dc; color: #0b2a3a; } .pg-leg-poz.l2 i { background: #68b9dc; }
.k3 { background: #3f8ccb; color: #0b2a3a; } .pg-leg-poz.l3 i { background: #3f8ccb; }
.k4 { background: #4a5cb8; color: #fff; } .pg-leg-poz.l4 i { background: #4a5cb8; }
.k5 { background: #5b2f9e; color: #fff; } .pg-leg-poz.l5 i { background: #5b2f9e; }
.k6 { background: #431879; color: #fff; } .pg-leg-poz.l6 i { background: #431879; }
.k7 { background: #2a0a55; color: #fff; } .pg-leg-poz.l7 i { background: #2a0a55; }
.pg-leg-poz.o1 i { background: #cfe8f3; } .ko1 { background: #cfe8f3; color: #0b2a3a; }
.pg-leg-poz.o2 i { background: #8fc6e6; } .ko2 { background: #8fc6e6; color: #0b2a3a; }
.pg-leg-poz.o3 i { background: #4f93d2; } .ko3 { background: #4f93d2; color: #0b2a3a; }
.pg-leg-poz.o4 i { background: #4a4fb5; } .ko4 { background: #4a4fb5; color: #fff; }
.pg-leg-poz.o5 i { background: #5b2f9e; } .ko5 { background: #5b2f9e; color: #fff; }

.pg-leg-poz.pr0 i { background: #8fc6e6; } .pl-grot.k0 { stroke: #8fc6e6; }
.pg-leg-poz.pr1 i { background: #7ec98f; } .pl-grot.k1 { stroke: #7ec98f; }
.pg-leg-poz.pr2 i { background: #e0b84f; } .pl-grot.k2 { stroke: #e0b84f; }
.pg-leg-poz.pr3 i { background: #e0955a; } .pl-grot.k3 { stroke: #e0955a; }
.pg-leg-poz.pr4 i { background: #ef7a6b; } .pl-grot.k4 { stroke: #ef7a6b; }
.pl-kropki.t9 { animation-duration: 0.9s; }
.pl-kropki.t10 { animation-duration: 1s; }
.pl-kropki.t11 { animation-duration: 1.1s; }
.pl-kropki.t12 { animation-duration: 1.2s; }
.pl-kropki.t13 { animation-duration: 1.3s; }
.pl-kropki.t14 { animation-duration: 1.4s; }
.pl-kropki.t15 { animation-duration: 1.5s; }
.pl-kropki.t16 { animation-duration: 1.6s; }
.pl-kropki.t17 { animation-duration: 1.7s; }
.pl-kropki.t18 { animation-duration: 1.8s; }
.pl-kropki.t19 { animation-duration: 1.9s; }
.pl-kropki.t20 { animation-duration: 2s; }
.pl-kropki.t21 { animation-duration: 2.1s; }
.pl-kropki.t22 { animation-duration: 2.2s; }
.pl-kropki.t23 { animation-duration: 2.3s; }
.pl-kropki.t24 { animation-duration: 2.4s; }
.pl-kropki.t25 { animation-duration: 2.5s; }
.pl-kropki.t26 { animation-duration: 2.6s; }

.pl-kropka { offset-path: path("M34 140.6L37.71 137.1L41.42 132.94L45.13 128.19L48.83 122.93L52.54 117.25L56.25 111.22L59.96 104.95L63.67 98.54L67.38 92.09L71.08 85.71L74.79 79.49L78.5 73.53L82.21 67.94L85.92 62.8L89.63 58.18L93.33 54.18L97.04 50.84L100.75 48.23L104.46 46.38L108.17 45.32L111.88 45.08L115.58 45.65L119.29 47.02L123 49.18L126.71 52.09L130.42 55.7L134.13 59.96L137.83 64.79L141.54 70.13L145.25 75.88L148.96 81.95L152.67 88.25L156.38 94.67L160.08 101.12L163.79 107.48L167.5 113.66L171.21 119.57L174.92 125.09L178.63 130.16L182.33 134.68L186.04 138.58L189.75 141.81L193.46 144.3L197.17 146.03L200.88 146.95L204.58 147.07L208.29 146.37L212 144.86L215.71 142.58L219.42 139.56L223.13 135.84L226.83 131.48L230.54 126.56L234.25 121.16L237.96 115.35L241.67 109.24L245.38 102.91L249.08 96.48L252.79 90.04L256.5 83.69L260.21 77.55L263.92 71.7L267.63 66.24L271.33 61.26L275.04 56.83L278.75 53.03L282.46 49.92L286.17 47.55L289.88 45.95L293.58 45.15L297.29 45.17L301 46L304.71 47.63L308.42 50.03L312.13 53.17L315.83 57L319.54 61.45L323.25 66.45L326.96 71.93L330.67 77.79L334.38 83.95L338.08 90.29L341.79 96.74L345.5 103.17L349.21 109.48L352.92 115.59L356.63 121.38L360.33 126.77L364.04 131.67L367.75 136L371.46 139.69L375.17 142.69L378.88 144.94L382.58 146.41L386.29 147.08L390 146.93"); offset-rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .pl-kropka { animation: pl-jazda 20s linear infinite; }
  @keyframes pl-jazda { from { offset-distance: 0%; } to { offset-distance: 100%; } }
  .pl-tab tbody tr:nth-child(1) { animation: pl-w0 20s linear infinite; }
  @keyframes pl-w0 { 0%, 15.63% { background: transparent; } 21.13%, 27.63% { background: rgba(224,149,90,.22); } 29.63%, 100% { background: transparent; } }
  .pl-tab tbody tr:nth-child(2) { animation: pl-w1 20s linear infinite; }
  @keyframes pl-w1 { 0%, 41.27% { background: transparent; } 46.77%, 53.27% { background: rgba(224,149,90,.22); } 55.27%, 100% { background: transparent; } }
  .pl-tab tbody tr:nth-child(3) { animation: pl-w2 20s linear infinite; }
  @keyframes pl-w2 { 0%, 66.91% { background: transparent; } 72.41%, 78.91% { background: rgba(224,149,90,.22); } 80.91%, 100% { background: transparent; } }
  .pl-tab tbody tr:nth-child(4) { animation: pl-w3 20s linear infinite; }
  @keyframes pl-w3 { 0%, 92.55% { background: transparent; } 98.05%, 100% { background: rgba(224,149,90,.22); } 100%, 100% { background: transparent; } }
}

.pl-kl { opacity: 0; } .pl-kl.k0 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pl-kl { animation: pl-klatka 16s linear infinite; }
  .pl-kl.k0 { animation-delay: 0s; }
  .pl-kl.k1 { animation-delay: 2s; }
  .pl-kl.k2 { animation-delay: 4s; }
  .pl-kl.k3 { animation-delay: 6s; }
  .pl-kl.k4 { animation-delay: 8s; }
  .pl-kl.k5 { animation-delay: 10s; }
  .pl-kl.k6 { animation-delay: 12s; }
  .pl-kl.k7 { animation-delay: 14s; }
  @keyframes pl-klatka { 0% { opacity: 0; } 3% { opacity: 1; } 12.5% { opacity: 1; } 15.5%, 100% { opacity: 0; } }
  .pl-znacznik { animation: pl-czas 16s steps(8, jump-none) infinite; }
  @keyframes pl-czas { to { transform: translateX(184px); } }
}

.rd-nit-c, .rd-nit { fill: none; stroke-linecap: round; stroke-linejoin: round; } .rd-nit-c { stroke: #06202c; stroke-width: 2.6; stroke-opacity: .32; } .rd-nit { stroke: #fff; stroke-width: 1.1; stroke-opacity: .75; }
.rd-ply { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 6; }
.rd-blysk path { fill: #ffd84a; stroke: #0b2a3a; stroke-width: .6; }
@media (prefers-reduced-motion: no-preference) {
  .rd-ply { animation: rd-ply 2.4s linear infinite; }
  @keyframes rd-ply { to { stroke-dashoffset: -44; } }
  .rd-wek { animation: pg-oddech 6s ease-in-out infinite; }
  .rd-blysk { animation: pg-blysk 3s steps(1) infinite; }
}

/* smartly-styl v1.2.1 — tokeny. Źródło prawdy: Smartly Hub / styl-graficzny.md (tabela tokenów) + strona Pomeranos (common.css).
   Aplikacje używają --tlo (#0a0d0e); strony z nocnym niebem — --tlo-niebo (#05070a). Kolory nie są wpisywane na sztywno w komponentach. */
:root {
  /* tła i powierzchnie */
  --tlo: #0a0d0e;            /* aplikacje */
  --tlo-niebo: #05070a;      /* strony (Pomeranos, Smartly) */
  --powierzchnia: #171e24;
  --powierzchnia-2: #1a2224;
  /* tekst */
  --tekst: #e6ebe7;
  --tekst-mocny: #ffffff;
  --tekst-cichy: #8f9c96;    /* strona Pomeranos; styl-graficzny.md podaje #7c8a84 dla aplikacji (≥4,5:1 także na --powierzchnia) */
  /* akcent */
  --akcent: #e0955a;
  --akcent-jasny: #f0c295;
  --akcent-tlo: #3a2a1b;
  --przycisk: #a85a28;
  --tekst-na-przycisku: #ffffff;
  /* obramowania */
  --obramowanie: #2b3634;
  --obramowanie-pola: #66756f;   /* pola formularzy i przyciski drugorzędne (≥3:1) — używane w aplikacjach */
  /* stany (oddzielne od akcentu) */
  --sukces: #7ec98f;   --sukces-tlo: #16301f;
  --ostrzezenie: #e0b84f; --ostrzezenie-tlo: #33290f;
  --blad: #ef7a6b;     --blad-tlo: #3a1d1a;
  --informacja: #4a90d9; --informacja-tlo: #0d2030;
  /* szkło i poświata (strony) */
  --szklo: rgba(20, 26, 31, 0.42);
  --szklo-mocne: rgba(14, 18, 22, 0.72);
  --poswiata: 0 0 18px rgba(224, 149, 90, 0.35), 0 0 2px rgba(240, 194, 149, 0.8);
  /* czcionki */
  --font-logo: 'Michroma', 'Segoe UI', sans-serif;
  --font: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  /* układ */
  --gutter: clamp(16px, 4vw, 48px);
}

/* smartly-styl v1.2.1 — czcionki (własne pliki woff2, licencje OFL w licencje/). Ścieżki względem tego pliku. */
@font-face { font-family: 'Michroma'; font-weight: 400; font-display: swap; src: url(czcionki/michroma-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Michroma'; font-weight: 400; font-display: swap; src: url(czcionki/michroma-latin-ext-400-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(czcionki/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(czcionki/jetbrains-mono-latin-ext-400-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url(czcionki/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url(czcionki/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* smartly-styl v1.2.1 — komponenty. Wymaga tokeny.css i czcionki.css. Bez animacji nieba, bez skryptów (menu: menu.js).
   Pochodzenie: strona Pomeranos (common.css) i makieta Smartly (styl.css), 05.10.2026. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-logo); font-weight: 400; color: var(--tekst-mocny); letter-spacing: .04em; line-height: 1.25; text-shadow: 0 1px 14px rgba(0,0,0,.95); }
h1 { font-size: clamp(26px, 3.6vw, 52px); margin: .4em 0 .5em; }
h2 { font-size: clamp(22px, 2.8vw, 38px); margin: .4em 0 .6em; }
h3 { font-size: clamp(16px, 1.4vw, 20px); margin: 0 0 .5em; }

.etykieta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--akcent); display: inline-flex; align-items: center; gap: 10px; }
.etykieta::before { content: ''; width: 28px; height: 1px; background: currentColor; box-shadow: var(--poswiata); }

/* szklana tafla z miedzianą krawędzią */
.tafla { position: relative; background: var(--szklo); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border-radius: 16px; padding: clamp(18px, 2.4vw, 30px); isolation: isolate; }
.tafla::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(var(--kat, 135deg), rgba(240,194,149,.9), rgba(224,149,90,.15) 35%, rgba(224,149,90,.05) 60%, rgba(240,194,149,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tafla::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -2; pointer-events: none;
  box-shadow: 0 0 40px -8px rgba(224,149,90,.35), inset 0 0 30px -10px rgba(240,194,149,.18); }

/* przyciski */
.przycisk { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tekst-na-przycisku); text-decoration: none; padding: 13px 22px; border-radius: 999px; background: linear-gradient(135deg, #c06a30, #8a4519);
  box-shadow: 0 0 0 1px rgba(240,194,149,.6), 0 0 24px rgba(224,149,90,.45); transition: transform .2s, box-shadow .2s; }
.przycisk:hover, .przycisk:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--akcent-jasny), 0 0 40px rgba(224,149,90,.75); }
.przycisk.drugi { background: rgba(20,26,31,.5); box-shadow: 0 0 0 1px rgba(240,194,149,.45); }

/* plakietki stanu */
.dziala { display: inline-flex; align-items: center; gap: 8px; font: 11px var(--font-mono); letter-spacing: .2em; color: var(--sukces); }
.dziala::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sukces); box-shadow: 0 0 10px var(--sukces); }
.wkrotce { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--akcent-jasny);
  padding: 12px 18px; border-radius: 999px; border: 1px dashed rgba(240,194,149,.55); }
.wkrotce::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--akcent); box-shadow: 0 0 10px var(--akcent); }

/* pasek górny + menu na telefonie (przełączanie: menu.js) */
header.gora { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(5,7,10,.85), rgba(5,7,10,0)); }
header.gora nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
header.gora nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tekst-cichy); text-decoration: none; transition: color .2s, text-shadow .2s; }
header.gora nav a:hover, header.gora nav a:focus-visible { color: var(--akcent-jasny); text-shadow: var(--poswiata); }
.menu-przycisk { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(240,194,149,.5); background: rgba(14,18,22,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 18px rgba(224,149,90,.3); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-przycisk span { width: 18px; height: 1.5px; background: var(--akcent-jasny); box-shadow: 0 0 6px var(--akcent); }
.menu-panel { position: fixed; inset: 0; z-index: 9; display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 28px 40px;
  background: rgba(5,7,10,.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.menu-otwarte .menu-panel { display: flex; }
.menu-otwarte header.gora { z-index: 11; }
.menu-panel a { font-family: var(--font-logo); font-size: 24px; color: var(--tekst-mocny); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(224,149,90,.22); }
@media (max-width: 640px) { header.gora nav { display: none; } .menu-przycisk { display: inline-flex; } }

/* układ */
.sekcja { padding: clamp(72px, 12vh, 130px) var(--gutter); max-width: 1060px; margin: 0 auto; }
.siatka-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.siatka-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.opis { color: var(--tekst-cichy); }
.pomin { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--przycisk); color: var(--tekst-na-przycisku); font: 13px var(--font-mono); text-decoration: none; }
.pomin:focus { top: 12px; }

/* smartly-styl v1.2.1 — ruch (opcjonalny; wymaga tokeny.css, razem z ruch.js). Pochodzenie: strona Pomeranos (common.css), 05.10.2026.
   .wjazd ukrywane dopiero po dodaniu klasy html.ruch przez ruch.js (bez JS i przy prefers-reduced-motion treść jest widoczna).
   Karty aplikacji z kanwą: .karta-mini (animacje-karty.js). */

/* wjazd przy przewijaniu */
.ruch .wjazd { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.ruch .wjazd.widoczny { opacity: 1; transform: none; }

/* pisanie jak na ekranie statku */
.pisz .znak-kursor { display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -0.12em;
  background: var(--akcent-jasny); box-shadow: var(--poswiata); animation: miga 1s steps(1) infinite; }
@keyframes miga { 50% { opacity: 0; } }

/* linia skanu przy pojawieniu się elementu */
.skan { position: relative; }
.skan.widoczny::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--akcent-jasny), transparent); box-shadow: 0 0 14px var(--akcent);
  animation: skan 1.1s ease-out forwards; pointer-events: none; }
@keyframes skan { from { top: 0; opacity: 1; } to { top: 100%; opacity: 0; } }

/* tekst tylko dla czytników ekranu (pełna treść nagłówka, gdy widoczna kopia jest „pisana” animacją) */
.sr-tylko { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* karta aplikacji: kanwa 2D zastępuje schemat SVG (SVG zostaje dla przeglądarek bez JS) */
.karta-mini { position: relative; border-radius: 12px; overflow: hidden; }
.karta-mini.z-kanwa > svg { display: none; }
canvas.mini { width: 100%; height: var(--karta-wys, clamp(170px, 18vw, 230px)); display: block; border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 100%, rgba(224, 149, 90, .12), transparent 60%), rgba(5, 7, 10, .55); }

@media (prefers-reduced-motion: reduce) {
  .wjazd { opacity: 1; transform: none; transition: none; }
  .skan.widoczny::after, .pisz .znak-kursor { animation: none; display: none; }
}

/* smartly-styl v1.2.1 — niebo (opcjonalne; razem z niebo/niebo.js). Pochodzenie: strona Pomeranos (strona.css), 05.10.2026.
   Kanwę WebGL tworzy niebo.js; do czasu jej uruchomienia (i bez WebGL / przy zbyt wolnym urządzeniu) tło zostaje statyczne (.niebo z CSS strony). */
.scena-niebo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.niebo-3d .niebo { visibility: hidden; }
.niebo-napisy { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.niebo-napis { position: absolute; left: 0; top: 0; font: 10px var(--font-mono); letter-spacing: .32em; color: rgba(240, 194, 149, .75); white-space: nowrap; opacity: 0;
  transition: font-size .6s, color .6s; will-change: transform; }
.niebo-napis.wybrany { font: 13px var(--font-logo); letter-spacing: .3em; color: #f6cfa6; text-shadow: 0 0 12px rgba(255, 150, 80, .8), 0 0 2px #000; }

/* Style specyficzne dla strony Smartly (reszta — pakiet smartly-styl: tokeny, czcionki, komponenty). Bez style="" w HTML (CSP style-src 'self'). */
body { margin: 0; color: var(--tekst); font-family: var(--font); font-size: clamp(16px, 1.05vw + 10px, 18px); line-height: 1.6; overflow-x: hidden; background: #000; }
a { color: var(--akcent-jasny); }
/* statyczne niebo: gwiazdy z gradientów + ciepła poświata (bez canvasu i bez animacji) */
.niebo { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 27% 72%, #cfd8ff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 41% 33%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 58% 12%, #ffe7cf 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 66% 64%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 79% 27%, #cfd8ff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 81%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 5% 90%, #ffe7cf 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 8%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 35% 92%, #fff 50%, transparent 52%),
    radial-gradient(70% 55% at 80% 8%, rgba(168,90,40,.22), transparent 65%), radial-gradient(60% 50% at 8% 95%, rgba(224,149,90,.10), transparent 70%), var(--tlo-niebo); }
.niebo::before, .niebo::after { content: ''; position: absolute; inset: 0; }
.niebo::before { background-size: 310px 310px; background-image:
  radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 52%), radial-gradient(1px 1px at 90px 140px, #cfd8ff 50%, transparent 52%),
  radial-gradient(1.3px 1.3px at 160px 70px, #fff 50%, transparent 52%), radial-gradient(1px 1px at 230px 210px, #ffe7cf 50%, transparent 52%),
  radial-gradient(1px 1px at 280px 20px, #fff 50%, transparent 52%), radial-gradient(1px 1px at 60px 260px, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 190px 290px, #cfd8ff 50%, transparent 52%); opacity: .8; }
.niebo::after { background-size: 470px 470px; background-image:
  radial-gradient(1.6px 1.6px at 50px 90px, #fff 50%, transparent 55%), radial-gradient(1.4px 1.4px at 300px 250px, #ffe7cf 50%, transparent 55%),
  radial-gradient(1.2px 1.2px at 410px 40px, #fff 50%, transparent 55%), radial-gradient(1.5px 1.5px at 150px 400px, #cfd8ff 50%, transparent 55%); }
main, header.gora, footer { position: relative; z-index: 2; }
header.gora { z-index: 20; }   /* panel języków nad treścią */

header.gora .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
header.gora .logo span { font-family: var(--font-logo); font-size: 15px; letter-spacing: .22em; color: var(--tekst-mocny); text-transform: uppercase; }

.hero { min-height: 100svh; display: flex; align-items: center; padding: 90px var(--gutter) 70px; max-width: 1240px; margin: 0 auto; }
.hero-tekst { max-width: 760px; }
.lead { font-size: 1.12em; max-width: 600px; color: #b9c4bf; }
.hero-znak { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.hero-znak img { width: clamp(64px, 8vw, 96px); height: auto; filter: drop-shadow(0 0 22px rgba(224,149,90,.75)); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.nr { font: 12px var(--font-mono); color: var(--akcent); letter-spacing: .2em; }

.app { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app .naglowek { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.app .adres { font: 13px var(--font-mono); color: var(--akcent-jasny); }
.app ul { margin: 0; padding-left: 1.1em; color: var(--tekst-cichy); }
.app .przyciski { margin-top: auto; padding-top: 6px; }
.ilustracja { width: 100%; height: clamp(170px, 18vw, 230px); display: block; border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, rgba(224,149,90,.12), transparent 60%), rgba(5,7,10,.55); }

.app { --karta-wys: clamp(170px, 18vw, 230px); }
@media (max-width: 760px) { .app { --karta-wys: 200px; } }

.kontakt-opis { margin-top: 0; }
.kontakt-siatka { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.kontakt-siatka p { margin: 4px 0 0; font-size: 1.1em; }
.kontakt-siatka .et { font: 11px var(--font-mono); letter-spacing: .2em; color: var(--akcent); }

footer { padding: 40px var(--gutter) 60px; text-align: center; color: var(--tekst-cichy); font-size: 14px; }
footer .firma { max-width: 760px; margin: 0 auto 14px; font-size: 13px; line-height: 1.6; }
footer .mono { font: 12px var(--font-mono); letter-spacing: .14em; }

/* podstrony tekstowe (prywatność, 404) */
.tekst-strona { max-width: 760px; margin: 0 auto; padding: 110px var(--gutter) 60px; }
.tekst-strona h2 { font-size: clamp(16px, 1.6vw, 22px); margin: 1.8em 0 .5em; }
.tekst-strona p { color: #c3ccc7; }
.aktualizacja { font: 12px var(--font-mono); letter-spacing: .14em; color: var(--tekst-cichy); }
@media (max-width: 760px) { .hero { align-items: flex-end; padding-bottom: 12vh; } }

/* ===== Smartly Sailing: układ strony wielojęzycznej ===== */
header.gora { gap: 16px; }
header.gora .logo span b { color: var(--akcent); font-weight: 400; }
header.gora nav.glowne { margin-left: auto; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-tekst { max-width: 640px; }
.hero-obraz { margin: 0; position: relative; }
.hero-obraz img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(240,194,149,.35), 0 0 60px -10px rgba(224,149,90,.45); }
.hero-obraz figcaption, .mono.nota { font: 12px var(--font-mono); letter-spacing: .12em; color: var(--tekst-cichy); margin-top: 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; align-items: start; padding-top: 96px; } .hero-obraz { max-width: 520px; } }

.nota { font-size: 14px; max-width: 760px; }
.wstep-funkcji { padding-bottom: 0; }
.funkcja { padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(28px, 5vh, 56px); max-width: 1180px; }
.funkcja-tresc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.funkcja:nth-of-type(even) .funkcja-tresc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.funkcja:nth-of-type(even) .funkcja-tekst { order: 2; }
.funkcja-tekst .nr { margin-right: 14px; }
.funkcja-tekst h3 { font-size: clamp(18px, 1.9vw, 26px); margin: .5em 0 .5em; }
.funkcja-tekst p { color: #c3ccc7; margin: 0 0 .9em; }
.funkcja-tekst ul { margin: 0; padding-left: 1.1em; color: var(--tekst-cichy); }
.funkcja-tekst li { margin: .25em 0; }
.ekrany { display: flex; gap: clamp(8px, 1.4vw, 18px); justify-content: center; align-items: flex-start; min-width: 0; }
.telefon { margin: 0; flex: 1 1 0; min-width: 0; max-width: 250px; }
.telefon img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(240,194,149,.4), 0 0 34px -6px rgba(224,149,90,.4); }
.ekrany-3 .telefon { max-width: 200px; }
.szeroki { margin: 0; flex: 1 1 100%; min-width: 0; }
.szeroki img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(240,194,149,.35), 0 0 40px -8px rgba(224,149,90,.4); }
.z-szerokim { flex-direction: column; }
.z-szerokim .telefon { max-width: 230px; align-self: center; }
.ekrany > .szeroki:only-child { flex: 1 1 100%; }
@media (max-width: 900px) {
  .funkcja-tresc, .funkcja:nth-of-type(even) .funkcja-tresc { grid-template-columns: 1fr; }
  .funkcja:nth-of-type(even) .funkcja-tekst { order: 0; }
}
@media (max-width: 520px) { .ekrany-3 .telefon { max-width: 31%; } .ekrany-3 { gap: 6px; } .telefon img { border-radius: 14px; } }

.zastrzezenie { max-width: 760px; margin: 26px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--ostrzezenie-tlo); color: var(--ostrzezenie); border: 1px solid rgba(224,184,79,.35); font-size: .95em; }

.wybor { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px var(--gutter); position: relative; z-index: 2; }
.wybor-jezykow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

section[id], main [id] { scroll-margin-top: 16px; }

/* ===== Logo (kompas), przełącznik języka, mapy i prognozy, cztery moduły ===== */
header.gora .logo { gap: 10px; }
.kompas { display: block; width: 64px; height: 64px; flex: none; filter: drop-shadow(0 0 7px rgba(255,160,96,.55)); }
.wybor-kompas { width: 112px; height: 112px; filter: drop-shadow(0 0 22px rgba(255,160,96,.7)); }

details.jezyki { position: relative; margin-left: 12px; }
details.jezyki > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 600 13px var(--font-mono); letter-spacing: .08em; color: var(--akcent-jasny); border: 1px solid rgba(240,194,149,.5); border-radius: 999px; background: rgba(224,149,90,.08); }
details.jezyki > summary::-webkit-details-marker { display: none; }
details.jezyki > summary:hover, details.jezyki > summary:focus-visible { background: rgba(224,149,90,.24); color: var(--tekst-mocny); outline: 2px solid var(--akcent-jasny); outline-offset: 2px; }
details.jezyki[open] > summary { background: var(--akcent); border-color: var(--akcent); color: #1a0e05; box-shadow: 0 0 14px -2px rgba(224,149,90,.7); }
.jezyki-glob, .jezyki-strz { fill: none; stroke: currentColor; flex: none; }
.jezyki-glob { stroke-width: 1.6; }
.jezyki-strz { stroke-width: 1.8; transition: transform .2s; }
details.jezyki[open] .jezyki-strz { transform: rotate(180deg); }
header.gora details.jezyki .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: 340px; padding: 8px; margin: 0; border: 1px solid rgba(240,194,149,.35); border-radius: 16px; background: #0a0e14; box-shadow: 0 18px 40px -12px #000, 0 0 24px -8px rgba(224,149,90,.4); }
.jezyki a.jezyk { display: flex; align-items: center; gap: 10px; font: 400 15px/1.2 var(--font); letter-spacing: 0; text-transform: none; min-height: 48px; padding: 0 12px; color: var(--tekst); text-decoration: none; border: 1px solid transparent; border-radius: 10px; box-shadow: none; background: none; }
.jezyki a.jezyk b { min-width: 26px; font: 600 12px var(--font-mono); letter-spacing: .08em; color: var(--akcent-jasny); }
.jezyki a.jezyk:hover, .jezyki a.jezyk:focus-visible { background: rgba(224,149,90,.2); border-color: rgba(240,194,149,.5); outline: none; }
.jezyki a.jezyk[aria-current] { background: var(--akcent); color: #1a0e05; }
.jezyki a.jezyk[aria-current] b { color: #1a0e05; }
.jezyki a.jezyk[aria-current]::after { content: "\2713"; margin-left: auto; font-weight: 700; }
/* telefon: pigułka z prawej, panel na pełną szerokość pod nagłówkiem (pakiet stylu chowa nav na telefonie — panel wymuszony wyżej) */
@media (max-width: 640px) { details.jezyki { position: static; margin-left: auto; } header.gora details.jezyki .panel { left: 12px; right: 12px; width: auto; top: 100%; } }
/* tablet pionowo (641–900 px): sześć odnośników menu i lista 11 języków nie mieszczą się w nagłówku (pakiet stylu chowa nav dopiero ≤ 640 px) — menu jak na telefonie */
@media (max-width: 900px) { header.gora nav { display: none; } .menu-przycisk { display: inline-flex; } details.jezyki { margin-left: auto; } }
@media (max-width: 520px) { .jezyki-glob { display: none; } header.gora .kompas { width: 56px; height: 56px; } }

.ikona { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.moduly { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.modul { display: block; text-decoration: none; color: inherit; }
.modul .ikona { display: block; width: 28px; height: 28px; color: var(--akcent-jasny); margin-bottom: 10px; }
.modul h3 { margin: .45em 0 .35em; font-size: 18px; }
.modul p { margin: 0; color: #c3ccc7; font-size: .92em; }
.modul:hover, .modul:focus-visible { box-shadow: 0 0 0 1px rgba(240,194,149,.55), 0 0 30px -8px rgba(224,149,90,.5); }
.w-rejsie { margin-top: 18px; }
.modul-grupa { padding-bottom: 0; padding-top: clamp(36px, 7vh, 72px); }
.modul-grupa h2 { margin: .2em 0 0; }
@media (max-width: 900px) { .moduly { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .moduly { grid-template-columns: 1fr; } }

.pogoda .pg-lead { margin-top: 0; max-width: 760px; }
.pg-siatka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 34px); margin-top: 28px; }
.pg-karta { min-width: 0; }
.pg-karta h3 { margin: 0 0 .4em; font-size: clamp(17px, 1.6vw, 22px); }
.pg-karta p { color: #c3ccc7; margin: 0 0 14px; }
.pg-fig { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(240,194,149,.35); }
.pg-mapa { display: block; width: 100%; height: auto; }
.pg-podpis { font: 11px var(--font-mono); fill: #9fb8c2; letter-spacing: .14em; }
.pg-leg { display: flex; gap: 2px; margin-top: 12px; }
.pg-leg-poz { flex: 1 1 0; min-width: 0; text-align: center; font: 500 10px var(--font-mono); }
.pg-leg-poz i { display: block; height: 10px; border-radius: 2px; }
.pg-leg-poz b { display: block; font-weight: 500; margin-top: 4px; color: var(--tekst); }
.pg-leg-poz small { display: block; color: var(--tekst-cichy); font-size: 9.5px; }
.pg-leg-poz.o-burza { flex-grow: 1.4; }
.pg-leg-poz.o-burza i { background: radial-gradient(circle at 50% 50%, #5b2f9e 0 4px, transparent 4.5px); }
.pg-prog { margin-top: clamp(22px, 3vw, 34px); }
.pg-prog > p { max-width: 760px; }
.pg-tabela table { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font: 11px var(--font-mono); }
.pg-tabela caption { caption-side: top; text-align: left; color: var(--tekst-cichy); padding-bottom: 6px; }
.pg-tabela th, .pg-tabela td { padding: 4px 0; text-align: center; border-radius: 3px; }
.pg-tabela th { font-weight: 500; color: var(--tekst); }
.pg-tabela th[scope="row"], .pg-tabela thead th:first-child { width: 52px; text-align: left; color: var(--tekst-cichy); font-weight: 400; }
.pg-tabela th small { display: block; color: var(--tekst-cichy); font-size: 9px; }
.pg-tabela td svg { display: block; margin: 0 auto; }
.pg-pkt { margin: 14px 0 0; padding-left: 1.1em; color: var(--tekst-cichy); }
@media (max-width: 900px) { .pg-siatka { grid-template-columns: 1fr; gap: 28px; } .pg-prog { margin-top: 28px; } }
@media (max-width: 520px) { .pg-tabela table { font-size: 10px; border-spacing: 1px; } .pg-tabela th[scope="row"], .pg-tabela thead th:first-child { width: 38px; } .pg-leg-poz { font-size: 9px; } .pg-leg-poz small { font-size: 8px; } }

/* większe odstępy między rysunkami (telefon): ekrany, mapy i ilustracje nie stykają się */
.ekrany { gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .funkcja-tresc, .funkcja:nth-of-type(even) .funkcja-tresc { gap: 32px; } .z-szerokim { gap: 36px; } }
@media (max-width: 520px) { .ekrany-3 { gap: 12px; } .ekrany-3 .telefon { max-width: 30%; } }

@media (max-width: 420px) { header.gora .logo span { display: none; } }
.pg-leg-poz b, .pg-leg-poz small { white-space: nowrap; font-size: 9px; letter-spacing: -.02em; }

/* ===== Pływy, prądy i pogoda: trzy karty ===== */
.pl-karta { display: flex; flex-direction: column; min-width: 0; }
.pl-fig { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(240,194,149,.35); }
.pl-svg, .pl-prady, .pl-radar { display: block; width: 100%; height: auto; }
.pl-siatka { stroke: #1d4a5e; stroke-width: 1; fill: none; }
.pl-pion { stroke-dasharray: 2 4; }
.pl-os { font: 10px var(--font-mono); fill: #8fb3c2; }
.pl-woda { fill: rgba(63,140,203,.35); }
.pl-linia { fill: none; stroke: #8fc6e6; stroke-width: 2; stroke-linejoin: round; }
.pl-ekstr { stroke: #06202c; stroke-width: 1.4; }
.pl-ekstr.hw, .pl-sym.hw { fill: #e0955a; background: #e0955a; }
.pl-ekstr.lw, .pl-sym.lw { fill: #4a5cb8; background: #4a5cb8; }
.pl-kropka { fill: #fff; stroke: #e0955a; stroke-width: 2.4; }
.pl-nazwa { fill: #f0c295; font-size: 12px; }
.pl-tab table { width: 100%; border-collapse: separate; border-spacing: 0 2px; margin-top: 12px; font: 12px var(--font-mono); }
.pl-tab th, .pl-tab td { padding: 6px 8px; text-align: left; border-radius: 3px; }
.pl-tab thead th { color: var(--tekst-cichy); font-weight: 400; }
.pl-tab tbody th { font-weight: 500; color: var(--tekst); white-space: nowrap; }
.pl-sym { display: inline-block; width: 9px; height: 9px; margin-right: 8px; transform: rotate(45deg); border-radius: 1px; }
.pl-prady .pl-prad-seg { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.pl-kropki { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 4; stroke-opacity: .85; }
.pl-grot { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-odczyt { font: 11px var(--font-mono); fill: #f0c295; letter-spacing: .1em; }
.pl-odplyw { opacity: 0; }
.pl-leg { margin-top: 12px; }
.pl-pole { }
.samouczek { grid-column: 1 / -1; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--obramowanie); }
.samouczek h4 { font: 400 clamp(16px, 1.5vw, 20px) var(--font-logo); color: var(--tekst-mocny); margin: 0 0 .4em; }
.samouczek .opis { margin: 0 0 14px; font-size: .92em; max-width: 760px; }
.sam-siatka { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.sam-lekcje { margin: 0; padding-left: 1.3em; color: #c3ccc7; }
.sam-lekcje li { margin: .45em 0; }
.sam-lekcje li::marker { color: var(--akcent); font-family: var(--font-mono); }
.sam-cwiczenie { padding: 16px; border-radius: 14px; background: rgba(5,7,10,.5); box-shadow: 0 0 0 1px rgba(240,194,149,.3); }
.sam-et { font: 11px var(--font-mono); letter-spacing: .18em; color: var(--akcent-jasny); }
.sam-wiersz { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 8px; }
.sam-pyt { margin: 0 0 10px; color: var(--tekst); }
.sam-opcje { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sam-opcje li { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--obramowanie-pola); font-size: 14px; }
.sam-opcje b { font: 500 13px var(--font-mono); color: var(--akcent-jasny); margin-right: 6px; }
.sam-odp { margin: 12px 0 0; color: var(--sukces); font-weight: 500; }
@media (max-width: 900px) { .sam-siatka { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sam-wiersz { grid-template-columns: 1fr; } .sam-wiersz .marka { max-width: 110px; } .sam-opcje { grid-template-columns: 1fr; } }
.funkcja-tresc .swiatla-demo, .funkcja-tresc .samouczek { order: 5; }
.pl-zegar { font: 500 12px var(--font-mono); fill: #fff; paint-order: stroke; stroke: #06202c; stroke-width: 3px; letter-spacing: .08em; }
.pl-tl { stroke: #8fb3c2; stroke-width: 1.4; fill: none; }
.pl-tick { fill: #06202c; stroke: #8fb3c2; stroke-width: 1.2; }
.pl-znacznik { fill: #e0955a; stroke: #fff; stroke-width: 1.6; }

/* galeria ekranów aplikacji: poziome pasy ekranów (scroll-snap, bez skryptu) */
.galeria .gal-lead { max-width: 70ch; }
.gal-zakladki { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.gal-zakladki a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--obramowanie-pola, rgba(240,194,149,.4)); border-radius: 999px; color: var(--tekst); text-decoration: none; font: 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.gal-zakladki a:hover, .gal-zakladki a:focus-visible { border-color: var(--akcent-jasny, #f0c295); color: var(--akcent-jasny, #f0c295); }
.gal-grupa { margin-top: clamp(36px, 5vw, 64px); scroll-margin-top: 90px; }
.gal-grupa h3 { margin: 0 0 6px; }
.gal-grupa > p { margin: 0 0 18px; max-width: 70ch; color: var(--tekst-cichy); }
.gal-pas { list-style: none; margin: 0; padding: 14px 4px 18px; display: flex; gap: clamp(16px, 2.4vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.gal-pas > li { flex: 0 0 min(250px, 64vw); scroll-snap-align: start; }
.gal-ekran { margin: 0; }
.gal-ekran img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(240,194,149,.4), 0 0 34px -6px rgba(224,149,90,.4); }
.gal-ekran figcaption { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--tekst); }
.gal-ekran figcaption span { display: block; margin-top: 4px; font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-cichy); }
.gal-pas:focus-visible { outline: 2px solid var(--akcent-jasny, #f0c295); outline-offset: 2px; }
.gal-pas > li.gal-szeroki { flex-basis: min(560px, 84vw); }
.gal-str { display: flex; gap: 10px; margin: 0 0 6px; }
.gal-str[hidden] { display: none; }
.gal-str button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--akcent-jasny, #f0c295); background: rgba(10,13,14,.85); color: #fff; font: 20px/1 var(--font); cursor: pointer; }
.gal-str button:hover:not(:disabled), .gal-str button:focus-visible { background: var(--akcent-jasny, #f0c295); color: #1a1405; outline: none; }
.gal-str button:focus-visible { box-shadow: 0 0 0 3px rgba(240,194,149,.55); }
.gal-str button:disabled { opacity: .4; cursor: default; }

/* Mapa obszarów (#mapa): SVG inline, zacieniona woda, numerowane punkty + lista obok */
.mp-uklad { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; margin-top: 20px; }
.mp-rysunek { margin: 0; border: 1px solid var(--obramowanie); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.mp-svg { display: block; width: 100%; height: auto; }
.mp-siatka { fill: none; stroke: #1c3345; stroke-width: 1; opacity: .7; }
/* jednolita jasność: krycie na grupie, nie na prostokątach (nakładające się ramki nie sumują przezroczystości) */
.mp-strefy rect { fill: var(--akcent); }
.mp-strefy { opacity: .42; }
.mp-ostre { opacity: .2; }
.mp-ramki rect { fill: none; stroke: var(--akcent-jasny); stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 5 5; }
.mp-pkt circle { fill: var(--akcent-jasny); stroke: #1a1405; stroke-width: 2; }
.mp-pkt .mp-puls { fill: none; stroke: var(--akcent-jasny); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mp-pkt text { font: 700 13px var(--font-mono); fill: #1a1405; text-anchor: middle; }
.mp-mazury rect { fill: #7ec98f; stroke: #10241a; stroke-width: 2; }
.mp-lista h3 { margin: 0 0 12px; font-size: 18px; }
.mp-lista ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mp-lista li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--obramowanie); border-radius: 10px; background: var(--szklo); }
.mp-nr { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--akcent-jasny); color: #1a1405; font: 700 13px var(--font-mono); }
.mp-mazury-poz .mp-nr { position: relative; background: transparent; color: #10241a; z-index: 0; }
.mp-mazury-poz .mp-nr::before { content: ''; position: absolute; inset: 2px; border-radius: 4px; background: #7ec98f; transform: rotate(45deg); z-index: -1; }
@media (prefers-reduced-motion: no-preference) {
  .mp-pkt .mp-puls { animation: mp-puls 3.2s ease-out infinite; }
  @keyframes mp-puls { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
}
@media (max-width: 760px) { .mp-uklad { grid-template-columns: 1fr; } }
/* Funkcje w blokach (#bloki): cztery moduły, w nich karty-bloki z krótkimi listami */
.bloki .bl-modul { margin-top: clamp(28px, 4vw, 48px); }
.bl-naglowek { margin: 0 0 14px; font-size: 20px; }
.bl-naglowek .nr { margin-right: 10px; }
.bl-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 16px; }
/* długie złożenia (FI, NL, DE, SV) w wąskich kafelkach bloków: zawijanie z podziałem wyrazu (lang w <html> wybiera słownik dzielenia) */
.bl h4, .bl li { overflow-wrap: break-word; hyphens: auto; }
.bl h4 { margin: 0 0 8px; font-size: 16px; color: var(--akcent-jasny, #f0c295); }
.bl ul { margin: 0; padding: 0; list-style: none; }
.bl li { position: relative; margin: 0 0 6px; padding-left: 16px; font-size: .92em; line-height: 1.4; color: #c3ccc7; }
.bl li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--akcent-jasny, #f0c295); opacity: .8; }
.bl-nota { margin-top: 28px; }
/* Komunikaty DISTRESS/MOB zawsze po angielsku; tekst lokalny obok jest wyraźnie oznaczony jako objaśnienie (decyzja Chrisa 19.10.2026) */
.lok-en { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--akcent); border-radius: 10px; background: var(--akcent-tlo); color: var(--akcent-jasny); font-size: .92em; line-height: 1.4; font-style: normal; }
.lok-en b { flex: none; padding: 1px 7px; border-radius: 6px; background: var(--akcent-jasny); color: #1a1405; font: 700 12px var(--font-mono); letter-spacing: .08em; }
.gal-ekran figcaption .lok-en { display: block; margin-top: 8px; padding: 6px 10px; font-size: 12.5px; }

/* Mapa: dopisek o docelowym zasięgu, znaczniki jezior (docelowe, kreskowane) */
.mp-docel { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--obramowanie); background: var(--akcent-tlo); color: var(--akcent-jasny); font-size: .9em; line-height: 1.4; }
.mp-docel b { flex: none; padding: 1px 8px; border-radius: 6px; background: var(--akcent-jasny); color: #1a1405; font: 700 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.mp-cel.mp-mazury rect { fill: rgba(126, 201, 143, .25); stroke: #7ec98f; stroke-dasharray: 3 3; }
.mp-cel.mp-mazury text { fill: #cdeed5; }
.mp-mazury-poz.mp-cel .mp-nr { color: #cdeed5; }
.mp-mazury-poz.mp-cel .mp-nr::before { background: rgba(126, 201, 143, .2); border: 2px dashed #7ec98f; inset: 1px; }

/* Wygląd ilustracji SVG (wizja, hero, planer) i animacje strony Smartly Sailing. Bez style="" w HTML (CSP style-src 'self').
   Animacje tylko w @media (prefers-reduced-motion: no-preference); poza ekranem wstrzymywane przez animacje.js (.anim .poza). */

/* ===== wspólne klasy SVG (tokeny Smartly) ===== */
.il { width: 100%; height: auto; display: block; overflow: visible; }
.il .kontur { fill: none; stroke: var(--akcent-jasny); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.il .kontur-cichy { fill: none; stroke: var(--akcent); stroke-opacity: .55; stroke-width: 1.4; stroke-linecap: round; }
.il .trasa-mala { fill: none; stroke: var(--akcent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.il .kropka { fill: var(--akcent-jasny); }
.il .igla { fill: var(--akcent); stroke: none; }
.il-wrap { margin: -4px -6px 10px; padding: 8px 6px 0; border-radius: 12px; background: radial-gradient(100% 90% at 50% 100%, rgba(224,149,90,.14), transparent 70%), rgba(5,7,10,.45); }

/* 1. zbieg narzędzi */
.il-rozp .r1 { --x: 40px; --y: 30px; } .il-rozp .r2 { --x: 196px; --y: 36px; } .il-rozp .r3 { --x: 34px; --y: 118px; } .il-rozp .r4 { --x: 202px; --y: 112px; } .il-rozp .r5 { --x: 120px; --y: 20px; }
.il-rozp .rozp { translate: var(--x) var(--y); transform-box: fill-box; transform-origin: center; }
.il-rozp .r-telefon { filter: drop-shadow(0 0 8px rgba(224,149,90,.55)); }
/* 2. zasięg */
.il-zasieg .ring { fill: none; stroke: var(--akcent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.il-zasieg .przekreslenie { stroke: var(--blad); stroke-width: 2.2; stroke-linecap: round; }
.il-zasieg .s-brzeg { fill: rgba(42,160,192,.28); stroke: var(--akcent); stroke-opacity: .6; stroke-width: 1.2; }
.il-zasieg .s-trasa { fill: none; stroke: var(--akcent-jasny); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.il-zasieg .s-lodz { fill: var(--akcent); }
.il-zasieg .sygnal-wygaszony { opacity: .35; }
.il-zasieg .s-woda { stroke: #2aa0c0; stroke-opacity: .6; fill: none; }
/* 3. dane */
.il-dane .pasek { fill: var(--tekst-cichy); fill-opacity: .65; } .il-dane .pasek.cichy { fill-opacity: .3; }
.il-dane .d-kropka.d-nie { fill: var(--ostrzezenie); } .il-dane .d-kropka.d-tak { fill: var(--sukces); } .il-dane .d-kropka.d-brak { fill: var(--obramowanie-pola); }
.il-dane .d-ptak { fill: none; stroke: var(--sukces-tlo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.il-dane .plakietka-mala.nie { fill: var(--ostrzezenie-tlo); stroke: var(--ostrzezenie); stroke-width: 1; }
.il-dane .plakietka-mala.tak { fill: var(--sukces-tlo); stroke: var(--sukces); stroke-width: 1; }
.il-dane .plakietka-mala.brak { fill: none; stroke: var(--obramowanie-pola); stroke-width: 1; stroke-dasharray: 3 2; }
.il-dane .d-skan { fill: var(--akcent-jasny); opacity: 0; }

/* ===== hero: nakładka na mapę ===== */
.hero-ramka { position: relative; }
.hero-nakladka { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-nakladka .h-trasa { fill: none; stroke: var(--akcent-jasny); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; filter: drop-shadow(0 0 6px var(--akcent)); }
.hero-nakladka .h-cel { fill: var(--akcent); stroke: #fff; stroke-width: 2; }
.hero-nakladka .h-ring { fill: none; stroke: var(--akcent-jasny); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-nakladka .h-lodz { fill: #fff; stroke: var(--akcent); stroke-width: 3; opacity: 0; }

/* ===== fala: dzielnik sekcji ===== */
.fala { position: relative; height: clamp(34px, 5vw, 64px); overflow: hidden; margin: 0; z-index: 2; pointer-events: none; }
.fala svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.fala-1 path { fill: rgba(42,160,192,.16); } .fala-2 path { fill: rgba(224,149,90,.12); }

/* ===== planer ===== */
.funkcja-pelna .funkcja-tresc, .funkcja-pelna:nth-of-type(even) .funkcja-tresc { grid-template-columns: 1fr; }
.funkcja-pelna .funkcja-tekst { order: 0; }
.ekrany-pelne { display: block; }
.planer { margin: 0; display: grid; gap: 18px; }
.planer-mapa { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(240,194,149,.4), 0 0 60px -10px rgba(224,149,90,.4), inset 0 0 60px rgba(42,160,192,.18); background: #061c2b; }
.planer-mapa svg { width: 100%; height: auto; display: block; }
.planer-mapa .p-siatka path { fill: none; stroke: #2aa0c0; stroke-opacity: .13; stroke-width: 1; }
.planer-mapa .pf { fill: none; stroke: #5fd0ee; stroke-opacity: .22; stroke-width: 2; }
.planer-mapa .p-ziemia { fill: #0e1511; } .planer-mapa .p-kreski { fill: url(#p-kreska); }
.planer-mapa .p-brzeg { fill: none; stroke: var(--akcent); stroke-opacity: .75; stroke-width: 2; }
.planer-mapa .p-gw { fill: #fff; opacity: .8; }
.planer-mapa .p-strzalka { fill: none; stroke: #8fd9ee; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.planer-mapa .p-et { font: 600 14px var(--font-mono); fill: #bfe9f5; opacity: .9; }
.planer-mapa .p-tr { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.planer-mapa .p-tr-lok { stroke: var(--ostrzezenie); stroke-width: 3; stroke-dasharray: 9 8; opacity: .9; }
.planer-mapa .p-tr-orto { stroke: var(--informacja); stroke-width: 3.5; opacity: .95; }
.planer-mapa .p-tr-opt { stroke: var(--sukces); stroke-width: 6; stroke-dasharray: 1; stroke-linecap: butt; }
.planer-mapa .p-wp circle { fill: #06202c; stroke: var(--sukces); stroke-width: 3; }
.planer-mapa .p-lodz { fill: #fff; stroke: var(--akcent); stroke-width: 3.5; opacity: 0; }
.planer-mapa .p-kol { fill: var(--akcent); stroke: #fff; stroke-width: 3; }
.planer-mapa .p-ring { fill: none; stroke: var(--akcent-jasny); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.planer-mapa .p-nazwa { font: 700 20px var(--font); fill: #fff; paint-order: stroke; stroke: rgba(3,20,30,.85); stroke-width: 5px; }
.p-legenda { position: absolute; top: 14px; left: 14px; margin: 0; padding: 10px 14px; list-style: none; display: grid; gap: 6px; font: 12px var(--font-mono); color: var(--tekst);
  background: rgba(5,7,10,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 10px; border: 1px solid rgba(240,194,149,.3); }
.p-legenda li { display: flex; align-items: center; gap: 8px; }
.p-legenda li::before { content: ''; width: 22px; height: 0; border-top: 3px solid; }
.p-legenda .l-opt::before { color: var(--sukces); border-top-width: 5px; } .p-legenda .l-orto::before { color: var(--informacja); } .p-legenda .l-lok::before { color: var(--ostrzezenie); border-top-style: dashed; }
.planer-dol { display: grid; grid-template-columns: 1fr; gap: 22px; overflow-x: auto; }
.p-okno { max-width: 560px; }
.p-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-tabela th, .p-tabela td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--obramowanie); white-space: nowrap; }
.p-tabela thead th { font: 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tekst-cichy); }
.p-tabela tbody th { font-weight: 500; color: var(--tekst); }
.p-tabela .najlepsza th, .p-tabela .najlepsza td { color: var(--sukces); }
.p-okno { min-width: 0; }
.p-okno-et { display: block; font: 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tekst-cichy); margin-bottom: 8px; }
.p-slupki { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 96px; }
.p-slupki .sl { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.p-slupki i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #5d6e68; transform-origin: bottom; }
.p-slupki .najlepszy i { background: var(--sukces); box-shadow: 0 0 14px var(--sukces); }
.p-slupki b { font: 10px var(--font-mono); font-weight: 400; color: var(--tekst-cichy); margin-top: 4px; }
.h18 { height: 18%; } .h30 { height: 30%; } .h36 { height: 36%; } .h44 { height: 44%; } .h52 { height: 52%; } .h58 { height: 58%; } .h62 { height: 62%; } .h66 { height: 66%; }
@media (max-width: 760px) { .planer-dol { grid-template-columns: 1fr; } .p-tabela { font-size: 12px; } .p-tabela th, .p-tabela td { padding: 7px 5px; white-space: normal; } .p-tabela tr > :nth-child(3), .p-tabela tr > :nth-child(4) { display: none; } .p-legenda { position: static; border-radius: 0; border-width: 1px 0 0; background: rgba(5,7,10,.8); } .planer-mapa .p-et { font-size: 18px; } .planer-mapa .p-nazwa { font-size: 26px; } .planer-dol { overflow-x: visible; } }

/* ===== baza portów „na żywo” (nakładka na zrzuty) ===== */
.port-ramka { position: relative; line-height: 0; }
.port-ramka img { display: block; }
.port-ramka svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.port-ramka svg.pz-defs { width: 0; height: 0; }
.pz-kadr { position: absolute; inset: 0; overflow: hidden; }
.port-ramka:not(.tel) .pz-kadr { clip-path: inset(17.7% 0 11.5% 0); }
.port-ramka.tel .pz-kadr { clip-path: url(#tp-klip); }
.pz-swiat { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.port-ramka .pz-swiat img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.pz-skala path { fill: none; stroke: #cfe3ea; stroke-width: 2.4; } .pz-skala text { font: 12px var(--font-mono); fill: #9fc0cb; }
.port-ramka.tel .pz-skala text { font-size: 15px; }
.tp-woda { fill: url(#tp-wlot); } .tp-lad { fill: #1b1f1a; stroke: none; } .tp-nabrzeze { fill: none; stroke: var(--akcent); stroke-width: 2.4; opacity: .8; }
.tp-pomosty { fill: none; stroke: #8fb7c4; stroke-width: 6; stroke-linecap: butt; opacity: .9; } .tp-b24 { font: 600 13px var(--font-mono); fill: var(--akcent-jasny); }
.pz-slad { fill: none; stroke: var(--akcent); stroke-width: 4; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1; }
.pz-lodz { fill: #ffae78; offset-rotate: auto; }
.pz-halo { fill: rgba(224,149,90,.28); }
.pz-ring { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pz-ring.cz { stroke: var(--blad); } .pz-ring.zi { stroke: var(--sukces); } .pz-ring.port { stroke: var(--akcent-jasny); }
.pz-hud rect { fill: rgba(9,15,19,.96); stroke: rgba(240,194,149,.4); }
.pz-hud .et { font: 9px var(--font-mono); letter-spacing: .14em; fill: #8a948f; }
.pz-hud .wa { font: 600 17px var(--font-mono); fill: var(--akcent-jasny); }
.tp-wa { font: 400 42px var(--font-mono); fill: var(--akcent-jasny); }
.tp-pasek { font: 600 18px var(--font-mono); fill: #f3e3b5; }
.telefon.zywy img { transform: none; }
.tz-pole rect { fill: #0f1a1f; } .tz.noc .tz-pole rect { fill: #170a0b; } .tz.noc .tz-wa { fill: #f4a794; }
.pz-ring.nb { stroke: #5aa0e0; } .tz-ob { fill: none; stroke-width: 2.4; opacity: 0; } .tz-ob.am { stroke: #e0b84f; } .tz-ob.zl { stroke: var(--sukces); } .tz-ob.cz { stroke: #ef7a6b; }
.tz-teraz { fill: #fff4e0; opacity: 0; } .tz-slad { fill: none; stroke: var(--akcent-jasny); stroke-width: 3; stroke-dasharray: 1; opacity: 0; } .tz-lodz { offset-rotate: 0deg; opacity: 0; } .tz-kropka { fill: #ffae78; } .tz-tor { fill: rgba(255,255,255,.08); } .tz-pas { fill: var(--akcent); opacity: 0; transform-box: fill-box; transform-origin: left; } .tz-wa { font: 300 46px var(--font-mono); fill: #e9b480; }
.telefon > svg.tz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

/* ===== karty, przyciski, zrzuty: mikro-interakcje (statyczne) ===== */
.telefon { position: relative; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.telefon img { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s; will-change: transform; }
.telefon:hover img { box-shadow: 0 0 0 1px var(--akcent-jasny), 0 0 50px -4px rgba(224,149,90,.7); }
.tafla { transition: box-shadow .4s, transform .4s cubic-bezier(.2,.8,.2,1); }
.przycisk { position: relative; overflow: hidden; }
.przycisk::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }

/* ===== animacje (tylko gdy użytkownik nie prosi o ograniczenie ruchu) ===== */
@media (prefers-reduced-motion: no-preference) {
  .anim .poza, .anim .poza * { animation-play-state: paused !important; }
  /* radar żyje w osobnym pliku SVG (<image>): pauza z zewnątrz go nie sięga, więc poza ekranem go ukrywamy (bez malowania nie obciąża baterii) */
  .anim .poza .pl-radar image { visibility: hidden; }

  /* gwiazdy statycznego nieba migoczą (gdy nie działa WebGL) */
  .niebo::before { animation: migot 6s ease-in-out infinite alternate; } .niebo::after { animation: migot 9s ease-in-out -3s infinite alternate; }
  @keyframes migot { from { opacity: .45; } to { opacity: 1; } }

  /* hero */
  .hero-nakladka .h-trasa { animation: rysuj 9s ease-in-out infinite; }
  .hero-nakladka .h-ring { animation: ring 2.6s ease-out infinite; } .hero-nakladka .h-ring2 { animation-delay: 1.3s; }
  .hero-ramka { animation: plyn 8s ease-in-out infinite; }
  .hero-ramka img { animation: blysk 7s ease-in-out infinite; }
  @keyframes blysk { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12) saturate(1.1); } }
  @keyframes rysuj { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  /* łódź: te same przedziały czasu i ta sama funkcja czasu co `rysuj` (dashoffset 1→0 = offset-distance 0→100%), więc zawsze dokładnie na końcu rysowanej linii */
  @keyframes jazda { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 85% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
  @keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }
  @keyframes plyn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

  /* przyciski */
  .przycisk:not(.drugi) { animation: oddech 3.4s ease-in-out infinite; }
  @keyframes oddech { 0%, 100% { box-shadow: 0 0 0 1px rgba(240,194,149,.6), 0 0 22px rgba(224,149,90,.4); } 50% { box-shadow: 0 0 0 1px rgba(240,194,149,.85), 0 0 38px rgba(224,149,90,.75); } }
  .przycisk:hover::after, .przycisk:focus-visible::after { animation: blask .8s ease-out; }
  @keyframes blask { from { left: -60%; } to { left: 130%; } }
  .ruch .tafla.wjazd.widoczny:hover { transform: translateY(-5px); box-shadow: 0 18px 50px -14px rgba(224,149,90,.45); }

  /* zrzuty telefonów: unoszenie, pulsy alarmu i DISTRESS */
  .plyn0 { animation: plyn 7s ease-in-out infinite; } .plyn1 { animation: plyn 8.5s ease-in-out -2s infinite; } .plyn2 { animation: plyn 9.5s ease-in-out -4s infinite; }
  .puls-alarm::after, .puls-distress::after, .puls-noc::after { content: ''; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; }
  .puls-alarm::after { animation: pulsAlarm 1.3s ease-out infinite; }
  .puls-distress::after { animation: pulsDistress 1.8s ease-out infinite; }
  .puls-noc::after { animation: pulsNoc 5s ease-in-out infinite; }
  @keyframes pulsAlarm { 0% { box-shadow: 0 0 0 0 rgba(224,184,79,.75); } 70%, 100% { box-shadow: 0 0 0 26px rgba(224,184,79,0); } }
  @keyframes pulsDistress { 0% { box-shadow: 0 0 0 0 rgba(239,122,107,.8); } 70%, 100% { box-shadow: 0 0 0 30px rgba(239,122,107,0); } }
  @keyframes pulsNoc { 0%, 100% { box-shadow: 0 0 20px 0 rgba(239,60,40,.18); } 50% { box-shadow: 0 0 46px 6px rgba(239,60,40,.5); } }

  /* baza portów: ślad rysowany i łódź po tej samej ścieżce (jazda = rysuj, ta sama funkcja czasu), pulsy znaków */
  .port-zywy .pz-slad { animation: rysuj 14s ease-in-out infinite; }
  .pz-ring.cz, .pz-ring.zi, .pz-ring.nb { animation: ringZnak 3.2s ease-out infinite; } .pz-ring.d1 { animation-delay: .5s; } .pz-ring.d2 { animation-delay: 1.1s; } .pz-ring.d3 { animation-delay: 1.7s; } .pz-ring.d4 { animation-delay: 2.3s; }
  .pz-ring.port.r0 { animation: ring 2.8s ease-out infinite; } .pz-ring.port.r1 { animation: ring 2.8s ease-out 1.4s infinite; }
  @keyframes ringZnak { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
  .pz-halo { animation: oddechHalo 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes oddechHalo { 0%, 100% { transform: scale(.85); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }
  /* ekrany telefonów: obrysy plakietek oddychają (<1 błysk/s), znacznik wachty sunie, pasek pobierania rośnie */
  .tz-ob { animation: oddechObr 2.6s ease-in-out infinite; } .tz-ob[data-d] { animation-delay: 1.3s; }
  @keyframes oddechObr { 0%, 100% { opacity: .1; } 50% { opacity: .95; } }
  .tz-teraz { animation: znacznik 14s linear infinite; } @keyframes znacznik { 0% { opacity: 0; translate: 0 0; } 10%, 90% { opacity: .95; } 100% { opacity: 0; translate: 33px 0; } }
  .tz-pas { animation: pobieranie 14s ease-in-out infinite; } @keyframes pobieranie { 0% { transform: scaleX(0); opacity: 0; } 8% { opacity: .95; } 85% { transform: scaleX(1); opacity: .95; } 100% { transform: scaleX(1); opacity: 0; } }
  .tp-slad { animation: rysuj 14s ease-in-out infinite; }

  /* pozostałe ekrany telefonów: przemiatający blask (jak odbicie światła na szkle), co ekran z innym opóźnieniem */
  .telefon:not(.zywy)::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 22px; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,225,190,.14) 50%, transparent 58%) no-repeat; background-size: 260% 100%; animation: przemiataj 7s ease-in-out infinite; }
  .telefon.plyn1:not(.zywy)::before { animation-delay: -2.3s; } .telefon.plyn2:not(.zywy)::before { animation-delay: -4.6s; }
  @keyframes przemiataj { 0%, 12% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

  /* fale między sekcjami */
  .fala-1 { animation: fala 16s linear infinite; } .fala-2 { animation: fala 24s linear infinite reverse; }
  @keyframes fala { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* wizja: ilustracje */
  .il-rozp .rozp { animation: zbieg 7s ease-in-out infinite; }
  .il-rozp .r2 { animation-delay: .15s; } .il-rozp .r3 { animation-delay: .3s; } .il-rozp .r4 { animation-delay: .45s; } .il-rozp .r5 { animation-delay: .6s; }
  @keyframes zbieg { 0%, 12% { translate: var(--x) var(--y); opacity: 1; scale: 1; } 52% { translate: 120px 75px; opacity: 1; scale: .45; } 64%, 80% { translate: 120px 75px; opacity: 0; scale: .2; } 100% { translate: var(--x) var(--y); opacity: 1; scale: 1; } }
  .il-rozp .r-telefon { animation: telefonPuls 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes telefonPuls { 0%, 40% { transform: scale(1); } 62%, 78% { transform: scale(1.1); } 100% { transform: scale(1); } }
  .il-rozp .r-poswiata { animation: poswiata 7s ease-in-out infinite; }
  @keyframes poswiata { 0%, 40% { opacity: .35; } 62%, 78% { opacity: 1; } 100% { opacity: .35; } }
  .il-zasieg .ring { animation: ring 3.6s ease-out infinite; } .il-zasieg .ring2 { animation-delay: 1.2s; } .il-zasieg .ring3 { animation-delay: 2.4s; }
  .il-zasieg .s-trasa { animation: rysuj 5s ease-in-out infinite; }
  .il-zasieg .s-lodz { animation: lodz 5s ease-in-out infinite; }
  @keyframes lodz { 0%, 8% { translate: -20px 14px; } 85%, 100% { translate: 10px -16px; } }
  .il-zasieg .przekreslenie { animation: miga2 2.4s ease-in-out infinite; }
  @keyframes miga2 { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  .il-zasieg .s-woda { animation: dryf 4s ease-in-out infinite alternate; }
  @keyframes dryf { from { translate: -6px 0; } to { translate: 6px 0; } }
  .il-dane .d-ptak { animation: rysuj 4.5s ease-in-out infinite; }
  .il-dane .d-kropka.d-nie { animation: kropka 4.5s ease-in-out infinite; }
  @keyframes kropka { 0%, 40% { fill: var(--ostrzezenie); } 55%, 100% { fill: var(--sukces); } }
  .il-dane .d-skan { animation: skanuj 4.5s ease-in-out infinite; }
  @keyframes skanuj { 0% { opacity: 0; translate: 0 0; } 10% { opacity: .7; } 85% { opacity: .7; translate: 0 108px; } 100% { opacity: 0; translate: 0 112px; } }

  /* planer */
  .planer-mapa .pf { animation: faluj 9s linear infinite; } .planer-mapa .pf2 { animation-duration: 13s; animation-direction: reverse; } .planer-mapa .pf3 { animation-duration: 11s; }
  @keyframes faluj { from { translate: 0 0; } to { translate: 200px 0; } }
  .planer-mapa .p-tr-opt { animation: rysuj 9s ease-in-out infinite; }
  .planer-mapa .p-tr-orto { animation: wsuwaj 9s ease-in-out infinite; } .planer-mapa .p-tr-lok { animation: wsuwaj 9s ease-in-out .6s infinite; }
  @keyframes wsuwaj { 0%, 5% { opacity: 0; } 20%, 90% { opacity: .95; } 100% { opacity: 0; } }
  .planer-mapa .p-wp circle { animation: wp 9s ease-in-out infinite; }
  @keyframes wp { 0%, 10% { opacity: 0; } 30%, 90% { opacity: 1; } 100% { opacity: 0; } }
  .planer-mapa .p-ring { animation: ring 2.8s ease-out infinite; } .planer-mapa .p-ring.r2 { animation-delay: 1.4s; }
  .planer-mapa .p-wiatr { animation: wiatr 3s ease-in-out infinite; } .planer-mapa .p-wiatr.w1 { animation-delay: .6s; } .planer-mapa .p-wiatr.w2 { animation-delay: 1.2s; } .planer-mapa .p-wiatr.w3 { animation-delay: 1.8s; }
  @keyframes wiatr { 0%, 100% { opacity: .45; translate: 0 6px; } 50% { opacity: 1; translate: 0 -6px; } }
  .planer-mapa .p-gw { animation: migot 3s ease-in-out infinite alternate; } .planer-mapa .p-gw.g1 { animation-delay: -1s; } .planer-mapa .p-gw.g2 { animation-delay: -2s; } .planer-mapa .p-gw.g3 { animation-duration: 4.4s; }
  .ruch .planer.wjazd.widoczny .p-slupki i { animation: slupek 1.1s cubic-bezier(.2,.8,.2,1) both; }
  .p-slupki .s1 i { animation-delay: .08s !important; } .p-slupki .s2 i { animation-delay: .16s !important; } .p-slupki .s3 i { animation-delay: .24s !important; } .p-slupki .s4 i { animation-delay: .32s !important; } .p-slupki .s5 i { animation-delay: .4s !important; } .p-slupki .s6 i { animation-delay: .48s !important; } .p-slupki .s7 i { animation-delay: .56s !important; }
  @keyframes slupek { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .p-slupki .najlepszy i { animation: slupek 1.1s cubic-bezier(.2,.8,.2,1) .16s both, swiec 2.6s ease-in-out 1.4s infinite; }
  @keyframes swiec { 0%, 100% { box-shadow: 0 0 8px var(--sukces); } 50% { box-shadow: 0 0 22px var(--sukces); } }

  /* stan projektu: kolejne wiersze wsuwają się, plakietki „Wkrótce” pulsują */
  .ruch .tafla.widoczny .stan li { animation: wsuw .7s cubic-bezier(.2,.8,.2,1) both; }
  .stan li:nth-child(2) { animation-delay: .12s !important; } .stan li:nth-child(3) { animation-delay: .24s !important; } .stan li:nth-child(4) { animation-delay: .36s !important; } .stan li:nth-child(5) { animation-delay: .48s !important; }
  @keyframes wsuw { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
  .stan-budowa .plakietka::before, .stan-plan .plakietka::before { animation: kropkaPuls 1.8s ease-in-out infinite; }
  @keyframes kropkaPuls { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
  .zastrzezenie { animation: ostrz 5s ease-in-out infinite; }
  @keyframes ostrz { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,184,79,0); } 50% { box-shadow: 0 0 24px -2px rgba(224,184,79,.35); } }

  /* przełącznik języka i logo */
  header.gora .logo img { animation: oddechLogo 4.5s ease-in-out infinite; }
  @keyframes oddechLogo { 0%, 100% { filter: drop-shadow(0 0 6px rgba(224,149,90,.4)); } 50% { filter: drop-shadow(0 0 16px rgba(224,149,90,.9)); } }
}
/* ===== żywe światła znaków (rytmy: build.mjs → swiatlaCss) ===== */
.funkcja-tresc .swiatla-demo { grid-column: 1 / -1; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--obramowanie); }
.swiatla-demo h4 { font: 400 clamp(16px, 1.5vw, 20px) var(--font-logo); color: var(--tekst-mocny); margin: 0 0 .4em; }
.swiatla-demo .opis { margin: 0 0 14px; font-size: .92em; max-width: 760px; }
.marki { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.marka { margin: 0; text-align: center; padding: 10px 4px 12px; border-radius: 14px; background: radial-gradient(90% 70% at 50% 18%, rgba(224,149,90,.08), transparent 70%), rgba(5,7,10,.55); border: 1px solid var(--obramowanie); }
.marka svg { width: 100%; max-width: 104px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.marka figcaption { display: grid; gap: 3px; margin-top: 6px; }
.marka figcaption b { font: 600 12px var(--font); color: var(--tekst); line-height: 1.25; }
.marka figcaption span { font: 12px var(--font-mono); color: var(--akcent-jasny); letter-spacing: .04em; }
.marka .m-woda { fill: rgba(42,160,192,.3); } .marka .m-fala { fill: none; stroke: #7fd3ea; stroke-opacity: .6; stroke-width: 2; stroke-linecap: round; }
.marka .b-slup { fill: #8a948f; }
.marka .b-bl { fill: #12171a; stroke: #8a948f; stroke-width: .8; } .marka .b-zol { fill: var(--ostrzezenie); } .marka .b-cz { fill: var(--blad); } .marka .b-bi { fill: var(--tekst); } .marka .b-nie { fill: var(--informacja); }
.marka .lampa .halo { opacity: .5; }
.lampa-bialy .halo { fill: #fff; } .lampa-bialy .rdzen { fill: #fff; }
.lampa-niebieski .halo { fill: var(--informacja); } .lampa-niebieski .rdzen { fill: #bcdcff; }
.lampa-zolty .halo { fill: var(--ostrzezenie); } .lampa-zolty .rdzen { fill: #fff3c4; }
.lampa-czerwony .halo { fill: var(--blad); } .lampa-czerwony .rdzen { fill: #ffd5cf; }
.lampa-zielony .halo { fill: var(--sukces); } .lampa-zielony .rdzen { fill: #d4ffdc; }
.hero-nakladka .hero-lampy .halo { opacity: .55; filter: blur(2px); }
.marka .lampa .halo { filter: blur(1.5px); }
@media (prefers-reduced-motion: reduce) { .hero-nakladka { display: none; } .telefon img { transform: none !important; } }

/* ===== kompas (logo), mapy pogody, wykres okna wylotu na telefonie ===== */
.p-slupki { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.p-slupki .sl { min-width: 0; }
@media (max-width: 520px) { .p-slupki { gap: 3px; } .p-slupki b { font-size: 8px; letter-spacing: -.04em; margin-top: 3px; } }
@media (prefers-reduced-motion: no-preference) {
  /* świecenie kompasu oddycha co 4 s (≤ 1 błysk/s) */
  .kompas { animation: kp-poswiata 4s ease-in-out infinite; }
  @keyframes kp-poswiata { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255,160,96,.4)); } 50% { filter: drop-shadow(0 0 12px rgba(255,160,96,.85)); } }
  /* pogoda: niż pulsuje, strzałki oddychają, komórki opadów i burz dryfują, błyskawice mrugają raz na 3 s */
  .pg-niz { transform-box: fill-box; transform-origin: center; animation: pg-puls 4s ease-in-out infinite; }
  .pg-strzalki { animation: pg-oddech 6s ease-in-out infinite; }
  .pg-komorki, .pg-blyski { animation: pg-dryf 16s ease-in-out infinite alternate; }
  .pg-blyski path { animation: pg-blysk 3s steps(1) infinite; }
  .pg-blyski path:nth-child(even) { animation-delay: -1.4s; }
  @keyframes pg-puls { 0%, 100% { transform: scale(.8); opacity: .9; } 50% { transform: scale(1.25); opacity: .3; } }
  @keyframes pg-oddech { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
  @keyframes pg-dryf { from { transform: translate(0, 0); } to { transform: translate(-28px, 8px); } }
  @keyframes pg-blysk { 0%, 86% { opacity: .35; } 88%, 95% { opacity: 1; } 100% { opacity: .35; } }
}

@media (prefers-reduced-motion: no-preference) {
  /* prądy: przypływ i odpływ na przemian co 6 s; kropki płyną wzdłuż linii (przy odpływie w drugą stronę), szybsze w zwężeniu */
  .pl-flot { animation: pl-flot 12s ease-in-out infinite; }
  .pl-odplyw { animation: pl-odplyw 12s ease-in-out infinite; }
  .pl-kropki { animation: pl-plyn 1.8s linear infinite; }
  .pl-kropki.wstecz { animation-direction: reverse; }
  @keyframes pl-flot { 0%, 38% { opacity: 1; } 46%, 92% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes pl-odplyw { 0%, 38% { opacity: 0; } 46%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes pl-plyn { to { stroke-dashoffset: -4.1; } }
  /* wiatr i opady: strzałki oddychają, romby dryfują (pg-*), poziom wody: znacznik jedzie po krzywej (plywyCss) */
  .pl-radar .pg-strzalki { animation: pg-oddech 5s ease-in-out infinite; }
  /* samouczek: poprawna odpowiedź zapala się i pojawia się wynik, pętla 10 s */
  .sam-opcje li.dobra { animation: sam-dobra 10s ease-in-out infinite; }
  .sam-odp { animation: sam-wynik 10s ease-in-out infinite; }
  @keyframes sam-dobra { 0%, 45% { background: transparent; border-color: var(--obramowanie-pola); } 55%, 90% { background: var(--sukces-tlo); border-color: var(--sukces); } 100% { background: transparent; border-color: var(--obramowanie-pola); } }
  @keyframes sam-wynik { 0%, 50% { opacity: 0; transform: translateY(4px); } 60%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}

/* rytmy świateł znaków (IALA R1001; generowane z src/ilustracje.mjs): tylko bez prośby o ograniczenie ruchu */
@media (prefers-reduced-motion: no-preference) {
  .port-ramka.tel .pz-lodz { offset-path: path("M24 567 H452 C474 567 480 556 480 536 V512"); offset-rotate: auto; animation: jazda 14s ease-in-out infinite; }
  .port-zywy .pz-lodz { offset-path: path("M18 494 L40 491.5 L70 486 L100 482 L130 475 L175 465 L205 456.5 L235 447 L265 439 L296 430 L400 420 L878 227"); offset-rotate: auto; animation: jazda 14s ease-in-out infinite; }
  .tz-szlak .tz-lodz { offset-path: path("M367 277 L378 335 L335 440 L305 655 L250 702 L183 656"); offset-rotate: 0deg; animation: jazda 14s ease-in-out infinite; }
  .tz-szlak .tz-slad { animation: rysuj 14s ease-in-out infinite; }
  .planer-mapa .p-lodz { offset-path: path("M150 410 L270 358 L400 298 L470 330 L600 226 L700 238 L860 140"); offset-rotate: 0deg; animation: jazda 9s ease-in-out infinite; }
  .hero-nakladka .h-lodz { offset-path: path("M182 96 C 230 200 300 330 435 510"); offset-rotate: 0deg; animation: jazda 9s ease-in-out infinite; }
  @keyframes sw-q { 0% { opacity: 1; } 30% { opacity: 0.14; } }
  .lampa.q { animation: sw-q 1s steps(1, end) infinite; }
  @keyframes sw-q3 { 0% { opacity: 1; } 3% { opacity: 0.14; } 10% { opacity: 1; } 13% { opacity: 0.14; } 20% { opacity: 1; } 23% { opacity: 0.14; } }
  .lampa.q3 { animation: sw-q3 10s steps(1, end) infinite; }
  @keyframes sw-q6 { 0% { opacity: 1; } 2% { opacity: 0.14; } 6.667% { opacity: 1; } 8.667% { opacity: 0.14; } 13.333% { opacity: 1; } 15.333% { opacity: 0.14; } 20% { opacity: 1; } 22% { opacity: 0.14; } 26.667% { opacity: 1; } 28.667% { opacity: 0.14; } 33.333% { opacity: 1; } 35.333% { opacity: 0.14; } 50% { opacity: 1; } 63.333% { opacity: 0.14; } }
  .lampa.q6 { animation: sw-q6 15s steps(1, end) infinite; }
  @keyframes sw-q9 { 0% { opacity: 1; } 2% { opacity: 0.14; } 6.667% { opacity: 1; } 8.667% { opacity: 0.14; } 13.333% { opacity: 1; } 15.333% { opacity: 0.14; } 20% { opacity: 1; } 22% { opacity: 0.14; } 26.667% { opacity: 1; } 28.667% { opacity: 0.14; } 33.333% { opacity: 1; } 35.333% { opacity: 0.14; } 40% { opacity: 1; } 42% { opacity: 0.14; } 46.667% { opacity: 1; } 48.667% { opacity: 0.14; } 53.333% { opacity: 1; } 55.333% { opacity: 0.14; } }
  .lampa.q9 { animation: sw-q9 15s steps(1, end) infinite; }
  @keyframes sw-fl2 { 0% { opacity: 1; } 10% { opacity: 0.14; } 30% { opacity: 1; } 40% { opacity: 0.14; } }
  .lampa.fl2 { animation: sw-fl2 5s steps(1, end) infinite; }
  @keyframes sw-iso { 0% { opacity: 1; } 50% { opacity: 0.14; } }
  .lampa.iso { animation: sw-iso 4s steps(1, end) infinite; }
  @keyframes sw-wrakN { 0% { opacity: 1; } 40% { opacity: 0.14; } }
  .lampa.wrakN { animation: sw-wrakN 2.5s steps(1, end) infinite; }
  @keyframes sw-wrakZ { 0% { opacity: 0.14; } 40% { opacity: 1; } 80% { opacity: 0.14; } }
  .lampa.wrakZ { animation: sw-wrakZ 2.5s steps(1, end) infinite; }
  @keyframes sw-fl4 { 0% { opacity: 1; } 12.5% { opacity: 0.14; } }
  .lampa.fl4 { animation: sw-fl4 4s steps(1, end) infinite; }
  @keyframes sw-fl5 { 0% { opacity: 1; } 10% { opacity: 0.14; } }
  .lampa.fl5 { animation: sw-fl5 5s steps(1, end) infinite; }
  .lampa.op { animation-delay: -2s; }
}
