:root {
  --bg: #0b0f14; --bg2: #10151b; --karta: #161c24; --karta2: #1b222c;
  --tekst: #ffffff; --body: #b9c1cc; --muted: #8b95a5;
  --zloto: #c0954e; --zloto2: #d4a95e; --zloto3: #e8c87a;
  --turkus: #4f9e98;
  --ok: #4ade80; --blad: #f87171;
  --ramka: rgba(255,255,255,0.08); --ramka-zl: rgba(192,149,78,0.35);
  --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.6 Lato, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--zloto2); }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.ukryte { display: none !important; }

/* ── pasek ─────────────────────────────────────────── */
header.pasek { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px); }
.marki { display: flex; align-items: center; gap: 14px; min-width: 0; }
.marki img.mai { height: 24px; width: auto; }
.marki .x { color: var(--muted); font-weight: 300; }
.marki img.nv { height: 24px; width: auto; }
.kto { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.4; }
.kto button, .kto a { background: none; border: 0; color: var(--zloto2); cursor: pointer; padding: 0; font-size: 13px; text-decoration: none; }

/* ── typografia ────────────────────────────────────── */
.eyebrow { text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--zloto); margin: 0 0 12px; }
h1 { color: var(--tekst); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(40px, 7vw, 88px); margin: 0 0 22px; }
h1 .lekki { font-weight: 300; color: #9aa3b2; }
h2 { color: var(--tekst); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(30px, 5vw, 52px); margin: 0 0 14px; }
h3 { color: var(--tekst); font-weight: 800; letter-spacing: -0.01em; font-size: 19px; margin: 0 0 4px; }
.zloty { background: linear-gradient(135deg, var(--zloto), var(--zloto3), var(--zloto)); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 680px; }
.drobne { font-size: 13px; color: var(--muted); }

/* ── plakietka z pulsującą kropką ──────────────────── */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid var(--ramka-zl); background: rgba(192,149,78,0.08); color: var(--zloto3); font-size: 13px; font-weight: 700; letter-spacing: .3px; margin-bottom: 24px; }
.puls { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: puls 1.8s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ── przyciski i pola ──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px solid var(--ramka-zl);
  background: rgba(255,255,255,0.02); color: var(--zloto3); padding: 12px 20px; cursor: pointer; font-weight: 700; min-height: 46px; transition: .2s; }
.btn:hover { background: rgba(192,149,78,0.10); border-color: var(--zloto); }
.btn.glowny { background: linear-gradient(135deg, var(--zloto), var(--zloto3)); color: #16110a; border: 0;
  box-shadow: 0 0 0 1px rgba(232,200,122,.4), 0 10px 40px -8px rgba(192,149,78,.65); }
.btn.glowny:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.szeroki { width: 100%; margin-top: 16px; }
.btn.duzy { padding: 16px 28px; font-size: 17px; }
label.pole { display: block; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
input[type=email], input[type=text], textarea {
  width: 100%; background: rgba(8,11,15,.75); color: var(--tekst); border: 1px solid var(--ramka); border-radius: 12px;
  padding: 13px 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { border-color: var(--zloto); box-shadow: 0 0 0 4px rgba(192,149,78,.15); }
input.kod { letter-spacing: 10px; font-size: 26px; text-align: center; font-weight: 700; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.komunikat { font-size: 14px; margin-top: 12px; min-height: 1.4em; }
.komunikat.blad { color: var(--blad); }
.komunikat.ok { color: var(--ok); }

/* ── ekran startowy ────────────────────────────────── */
.start { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.start .tlo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.start .tlo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .8; transform: scale(1.04); animation: dryf 24s ease-in-out infinite alternate; }
@keyframes dryf { to { transform: scale(1.1) translateX(-1.5%); } }
.start .tlo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,15,20,.96) 0%, rgba(11,15,20,.82) 40%, rgba(11,15,20,.30) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.start .siatka { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: clamp(16px, 4vw, 48px); padding-top: clamp(8px, 4vh, 48px); max-width: 1400px; margin: 0 auto; width: 100%; }
.formularz { background: rgba(16,21,27,.82); backdrop-filter: blur(14px); border: 1px solid var(--ramka-zl); border-radius: var(--r);
  padding: 26px; max-width: 460px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 60px -20px rgba(192,149,78,.35); margin-top: 8px; }

/* żywy widżet asystenta */
.widget { position: relative; background: rgba(16,21,27,.78); backdrop-filter: blur(14px); border: 1px solid var(--ramka); border-radius: 22px;
  padding: 18px 18px 52px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 80px -30px rgba(192,149,78,.5); }
.widget .glowka { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ramka); margin-bottom: 14px; }
.widget .awatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--zloto), var(--zloto3)); display: grid; place-items: center; color: #16110a; font-weight: 900; }
.widget .nazwa { color: var(--tekst); font-weight: 800; line-height: 1.2; }
.widget .status { font-size: 12px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.widget .wiad { min-height: 236px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.chmurka { max-width: 88%; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--karta2); color: var(--tekst); font-size: 15px; line-height: 1.45;
  animation: wjazd .4s ease both; }
.chmurka.ty { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: rgba(192,149,78,.18); border: 1px solid var(--ramka-zl); }
.pisze { display: inline-flex; gap: 4px; padding: 14px; border-radius: 16px; background: var(--karta2); width: max-content; }
.pisze i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: kropki 1.2s infinite; }
.pisze i:nth-child(2) { animation-delay: .15s; } .pisze i:nth-child(3) { animation-delay: .3s; }
@keyframes kropki { 30% { transform: translateY(-4px); background: var(--zloto3); } }
@keyframes wjazd { from { opacity: 0; transform: translateY(8px); } }
.plakietka { position: absolute; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--zloto), var(--zloto3)); color: #16110a;
  font-weight: 900; line-height: 1.1; box-shadow: 0 16px 40px -10px rgba(192,149,78,.7); transform: rotate(-4deg); }
