/* SolarSystemMap – style strony. Style map: assets/world-map/src/maps.css i assets/space-map/src/space-map.css.
   Motyw domyślnie ciemny („nocne niebo” – mapa kosmosu), jasny tylko z wyboru w przełączniku (<html data-theme="light">).
   Mapy kosmosu (SystemMap, PlanetMap) mają własne ciemne tło w obu motywach. */

:root, :root[data-theme='dark'] {
  --bg: #05070f;
  --surface: #0b1020;
  --surface-2: #10172b;
  --surface-3: #18213b;
  --ink: #eef1ff;
  --ink-2: #c3cbec;
  --muted: #8a95c0;
  --line: #1b2340;
  --line-2: #2a3560;
  --accent: #ffd666;
  --accent-ink: #1a1405;
  --link: #9db4ff;
  --sun: #ffcf5a;
  --earth: #4fd1c5;
  --orbit: #6d7cc4;
  --probe: #ffb86b;
  --comet: #8fd8ff;
  --asteroid: #c9b79c;
  --planet: #b9c4ff;
  --dwarf: #d9c7ff;
  --chart-line: #9db4ff;
  --chart-grid: rgba(157, 180, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 36px -16px rgba(0, 0, 0, .9);
  --radius: 8px;
  --header-h: 56px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'IBM Plex Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --surface-3: #e8ebf6;
  --ink: #12162b;
  --ink-2: #39405f;
  --muted: #646d92;
  --line: #e0e4f2;
  --line-2: #c8cee6;
  --accent: #b7791f;
  --accent-ink: #ffffff;
  --link: #3149b8;
  --sun: #f0a500;
  --earth: #0f9488;
  --orbit: #7b88c9;
  --probe: #c4650e;
  --comet: #2286b8;
  --asteroid: #8a7353;
  --planet: #4a59b0;
  --dwarf: #7a55c0;
  --chart-line: #3149b8;
  --chart-grid: rgba(49, 73, 184, .12);
  --shadow: 0 1px 2px rgba(20, 30, 80, .08), 0 14px 32px -16px rgba(20, 30, 80, .3);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.kicker { margin: 0 0 .4rem; font: 600 .74rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kicker a { color: inherit; }
.notice { padding: .7rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: .9rem; border-radius: 0 var(--radius) var(--radius) 0; }

.button {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1.05em; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 600 .82rem var(--font); cursor: pointer; transition: filter .15s;
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); }
.button-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.button-ghost:hover { color: var(--ink); }
.link-button { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 1.4rem var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a, .maps-menu summary {
  display: block; padding: .4rem .65rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font: 500 .86rem var(--font); cursor: pointer; white-space: nowrap;
}
.site-nav a:hover, .maps-menu summary:hover { color: var(--ink); background: var(--surface-3); }
.site-nav a[aria-current='page'] { color: var(--ink); background: var(--surface-3); }
.maps-menu { position: relative; }
.maps-menu summary { list-style: none; }
.maps-menu summary::-webkit-details-marker { display: none; }
.maps-menu summary::after { content: ' ▾'; color: var(--muted); }
.maps-list { position: absolute; right: 0; top: calc(100% + 6px); display: block !important; min-width: 230px; padding: 6px !important; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.maps-list small { color: var(--muted); }
.maps-list .maps-more { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.lang-switch { margin: 0; display: flex; gap: 2px; font: 600 .74rem var(--font-mono); }
.lang-switch a { padding: .3rem .45rem; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 6px; }
.lang-switch a[aria-current='true'] { color: var(--ink); border-color: var(--line-2); }
/* Przełącznik motywu: słońce / księżyc (domyślnie ciemny) – moduł theme (theme.css), wygląd zmiennymi */
.site-header {
  --theme-switch-bg: transparent; --theme-switch-size: 27px; --theme-switch-icon: 15px; --theme-switch-gap-left: 0;
  --theme-switch-bg-compact: transparent; --theme-switch-compact-icon: 17px; --theme-switch-gap-left-compact: 0;
}
@media (max-width: 480px) {
  .site-header { gap: 8px; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { order: 3; }
  .site-nav ul#nav-list { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open ul#nav-list { display: flex; }
  .maps-list { position: static; box-shadow: none; border: 0; }
}

.site-footer { padding: 28px clamp(16px, 3vw, 32px) 36px; margin-top: 56px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: var(--ink-2); }
/* Ikonki kanałów marki w stopce (Series::socialLinks, moduł series): kolor tekstu stopki, przy najechaniu i fokusie jaśniej */
.series-social-link { transition: opacity .15s; }
.series-social-link:hover, .series-social-link:focus-visible { opacity: .7; }

/* ---------- Strony z treścią ---------- */

.page { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 0; }
.prose-page { max-width: 820px; }
.prose-page h2 { font-size: 1.45rem; }
.prose-page li { margin-bottom: .4em; }
.crumbs { margin: 0 0 1rem; font: .8rem var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; }
.page-head .lead { max-width: 64ch; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font: 600 .72rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; white-space: nowrap; }
table.data small { white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; margin: 0 0 1.5rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: .6rem .85rem; }
.facts dt { font: .68rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 600; }

.today-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.2rem 0 1.6rem; }
.today-box > div { padding: .8rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.today-box dt { font: .7rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.today-box dd { margin: .2rem 0 0; }
.today-box strong { display: block; font: 700 1.7rem/1.1 var(--font-display); color: var(--accent); }
.today-box small { color: var(--muted); font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-1px); color: var(--ink); }
.card strong { font: 700 1.2rem var(--font-display); }
.card span, .card small { color: var(--muted); font-size: .86rem; }
.card .card-kind { font: 600 .68rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips a, .chips span { display: inline-block; padding: .25rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.chips a:hover { color: var(--ink); border-color: var(--muted); }
.status { display: inline-block; padding: .05em .55em; border-radius: 999px; font: 600 .7rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; border: 1px solid var(--line-2); color: var(--muted); }
.status-active { color: #0b2a12; background: #6be38a; border-color: #6be38a; }
.status-lost { color: var(--probe); border-color: var(--probe); }

.timeline { list-style: none; margin: 0 0 1.5rem; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; margin: 0 0 .7rem; }
.timeline li::before { content: ''; position: absolute; left: calc(-1.1rem - 6px); top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline time { display: block; font: .78rem var(--font-mono); color: var(--muted); }
.timeline li.future::before { border-style: dashed; border-color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .two-col, .page-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mapy na stronach ---------- */

/* Nagłówek sekcji z przyciskiem „PNG” (moduł export – export.css; menu formatów otwiera się pod przyciskiem, do prawej) */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 2.56rem 0 .8rem; }
.nowrap { white-space: nowrap; }
.section-head h2 { margin: 0; }
.map-export-wrap { position: relative; flex: none; }
.map-tools .map-export-wrap { align-self: center; }

.system-map, .planet-map {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #04060f; border: 1px solid var(--line);
  --wm-control-bg: #0b1020; --wm-control-fg: #eef1ff; --wm-control-border: #2a3560; --wm-font: var(--font);
}
.system-map { aspect-ratio: 1 / 1; max-height: calc(100dvh - var(--header-h) - 170px); width: 100%; }
.system-map .wm-root, .planet-map .wm-root { height: 100%; }
.system-map svg.wm-svg, .planet-map svg.wm-svg { width: 100%; height: 100%; display: block; }
.planet-map { aspect-ratio: 2 / 1; }
.map-caption { margin: .4rem 0 1.4rem; font-size: .78rem; color: var(--muted); }
.map-caption a { color: var(--muted); }
.planet-map .landing circle { fill: #ffd666; stroke: #05070f; stroke-width: 2px; }
.planet-map .landing-label { fill: #fff3c4; font: 600 calc(26px / var(--wm-zoom, 1)) var(--font); paint-order: stroke; stroke: rgba(5, 7, 15, .85); stroke-width: calc(5px / var(--wm-zoom, 1)); transform: translate(calc(16px / var(--wm-zoom, 1)), calc(8px / var(--wm-zoom, 1))); pointer-events: none; }
.planet-map .landing-label-left { text-anchor: end; transform: translate(calc(-16px / var(--wm-zoom, 1)), calc(8px / var(--wm-zoom, 1))); }

/* ---------- Strona główna ---------- */

/* Mapa na całą wysokość okna (minus nagłówek): kolumna mapy (mapa + oś czasu na dolnej krawędzi) i panel po prawej,
   przewijany w środku. Reszta strony (#more) – pod mapą, po przewinięciu. Wysokości ustalone w CSS – bez skoków układu. */
.map-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 580px;
  border-bottom: 1px solid var(--line);
}
/* Węższe okna komputera (np. 1024 px): panel 300–320 px, więcej miejsca na mapę */
@media (min-width: 901px) and (max-width: 1200px) { .map-stage { grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 320px); } }
.map-frame { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #04060f; }
.map-area { position: relative; flex: 1; min-height: 0; }
.map-stage .system-map { aspect-ratio: auto; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
.map-tools { position: absolute; z-index: 4; top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .seg { box-shadow: var(--shadow); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.seg button { padding: .3rem .75rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 .82rem var(--font); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface-3); color: var(--ink); }
.more-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: .25rem .8rem; border-radius: 999px; border: 1px solid #2a3560; background: rgba(11, 16, 32, .78);
  color: #c3cbec; font: 500 .78rem var(--font-mono); text-decoration: none; backdrop-filter: blur(4px);
}
.more-hint:hover { color: #eef1ff; border-color: #6d7cc4; }
.map-frame .noscript { position: absolute; inset: auto 0 40px; text-align: center; }
.map-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow-y: auto; padding: 18px 18px 22px; background: var(--surface); border-left: 1px solid var(--line); scrollbar-width: thin; }
.side-intro h1 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); margin: 0 0 .15em; }
.map-date { margin: 0 0 .5rem; color: var(--ink-2); }
.map-date output { color: var(--accent); font-weight: 600; }
.side-lead { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.layers { margin: 0; padding: .6rem .8rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.layers legend { padding: 0 .3rem; font: 600 .7rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.layer { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; font-size: .92rem; cursor: pointer; }
.layer small { margin-left: auto; color: var(--muted); }
.layer i { width: 10px; height: 10px; border-radius: 50%; background: var(--planet); flex: none; }
.layer-dwarf i { background: var(--dwarf); }
.layer-comet i { background: var(--comet); }
.layer-asteroid i { background: var(--asteroid); }
.layer-probe i { background: var(--probe); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.panel { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-height: 140px; }
.panel h2 { margin: 0 0 .5rem; font-size: 1.7rem; }
.panel-kind { margin: 0; font: 600 .7rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.panel-hint { margin: 0; color: var(--muted); font-size: .92rem; }
.dists { margin: 0 0 .7rem; }
.dist { padding: .35rem 0; border-bottom: 1px dashed var(--line-2); }
.dist dt { font: .7rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dist dd { margin: 0; }
.dist strong { font-size: 1.05rem; color: var(--ink); }
.dist span { font-size: .8rem; }
.facts-mini { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; margin: 0 0 .8rem; font-size: .84rem; }
.facts-mini dt { color: var(--muted); font-size: .72rem; }
.facts-mini dd { margin: 0; font-weight: 600; }
.panel-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin: 0; font-size: .88rem; }
.timebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: .6rem .9rem; border-top: 1px solid var(--line); background: var(--surface); }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.05rem; cursor: pointer; }
.timebar-range input { width: 100%; accent-color: var(--accent); }
.ticks { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.date-input input { padding: .4rem .5rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink); font: .9rem var(--font-mono); }
.noscript { padding: 1rem; color: var(--muted); }
.below { scroll-margin-top: var(--header-h); }
.today-table h2 small { font: .9rem var(--font); }
@media (max-width: 900px) {
  .map-stage { display: block; height: auto; min-height: 0; }
  .map-area { flex: none; height: min(100vw, 70vh); min-height: 300px; }
  .more-hint { display: none; }
  .map-side { overflow: visible; border-left: 0; border-top: 1px solid var(--line); padding: 18px clamp(12px, 3vw, 24px) 22px; }
  .side-intro h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.4rem); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .map-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .side-intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .timebar { grid-template-columns: auto minmax(0, 1fr); }
  .timebar .date-input, .timebar .speed { grid-row: 2; }
  .timebar .date-input { grid-column: 1 / 2; }
  .timebar .speed { grid-column: 2; justify-self: end; }
  .date-input input { width: 9.5em; }
}
@media print {
  .more-hint, .map-tools { display: none; }
  .map-stage { display: block; height: auto; }
}

/* ---------- Wykres odległości ---------- */

.distance-hero { margin: 1rem 0 1.4rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(120% 140% at 0% 0%, var(--surface-3), var(--surface) 60%); }
.distance-hero .big { display: block; font: 700 clamp(2.2rem, 1.4rem + 4vw, 4rem)/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.distance-hero .sub { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .5rem; color: var(--ink-2); }
.distance-hero .live { font-size: .8rem; color: var(--muted); }
.chart { position: relative; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px 6px 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--font-mono); }
.chart .line { fill: none; stroke: var(--chart-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--chart-line); opacity: .08; }
.chart .now { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .now-dot { fill: var(--accent); }
.chart .ev { fill: var(--earth); }
.chart .now-label { fill: var(--accent); font: 600 11px var(--font-mono); }
.chart-tip { position: absolute; pointer-events: none; padding: .3rem .55rem; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); font: .78rem var(--font-mono); color: var(--ink); white-space: nowrap; transform: translate(-50%, -110%); }

/* ---------- Formularz kontaktowy, błąd ---------- */

.contact-form { display: grid; gap: .3rem; max-width: 620px; }
.form-field { display: grid; gap: .3rem; margin: 0 0 .6rem; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field input[type=text], .form-field input[type=email], .form-field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font: 1rem var(--font); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form-consent { grid-template-columns: auto 1fr; align-items: start; }
.form-consent label { font-weight: 400; font-size: .86rem; }
.form-consent .field-error { grid-column: 1 / -1; }
.field-error { color: #ff8a80; font-size: .84rem; }
.form-alert { padding: .6rem .8rem; border-left: 3px solid #ff8a80; background: var(--surface-2); }
.form-success { padding: .8rem 1rem; border-left: 3px solid #6be38a; background: var(--surface-2); }
.form-clause, .form-required { font-size: .8rem; }
.req { color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-page { text-align: center; padding-top: 10vh; }
.error-code { font-size: 5rem; margin: 0; color: var(--accent); line-height: 1; }

/* Długie adresy źródeł i ukryte elementy (np. przycisk PNG, zanim podłączy się moduł eksportu) */
.page li, .page p { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
