/* Wersja 40: strony publiczne platformy (zapis na testy, logowanie, nowe hasło, poczekalnia) w wyglądzie strony
   fest-system.pl: te same czcionki, kolory, logo i ramka przeglądarki wokół zrzutu programu.
   Panel programu po zalogowaniu ma swój style.css. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #4f5d73;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #f1f5f9;
  --brand: #047857;
  --brand-strong: #065f46;
  --brand-soft: #d1fae5;
  --btn: #10b981;
  --btn-hover: #059669;
  --header-bg: #0f172a;
  --accent: #34d399;
  --warn-bg: #fef9c3;
  --warn-ink: #854d0e;
  --error-bg: #fee2e2;
  --error-ink: #991b1b;
  --radius: 16px;
  --shadow: 0 22px 44px -26px rgba(15, 23, 42, .4);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.bp { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--paper) 0, #fff 520px); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }

.bp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.bp-header { background: var(--header-bg); color: #fff; }
.bp-header .bp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bp-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.bp-logo:hover { color: #fff; }
.bp-logo svg { width: 32px; height: 32px; flex: none; }
.bp-logo b { font-weight: 800; }
.lg-bg { fill: #10b981; }
.lg-flap { fill: #a7f3d0; }
.lg-f { fill: #0f172a; }
.bp-nav { display: flex; align-items: center; gap: 20px; }
.bp-nav a:not(.bp-btn) { color: #cbd5e1; text-decoration: none; font-weight: 600; }
.bp-nav a:not(.bp-btn):hover { color: #fff; }
.bp-nav form { margin: 0; }

.bp-main { flex: 1; padding: 44px 0 64px; }
.bp-flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.bp-flash.error { background: var(--error-bg); color: var(--error-ink); }
.bp-flash.warn { background: var(--warn-bg); color: var(--warn-ink); }

.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; line-height: 1.2; background: var(--btn); color: var(--ink); border: 1px solid transparent; border-radius: 10px; padding: 13px 20px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.bp-btn:hover { background: var(--btn-hover); color: #fff; }
.bp-btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.bp-btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.bp-btn.ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.bp-btn.ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.bp-btn.small { padding: 8px 14px; font-size: .95rem; }
.bp-btn.wide { width: 100%; }

.bp-eyebrow { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.bp-lead { color: var(--muted); font-size: 1.13rem; margin: 0 0 8px; max-width: 34em; }
.bp-small { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.bp-hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.bp-note { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--ink-2); border-radius: 12px; padding: 10px 14px; font-size: .95rem; margin: 12px 0; }
.bp-note.warn { background: var(--warn-bg); border-color: #fde68a; color: var(--warn-ink); }

/* --- zapis na testy: opis po lewej, formularz po prawej; na telefonie formularz zaraz pod tytułem --- */
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "top card" "more card"; gap: 0 56px; align-items: start; }
.bp-intro-top { grid-area: top; padding-top: 8px; }
.bp-intro-top h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; margin: 10px 0 14px; }
.bp-intro-more { grid-area: more; padding-top: 22px; }
.bp-grid > .bp-card { grid-area: card; }

.bp-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; counter-reset: krok; }
.bp-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; counter-increment: krok; }
.bp-steps li::before { content: counter(krok); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-family: var(--font-display); font-weight: 800; }
.bp-steps b { display: block; font-size: 1.05rem; }
.bp-steps span { display: block; color: var(--muted); font-size: .97rem; }

.bp-shot { margin: 0; }
.bp-shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.bp-browser { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.bp-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.bp-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.bp-browser-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.bp-trust li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 7px; }

.bp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px 26px; }
.bp-card h2 { font-size: 1.65rem; font-weight: 800; margin: 0 0 4px; }

.bp-progress { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; gap: 10px; }
.bp-progress li { flex: 1; padding-top: 9px; border-top: 4px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.bp-progress li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 4px; background: var(--paper); font-size: .8rem; }
.bp-progress li.done, .bp-progress li.on { border-color: var(--btn); color: var(--ink); }
.bp-progress li.on span, .bp-progress li.done span { background: var(--btn); color: var(--ink); }

