/* Szyję sobie: strona zapisów (mobile first) */

/* Motywy */
:root,
html[data-mode="kogos"] {
  --tlo: #FFF7F2;
  --tekst: #2F1B28;
  --karta: #FFFFFF;
  --obwodka: #F1DDD6;
  --link: #8E2A4E;
  --btn-tlo: #8E2A4E;
  --btn-tekst: #FFFFFF;
  --zaznaczenie: #8E2A4E;
  --akcent: #D9964A;          /* tylko dekoracja nietekstowa */
  --cyfry: #2F1B28;
  --blad: #A8200F;
  --fokus: #2F1B28;
  --stopka-tlo: #3A1C32;
  --stopka-tekst: #FFF3EE;
  --cien: 0 6px 24px rgba(0, 0, 0, .06);
}
html[data-mode="siebie"] {
  --tlo: #3A1C32;
  --tekst: #FFF3EE;
  --karta: #FFF3EE;
  --obwodka: #EBD3CB;
  --link: #FFF3EE;
  --btn-tlo: #FFF3EE;
  --btn-tekst: #8E2A4E;
  --zaznaczenie: #F2C98A;
  --akcent: #F2C98A;
  --cyfry: #F2C98A;
  --blad: #FFC2B8;
  --fokus: #F2C98A;
  --stopka-tlo: #FFF3EE;
  --stopka-tekst: #3A1C32;
  --cien: none;
}
/* Wnętrze kart ma zawsze jasne tło, więc dostaje „jasne” kolory */
.card { background: var(--karta); border: 1px solid var(--obwodka); border-radius: 20px; box-shadow: var(--cien); color: #2F1B28; }
.card * { --link: #8E2A4E; --btn-tlo: #8E2A4E; --btn-tekst: #FFFFFF; --blad: #A8200F; --fokus: #8E2A4E; }

/* Podstawy */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--tlo); color: var(--tekst);
  font: 400 18px/1.55 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}
