/* ==========================================================================
   myNetWorking — „tablica stanu w sali monitoringu sieci”
   Spokojny, precyzyjny instrument: turkus z ikony aplikacji, lampki stanów, linia pulsu i pierścienie radaru.
   Motyw jasny = „zmiana dzienna”, ciemny = „zmiana nocna”. Motyw wybiera html[data-theme] (klucz nci_theme
   wspólny z nci.pl); bez JavaScriptu decyduje prefers-color-scheme.
   Bez fontów z sieci i bez CDN (prywatność): system-ui dla tekstu, ui-monospace dla host:port, wersji i stanów.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f3faf8;
  --bg-mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath d='M22 30L84 52L150 24M84 52L62 118L132 104L150 24M132 104L172 160M62 118L30 168M132 104L104 176M62 118L104 176' fill='none' stroke='%230d9488' stroke-opacity='0.07'/%3E%3Cg fill='%230d9488' fill-opacity='0.22'%3E%3Ccircle cx='22' cy='30' r='1.8'/%3E%3Ccircle cx='84' cy='52' r='1.8'/%3E%3Ccircle cx='150' cy='24' r='1.8'/%3E%3Ccircle cx='62' cy='118' r='1.8'/%3E%3Ccircle cx='132' cy='104' r='1.8'/%3E%3Ccircle cx='172' cy='160' r='1.8'/%3E%3Ccircle cx='30' cy='168' r='1.8'/%3E%3Ccircle cx='104' cy='176' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  --surface: #ffffff;
  --surface-2: #e9f5f2;
  --surface-3: #dcefea;
  --ink: #0a1f1c;
  --dim: #3f5a55;
  --muted: #56706b;
  --line: #d3e6e1;
  --line-strong: #b4d4cc;
  --field-line: #6b9189;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-ink: #ffffff;
  --link: #0f766e;
  --btn: #0f766e;
  --btn-hover: #115e59;
  --btn-ink: #ffffff;
  --glow: rgba(13, 148, 136, .28);
  --hero-glow: rgba(45, 212, 191, .20);
  --radar-line: rgba(13, 148, 136, .16);
  --sweep: rgba(13, 148, 136, .10);
  --pulse-base: #b4d4cc;
  --header-bg: rgba(243, 250, 248, .82);
  --store-bg: #0a1f1c;
  --store-ink: #ffffff;
  --shadow-sm: 0 1px 2px rgba(10, 31, 28, .06), 0 1px 3px rgba(10, 31, 28, .04);
  --shadow: 0 1px 2px rgba(10, 31, 28, .05), 0 12px 28px -14px rgba(10, 31, 28, .22);
  --shadow-lg: 0 2px 6px rgba(10, 31, 28, .05), 0 32px 64px -28px rgba(10, 31, 28, .34);
  --ok: #22c55e;
  --down: #ef4444;
  --offline: #f59e0b;
  --paused: #94a3b8;
  --checking: #38bdf8;
  --ok-ink: #166534;
  --down-ink: #b91c1c;
  --offline-ink: #92400e;
  --paused-ink: #475569;
  --checking-ink: #075985;
  --ok-soft: rgba(34, 197, 94, .13);
  --down-soft: rgba(239, 68, 68, .11);
  --offline-soft: rgba(245, 158, 11, .15);
  --paused-soft: rgba(148, 163, 184, .20);
  --checking-soft: rgba(56, 189, 248, .15);
  --code-bg: #062320;
  --code-ink: #c6f6ea;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04110f;
  --bg-mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath d='M22 30L84 52L150 24M84 52L62 118L132 104L150 24M132 104L172 160M62 118L30 168M132 104L104 176M62 118L104 176' fill='none' stroke='%232dd4bf' stroke-opacity='0.06'/%3E%3Cg fill='%232dd4bf' fill-opacity='0.22'%3E%3Ccircle cx='22' cy='30' r='1.8'/%3E%3Ccircle cx='84' cy='52' r='1.8'/%3E%3Ccircle cx='150' cy='24' r='1.8'/%3E%3Ccircle cx='62' cy='118' r='1.8'/%3E%3Ccircle cx='132' cy='104' r='1.8'/%3E%3Ccircle cx='172' cy='160' r='1.8'/%3E%3Ccircle cx='30' cy='168' r='1.8'/%3E%3Ccircle cx='104' cy='176' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  --surface: #0a1d1a;
  --surface-2: #0f2a26;
  --surface-3: #133530;
  --ink: #e6fffa;
  --dim: #a7c9c1;
  --muted: #7a9c94;
  --line: rgba(94, 234, 212, .14);
  --line-strong: rgba(94, 234, 212, .26);
  --field-line: rgba(94, 234, 212, .5);
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgba(45, 212, 191, .12);
  --accent-ink: #042f2b;
  --link: #5eead4;
  --btn: #2dd4bf;
  --btn-hover: #5eead4;
  --btn-ink: #042f2b;
  --glow: rgba(45, 212, 191, .35);
  --hero-glow: rgba(45, 212, 191, .16);
  --radar-line: rgba(94, 234, 212, .13);
  --sweep: rgba(45, 212, 191, .10);
  --pulse-base: rgba(94, 234, 212, .26);
  --header-bg: rgba(4, 17, 15, .74);
  --store-bg: #e6fffa;
  --store-ink: #04110f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 0 0 1px rgba(94, 234, 212, .04), 0 14px 32px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 0 0 1px rgba(94, 234, 212, .06), 0 34px 70px -30px rgba(0, 0, 0, .85), 0 0 80px -34px rgba(45, 212, 191, .45);
  --ok-ink: #4ade80;
  --down-ink: #f87171;
  --offline-ink: #fbbf24;
  --paused-ink: #cbd5e1;
  --checking-ink: #7dd3fc;
  --ok-soft: rgba(34, 197, 94, .14);
  --down-soft: rgba(239, 68, 68, .15);
  --offline-soft: rgba(245, 158, 11, .14);
  --paused-soft: rgba(148, 163, 184, .16);
  --checking-soft: rgba(56, 189, 248, .14);
  --code-bg: #020b0a;
}

/* Bez JavaScriptu (brak data-theme): motyw systemu. Te same wartości co wyżej. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #04110f;
    --bg-mesh: none;
    --surface: #0a1d1a;
    --surface-2: #0f2a26;
    --surface-3: #133530;
    --ink: #e6fffa;
    --dim: #a7c9c1;
    --muted: #7a9c94;
    --line: rgba(94, 234, 212, .14);
    --line-strong: rgba(94, 234, 212, .26);
    --field-line: rgba(94, 234, 212, .5);
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgba(45, 212, 191, .12);
    --accent-ink: #042f2b;
    --link: #5eead4;
    --btn: #2dd4bf;
    --btn-hover: #5eead4;
    --btn-ink: #042f2b;
    --glow: rgba(45, 212, 191, .35);
    --hero-glow: rgba(45, 212, 191, .16);
    --radar-line: rgba(94, 234, 212, .13);
    --sweep: rgba(45, 212, 191, .10);
    --pulse-base: rgba(94, 234, 212, .26);
    --header-bg: rgba(4, 17, 15, .74);
    --store-bg: #e6fffa;
    --store-ink: #04110f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 14px 32px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .85);
    --ok-ink: #4ade80;
    --down-ink: #f87171;
    --offline-ink: #fbbf24;
    --paused-ink: #cbd5e1;
    --checking-ink: #7dd3fc;
    --code-bg: #020b0a;
  }
}

/* ---------- podstawa ---------- */

