@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-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: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-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 {
  --czerwony: #CF102D;
  --czerwony-ciemny: #A80D25;
  --tusz: #333333;
  --muted: #6B6B6B;
  --tlo: #F3F3F4;
  --karta: #FFFFFF;
  --szare: #F5F5F6;
  --szare-pasmo: #E2E2E4;
  --linia: #D9D9D9;
  --dzielnik: #E6E6E6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--tusz);
  background: var(--tlo);
  font-family: "Source Sans 3", "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 30px rgba(0, 0, 0, 0.07);
  padding: 0;
  overflow: hidden;
}

/* ——— Nagłówek z falą ——— */
.pasmo {
  position: relative;
  min-height: 188px;
  overflow: visible;
}

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

.fala-szara { fill: var(--szare-pasmo); }
.fala-czerwona {
  stroke: var(--czerwony);
  stroke-width: 14;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.pasmo-copy {
  position: relative;
  z-index: 1;
  padding: 52px 220px 48px 64px;
}

.zapr {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tusz);
  line-height: 1.2;
}

.zapr-pod {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--tusz);
  line-height: 1.3;
}

.kolo {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 176px;
  height: 176px;
  background: var(--czerwony);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.kolo img {
  width: 72%;
  height: auto;
}

.naglowek-dol {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 46%);
  gap: 16px 28px;
  align-items: center;
  padding: 22px 32px 8px;
}

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

.szczegoly li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  border: 0;
}

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

.ikona-kolo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--czerwony);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ikona-kolo svg {
  width: 16px;
  height: 16px;
}

.naglowek h1 {
  margin: 0;
  text-align: right;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--tusz);
}

.naglowek h1 span {
  display: block;
  color: var(--czerwony);
  font-weight: 650;
}

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

.blok { margin-top: 22px; }
.tresc .blok:first-child { margin-top: 4px; }

.ramka {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 14px 16px 14px;
}

.etykieta {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--czerwony);
}

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

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

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

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

.lista strong { font-weight: 600; }

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

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

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

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

.terminy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

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

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

.termin:hover .srodek { border-color: var(--czerwony); }

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

.termin input:checked + .srodek {
  background: var(--czerwony);
  border-color: var(--czerwony);
  color: #fff;
}

.termin .dzien {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.termin .data {
  font-size: 15px;
  font-weight: 600;
}

.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: 600;
  color: var(--tusz);
  margin: 12px 0 4px;
}

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

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

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

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

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

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

.faktura {
  display: none;
  padding: 4px 14px 14px;
  border: 1px dashed var(--linia);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.faktura.otwarte { display: block; }

button[type=submit] {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 13px 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--czerwony);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

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

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

.blad {
  color: var(--czerwony);
  font-size: 14px;
  margin: 10px 0 0;
}

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

.uwaga-dane {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}

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

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

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

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

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

/* ——— Stopka karty: odwrócona fala ——— */
.pasmo-dol {
  position: relative;
  height: 84px;
  margin-top: 8px;
}

.pasmo-dol .fala-czerwona { stroke-width: 12; }

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

.stopka p { margin: 0; }

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

  .pasmo { min-height: 156px; }
  .pasmo-copy { padding: 38px 140px 40px 34px; }
  .zapr { font-size: 15px; letter-spacing: 0.12em; }
  .zapr-pod { font-size: 15px; }

  .kolo {
    width: 112px;
    height: 112px;
    right: 14px;
    top: 18px;
  }

  .naglowek-dol {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 20px 4px;
  }

  .naglowek h1 {
    text-align: left;
    font-size: 26px;
  }

  .tresc { padding: 12px 20px 8px; }
  .siatka { grid-template-columns: 1fr; gap: 0; }
  .termin .data { font-size: 14px; }
  .pasmo-dol { height: 68px; }
}
