@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/jost-latin-ext.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zielen: #214532;
  --zielen-ciemna: #193828;
  --zloty: #be9c5d;
  --zloty-jasny: #d4b56e;
  --krem: #f1ede9;
  --krem-tlo: #e5e0d8;
  --karta: #fbf9f6;
  --tusz: #24352c;
  --muted: #6a726c;
  --linia: #ddd7ce;
  --dzielnik: #e8e3dc;
  --ramka: #f3efe9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--tusz);
  background: var(--krem-tlo);
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.karta {
  background: var(--karta);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(33, 69, 50, 0.08);
  overflow: hidden;
}

/* ——— Nagłówek (wzór wizytówki) ——— */
.pasmo {
  position: relative;
  background: var(--zielen);
  min-height: 248px;
  overflow: hidden;
}

.pasmo-wew {
  position: relative;
  z-index: 1;
  padding: 42px 40px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-nazwa {
  font-size: 62px;
  font-weight: 300;
  color: var(--krem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.logo-nazwa .kropka { color: var(--zloty); }

.logo-podpis {
  margin: 10px 0 0 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--zloty);
}

.fala {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.fala-zlota-pas { fill: var(--zloty); }
.fala-krem { fill: var(--karta); }

/* ——— Treść ——— */
.tresc { padding: 8px 32px 6px; }

h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--zielen);
  line-height: 1.2;
}

.lead {
  margin: 0;
  text-align: left;
  font-weight: 400;
  color: var(--tusz);
}

.blok { margin-top: 22px; }

.ramka {
  background: var(--ramka);
  border-radius: 10px;
  padding: 15px 18px 14px;
}

.etykieta {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zloty);
}

.lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista li {
  position: relative;
  padding: 0 0 0 14px;
  margin: 0 0 7px;
}

.lista li:last-child { margin-bottom: 0; }

.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--zloty);
  border-radius: 50%;
}

.cena {
  margin: 12px 0 0;
  color: var(--tusz);
}

.cena strong {
  font-weight: 500;
  color: var(--zielen);
}

.cena-uwaga {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.zysk { margin: 0; }

.zysk summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 22px;
}

.zysk summary::-webkit-details-marker,
.zysk summary::marker { display: none; content: ""; }

.zysk summary .etykieta {
  display: block;
  margin: 0;
}

.zysk-skrot {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.zysk[open] .zysk-skrot { display: none; }

.zysk summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--zloty);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.zysk[open] summary::after { content: "−"; }

.zysk .lista { margin-top: 10px; }

.zysk summary:focus-visible {
  outline: 2px solid var(--zloty);
  outline-offset: 3px;
  border-radius: 4px;
}

.dzielnik {
  border: 0;
  border-top: 1px solid var(--dzielnik);
  margin: 24px 0 0;
}

/* ——— Formularz ——— */
.formularz { margin-top: 22px; padding-bottom: 4px; }

fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

legend {
  font-weight: 500;
  font-size: 17px;
  color: var(--tusz);
  margin: 0 0 8px;
  padding: 0;
}

.hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.mini {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.chipy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: block;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip .srodek {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--linia);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: var(--tusz);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lista-terminow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.wiersz-termin {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 0;
}

.wiersz-termin .etykieta-dnia {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 108px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--zloty);
  color: var(--zielen);
  line-height: 1.15;
  white-space: nowrap;
}

.wiersz-termin .etykieta-dnia .dzien {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zloty);
}

.wiersz-termin .etykieta-dnia .data {
  font-size: 19px;
  font-weight: 500;
  color: var(--zielen);
}

.wiersz-termin .godziny {
  flex: 1;
  min-width: 0;
}

.godziny .srodek {
  min-height: 38px;
  padding: 6px 13px;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.wiersz-termin:has(input:checked) .etykieta-dnia {
  border-left-color: var(--zielen);
}

.chip:hover .srodek { border-color: var(--zloty); }

.chip input:focus-visible + .srodek {
  outline: 2px solid var(--zloty);
  outline-offset: 1px;
}

.chip input:checked + .srodek {
  background: var(--zielen);
  border-color: var(--zielen);
  color: var(--krem);
}

.typ-fv .chip { flex: 0 1 auto; }

.siatka {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.siatka .pelny { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--tusz);
  margin: 12px 0 4px;
}

label .opc,
.opc {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

input[type=text],
input[type=tel],
input[type=email],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 9px 12px;
  border: 1px solid var(--linia);
  border-radius: 6px;
  background: #fff;
  color: var(--tusz);
}

textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--zloty);
  outline-offset: 1px;
  border-color: var(--zloty);
}

.wybor {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--linia);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
}

.wybor.rodo { margin-top: 4px; }

.wybor input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--zielen);
  flex: none;
}

.wybor .t { display: inline; font-weight: 500; font-size: 15px; }
.wybor .o { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; font-weight: 400; }