*, *::before, *::after { box-sizing: border-box; }
/* Jedyny odstęp kotwic od góry (pod przyklejonym nagłówkiem). Elementy nie dodają własnego scroll-margin-top — oba
   odstępy się sumują; site.js liczy podświetlenie spisu treści od tej samej wartości. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  display: flex; flex-direction: column; margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg) var(--bg-mesh); color: var(--ink);
  font: 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Na turkusowych panelach (prywatność, karta wydania) pierścień w kolorze akcentu zlewa się z tłem — jasny pierścień. */
.privacy-band :focus-visible, .dl-status :focus-visible { outline-color: #ccfbf1; }
::selection { background: var(--accent-soft); color: var(--ink); }
[data-theme="dark"] ::selection { background: rgba(45, 212, 191, .3); }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
body > main { flex: 1 0 auto; }
.mono { font-family: var(--mono); }
.icon { display: inline-block; flex: none; width: 1.2em; height: 1.2em; vertical-align: -.22em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: absolute; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 12px;
  background: var(--btn); color: var(--btn-ink); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 16px;
  font: 650 12.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong);
}
.eyebrow .icon { width: 16px; height: 16px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: mnw-ring 2.4s ease-out infinite; }

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px;
  font: 650 15px/1.1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .2s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -10px var(--glow); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 26px -10px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--accent-strong); border-color: var(--accent); }