.plakietka small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.plakietka.p1 { left: -26px; bottom: -22px; font-size: 22px; }
.plakietka.p2 { right: -14px; top: -20px; transform: rotate(3deg); background: var(--karta2); color: var(--tekst); border: 1px solid var(--ramka-zl); font-size: 15px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); }

/* ── układ kroków ──────────────────────────────────── */
main.kroki { max-width: 880px; margin: 0 auto; padding: 0 16px 80px; }
.postep-pasek { position: sticky; top: 0; z-index: 5; background: rgba(11,15,20,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ramka); }
.postep-pasek .wnetrze { max-width: 880px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.postep-pasek .licznik { font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 92px; }
.postep { display: flex; gap: 5px; flex: 1; }
.postep button { flex: 1; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--ramka); cursor: pointer; transition: .25s; }
.postep button.wypelniony { background: rgba(192,149,78,.45); }
.postep button.aktywny { background: var(--zloto3); box-shadow: 0 0 12px rgba(232,200,122,.7); }

.baner { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; margin: 22px 0 28px; border: 1px solid var(--ramka); animation: wjazd .5s ease both; }
.baner img { width: 100%; height: 100%; object-fit: cover; }
.baner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,15,20,.85) 0%, rgba(11,15,20,0) 55%); }
.baner .znacznik { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,15,20,.7); backdrop-filter: blur(8px); border: 1px solid var(--ramka-zl); color: var(--zloto3); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }

.podpowiedz { display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--zloto); background: rgba(192,149,78,.07); border-radius: 0 12px 12px 0;
  padding: 12px 16px; margin: 6px 0 24px; font-size: 15px; color: var(--body); }
.podpowiedz b { color: var(--zloto3); }

