/*
 * Zmiana wizyty przez pacjenta: jedna kolumna, duże pola do kliknięcia, czytana na telefonie.
 * Kolory i kroje jak w pozostałych stronach (posadzka, atrament, niebieski akcent).
 */
:root {
  --floor: #edefec; --paper: #f8f9f7; --ink: #14171a; --ink-2: #2b3035; --muted: #535a61;
  --hair: rgba(20, 23, 26, 0.13); --hair-2: rgba(20, 23, 26, 0.26);
  --accent: #1f5fd6; --accent-dark: #1a4fb4; --accent-soft: rgba(31, 95, 214, 0.1);
  --ok: #0f7a4f; --alert: #b3261e; --warn: #5a3d00;
  --f-display: 'Overpass', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--floor); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.5; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 9px 16px; background: #f2b705; color: var(--ink); font-size: 0.9rem; text-align: center; }
.demo a { color: inherit; font-weight: 700; }
.demo button { padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font-size: 0.86rem; font-weight: 700; cursor: pointer; }

.gora { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 5vw, 32px); background: var(--ink); color: #fff; }
.gora__marka { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.gora__marka svg { width: 26px; height: 26px; fill: none; stroke-width: 3; stroke-linecap: round; }
.gora__tel { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-size: 0.95rem; white-space: nowrap; }

main { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: clamp(18px, 4vw, 34px) clamp(16px, 5vw, 24px) 40px; display: grid; gap: 16px; align-content: start; outline: none; }
.ladowanie { color: var(--muted); }
h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 900; }
.wstep { color: var(--ink-2); margin-top: -6px; }

.karta { padding: clamp(18px, 4vw, 26px); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 23, 26, 0.06), 0 14px 34px -22px rgba(20, 23, 26, 0.35); display: grid; gap: 16px; }
.termin { display: grid; gap: 2px; }
.termin small { color: var(--muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.termin b { font-family: var(--f-display); font-size: clamp(1.45rem, 5.5vw, 1.9rem); font-weight: 900; line-height: 1.12; }
.termin span { color: var(--ink-2); }
.znak { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 4px 12px; border-radius: 999px; background: #dcefe5; color: #0b4a30; font-weight: 700; font-size: 0.88rem; }
.znak::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.znak--czeka { background: #fff0c4; color: var(--warn); }
.znak--x { background: #fbe3e1; color: #7a1c15; }
.znak--stary { background: #e9ece9; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 0.97rem; padding-top: 14px; border-top: 1px solid var(--hair); }
.dl dt { color: var(--muted); font-weight: 700; }
.dl dd small { display: block; color: var(--muted); }

.akcje { display: grid; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--paper); }
.btn--glowny { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--glowny:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--alarm { border-color: var(--alert); color: var(--alert); }
.btn--alarm-pelny { background: var(--alert); border-color: var(--alert); color: #fff; }
.btn--alarm-pelny:hover { background: #8e1d17; }
.btn--cichy { border-color: var(--hair-2); font-weight: 700; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dwa { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 440px) { .dwa { grid-template-columns: minmax(0, 1fr); } }

.regula { padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: #0f2f6e; font-size: 0.95rem; }
.regula--uwaga { background: #fff0c4; color: var(--warn); }
.regula--blad { background: #fbe3e1; color: #7a1c15; }
.regula b { font-weight: 800; }

.wstecz { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--accent-dark); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Wybór terminu */
.pole { display: grid; gap: 6px; }
.pole label, .pole legend { font-weight: 800; font-size: 0.95rem; }
.pole select { width: 100%; min-height: 48px; padding: 8px 12px; border: 2px solid var(--hair-2); border-radius: 12px; background: #fff; }
.dni { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.dzien { flex: none; scroll-snap-align: start; display: grid; gap: 1px; min-width: 76px; padding: 9px 12px; border: 2px solid var(--hair-2); border-radius: 14px; background: #fff; text-align: center; cursor: pointer; }
.dzien b { font-family: var(--f-display); font-size: 1.05rem; font-weight: 900; }
.dzien small { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.dzien[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.dzien[aria-pressed='true'] small { color: #cfd3d6; }
.godziny { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.godz { min-height: 50px; padding: 6px 8px; border: 2px solid var(--accent); border-radius: 12px; background: #fff; color: var(--accent-dark); font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center; line-height: 1.1; }
.godz small { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.godz[aria-pressed='true'] { background: var(--accent); color: #fff; }
.godz[aria-pressed='true'] small { color: #dbe6fb; }
.wybrany { padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 2px dashed var(--hair-2); display: grid; gap: 2px; }
.wybrany small { color: var(--muted); font-weight: 700; }
.wybrany b { font-family: var(--f-display); font-size: 1.15rem; }
.przed-po { display: grid; gap: 4px; }
.przed-po s { color: var(--muted); }

/* Odwołanie */
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border: 2px solid var(--hair-2); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 500; }
.radio input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper); font-weight: 700; }
.radio:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.nic { margin: 0; color: var(--muted); font-size: 0.9rem; }

.sukces { display: grid; gap: 10px; justify-items: start; }
.sukces__ikona { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; }
.sukces__ikona--x { background: var(--ink); }
.sukces__ikona svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.stopka { padding: 18px clamp(16px, 5vw, 32px) 28px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.stopka p { max-width: 46ch; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
