/* Oreagle – wspólne dla wszystkich stron: czcionki, barwy marki i podstawy typografii.
   Exo 2 ExtraBold (tytuły, jak w znaku) i Source Sans 3 (tekst, jak w raporcie PDF) – obie na licencji SIL OFL. */
@font-face {
  font-family: "Exo 2";
  src: url("fonts/exo2-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* barwy znaku: noc (tło), papier (izolinie i napisy na ciemnym), karmin (środek anomalii, „e” w nazwie), bordo */
  --ink: #0e1216;
  --ink-2: #182029;
  --ink-3: #26303a;
  --paper: #f5f3ef;
  --card: #ffffff;
  --line: #e0dbd3;
  --line-strong: #c9c2b8;
  --muted: #55606b;
  --muted-on-ink: #a7b0b9;
  --red: #dc143c;
  --red-dark: #b3102f;
  --bordo: #63091b;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --focus: #ffb703;
  --radius: 12px;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Exo 2", "Source Sans 3", system-ui, sans-serif;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-title); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 8px 0; line-height: 1.5; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ przyciski i pola – wspólne dla wszystkich stron */
.btn {
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; border-radius: 10px; padding: 10px 18px;
  min-height: 44px; cursor: pointer; border: 1.5px solid transparent; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none; transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { background: #c9a3ab; cursor: progress; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(14, 18, 22, 0.05); }
.btn-light { background: transparent; color: var(--paper); border-color: rgba(245, 243, 239, 0.45); }
.btn-light:hover { border-color: var(--paper); background: rgba(245, 243, 239, 0.08); }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: 0.9rem; border-radius: 8px; }
.btn-danger { background: transparent; color: var(--red-dark); border-color: var(--red-dark); }
.btn-danger:hover { background: #fde7e9; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.link {
  background: none; border: 0; padding: 6px 0; color: var(--muted); font: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.hint { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--red-dark); font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.error:empty { min-height: 0; }
.success { color: var(--ok); font-weight: 600; }
.note { background: #fff6dd; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; }
.opt { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; font-weight: 400; margin-top: 6px; }
.check input { margin-top: 3px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.field label, .field .label { font-size: 0.9rem; font-weight: 650; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
  font: inherit; font-size: 1rem; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px;
  min-height: 42px; background: #fff; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #8a939c; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
input[readonly] { background: #f7f4ef; color: var(--muted); }