.btn-light { background: #ffffff; color: #0a1f1c; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn-light:hover { background: #ccfbf1; color: #0a1f1c; transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; }
.btn:active { transform: translateY(0); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--accent-strong); text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

.badge-new {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; vertical-align: .12em;
  background: var(--btn); color: var(--btn-ink); font: 700 10.5px/1.5 var(--mono); letter-spacing: .04em;
  text-transform: none; white-space: nowrap;
}

/* ---------- znaczniki stanu (jak w aplikacji) ---------- */

.chip {
  --c: var(--paused); --c-ink: var(--paused-ink); --c-soft: var(--paused-soft);
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: var(--c-soft); color: var(--c-ink); font: 650 12.5px/1.25 var(--mono); white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.chip-ok { --c: var(--ok); --c-ink: var(--ok-ink); --c-soft: var(--ok-soft); }
.chip-down { --c: var(--down); --c-ink: var(--down-ink); --c-soft: var(--down-soft); }
.chip-offline { --c: var(--offline); --c-ink: var(--offline-ink); --c-soft: var(--offline-soft); }
.chip-checking { --c: var(--checking); --c-ink: var(--checking-ink); --c-soft: var(--checking-soft); }
.chip-ok .chip-dot { animation: mnw-beat 2.6s ease-in-out infinite; }
.chip-down .chip-dot { animation: mnw-alarm 1.2s ease-in-out infinite; }
.chip-checking .chip-dot { animation: mnw-alarm .7s ease-in-out infinite; }

/* ---------- nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(10, 31, 28, .5); }
.header-bar { position: relative; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(13, 148, 136, .9); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.brand-by { margin-top: 3px; font: 650 9.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.site-menu { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-size: 15px; font-weight: 560; text-decoration: none; transition: background-color .15s, color .15s; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current] { color: var(--accent-strong); background: var(--accent-soft); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font: 650 12px/1 var(--mono); }
.lang-switch a, .lang-switch span { padding: 6px 9px; border-radius: 999px; letter-spacing: .04em; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--dim); transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--accent-strong); border-color: var(--accent); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-icon-sun, [data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: inline-block; }
.menu-toggle, .menu-cta, .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline-block; }

.stub-banner {
  margin: 0; padding: 8px var(--gutter); border-bottom: 1px solid color-mix(in srgb, var(--offline) 35%, transparent);
  background: repeating-linear-gradient(135deg, var(--offline-soft) 0 12px, transparent 12px 24px), var(--surface);
  color: var(--offline-ink); font: 650 12.5px/1.4 var(--mono); text-align: center;
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 92px) 0 clamp(24px, 3vw, 36px); }
.hero::before {
  content: ""; position: absolute; top: -18%; right: -12%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, var(--hero-glow), transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.3rem, 1.15rem + 3.9vw, 4.1rem); line-height: 1.04; letter-spacing: -.038em; font-weight: 820; }
.hero h1 .line { display: block; text-wrap: balance; }
.hero h1 .accent { color: var(--accent-strong); background: linear-gradient(95deg, var(--accent-strong), var(--accent) 60%, #0891b2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .hero h1 .accent { background-image: linear-gradient(95deg, #5eead4, #2dd4bf 55%, #67e8f9); }
.hero-lead { max-width: 35em; margin: 0 0 30px; color: var(--dim); font-size: clamp(1.04rem, .97rem + .35vw, 1.2rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; color: var(--dim); font-size: 14.5px; }
.platform-row li { display: inline-flex; align-items: center; gap: 7px; }
.platform-row .icon { width: 18px; height: 18px; color: var(--ink); opacity: .78; }
.platform-row small { padding: 2px 6px; border-radius: 6px; background: var(--paused-soft); color: var(--paused-ink); font: 650 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 470px; }
.radar { position: absolute; left: 50%; top: 50%; width: min(660px, 135%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.radar span { position: absolute; inset: 0; border: 1px solid var(--radar-line); border-radius: 50%; }
.radar span:nth-child(2) { inset: 17%; }
.radar span:nth-child(3) { inset: 34%; border-style: dashed; }
.radar .radar-ping { inset: 8%; border: 2px solid var(--accent); opacity: 0; animation: mnw-ping 5s cubic-bezier(.2, .6, .35, 1) infinite; }
.radar .radar-sweep {
  inset: 0; border: 0; opacity: .9; animation: mnw-spin 10s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 300deg, var(--sweep) 350deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, #000 98%, transparent 100%); mask: radial-gradient(closest-side, #000 98%, transparent 100%);
}

.monitor {
  position: relative; z-index: 1; width: min(100%, 520px); margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.monitor-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.monitor-lights { display: inline-flex; gap: 6px; flex: none; }
.monitor-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.monitor-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; font-size: 14px; font-weight: 700; }
.monitor-mark { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.monitor-views { display: inline-flex; gap: 2px; color: var(--muted); }
.monitor-views .icon { width: 26px; height: 26px; padding: 4px; border-radius: 7px; }
.monitor-views .is-active { background: var(--accent-soft); color: var(--accent-strong); }
.monitor-tabs { display: flex; gap: 2px; padding: 6px 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.monitor-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 9px; border-bottom: 2px solid transparent; color: var(--muted); }
.monitor-tabs .icon { width: 16px; height: 16px; }
.monitor-tabs .is-active { color: var(--accent-strong); border-bottom-color: var(--accent); font-weight: 650; }
.monitor-list { margin: 0; padding: 4px 0; list-style: none; }
.mon-row {
  --c: var(--paused);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 11px 16px; transition: background-color .5s;
}
.mon-row + .mon-row { border-top: 1px solid var(--line); }
.mon-row[data-state="ok"] { --c: var(--ok); }
.mon-row[data-state="down"] { --c: var(--down); background: linear-gradient(90deg, var(--down-soft), transparent 85%); }
.mon-row[data-state="offline"] { --c: var(--offline); }
.mon-row[data-state="checking"] { --c: var(--checking); }
.mon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); transition: background-color .3s; }
.mon-row[data-state="down"] .mon-dot { animation: mnw-alarm 1.2s ease-in-out infinite; }
.mon-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--dim); }
.mon-ico .icon { width: 18px; height: 18px; }
.mon-main { display: flex; flex-direction: column; min-width: 0; }
.mon-name { overflow: hidden; font-size: 15px; font-weight: 650; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.mon-target { overflow: hidden; color: var(--muted); font: 12.5px/1.45 var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.mon-row[data-state="paused"] .mon-name { color: var(--muted); }
.mon-ack { display: grid; place-items: center; color: var(--down-ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.mon-ack .icon { width: 18px; height: 18px; }
.mon-row[data-state="down"] .mon-ack { opacity: 1; transform: none; }
.mon-chip { min-width: 0; }
.monitor-log { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.monitor-log-title { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: var(--muted); font: 650 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.monitor-ticker { display: flex; flex-direction: column; gap: 5px; height: 6.9em; margin: 0; padding: 0; overflow: hidden; list-style: none; font: 12px/1.45 var(--mono); }
.monitor-ticker li { display: flex; gap: 10px; color: var(--dim); }
.monitor-ticker time { flex: none; color: var(--muted); }
.monitor-ticker span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.monitor-ticker .is-down span { color: var(--down-ink); }
.monitor-ticker .is-offline span { color: var(--offline-ink); }
.monitor-ticker .is-up span { color: var(--ok-ink); }
.monitor-ticker .is-new { animation: mnw-in .45s ease-out; }

.hero-pulse-wrap { margin-top: clamp(28px, 4vw, 48px); }
.hero-pulse { display: block; width: 100%; height: auto; overflow: visible; }
.pulse-base { fill: none; stroke: var(--pulse-base); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pulse-glow {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80 920; stroke-dashoffset: 1000; animation: mnw-travel 4.6s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent));
}
.pulse-node { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.pulse-node-core { fill: var(--accent); }

.facts {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; margin: 22px 0 0; padding: 14px 22px;
  list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--dim); font-size: 14.5px; font-weight: 550;
}
.facts li { display: inline-flex; align-items: center; gap: 9px; }
.facts .icon { width: 18px; height: 18px; color: var(--accent); }
.facts-version a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-weight: 650; text-decoration: none; }
.facts-version a:hover { text-decoration: underline; }
.facts-version .icon:last-child { width: 16px; height: 16px; }

.divider-uptime { padding: clamp(40px, 6vw, 64px) 0 0; }
.uptime { display: flex; align-items: stretch; gap: 3px; height: 34px; }
.uptime i { flex: 1 1 0; min-width: 0; border-radius: 99px; background: var(--ok); opacity: .88; }
.uptime i.is-down { background: var(--down); opacity: 1; }
.uptime i.is-offline { background: var(--offline); opacity: 1; }
.uptime-divider { height: 14px; gap: 4px; }
.uptime-divider i { opacity: .5; }
.uptime-divider i.is-down, .uptime-divider i.is-offline { opacity: .95; }

/* ---------- sekcje strony głównej ---------- */

.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.home-prose + .downloads, .features + .screens { padding-top: clamp(40px, 5vw, 64px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.95rem); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; }
.section-lead { color: var(--dim); font-size: clamp(1.03rem, .98rem + .25vw, 1.16rem); }
.section-lead p { margin: 0; }
.section-lead p + p { margin-top: 12px; }
.section-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 34px 0 0; }
.section-head-center ~ .section-links { justify-content: center; }
.verify .section-links { justify-content: center; }
.home-slot-prose { max-width: 760px; margin: 36px auto 0; }

/* weryfikacja awarii — serce strony */
.verify { background: linear-gradient(180deg, transparent, var(--surface-2) 18%, var(--surface-2) 82%, transparent); }
[data-theme="dark"] .verify { background: linear-gradient(180deg, transparent, rgba(15, 42, 38, .7) 18%, rgba(15, 42, 38, .7) 82%, transparent); }
.flow { --gap: 44px; margin: 0; padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.flow-step + .flow-step::before {
  content: ""; position: absolute; top: 38px; left: calc(-1 * var(--gap) + 6px); width: calc(var(--gap) - 14px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 12px 2px;
  animation: mnw-dash .9s linear infinite;
}
.flow-step + .flow-step::after {
  content: ""; position: absolute; top: 34px; left: -12px; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--accent);
}
.flow-step.is-fail + .flow-step::before { background-image: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 12px); }
.flow-step.is-fail + .flow-step::after { border-left-color: var(--muted); }
.flow-num { position: absolute; top: 10px; right: 14px; color: var(--muted); font-size: 11px; opacity: .8; }
.flow-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); }
.flow-icon .icon { width: 22px; height: 22px; }
.flow-step.is-fail { border-color: color-mix(in srgb, var(--down) 35%, var(--line)); }
.flow-step.is-fail .flow-icon { background: var(--down-soft); color: var(--down-ink); }
.flow-text { min-width: 0; padding-right: 14px; }
.flow-text strong { display: block; font-size: 15.5px; line-height: 1.35; }
.flow-text strong .mono { display: block; margin-top: 2px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.flow-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.flow-text .flow-fail { display: inline-flex; align-items: center; gap: 5px; color: var(--down-ink); font-weight: 650; }
.flow-fail .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.flow-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.flow-refs span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12px; }
.flow-outcomes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-top: 50px; }
.flow-outcomes::before {
  content: ""; position: absolute; top: 25px; height: 2px; border-radius: 2px; background: var(--line-strong);
  left: calc((100% - 2 * var(--gap)) / 6); right: calc((100% - 2 * var(--gap)) / 6);
}
.flow-steps .is-probe .flow-text::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 26px; background: var(--line-strong);
}
.outcome {
  --oc: var(--offline);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px;
  border: 1px solid var(--line); border-top: 3px solid var(--oc); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.outcome::before { content: ""; position: absolute; left: 50%; top: -28px; width: 2px; height: 25px; background: var(--line-strong); }
.outcome-down { --oc: var(--down); }
.outcome-probe { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px 10px; margin: 0; font-size: 15.5px; line-height: 1.3; }
.probe-dots { display: inline-flex; gap: 4px; }
.probe { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.probe .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.probe-ok { background: var(--ok-soft); color: var(--ok-ink); }
.probe-fail { background: var(--down-soft); color: var(--down-ink); }
.outcome-trail { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 2px 0 2px 14px; list-style: none; border-left: 2px dashed var(--line-strong); color: var(--dim); font-size: 14px; line-height: 1.45; }
.outcome-chip { margin: 2px 0 0; }
@media (min-width: 881px) {
  @supports (grid-template-rows: subgrid) {
    .flow-outcomes { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
    .outcome { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
  }
}
.outcome-result { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }
.flow-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.flow-notes p { display: flex; gap: 10px; margin: 0; }
.flow-notes .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* funkcje */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature-card {
  position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.feature-card .badge-new { position: absolute; top: 33px; right: 20px; }
.feature-card p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

/* zrzuty ekranu */
.screens { background: linear-gradient(180deg, transparent, var(--surface-2) 22%, var(--surface-2) 78%, transparent); }
[data-theme="dark"] .screens { background: linear-gradient(180deg, transparent, rgba(15, 42, 38, .6) 22%, rgba(15, 42, 38, .6) 78%, transparent); }
.shots-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 30px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
html:not(.js) .shots-tabs { display: none; }
.shots-tabs button { padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-weight: 600; font-size: 14.5px; }
.shots-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.shots-tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
html.js .shots-panel[data-hidden] { display: none; }
.shots-panel + .shots-panel { margin-top: 48px; }
html.js .shots-panel + .shots-panel { margin-top: 0; }
.shots-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.frame-desktop { width: min(100%, 880px); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 650; }
.frame-bar > span:last-child { flex: 1; margin-right: 45px; text-align: center; }
.frame-phone { flex: none; width: 240px; margin: 0; padding: 9px; border-radius: 36px; background: #0b1413; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b3d39; }
.frame-phone .shot-img { border-radius: 28px; }
.has-both .frame-desktop { flex: 1 1 auto; max-width: 820px; }
.has-both .frame-phone { width: clamp(170px, 19vw, 236px); margin-bottom: -22px; }
.shot-link { display: block; }
[data-theme="dark"] .shot-light, html:not([data-theme="dark"]) .shot-dark { display: none; }
/* Ikona w linii tekstu: przy podpisie w dwóch wierszach zostaje przy pierwszym słowie, a nie osobno z lewej. */
.shots-caption { max-width: 46em; margin: 52px auto 0; color: var(--muted); font-size: 14.5px; text-align: center; text-wrap: balance; }
.shots-caption .icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; color: var(--accent); }

/* dodatkowe sekcje prozy z home.md */
.home-prose-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); }
.home-prose .section-head { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; margin: 0; }
.home-prose .prose > h3:first-child { margin-top: 0; }

/* pobieranie */
.dl-board { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "desktop mobile" "desktop status"; gap: 20px; align-items: start; }
.dl-group-desktop { grid-area: desktop; }
.dl-group-mobile { grid-area: mobile; }
.dl-status { grid-area: status; }
.dl-group { container-type: inline-size; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.dl-group-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 650 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.dl-group-title .icon { width: 18px; height: 18px; color: var(--accent-strong); }
.dl-list { margin: 0; padding: 0; list-style: none; }
.dl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.dl-icon .icon { width: 26px; height: 26px; }
.dl-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.dl-name { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.dl-info .chip { font-size: 11.5px; padding: 3px 9px 3px 8px; }
.dl-meta { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.dl-desc { flex-basis: 100%; margin: 4px 0 0; color: var(--dim); font-size: 14px; line-height: 1.55; }
.dl-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 228px; }
.dl-file { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.dl-file .btn { width: 100%; }
.dl-file small { color: var(--muted); font-size: 11.5px; text-align: right; }
.dl-arch { margin-left: 4px; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); font: 700 11px/1 var(--mono); }
[data-theme="dark"] .dl-arch { background: rgba(4, 47, 43, .18); }
.dl-soon { display: inline-flex; flex-basis: 100%; align-items: center; gap: 7px; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 550; }
.dl-soon .icon { width: 16px; height: 16px; }
@container (max-width: 560px) {
  .dl-row { grid-template-columns: 44px minmax(0, 1fr); }
  .dl-icon { width: 44px; height: 44px; }
  .dl-actions { grid-column: 2; width: min(100%, 300px); }
  .dl-file small, .dl-sums { align-self: flex-start; text-align: left; }
}
.dl-note { margin: 0; color: var(--offline-ink); font-size: 12.5px; }
.dl-sums { display: inline-flex; align-self: flex-end; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; }
.dl-sums .icon { width: 14px; height: 14px; }
.dl-sums:hover { color: var(--accent-strong); text-decoration: underline; }
.outcome-new { margin-left: auto; }
.dl-row.is-soon .dl-icon { opacity: .6; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 7px 14px 7px 12px;
  border-radius: 12px; background: var(--store-bg); color: var(--store-ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
}
.store-btn:hover { color: var(--store-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.store-btn-mark { width: 24px; height: 24px; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn-text small { font-size: 10.5px; letter-spacing: .02em; opacity: .78; }
.store-btn-text strong { font-size: 15.5px; font-weight: 650; }
.store-btn-ext { width: 15px; height: 15px; margin-left: auto; opacity: .6; }
.dl-status {
  padding: 20px; border-radius: 20px; color: #e6fffa; box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, .32), transparent 60%), linear-gradient(160deg, #0f766e, #0b4d47 70%, #083b36);
}
[data-theme="dark"] .dl-status { border: 1px solid var(--line-strong); background: radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, .2), transparent 60%), linear-gradient(160deg, #0f2a26, #081b18); }
.dl-status-name { display: flex; align-items: center; gap: 12px; }
.dl-status-name > span { display: flex; flex-direction: column; line-height: 1.3; }
.dl-status-name strong { font-size: 16px; }
.dl-status-name small { color: #b7efe4; font-size: 13px; }
.dl-status-mark { width: 38px; height: 38px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.dl-uptime { margin: 18px 0 16px; padding: 14px; border-radius: 14px; background: rgba(2, 16, 14, .38); }
.dl-uptime .uptime { height: 30px; }
.dl-uptime .uptime i { background: #34d399; }
.dl-uptime .uptime i.is-down { background: #f87171; }
.dl-uptime .uptime i.is-offline { background: #fbbf24; }
.uptime-legend { display: flex; justify-content: space-between; margin: 8px 0 0; color: #b7efe4; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dl-facts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: #d8fbf3; }
.dl-facts li { display: flex; align-items: center; gap: 10px; }
.dl-facts .icon { width: 17px; height: 17px; color: #5eead4; }
.dl-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(204, 251, 241, .18); }
.dl-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: #ffffff; font-weight: 650; text-decoration: none; }
.dl-links a:hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
.dl-links a .icon { width: 18px; height: 18px; color: #5eead4; }
.dl-links a .icon:last-child { margin-left: auto; color: #ccfbf1; }
.downloads.in-doc { margin: 0 0 44px; }
.in-doc .dl-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "desktop" "mobile" "status"; }
.in-doc .dl-group-title { font-size: 12.5px; letter-spacing: .12em; }

/* prywatność */
.privacy-band { overflow: hidden; color: #e7fbf6; background: radial-gradient(60% 90% at 90% 10%, rgba(45, 212, 191, .35), transparent 70%), linear-gradient(135deg, #0f766e, #115e59 55%, #0b3b36); }
[data-theme="dark"] .privacy-band { border-block: 1px solid var(--line); background: radial-gradient(60% 90% at 90% 10%, rgba(45, 212, 191, .18), transparent 70%), linear-gradient(135deg, #0b2723, #061917); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.privacy-band .eyebrow { color: #ccfbf1; }
.privacy-band h2 { margin: 0 0 18px; color: #ffffff; font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.95rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.privacy-band h2 .line { display: block; text-wrap: balance; }
.privacy-lead p { margin: 0 0 26px; color: #d1fae5; font-size: 1.08rem; }
.privacy-band .prose { color: #d1fae5; }
.privacy-panel { padding: 18px; border: 1px solid rgba(153, 246, 228, .22); border-radius: 18px; background: rgba(2, 16, 14, .42); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.privacy-panel-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #ccfbf1; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.privacy-panel-title .icon { width: 17px; height: 17px; }
.privacy-panel ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.conn { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.conn-icon { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.conn-icon .icon { width: 16px; height: 16px; }
.conn-host { overflow-wrap: anywhere; color: #f0fdfa; font-size: 13px; }
.conn-label { color: #a7f3d0; font-size: 12.5px; }
.conn-ask .conn-icon { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.conn-none { background: rgba(239, 68, 68, .12); }
.conn-none .conn-icon { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.conn-none .conn-host { color: #fecaca; text-decoration: line-through; text-decoration-color: rgba(252, 165, 165, .75); }
.conn-none .conn-label { color: #fca5a5; font-weight: 650; }

/* pomoc */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.help-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.help-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.help-card .feature-icon { margin-bottom: 8px; }
.help-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.help-card-title .icon { width: 20px; height: 20px; color: var(--accent-strong); transition: transform .2s; }
.help-card:hover .help-card-title .icon { transform: translateX(4px); }
.help-card-text { color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.help-mail { margin: 32px 0 0; color: var(--dim); text-align: center; text-wrap: balance; }
.help-mail .icon { width: 18px; height: 18px; margin-right: 9px; vertical-align: -3px; color: var(--accent); }

/* ---------- dokument: ścieżka, spis, rozdziały ---------- */

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 100px); }
.doc-layout.has-chapters { grid-template-columns: 276px minmax(0, 1fr); }
.doc { min-width: 0; max-width: 820px; }
.doc-header { position: relative; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; border-radius: 2px; background: var(--accent); }
.doc-header h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.05rem); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; }
.doc-eyebrow { flex-wrap: wrap; margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 0 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.breadcrumbs a { color: var(--dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); text-decoration: underline; }

.toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; padding: 4px 0 4px 18px; border-left: 1px solid var(--line); }
.toc-title { margin: 0 0 10px; color: var(--muted); font: 650 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.toc nav { display: flex; flex-direction: column; }
.toc a { position: relative; padding: 6px 0; color: var(--dim); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent-strong); font-weight: 650; }
.toc a.is-active::before { content: ""; position: absolute; left: -19px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent); }

.chapters { position: sticky; top: calc(var(--header-h) + 24px); }
.chapters-menu { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.chapters-menu summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer;
  border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font: 650 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.chapters-menu summary::-webkit-details-marker { display: none; }
.chapters-menu summary .icon { width: 18px; height: 18px; color: var(--accent-strong); }
.chapters-chevron { margin-left: auto; transition: transform .2s; }
.chapters-menu:not([open]) summary { border-bottom: 0; }
.chapters-menu[open] .chapters-chevron { transform: rotate(180deg); }
.chapters-menu nav { max-height: calc(100vh - var(--header-h) - 120px); overflow: auto; padding: 10px 10px 14px; }
.chapters-index { display: block; margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.chapters-index:hover { background: var(--surface-2); color: var(--ink); }
.chapters-index[aria-current] { background: var(--accent-soft); color: var(--accent-strong); }
.hops { position: relative; margin: 0; padding: 0; list-style: none; }
.hops::before { content: ""; position: absolute; left: 23px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--line); }
.hop a { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.hop a:hover { background: var(--surface-2); color: var(--ink); }
.hop-num { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font: 650 11px/1 var(--mono); }
.hop-name { min-width: 0; }
.hop-new { margin-left: auto; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font: 700 9.5px/1 var(--mono); }
.hop.is-current > a { color: var(--ink); font-weight: 650; }
.hop.is-current .hop-num { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hop-sections { margin: 2px 0 8px 23px; padding: 0 0 0 21px; list-style: none; }
.hop-sections a { display: block; padding: 4px 8px; color: var(--muted); font-size: 13.5px; line-height: 1.35; font-weight: 450; }
.hop-sections a:hover { color: var(--accent-strong); background: transparent; }
.hop-sections a.is-active { color: var(--accent-strong); font-weight: 650; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.pager a:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.pager small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 650 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pager small .icon { width: 15px; height: 15px; }
.pager .pager-next { grid-column: 2; align-items: flex-end; text-align: right; }
.manual-version { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: 13px; }
.manual-version .icon { width: 17px; height: 17px; color: var(--accent); }

/* ---------- treść dokumentów ---------- */

.prose { color: var(--ink); font-size: 17px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.3em 0 .7em; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); line-height: 1.2; letter-spacing: -.022em; font-weight: 780; }
.prose h3 { margin: 1.9em 0 .55em; font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.prose h4 { margin: 1.6em 0 .4em; font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.45em; }
.prose li { margin: .35em 0; }
.prose li > p { margin: 0 0 .5em; }
.prose li > p:last-child { margin-bottom: 0; }
.prose ul > li::marker { color: var(--accent); }
.prose ol > li::marker { color: var(--accent-strong); font: 700 .9em var(--mono); }
.prose strong { font-weight: 680; }
.prose a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose code { padding: .12em .42em; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); font: .85em/1.4 var(--mono); overflow-wrap: anywhere; }
.prose pre { position: relative; margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; border: 1px solid rgba(94, 234, 212, .14); border-radius: 14px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow-sm); }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: 13.5px; line-height: 1.7; white-space: pre; overflow-wrap: normal; }
.prose pre.has-copy { padding-right: 92px; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid rgba(94, 234, 212, .25); border-radius: 8px; background: rgba(94, 234, 212, .08); color: #a7f3e4; font: 650 12px/1.2 var(--mono);
}
.copy-btn:hover { background: rgba(94, 234, 212, .16); color: #ffffff; }
.copy-btn .icon { width: 14px; height: 14px; }
.prose kbd { display: inline-block; min-width: 1.7em; padding: .08em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); font: 650 .8em/1.5 var(--mono); text-align: center; white-space: nowrap; }
.prose blockquote {
  --n: var(--checking); --n-ink: var(--checking-ink); --n-soft: var(--checking-soft);
  --n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.8h.01'/%3E%3C/svg%3E");
  position: relative; margin: 1.6em 0; padding: 16px 18px 16px 54px; border: 1px solid color-mix(in srgb, var(--n) 32%, transparent); border-radius: 14px; background: var(--n-soft);
}
.prose blockquote::before { content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; background: var(--n-ink); -webkit-mask: var(--n-icon) center / contain no-repeat; mask: var(--n-icon) center / contain no-repeat; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote.warning {
  --n: var(--offline); --n-ink: var(--offline-ink); --n-soft: var(--offline-soft);
  --n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.2 2.9 17.3a2 2 0 0 0 1.7 3h14.8a2 2 0 0 0 1.7-3L13.7 4.2a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5V14M12 17h.01'/%3E%3C/svg%3E");
}
.prose blockquote.new {
  --n: var(--accent); --n-ink: var(--accent-strong); --n-soft: var(--accent-soft);
  --n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5c.6 3.8 2.6 5.8 6.5 6.5-3.9.7-5.9 2.7-6.5 6.5-.6-3.8-2.6-5.8-6.5-6.5 3.9-.7 5.9-2.7 6.5-6.5z'/%3E%3Cpath d='M18.5 15.5v5M16 18h5'/%3E%3C/svg%3E");
}
.prose figure { margin: 1.8em 0; }
.prose figure img { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; text-align: center; }
/* Zrzuty z build.py: klik otwiera pełny rozmiar; zrzut telefonu (pionowy) w wąskiej ramce zamiast na całą szerokość. */
.prose .shot-link { cursor: zoom-in; }
.prose .shot-link img { transition: border-color .2s, box-shadow .2s; }
.prose .shot-link:hover img { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.prose .shot-phone .shot-link { width: min(100%, 300px); margin-inline: auto; }
.prose .shot-phone img { border: 7px solid #0b1413; border-radius: 34px; background: #0b1413; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); }
.prose .shot-phone .shot-link:hover img { border-color: #0b1413; }
.table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.table-wrap th { padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 650 11.5px/1.3 var(--mono); letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table-wrap td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.table-wrap code { white-space: nowrap; }
.prose details { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.prose details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.prose summary { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 650; line-height: 1.45; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--accent-strong); transition: transform .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose summary:hover { color: var(--accent-strong); }
.prose details[open] > summary::before { transform: rotate(90deg); }
.faq-answer { padding: 0 20px 4px 52px; }
.faq-answer > :first-child { margin-top: 0; }

/* ---------- 404 ---------- */

.notfound { padding: clamp(48px, 8vw, 100px) 0; }
.notfound-card { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 60px); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.notfound-card > :not(.notfound-radar) { position: relative; }
.notfound-radar { position: absolute; left: 50%; top: 0; width: 720px; aspect-ratio: 1; transform: translate(-50%, -52%); pointer-events: none; }
.notfound-radar span { position: absolute; inset: 0; border: 1px solid var(--radar-line); border-radius: 50%; }
.notfound-radar span:nth-child(2) { inset: 15%; }
.notfound-radar span:nth-child(3) { inset: 30%; }
.notfound-probe { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--dim); font-size: 13px; }
.notfound-host { overflow-wrap: anywhere; }
.notfound h1 { margin: 22px 0 12px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.notfound-lead { max-width: 34em; margin: 0 auto 26px; color: var(--dim); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- stopka ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 40px; }
.footer-tagline { max-width: 26em; margin: 16px 0 18px; color: var(--dim); font-size: 15px; }
.footer-platforms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.footer-platforms li { display: inline-flex; align-items: center; gap: 6px; }
.footer-platforms .icon { width: 16px; height: 16px; color: var(--dim); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 650; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }
.footer-mail .icon { width: 18px; height: 18px; }
.footer-links h2 { margin: 0 0 12px; color: var(--muted); font: 650 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { display: block; padding: 5px 0; color: var(--dim); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-nci { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 650; text-decoration: none; }
.footer-nci .icon { width: 16px; height: 16px; }
.footer-nci:hover { color: var(--accent-strong); }

/* ---------- ruch ---------- */

@keyframes mnw-beat { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 0%, transparent); } }
@keyframes mnw-alarm { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes mnw-ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes mnw-ping { 0% { transform: scale(.42); opacity: .5; } 75% { opacity: 0; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes mnw-spin { to { transform: rotate(1turn); } }
@keyframes mnw-travel { to { stroke-dashoffset: 0; } }
@keyframes mnw-dash { to { background-position: 12px 0; } }
@keyframes mnw-in { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pulse-glow, .radar .radar-ping, .radar .radar-sweep { display: none; }
}

/* ---------- układ na mniejszych ekranach ---------- */

@media (max-width: 1140px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout.has-chapters { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .header-bar { flex-wrap: wrap; column-gap: 12px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .site-menu { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 14px; margin: 0 0 14px; }
  html.js .site-menu {
    position: absolute; top: calc(100% + 1px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); margin: 0;
    padding: 12px var(--gutter) 22px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 50px -30px rgba(10, 31, 28, .5);
  }
  html.js .site-menu:not(.is-open) { display: none; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 16.5px; }
  .lang-switch { align-self: flex-start; }
  .menu-cta { display: inline-flex; align-self: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .doc-layout, .doc-layout.has-chapters { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .chapters { position: static; }
  .chapters-menu nav { max-height: none; }
  .doc { max-width: none; }
}

@media (max-width: 880px) {
  .flow { --gap: 28px; }
  .flow-steps, .flow-outcomes { grid-template-columns: minmax(0, 1fr); }
  .flow-step + .flow-step::before { top: calc(-1 * var(--gap) + 4px); left: 39px; width: 2px; height: calc(var(--gap) - 12px); background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: none; }
  .flow-step.is-fail + .flow-step::before { background-image: repeating-linear-gradient(180deg, var(--muted) 0 6px, transparent 6px 12px); }
  .flow-step + .flow-step::after { top: -12px; left: 35px; border-top: 7px solid var(--accent); border-bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
  .flow-step.is-fail + .flow-step::after { border-top-color: var(--muted); border-left-color: transparent; }
  .flow-outcomes { gap: 14px; padding-top: 30px; }
  .flow-outcomes::before, .outcome::before, .flow-steps .is-probe .flow-text::after { display: none; }
  .flow-outcomes::after { content: ""; position: absolute; top: 4px; left: 39px; width: 2px; height: 20px; background: var(--line-strong); }
  .flow-notes { grid-template-columns: minmax(0, 1fr); }
  .dl-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "desktop" "mobile" "status"; }
  .privacy-grid, .home-prose-grid { grid-template-columns: minmax(0, 1fr); }
  .home-prose .section-head { position: static; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .has-both .frame-phone { position: absolute; right: 4px; bottom: -40px; width: clamp(110px, 24vw, 180px); margin: 0; }
  /* Na węższych ekranach długie polecenia przewijają się w bok pod przyciskiem „Kopiuj” — przycisk dostaje własny
     wiersz nad kodem (na szerokim ekranie polecenia się mieszczą i wystarcza odstęp z prawej). */
  .prose pre.has-copy { padding: 46px 18px 16px; }
  .copy-btn { top: 9px; right: 9px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 16px; font-size: 14px; }
  .facts-platforms, .facts-version { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .mon-ico { display: none; }
  /* Bez ikony (ukryta wyżej) wiersz ma cztery kolumny: nazwa zajmuje wolne miejsce, znacznik stanu nie jest ściskany. */
  .mon-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 12px; }
  .mon-name { font-size: 14px; }
  .mon-target { font-size: 11.5px; }
  .monitor .chip { padding: 3px 9px 3px 7px; font-size: 11.5px; }
  .monitor-tabs span:not(.is-active) .icon { display: none; }
  .monitor-bar { padding: 10px 12px; }
  .monitor-log { padding: 10px 12px 12px; }
  .dl-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .dl-icon { width: 44px; height: 44px; }
  .dl-actions { grid-column: 1 / -1; width: auto; }
  .dl-file small { align-self: stretch; text-align: center; }
  .dl-sums { align-self: center; }
  /* Zakładki łamią się w naturalnej szerokości: ostatnia w drugim wierszu nie rozciąga się na cały pasek. */
  .shots-tabs { width: 100%; }
  .shots-tabs button { flex: 0 1 auto; padding: 8px 10px; font-size: 13.5px; }
  .frame-bar { padding: 8px 10px; font-size: 11.5px; }
  .has-both .frame-phone { width: 34%; bottom: -30px; padding: 5px; border-radius: 20px; }
  .has-both .frame-phone .shot-img { border-radius: 16px; }
  .shots-caption { margin-top: 44px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .pager-next { grid-column: 1; }
  .pager-spacer { display: none; }
  .prose { font-size: 16.5px; }
  .prose blockquote { padding: 14px 14px 14px 46px; }
  .prose blockquote::before { left: 14px; top: 16px; width: 20px; height: 20px; }
  .faq-answer { padding: 0 16px 4px 18px; }
  .prose summary { padding: 14px 14px; font-size: 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 44px; }
  /* Długie złożenia (Benutzerhandbuch, Datenschutzerklärung) dzielą się z łącznikiem zamiast rozpychać stronę w bok. */
  .footer-links a, .doc-header h1 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
  .doc-header .brand-word { -webkit-hyphens: manual; hyphens: manual; }
  /* Tabele o 3+ kolumnach (build.py: .table-stack, data-label, role ARIA) jako karty: pierwsza komórka to tytuł,
     pozostałe mają nad wartością nazwę kolumny. Bez przewijania w bok, w którym ginęły całe kolumny. */
  .table-stack { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-stack tr { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
  .table-stack tr + tr { margin-top: 10px; }
  .table-stack td { padding: 6px 14px 0; border: 0; }
  .table-stack td:first-child { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 650; }
  .table-stack td:last-child { padding-bottom: 12px; }
  .table-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font: 650 11px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .table-stack tbody tr:hover td { background: none; }
  .table-stack tbody tr:hover td:first-child { background: var(--surface-2); }
  .table-stack code { white-space: normal; }
  /* Dwie kolumny zostają tabelą; długie złożenia (Internetverbindung) dzielą się z łącznikiem zamiast rozpychać ją w bok. */
  .table-wrap td { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
  .brand-by { display: none; }
  .uptime { gap: 2px; }
  .lang-switch a, .lang-switch span { padding: 6px 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .flow-text strong .mono { font-size: 12px; }
}

/* ---------- druk ---------- */

@media print {
  /* Papier jest biały, a przeglądarka domyślnie nie drukuje teł. Oba motywy (także ciemny z przełącznika albo z systemu
     bez JavaScriptu) drukują się więc jasnymi tokenami: ciemny tekst, bez cieni i poświat. */
  html[data-theme], html:not([data-theme]) {
    color-scheme: light;
    --bg: #ffffff; --bg-mesh: none; --surface: #ffffff; --surface-2: #f2f7f6; --surface-3: #e6efed;
    --ink: #000000; --dim: #333333; --muted: #555555; --line: #cfdcd8; --line-strong: #9fb5af; --field-line: #6b9189;
    --accent: #0d9488; --accent-strong: #0f766e; --accent-soft: #e6f7f3; --accent-ink: #000000;
    --link: #000000; --btn: transparent; --btn-hover: transparent; --btn-ink: #000000;
    --glow: transparent; --hero-glow: transparent; --radar-line: transparent; --sweep: transparent; --pulse-base: #b4d4cc;
    --store-bg: #ffffff; --store-ink: #000000; --shadow-sm: none; --shadow: none; --shadow-lg: none;
    --ok-ink: #166534; --down-ink: #b91c1c; --offline-ink: #92400e; --paused-ink: #475569; --checking-ink: #075985;
    --code-bg: #f4f4f4; --code-ink: #000000;
  }
  /* Rozmyte cienie drukują się jako szare lub turkusowe prostokąty. */
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  .site-header, .site-footer, .toc, .chapters, .pager, .hero-visual, .hero-pulse-wrap, .radar, .downloads, .skip-link, .copy-btn, .shots-tabs, .notfound-radar { display: none !important; }
  /* Ozdobna poświata hero drukowała się jako nieprzezroczysty prostokąt na wierszu faktów. */
  .hero::before, .live-dot::after { display: none !important; }
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .doc-layout { display: block; padding: 0; }
  .section { padding: 18pt 0; }
  .privacy-band, .verify, .screens { background: none !important; color: #000000; }
  a { color: #000000; }
  /* Druga linia H1 to tekst wycięty z gradientu (tło) — bez tła znikała. */
  .hero h1 .accent, [data-theme] .hero h1 .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-strong); }
  /* Przyciski bez tła: ciemny tekst i obramowanie, żeby było widać, że to przycisk. */
  .btn { border-color: #000000 !important; color: #000000 !important; }
  /* Pasek prywatności ma na ekranie jasny tekst na turkusie; na papierze całość jest czarna. */
  .privacy-band, .privacy-band * { color: #000000 !important; }
  .privacy-panel { background: none; border-color: #cccccc; }
  /* Znaczniki stanu: kolorowa kropka jako obramowanie (tła się nie drukują) i obrys pigułki. */
  .chip, .badge-new { border: 1px solid currentColor; }
  .chip-dot { border: 4px solid var(--c); }
  .prose pre { background: #f4f4f4; color: #000000; border: 1px solid #cccccc; white-space: pre-wrap; }
  .prose details { break-inside: avoid; }
  .prose details::details-content { content-visibility: visible; display: block; }
  .feature-card, .help-card, .outcome, .flow-step { break-inside: avoid; }
  .shot-link.shot-dark { display: none !important; }
  .shot-link.shot-light { display: block !important; }
  .prose figure { break-inside: avoid; }
}