body, .card, .btn, .pasek, .stopka, .chip span, .przelacznik button {
  transition: background-color .4s, color .4s, border-color .4s;
}
h1, h2, h3, .logo { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { font-size: clamp(34px, 8vw, 60px); line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--link); text-underline-offset: 3px; }
strong { font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: 8px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.miod { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ikona { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.maly { font-size: 15px; line-height: 1.45; }
.srodek { text-align: center; }
.tresc { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.szerokie { width: 100%; max-width: 1000px; margin-inline: auto; padding-inline: 20px; }

/* Przyciski i linki */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 64px; padding: 12px 24px; border-radius: 16px;
  border: 2px solid var(--btn-tlo); font-size: 18px; font-weight: 700; line-height: 1.3;
}
.btn-glowny { background: var(--btn-tlo); color: var(--btn-tekst); }
.btn-cichy { background: transparent; color: var(--link); }
.btn:hover:not(:disabled) { filter: brightness(.94); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link {
  background: none; border: 0; padding: 0; min-height: 48px; min-width: 48px;
  display: inline-flex; align-items: center; text-align: left;
  color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}
a.btn { text-decoration: none; }
@media (min-width: 600px) { .btn { width: auto; min-width: 260px; } .blok > .btn-glowny { width: 100%; } }

/* Pasek: logo, przełącznik, postęp */
.pasek { position: sticky; top: 0; z-index: 20; background: var(--tlo); }
.naglowek {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo narz" "przel przel";
  align-items: center; column-gap: 12px; max-width: 1000px; margin-inline: auto; padding: 0 20px;
}
.logo { grid-area: logo; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; font-size: 24px; color: var(--tekst); text-decoration: none; }
.narzedzia { grid-area: narz; display: flex; gap: 14px; }
.logo-znak { width: 36px; height: 36px; flex: none; }
.logo i, .v-marka i { font-style: italic; color: var(--logo-akcent, #8E2A4E); }
html[data-mode="siebie"] .pasek, .stopka { --logo-akcent: #F2C98A; --znak: #B13A63; }
.narzedzia .link { font-size: 15px; justify-content: center; color: var(--tekst); white-space: nowrap; }
.narzedzia .przycisk-konta { align-self: center; padding: 0 16px; border: 2px solid var(--link); border-radius: 99px; text-decoration: none; font-weight: 700; }
.przelacznik { grid-area: przel; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tekst); border-radius: 16px; padding: 2px; gap: 2px; }
.przelacznik button { min-height: 48px; border: 0; border-radius: 13px; background: transparent; color: var(--tekst); font-size: 16px; font-weight: 700; }
.przelacznik button[aria-pressed="true"] { background: var(--btn-tlo); color: var(--btn-tekst); }
.postep { display: flex; align-items: center; gap: 8px; max-width: 1000px; margin-inline: auto; padding: 4px 20px; }
.wstecz { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; flex: none; }
.postep ol { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; flex: 1; min-width: 0; font-size: 15px; }
.postep li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.postep .nr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; font-size: 14px; }
.postep .nazwa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.postep li[aria-current="step"] .nr { background: var(--btn-tlo); color: var(--btn-tekst); border-color: var(--btn-tlo); }
.postep li[aria-current="step"] .nazwa { position: static; width: auto; height: auto; clip: auto; font-weight: 700; }
.postep li.pominiety { text-decoration: line-through; }
.postep li.pominiety .nr { border-style: dashed; }
@media (max-width: 419px) { .naglowek { padding: 0 14px; column-gap: 8px; } .logo { font-size: 20px; white-space: nowrap; } .logo .logo-znak { width: 30px; height: 30px; } .narzedzia { gap: 8px; } .narzedzia .przycisk-konta { padding: 0 10px; } }
@media (max-width: 359px) { .naglowek { padding: 0 10px; column-gap: 6px; } .logo { font-size: 17px; gap: 4px; } .logo .logo-znak { width: 26px; height: 26px; } .narzedzia { gap: 4px; } .narzedzia .link { font-size: 14px; } .narzedzia .przycisk-konta { padding: 0 8px; } }
@media (min-width: 760px) {
  .naglowek { grid-template-columns: 1fr auto auto; grid-template-areas: "logo przel narz"; column-gap: 24px; min-height: 72px; }
  .przelacznik { width: 300px; }
  .postep ol { gap: 20px; justify-content: center; }
  .postep .nazwa { position: static; width: auto; height: auto; clip: auto; }
  .postep { padding-right: 76px; }
}

/* Kroki i ścieg */
.krok { scroll-margin-top: var(--odstep-gora, 120px); }
.krok:not(.krok1) { padding-bottom: 32px; }
.krok + .krok::before { content: ""; display: block; max-width: 720px; width: calc(100% - 40px); margin: 0 auto 32px; border-top: 2px dashed var(--akcent); }
.krok1.zamkniety { padding-bottom: 32px; }
#dziekujemy::before { display: none; }
.zwiniety { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zwiniety p { margin: 0; font-weight: 600; }
#krok1.zamkniety .zwiniety { padding-top: 8px; }

/* Krok 1: dwa wejścia, kremowe i zielone */
.krok1:not(.zamkniety) .rozwiniety { display: flex; flex-direction: column; min-height: calc(100vh - 57px); min-height: calc(100svh - 57px); padding-bottom: 16px; }
.hero { text-align: center; padding-top: 8px; }
.hero h1 { font-size: clamp(28px, 7vw, 48px); margin-bottom: 12px; }
.wazne { font-weight: 700; }
.tryby { flex: 1; display: grid; gap: 12px; grid-auto-rows: 1fr; }
.tryby.jeden { flex: 0; }
.wejscie {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 16px 20px; text-align: left; font-size: 16px; line-height: 1.4;
  background: #FFFFFF; color: #2F1B28; border: 2px solid #F1DDD6; border-radius: 20px; box-shadow: var(--cien);
}
.wejscie-siebie { background: #3A1C32; color: #FFF3EE; border-color: #3A1C32; }
html[data-mode="siebie"] .wejscie-siebie { order: -1; border-color: #F2C98A; }
.wejscie:hover { filter: brightness(.96); }
.wejscie-etykieta { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.odliczanie { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wejscie-haslo { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(24px, 6.4vw, 42px); line-height: 1.15; text-wrap: balance; }
.wejscie-przycisk { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 8px; padding: 8px 20px; border-radius: 16px; background: #8E2A4E; color: #FFFFFF; font-weight: 700; }
.wejscie-siebie .wejscie-przycisk { background: #FFF3EE; color: #8E2A4E; }
.dalej { transform: rotate(180deg); }
.znak { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #8E2A4E; color: #FFFFFF; opacity: 0; }
input:checked + .wybor-karta > .znak { opacity: 1; }
.wybor input:checked + .wybor-karta { border-color: var(--zaznaczenie); box-shadow: 0 0 0 2px var(--zaznaczenie); }
@media (min-width: 760px) {
  .krok1:not(.zamkniety) .rozwiniety { justify-content: center; }
  .hero { padding-bottom: 8px; }
  .tryby { flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 8px; }
  .tryby.jeden { grid-template-columns: 1fr; }
  .jeden .wejscie { min-height: 0; }
  .wejscie { justify-content: flex-start; gap: 10px; min-height: 440px; padding: 40px; font-size: 18px; }
  .wejscie-przycisk { margin-top: auto; }
}

/* Karty wyboru */
.siatka { display: grid; gap: 16px; margin-bottom: 24px; }
.wybor { position: relative; display: flex; cursor: pointer; }
.wybor input, .chip input, .zaznacz input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wybor-karta { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 24px; }
.wybor-karta:hover { filter: brightness(.97); }
.wybor input:focus-visible + .wybor-karta { outline: 3px solid var(--fokus); outline-offset: 4px; }
.wybor-tytul { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.25; padding-right: 40px; }
.cena-blok { display: flex; flex-direction: column; margin-top: auto; padding-top: 8px; }
.cena-od { font-size: 22px; }
.cena-duza { font-size: 34px; font-weight: 700; line-height: 1.2; }
.cena-duza small { font-size: 18px; font-weight: 600; display: block; }
.razem { font-size: 18px; font-weight: 600; }
.odznaka { align-self: flex-start; border: 1px solid #8E2A4E; border-radius: 99px; padding: 2px 12px; font-size: 15px; font-weight: 700; }
@media (min-width: 760px) { .siatka-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 860px) { .siatka-3 { grid-template-columns: repeat(3, 1fr); } .siatka-3.jeden { grid-template-columns: minmax(0, 380px); justify-content: center; } }

/* Chipsy */
.chipsy { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chipsy legend { float: left; width: 100%; }
.chipsy legend ~ * { clear: left; }
.chip { position: relative; cursor: pointer; display: flex; }
.chip span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid #8C7B85; border-radius: 16px; background: #FFFFFF; color: #2F1B28; font-weight: 600; }
.chip input:checked + span { border-color: #8E2A4E; background: #8E2A4E; color: #FFFFFF; }
.chip input:checked + span::before { content: ""; width: 6px; height: 12px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.chipsy-duze { flex-direction: column; }
.chipsy-duze .chip span { width: 100%; min-height: 64px; justify-content: center; }

/* Checkboxy */
.zgoda { margin-bottom: 12px; }
.zaznacz { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 8px 0; cursor: pointer; }
.kwadrat { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #8E2A4E; border-radius: 8px; background: #FFFFFF; color: #FFFFFF; }
.kwadrat .ikona { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s; }
.zaznacz input:checked + .kwadrat { background: #8E2A4E; }
.zaznacz input:checked + .kwadrat .ikona { stroke-dashoffset: 0; }
.zaznacz input:focus-visible + .kwadrat { outline: 3px solid var(--fokus); outline-offset: 2px; }
.zaznacz input[aria-invalid="true"] + .kwadrat { border-color: var(--blad); }
.zaznacz-karta { padding: 20px 24px; margin-bottom: 24px; font-weight: 600; }

/* Pola tekstowe z pływającą etykietą */
.pole { position: relative; margin-bottom: 16px; }
.pole input, .pole textarea {
  display: block; width: 100%; min-height: 60px; padding: 24px 14px 8px; font-size: 18px; line-height: 1.4;
  color: #2F1B28; background: #FFFFFF; border: 1px solid #8C7B85; border-radius: 12px;
}
.pole textarea { resize: vertical; padding-top: 28px; }
.pole label { position: absolute; left: 15px; right: 15px; top: 17px; color: #6B5563; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: top .15s, font-size .15s; }
.pole input:focus + label, .pole input:not(:placeholder-shown) + label,
.pole textarea:focus + label, .pole textarea:not(:placeholder-shown) + label { top: 5px; font-size: 14px; }
.pole textarea + label { background: #FFFFFF; }
.pole [aria-invalid="true"] { border: 2px solid var(--blad); }
.blad { display: flex; gap: 6px; align-items: flex-start; color: var(--blad); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.licznik { text-align: right; margin-top: -10px; }
.komunikat:empty { margin: 0; }
.komunikat { font-weight: 600; margin-top: 12px; }
.komunikat.zle { color: var(--blad); display: flex; gap: 6px; }

/* Wyzwanie i pomysły */
.wiecej { padding: 24px; margin-top: 32px; font-size: 16px; }
.wiecej h3 { font-size: 20px; }
.wiecej p { margin: 8px 0; }
.wiecej + .wiecej { margin-top: 16px; }
.formularz { margin: 16px 0 0; }

/* Koszyk */
.koszyk-tytul { max-width: 1000px; }
.koszyk { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "glowna" "bok" "koniec"; }
.k-glowna { grid-area: glowna; }
.k-bok { grid-area: bok; }
.k-koniec { grid-area: koniec; }
.koszyk.przed { grid-template-areas: "glowna"; }
.koszyk.przed .k-bok, .koszyk.przed .k-koniec { display: none; }
@media (min-width: 900px) {
  .koszyk { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "glowna bok" "koniec bok"; grid-template-rows: auto 1fr; align-items: start; }
  .koszyk.przed { grid-template-columns: minmax(0, 720px); grid-template-rows: auto; justify-content: center; grid-template-areas: "glowna"; }
  .k-bok { position: sticky; top: var(--odstep-gora, 140px); max-height: calc(100vh - var(--odstep-gora, 140px) - 16px); overflow: auto; }
}
.blok { padding: 24px; margin-bottom: 24px; }
fieldset.blok { display: block; }
fieldset.blok > legend { float: left; width: 100%; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 22px; margin-bottom: 16px; }
fieldset.blok > legend ~ * { clear: left; }
.k-bok .blok, .k-koniec .blok:last-child { margin-bottom: 0; }
.pozycje { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.pozycje li { padding: 24px; }
.pozycje h3 { margin-bottom: 4px; }
.pozycja-ceny { font-weight: 700; }
.pozycja-ceny span { display: block; }
.akcje { display: flex; gap: 24px; }
.blok .btn-cichy + .btn-cichy, #mini-oferta { margin-bottom: 16px; }
.kod-wiersz { display: grid; gap: 12px; }
.kod-wiersz .pole { margin: 0; }
.kod-wiersz .btn { min-height: 64px; }
@media (min-width: 480px) { .kod-wiersz { grid-template-columns: 1fr auto; align-items: start; } .kod-wiersz .btn { min-width: 140px; } }
.propozycje { display: grid; gap: 8px; margin-bottom: 20px; }
.propozycja { text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px dashed #8E2A4E; background: transparent; font-size: 16px; }
.voucher { background: #FFFFFF; color: #2F1B28; border: 2px solid #8E2A4E; border-radius: 8px; padding: 32px 24px; text-align: center; }
.voucher p { margin: 0 0 12px; }
.voucher .v-marka { display: flex; align-items: center; justify-content: center; gap: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.voucher .v-marka { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 24px; }
.voucher .v-dedykacja { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.35; white-space: pre-line; }
.voucher .v-kod { font-size: 24px; font-weight: 700; letter-spacing: .06em; margin: 0; }

/* Podsumowanie */
.suma { margin: 0; }
.suma > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #F1DDD6; }
.suma dt { margin: 0; }
.suma dd { margin: 0; font-weight: 700; white-space: nowrap; }
.suma > div.duza { font-size: 26px; font-weight: 700; border-bottom: 0; padding: 16px 0 8px; flex-wrap: wrap; align-items: baseline; }
#podsumowanie > p { margin: 12px 0 0; font-size: 16px; }
.zdanie-wazne { font-weight: 700; }
#co-zamawiasz { margin-bottom: 16px; }
#zaplacisz { margin: 12px 0 0; font-weight: 700; }
.dane-przelewu { border: 1px solid #F1DDD6; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.dane-przelewu p { margin: 0; }
.kod-duzy { font-size: clamp(28px, 8vw, 36px); font-weight: 700; letter-spacing: .04em; text-align: center; overflow-wrap: anywhere; user-select: all; }
#dziekujemy ol { padding-left: 22px; }
#dziekujemy li { margin-bottom: 8px; }
#dziekujemy .btn { width: 100%; }
#dziekujemy-platnosc form { margin-bottom: 24px; }

/* Stopka */
.stopka { background: var(--stopka-tlo); color: var(--stopka-tekst); padding: 32px 0; margin-top: 32px; }
.stopka ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 24px; }
.stopka a, .stopka .link { color: var(--stopka-tekst); display: inline-flex; align-items: center; min-height: 48px; font-weight: 400; }
.stopka p { margin-bottom: 4px; }
.stopka :focus-visible { outline-color: var(--stopka-tekst); }

/* Okna */
.okno { border: 0; padding: 16px; background: transparent; width: 100%; max-width: 512px; max-height: 100vh; max-height: 100dvh; }
.okno::backdrop { background: rgba(40, 14, 32, .65); }
.okno-karta { position: relative; padding: 24px; background: var(--karta); }
.okno h2 { font-size: 28px; padding-right: 48px; }
.zamknij { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; }
.okno .btn { width: 100%; margin-bottom: 12px; }
.okno .srodek { margin: 0; }
.pytanie { font-weight: 700; font-size: 20px; }

/* Baner zgód */
.zgody-baner { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; max-width: 640px; margin-inline: auto; padding: 20px; max-height: 70vh; overflow: auto; font-size: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.zgody-baner h2 { font-size: 22px; }
.baner-przyciski { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.baner-przyciski .btn { width: 100%; min-width: 0; }
.zgody-baner #c-zapisz { margin-bottom: 8px; }

/* Ruch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Druk: tylko kartka vouchera */
@media print {
  body { background: #FFFFFF; color: #000000; }
  .pasek, .stopka, .zgody-baner, .okno, main > section:not(#dziekujemy), #dziekujemy .card { display: none !important; }
  #dziekujemy::before { display: none !important; }
  #wydruk:not(:empty) { display: block !important; margin-top: 24mm; break-inside: avoid; }
}