.bp-form fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.bp-form legend { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; padding: 0; margin: 0 0 12px; }
.bp-form legend .bp-hint { font-family: var(--font-body); font-size: .85rem; margin-left: 4px; }
.bp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; margin: 0 0 14px; min-width: 0; }
.bp-form input:not([type=checkbox]):not([type=radio]), .bp-form select, .bp-form textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
.bp-form textarea { min-height: 70px; resize: vertical; }
.bp-form input:focus, .bp-form select:focus, .bp-form textarea:focus { outline: 3px solid rgba(16, 185, 129, .3); outline-offset: 0; border-color: var(--btn); }
.bp-form input:user-invalid { border-color: #dc2626; }
.bp-upper { text-transform: uppercase; }
.bp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bp-two-zip { grid-template-columns: 150px 1fr; }
.bp-nip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.bp-nip label { margin-bottom: 0; }
.bp-nip .bp-btn { min-height: 46px; padding: 10px 16px; }
.bp-nip + .bp-hint { margin: 8px 0 14px; }
.bp-label { margin: 4px 0 8px; font-weight: 600; font-size: .95rem; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bp-form .bp-chip { position: relative; display: inline-flex; margin: 0; }
.bp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bp-chip span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: .93rem; cursor: pointer; user-select: none; }
.bp-chip span::before { content: "+ "; color: var(--muted); }
.bp-chip input:checked + span { background: var(--brand-soft); border-color: var(--btn); color: var(--brand-strong); }
.bp-chip input:checked + span::before { content: "✓ "; color: var(--brand); }
.bp-chip input:focus-visible + span { outline: 3px solid rgba(16, 185, 129, .4); }
.bp-invite { margin: 4px 0 6px; }
.bp-invite summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.bp-form .bp-terms { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .93rem; color: var(--ink-2); }
.bp-terms input { width: 19px; height: 19px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.bp-step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.bp-step-nav-final { justify-content: flex-end; }
.bp-step-nav-final .bp-btn:last-child { flex: 1; }
.bp-step-nav [data-step-back] { margin-right: auto; }
/* tryb kroków (włącza go app.js): widać tylko bieżący krok, zgody i przycisk wysyłki na ostatnim */
.bp-form.stepped fieldset[data-step]:not(.on) { display: none; }
.bp-form.stepped:not(.last) .bp-final { display: none; }

/* --- logowanie, nowe hasło, e-mail wysłany --- */
.bp-split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; align-items: center; }
.bp-center { max-width: 520px; margin: 0 auto; }
.bp-card .bp-form .bp-btn.wide { margin-top: 4px; }
.bp-links { margin: 16px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.bp-promo h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 8px 0 10px; }
.bp-promo .bp-btn { margin: 6px 0 22px; }
.bp-mail-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.bp-mail-icon svg { width: 30px; height: 30px; }
.bp-card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 10px; }
.bp-list { margin: 14px 0; padding-left: 20px; color: var(--ink-2); }
.bp-list li { margin: 4px 0; }

/* --- poczekalnia --- */
.bp-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: .85rem; }
.bp-waiting { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; gap: 10px; }
.bp-waiting li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.bp-waiting .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--muted); font-weight: 700; }
.bp-waiting li.done .mark { background: var(--brand-soft); color: var(--brand-strong); }
.bp-waiting small { color: var(--muted); }

.bp-footer { background: #020617; color: #94a3b8; font-size: .9rem; padding: 22px 0; }
.bp-footer .bp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.bp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.bp-footer a { color: #cbd5e1; text-decoration: none; }
.bp-footer a:hover { color: #fff; }

@media (max-width: 960px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "card" "more"; }
  .bp-intro-more { padding-top: 34px; }
  .bp-form-card > h2 { display: none; }
  .bp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bp-split .bp-card { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  body.bp { font-size: 16px; }
  .bp-wrap { padding: 0 16px; }
  .bp-main { padding: 24px 0 44px; }
  .bp-hide-sm { display: none; }
  .bp-nav { gap: 12px; }
  .bp-logo { font-size: 1.12rem; }
  .bp-card { padding: 22px 16px 20px; border-radius: 14px; }
  .bp-two, .bp-two-zip { grid-template-columns: minmax(0, 1fr); }
  .bp-nip { grid-template-columns: minmax(0, 1fr); }
  .bp-progress li { font-size: .8rem; }
  .bp-waiting li { grid-template-columns: 28px minmax(0, 1fr); }
  .bp-waiting li .bp-btn { grid-column: 2; justify-self: start; }
}