.rozwijane {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.rozwijane.otwarte { grid-template-rows: 1fr; }

.rozwijane-wew {
  overflow: hidden;
  min-height: 0;
}

.rozwijane.otwarte .rozwijane-wew { padding-bottom: 2px; }

.dodaj {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--zielen);
  cursor: pointer;
  text-align: left;
}

.dodaj:hover { color: var(--zloty); }

.dodaj:focus-visible {
  outline: 2px solid var(--zloty);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rozwijane { transition: none; }
}

button[type=submit] {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--krem);
  background: var(--zielen);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button[type=submit]:hover { background: var(--zielen-ciemna); }

button[type=submit]:disabled {
  opacity: 0.55;
  cursor: wait;
}

.blad {
  color: #8a2a2a;
  font-size: 14px;
  margin: 10px 0 0;
}

.blad[hidden] { display: none !important; }

.uwaga-dane {
  text-align: left;
  color: var(--muted);
  font-size: 13.5px;
  margin: 14px 0 0;
}

.dzieki { text-align: left; }
.dzieki[hidden] { display: none !important; }

.dzieki h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
  color: var(--zielen);
}

.dzieki p { margin: 0 0 6px; }

.dzieki strong { font-weight: 500; }

/* ——— Dane do wpłaty (ekran po wysłaniu) ——— */
.platnosc {
  margin: 16px 0 14px;
  padding: 14px 16px 12px;
  background: var(--ramka);
  border-radius: 10px;
}

.platnosc .etykieta { margin: 0 0 10px; }
.platnosc .etykieta.druga { margin-top: 16px; }

.wiersz-kopia {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.wiersz-kopia:last-child { margin-bottom: 0; }

.wiersz-kopia .mini {
  display: block;
  margin: 0 0 1px;
  text-transform: uppercase;
}

.wiersz-kopia p {
  margin: 0;
  font-weight: 500;
  color: var(--zielen);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wiersz-kopia .konto {
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.kopiuj {
  flex: none;
  align-self: center;
  margin: 0;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zielen);
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 6px;
  cursor: pointer;
}

.kopiuj:hover { border-color: var(--zloty); }
.kopiuj.skopiowano { border-color: var(--zielen); }

.podglad-info {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: var(--ramka);
  border-radius: 8px;
  font-size: 14px;
}

.podglad-info code {
  font-size: 13px;
  background: #fff;
  padding: 0 3px;
}

/* ——— Stopka karty ——— */
.stopka-karty {
  padding: 10px 0 28px;
  display: flex;
  justify-content: center;
}

.znak-dol {
  width: 118px;
  height: 124px;
}

.znak-dol svg { width: 100%; height: 100%; display: block; }

.znak-dol-napis {
  font-family: "Jost", sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 3.2px;
  fill: #be9c5d;
}

.kontakt-termin { margin-top: 12px; }
.nowrap { white-space: nowrap; }
.kontakt-termin .sep { color: var(--muted); }

.hint a,
.kontakt-termin a,
.stopka a {
  color: var(--zielen);
  text-decoration: none;
}

.hint a:hover,
.kontakt-termin a:hover { color: var(--zloty); }

.stopka {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 16px 32px;
  line-height: 1.55;
}

.stopka p { margin: 0 0 2px; }
.stopka p:last-child { margin-bottom: 0; }

.stopka a:hover { color: var(--zloty); }

@media (max-width: 520px) {
  main { padding: 16px 12px 40px; }

  .pasmo { min-height: 210px; }
  .pasmo-wew { padding: 32px 24px 0; }
  .logo-nazwa { font-size: 48px; }
  .logo-podpis { font-size: 10px; letter-spacing: 0.22em; margin-top: 8px; }

  .tresc { padding: 6px 20px 6px; }
  h1 { font-size: 26px; }
  .siatka { grid-template-columns: 1fr; gap: 0; }
  .znak-dol { width: 100px; height: 104px; }
  .stopka-karty { padding: 8px 0 22px; }
}

@media (max-width: 520px) {
  .wiersz-termin { gap: 6px 10px; }
  .wiersz-termin .etykieta-dnia { min-width: 92px; padding-left: 10px; }
  .wiersz-termin .etykieta-dnia .dzien { font-size: 10px; letter-spacing: 0.1em; }
  .wiersz-termin .etykieta-dnia .data { font-size: 17px; }
  .godziny .srodek { padding: 6px 10px; font-size: 14px; }
}

.do-zaplaty {
  margin: 6px 0 2px;
  font-size: 15px;
  color: var(--tusz);
}
.do-zaplaty strong { font-weight: 500; color: var(--zielen); }
.do-zaplaty-duza {
  margin: 16px 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--zloty);
  background: #fff;
  border-radius: 6px;
  font-size: 17px;
  color: var(--zielen);
}
.do-zaplaty-duza strong { font-size: 24px; font-weight: 600; }

.przycisk-zaplac {
  display: block;
  margin: 4px 0 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--zielen);
  color: #f1ede9;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s;
}
.przycisk-zaplac:hover { background: var(--zielen-ciemna); }
.mini-info { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