.blok { background: var(--karta); border: 1px solid var(--ramka); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.blok .opis { color: var(--body); font-size: 15px; margin-bottom: 14px; }
.blok .litera { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(192,149,78,.15); color: var(--zloto3); font-weight: 900; font-size: 14px; margin-right: 10px; vertical-align: 2px; }
.narzedzia { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zapis { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 1.4em; }

.nagrywanie { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--ramka-zl); border-radius: 12px; background: rgba(192,149,78,0.06); }
.kropka { width: 12px; height: 12px; border-radius: 50%; background: var(--blad); animation: miganie 1s infinite; }
@keyframes miganie { 50% { opacity: .3; } }
.fala { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; min-width: 60px; }
.fala i { flex: 1; max-width: 5px; border-radius: 3px; background: var(--zloto2); height: 20%; transition: height .08s; }
.czas { color: var(--tekst); font-variant-numeric: tabular-nums; font-weight: 700; }

.wpisy { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.wpisy:empty { display: none; }
.wpisy li { background: var(--bg2); border: 1px solid var(--ramka); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; animation: wjazd .3s ease both; }
.wpisy .gora { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wpisy .gora span { overflow-wrap: anywhere; }
.wpisy audio { width: 100%; height: 40px; }
.wpisy .usun { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px; }
.wpisy .usun:hover { color: var(--blad); }
.wpisy .transkrypcja { font-size: 14px; color: var(--muted); font-style: italic; }
.transkr { display: grid; gap: 6px; margin-top: 4px; }
.transkr .etykieta { font-size: 13px; color: var(--zloto3); display: flex; align-items: center; gap: 8px; }
.transkr textarea { min-height: 90px; font-size: 15px; }
.transkr textarea.trwa { color: var(--muted); font-style: italic; border-style: dashed; }
.kropka-mala { width: 8px; height: 8px; border-radius: 50%; background: var(--zloto3); animation: miganie 1s infinite; }

/* kafle i chipy wyboru */
.kafle { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.kafel { text-align: left; background: var(--bg2); border: 1px solid var(--ramka); border-radius: 14px; padding: 14px; cursor: pointer; color: var(--body); transition: .2s; position: relative; }
.kafel:hover { border-color: var(--ramka-zl); transform: translateY(-2px); }
.kafel .ikona { font-size: 24px; line-height: 1; margin-bottom: 8px; display: block; }
.kafel b { display: block; color: var(--tekst); font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.kafel span.op { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.kafel[aria-pressed=true] { border-color: var(--zloto); background: rgba(192,149,78,.10); box-shadow: 0 0 0 1px var(--zloto) inset, 0 10px 30px -12px rgba(192,149,78,.6); }
.kafel[aria-pressed=true]::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--zloto3); color: #16110a; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.chipy { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--ramka); background: var(--bg2); color: var(--body); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 14px; transition: .2s; }
.chip:hover { border-color: var(--ramka-zl); }
.chip[aria-pressed=true] { background: rgba(192,149,78,.16); border-color: var(--zloto); color: var(--zloto3); }

.nawigacja { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }

/* powitanie */
.dymek { display: flex; gap: 16px; align-items: flex-start; }
.dymek .awatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--zloto), var(--zloto3)); color: #16110a; display: grid; place-items: center; font-weight: 900; }
.dymek .tresc { background: var(--karta); border: 1px solid var(--ramka); border-radius: 4px var(--r) var(--r) var(--r); padding: 20px 22px; }
.dymek .podpis { font-size: 13px; color: var(--muted); margin-top: 8px; }
.trzy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.trzy div { background: var(--karta); border: 1px solid var(--ramka); border-radius: 16px; padding: 16px; text-align: center; }
.trzy .ik { font-size: 28px; display: block; margin-bottom: 6px; }
.trzy b { color: var(--tekst); display: block; }
.trzy span { font-size: 13px; color: var(--muted); }

.koniec { text-align: center; }
.os { display: grid; gap: 12px; text-align: left; margin: 26px auto 10px; max-width: 560px; }
.os > div { display: flex; gap: 14px; align-items: flex-start; background: var(--karta); border: 1px solid var(--ramka); border-radius: 14px; padding: 14px 16px; }
.os > div > .nr { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px solid var(--zloto); color: var(--zloto3); display: grid; place-items: center; font-weight: 900; }

/* panel */
.panel main { max-width: 1000px; margin: 0 auto; padding: 8px 16px 64px; }
.panel .karta { background: var(--karta); border: 1px solid var(--ramka); border-radius: 14px; padding: 18px; }
.panel .karta + .karta { margin-top: 12px; }
.uczestnik summary { cursor: pointer; color: var(--tekst); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.uczestnik summary::-webkit-details-marker { display: none; }
.uczestnik h3 { color: var(--zloto2); font-size: 15px; margin: 18px 0 8px; }
.uczestnik .tekst { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--ramka); border-radius: 10px; padding: 10px 12px; }
.statystyka { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.statystyka .karta { padding: 12px 16px; margin: 0 !important; }
.statystyka b { color: var(--tekst); font-size: 22px; display: block; }

@media (max-width: 900px) {
  .start .siatka { grid-template-columns: 1fr; }
  .start .tlo::after { background: linear-gradient(180deg, rgba(11,15,20,.6) 0%, rgba(11,15,20,.92) 45%, var(--bg) 100%); }
  .widget { order: 2; margin: 10px 10px 40px; }
}
@media (max-width: 560px) {
  .marki img.mai, .marki img.nv { height: 18px; }
  .marki { gap: 8px; }
  .trzy { grid-template-columns: 1fr; }
  .blok { padding: 16px; }
  .baner { aspect-ratio: 4 / 3; border-radius: 16px; }
  .plakietka.p1 { left: -6px; }
  .plakietka.p2 { right: -4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
