:root {
  --zielen: #1D6B57; --zielen-ciemna: #14503F; --zielen-jasna: #E3F0EB; --zielen-srednia: #2E7F69;
  --kropka: #F2A93B; --tlo: #F4F5F1; --karta: #FFFFFF; --tekst: #16201C; --tekst2: #3F4A44;
  --szary: #5B6660; --linia: #EDEFEA; --ramka: #D5DAD3; --tor: #C9CFC7; --czerwien: #A1361F;
  --ostrz-tlo: #FBEBD6; --ostrz-tekst: #7A3E04;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--tlo); color: var(--tekst); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--zielen); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--kropka); outline-offset: 2px; }
[hidden] { display: none !important; }

#apka { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
#tresc { flex-grow: 1; padding: 28px 20px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.sekcja { display: flex; flex-direction: column; gap: 12px; }

h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.duzy { font-size: 30px; }
.etykieta { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--szary); text-transform: uppercase; }
.etykieta.zielona { color: var(--zielen); }
.opis { margin: 0; font-size: 15px; line-height: 1.5; color: var(--szary); }
.maly { font-size: 13px; color: var(--szary); line-height: 1.45; }

.karta { background: var(--karta); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.karta.zielona { background: var(--zielen); color: #fff; }
.wiersz { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lista { background: var(--karta); border-radius: 16px; padding: 4px 16px; display: flex; flex-direction: column; }
.lista > .wiersz { padding: 13px 0; border-bottom: 1px solid var(--linia); }
.lista > .wiersz:last-child { border-bottom: 0; }
.kol { display: flex; flex-direction: column; gap: 3px; }
.nazwa { font-size: 15px; font-weight: 700; }
.ostrzezenie { background: var(--ostrz-tlo); color: var(--ostrz-tekst); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; font-weight: 600; }
.punkt { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.punkt > b { color: var(--zielen); font-weight: 800; min-width: 12px; }

.przycisk { min-height: 52px; border: 0; border-radius: 16px; background: var(--zielen); color: #fff; font-size: 17px; font-weight: 700; padding: 0 18px; }
.przycisk:hover { background: var(--zielen-ciemna); }
.przycisk:disabled { opacity: .6; }
.przycisk.drugi { background: var(--karta); color: var(--tekst); border: 1.5px solid var(--ramka); }
.przycisk.maly { min-height: 44px; font-size: 14px; border-radius: 12px; }
.przycisk.tekstowy { background: transparent; color: var(--zielen); min-height: 44px; font-size: 15px; }
.przycisk.czerwony { background: transparent; color: var(--czerwien); min-height: 48px; font-size: 15px; }
.przyciski { display: flex; gap: 8px; }
.przyciski > * { flex: 1 1 0; }

label.pole { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--szary); text-transform: uppercase; }
input.pole, select.pole, textarea.pole { height: 52px; border: 1.5px solid var(--ramka); border-radius: 14px; padding: 0 14px; background: #fff; color: var(--tekst); font-size: 17px; text-transform: none; letter-spacing: 0; font-weight: 500; }
input.kod { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 800; }

.tor { flex-shrink: 0; width: 52px; height: 30px; border-radius: 15px; border: 0; padding: 3px; display: flex; align-items: center; justify-content: flex-start; background: var(--tor); }
.tor.wl { justify-content: flex-end; background: var(--zielen); }
.galka { width: 24px; height: 24px; border-radius: 12px; background: #fff; display: block; }

.chip { font-size: 12px; font-weight: 700; color: var(--tekst2); background: var(--linia); border-radius: 10px; padding: 6px 9px; white-space: nowrap; }
.chip.zielony { color: #fff; background: var(--zielen); }

#pasek { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #E2E5DF; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
#pasek .wnetrze { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
#pasek button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; border: 0; background: transparent; font-size: 12px; font-weight: 700; color: var(--szary); }
#pasek button .kreska { width: 56px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
#pasek button[aria-current="page"] { font-weight: 800; color: var(--zielen); }
#pasek button[aria-current="page"] .kreska { background: var(--zielen-jasna); }

.logo-wiersz { display: flex; align-items: center; gap: 10px; }
.logo-napis { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; display: flex; align-items: flex-start; gap: 3px; }
.logo-napis::after { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--kropka); margin-top: 3px; }

#logowanie { max-width: 520px; margin: 0 auto; min-height: 100%; padding: 40px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
#logowanie .rosnij { flex-grow: 1; }

#komunikat { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--tekst); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; max-width: calc(100% - 32px); z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.blad { color: var(--czerwien); font-size: 14px; font-weight: 600; }
