/* Święty Mikołaj dla Każdego - list do Mikołaja */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Berkshire Swash"; src: url("fonts/berkshire-swash.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --noc: #0e1b3d;
  --noc-gl: #0a1433;
  --noc-jasna: #24396f;
  --zloto: #f2b544;
  --zloto-jasne: #ffd98a;
  --czerwien: #b3132b;
  --czerwien-ciemna: #7e0d1e;
  --papier: #fbf6ec;
  --papier-ciemny: #f1e8d4;
  --linia: #cbb991;
  --atrament: #1d2a5a;
  --szron: #dce8f7;
  --snieg: #eef4fb;
  --zorza: #5fd4b0;
  --tekst: #22284a;
  --tekst-cichy: #5c6386;
  --font: "Fraunces", Georgia, "Times New Roman", serif;
  --reka: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --tytul: "Berkshire Swash", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: "SOFT" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--snieg);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--czerwien); text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--zloto); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

#snieg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------------------------------------------------- pasek sponsorów */
.pas-sponsorow {
  position: relative; z-index: 5;
  display: flex; align-items: center;
  background: #fff;
  border-bottom: 3px solid var(--zloto);
  height: 68px;
  box-shadow: 0 4px 18px rgba(10, 20, 51, .25);
}
.pas-napis {
  flex: none;
  padding: 0 18px 0 20px;
  font-family: var(--reka); font-size: 1.45rem; font-weight: 700; line-height: 1;
  color: var(--czerwien);
  background: #fff;
  position: relative; z-index: 2;
  box-shadow: 14px 0 14px #fff;
}
.pas-okno { overflow: hidden; flex: 1; height: 100%; }
.pas-tasma { display: flex; width: max-content; height: 100%; animation: tasma 48s linear infinite; }
.pas-grupa { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.pas-logo { display: flex; align-items: center; height: 68px; }
.pas-logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.pas-sponsorow:hover .pas-tasma { animation-play-state: paused; }
@keyframes tasma { to { transform: translateX(-50%); } }

.logo-tekst {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: .9rem; line-height: 1.15; color: var(--atrament);
  padding: 4px 8px; min-height: 36px;
}

/* ---------------------------------------------------------- scena */
.scena {
  position: relative;
  min-height: min(86vh, 720px);
  padding: 56px 20px 210px;
  display: flex; align-items: flex-start; justify-content: center;
  color: #fff4d6;
  text-align: center;
  background: linear-gradient(to bottom, var(--noc-gl) 0 70%, var(--snieg) 70%);
}
.scena-tlo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scena-tresc { position: relative; z-index: 2; max-width: 820px; }

.edycja {
  margin: 0 0 10px;
  font-size: 1.05rem; color: var(--szron);
}
.edycja-nr {
  font-family: var(--tytul); font-size: 2.2rem; font-weight: 400; color: var(--zloto);
  margin-right: 4px; vertical-align: -4px;
}
.scena h1 {
  margin: 0;
  font-family: var(--tytul);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(255, 228, 160, .35), 0 2px 0 rgba(10, 20, 51, .5);
}
.wstep {
  max-width: 34em; margin: 20px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55;
  color: #e9eefb; text-wrap: pretty;
}
.warunki {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.warunki li {
  padding: 7px 16px; border-radius: 999px;
  background: rgba(10, 20, 51, .55);
  border: 1px solid rgba(242, 181, 68, .55);
  font-size: .98rem; color: var(--zloto-jasne);
  backdrop-filter: blur(4px);
}

/* animacje sceny */
.zorza { animation: zorza 26s ease-in-out infinite alternate; transform-origin: center; }
@keyframes zorza { from { opacity: .75; transform: translateX(-30px) scaleY(.9); } to { opacity: 1; transform: translateX(30px) scaleY(1.08); } }
.migocze circle { animation: migotanie 3.2s ease-in-out infinite; }
.migocze circle:nth-child(2) { animation-delay: 1.1s; }
.migocze circle:nth-child(3) { animation-delay: 2.1s; }
@keyframes migotanie { 50% { opacity: .2; } }
.okno { animation: okno 7s ease-in-out infinite; }
.okno.o1 { animation-delay: 1.5s; } .okno.o2 { animation-delay: 3.4s; } .okno.o3 { animation-delay: 5.1s; }
@keyframes okno { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .35; } 56% { opacity: 1; } }
.lampki circle { animation: lampki 1.8s steps(2) infinite; }
.lampki circle:nth-child(odd) { animation-delay: .9s; }
@keyframes lampki { 50% { opacity: .35; } }

.sanie { transform: translate(-260px, 120px); }
.sanie.leci { animation: sanie 9s cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes sanie {
  0%   { transform: translate(-260px, 250px) rotate(-7deg); }
  45%  { transform: translate(760px, 150px) rotate(-4deg); }
  70%  { transform: translate(1150px, 160px) rotate(1deg); }
  100% { transform: translate(1720px, 60px) rotate(-6deg); }
}
.rudolf { animation: rudolf 1.2s ease-in-out infinite; }
@keyframes rudolf { 50% { opacity: .4; } }

/* ------------------------------------------------------------ list */
.glowna { position: relative; z-index: 2; padding: 0 14px; margin-top: -170px; }

.list {
  max-width: 780px; margin: 0 auto;
  padding: 11px;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--czerwien) 0 18px, var(--papier) 18px 30px, #2f5ea8 30px 48px, var(--papier) 48px 60px);
  box-shadow: 0 30px 60px -20px rgba(10, 20, 51, .55), 0 2px 0 rgba(10, 20, 51, .15);
  border: 0;
}
.list-papier {
  position: relative;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(242, 181, 68, .07), transparent 60%),
    var(--papier);
  border-radius: 3px;
  padding: 34px clamp(18px, 5vw, 56px) 36px;
}
.list fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.reka { font-family: var(--reka); font-weight: 600; color: var(--atrament); }
.duza { font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1.1; }
legend.duza { padding: 0; margin: 0 0 18px; max-width: 78%; }
.krok-rodzic legend.duza { font-family: var(--tytul); font-weight: 400; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; color: var(--atrament); }

.stempel {
  position: absolute; top: 14px; right: 16px;
  width: 118px; height: 118px;
  color: rgba(179, 19, 43, .62);
  transform: rotate(12deg);
  pointer-events: none;
  font-family: var(--font);
}
.stempel svg { width: 100%; height: 100%; }

/* girlanda postępu */
.girlanda {
  list-style: none; margin: 0 0 30px; padding: 6px 0 0;
  display: flex; justify-content: space-between; max-width: 76%;
  position: relative;
}
.girlanda::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 2px; height: 16px;
  border-bottom: 2px solid #8d93ad; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.zarowka { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.zarowka::before {
  content: ""; width: 16px; height: 22px; margin-top: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #c7cbe0; border-top: 4px solid #6b7190;
  transition: background .4s, box-shadow .4s;
}
.zarowka span { font-size: .8rem; color: var(--tekst-cichy); white-space: nowrap; }
.zarowka.zapalona::before { background: var(--zloto); box-shadow: 0 0 14px 3px rgba(242, 181, 68, .65); }
.zarowka.biezaca::before { background: var(--czerwien); box-shadow: 0 0 16px 4px rgba(229, 56, 79, .55); animation: biezaca 1.6s ease-in-out infinite; }
.zarowka.biezaca span { color: var(--atrament); font-weight: 650; }
@keyframes biezaca { 50% { box-shadow: 0 0 6px 1px rgba(229, 56, 79, .3); } }

/* zdania listu */
.zdanie { margin: 0 0 22px; }
.zdanie > label, .etykieta, .zdanie-numery label, .szukajka label, .inna label {
  display: block; font-size: 1.05rem; color: var(--tekst); margin-bottom: 2px;
}
.zdanie label small { color: var(--tekst-cichy); }

.pole {
  display: block; width: 100%;
  font: inherit; font-size: 1.1rem;
  color: var(--atrament);
  background: transparent;
  border: 0; border-bottom: 2px solid var(--linia);
  border-radius: 0;
  padding: 6px 2px 4px;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.pole.reka { font-family: var(--reka); font-size: 2rem; font-weight: 600; line-height: 1.2; padding-top: 2px; }
.pole::placeholder { color: #b9ad90; opacity: 1; }
.pole:focus { outline: none; border-bottom-color: var(--zloto); background: rgba(242, 181, 68, .1); }
.pole[aria-invalid="true"] { border-bottom-color: var(--czerwien); background: rgba(179, 19, 43, .05); }
.pole-kod { max-width: 190px; letter-spacing: .06em; }

.blad { margin: 6px 0 0; color: var(--czerwien); font-size: .98rem; font-weight: 600; min-height: 0; }
.blad:empty { display: none; }
.podpowiedz { margin: 8px 0 0; font-size: .95rem; color: var(--tekst-cichy); }

/* kafle wieku */
.wiek-kafle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; max-width: 460px; }
.kafel { position: relative; cursor: pointer; }
.kafel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kafel span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 50%;
  font-family: var(--reka); font-size: 2rem; font-weight: 700; line-height: .9;
  color: var(--atrament);
  background: #fff; border: 2px solid var(--linia);
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.kafel span small { font-family: var(--font); font-size: .6rem; font-weight: 600; letter-spacing: 0; margin-top: 3px; }
.kafel:hover span { transform: translateY(-2px); border-color: var(--zloto); }
.kafel input:checked + span {
  background: var(--atrament); color: var(--zloto-jasne); border-color: var(--zloto);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, .35);
  transform: scale(1.06);
}
.kafel input:focus-visible + span { outline: 3px solid var(--zloto); outline-offset: 3px; }

.wybor-duzy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }
.kafel-szeroki span { aspect-ratio: auto; border-radius: 16px; padding: 18px 10px; font-size: 2.1rem; }
.kto-kafle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kafel-kto span { aspect-ratio: auto; border-radius: 999px; padding: 8px 18px; font-size: 1.55rem; line-height: 1.1; }
.kto-inna { margin-top: 12px; max-width: 420px; }
.kto-inna label { display: block; font-size: 1.05rem; margin-bottom: 2px; }

/* kod i miejscowości */
.kod-info { margin: 8px 0 0; font-size: .98rem; color: #1f6b54; font-weight: 600; }
.kod-info:empty { display: none; }
.link {
  display: inline-block; margin-top: 10px; padding: 4px 0;
  background: none; border: 0; font: inherit; font-size: .98rem;
  color: var(--atrament); text-decoration: underline; text-decoration-color: var(--zloto);
  text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer;
}
.szukajka { margin: -6px 0 22px; padding: 16px; border-radius: 12px; background: var(--papier-ciemny); }
.szukajka-wyniki { list-style: none; margin: 10px 0 0; padding: 0; max-height: 300px; overflow: auto; }
.szukajka-wyniki li + li { border-top: 1px dashed var(--linia); }
.szukajka-wyniki button {
  display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; padding: 10px 6px; font: inherit; color: var(--tekst); cursor: pointer; border-radius: 8px;
}
.szukajka-wyniki button:hover { background: rgba(242, 181, 68, .18); }
.szukajka-wyniki b { font-weight: 650; }
.szukajka-wyniki small { color: var(--tekst-cichy); white-space: nowrap; }
.szukajka-wyniki .info { padding: 10px 6px; font-size: .95rem; color: var(--tekst-cichy); }

.miejscowosci { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.miejsce { position: relative; }
.miejsce input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.miejsce span {
  display: block; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--linia);
  font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.miejsce span small { display: block; font-size: .72rem; color: var(--tekst-cichy); }
.miejsce input:checked + span { background: var(--atrament); color: #fff; border-color: var(--zloto); }
.miejsce input:checked + span small { color: var(--szron); }
.miejsce input:focus-visible + span { outline: 3px solid var(--zloto); outline-offset: 2px; }
.pole-filtr { margin: 4px 0 6px; font-size: 1rem; }
.inna { margin-top: 10px; }

.haczyk { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; font-size: 1rem; line-height: 1.45; }
.haczyk input {
  flex: none; width: 24px; height: 24px; margin: 1px 0 0;
  accent-color: var(--atrament); cursor: pointer;
}
.haczyk-zgoda { margin-top: 18px; padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--papier-ciemny); }
.haczyk-zgoda:has(input:checked) { border-color: #9fd3c1; background: #f2fbf7; }

.zdanie-numery { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.zdanie-numery .blad { grid-column: 1 / -1; }

/* rodzeństwo */
.rodzenstwo { margin-top: 18px; }
#rodzenstwo-lista { list-style: none; margin: 0 0 8px; padding: 0; }
.rodz-wiersz { display: grid; grid-template-columns: 1fr 110px 44px; gap: 12px; align-items: end; margin-bottom: 12px; }
.rodz-wiersz label { font-size: .9rem; color: var(--tekst-cichy); display: block; }
.rodz-usun {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--linia); background: #fff; color: var(--czerwien);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* zaproszenie */
.podsuwacze { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.podsuwacz {
  font: inherit; font-family: var(--reka); font-size: 1.3rem; font-weight: 600; line-height: 1.1;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--atrament); border: 2px dashed var(--linia);
}
.podsuwacz:hover { border-style: solid; border-color: var(--zloto); }
.kartka {
  border-radius: 10px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 41px, rgba(47, 94, 168, .22) 41px 42px),
    #fffdf7;
  border: 2px solid var(--papier-ciemny);
  padding: 4px 16px;
}
.kartka textarea {
  display: block; width: 100%; min-height: 300px; resize: vertical;
  border: 0; background: transparent; outline: none;
  font-size: 1.85rem; line-height: 42px; color: var(--atrament);
  padding: 4px 0 0;
}
.kartka:focus-within { border-color: var(--zloto); }
.kartka textarea::placeholder { color: #b9ad90; }
.licznik { text-align: right; font-size: .85rem; color: var(--tekst-cichy); margin: 6px 0 0; }

/* telefon */
.tel { display: flex; align-items: flex-end; gap: 10px; max-width: 320px; }
.tel-prefiks { padding-bottom: 8px; font-size: 1.2rem; color: var(--tekst-cichy); }
.tel .pole { font-size: 1.45rem; letter-spacing: .04em; }
.pole-email { font-size: 1.3rem; max-width: 460px; }
.literowka { margin: 8px 0 0; font-size: .98rem; color: var(--atrament); }
.literowka button { font: inherit; font-weight: 700; color: var(--czerwien); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--zloto); text-underline-offset: 3px; cursor: pointer; }
.sukces-mail { font-size: .95rem; color: var(--tekst-cichy); }

.rodo { margin-top: 16px; font-size: .92rem; color: var(--tekst-cichy); }
.rodo summary { cursor: pointer; color: var(--atrament); font-weight: 600; }
.rodo p { margin: 8px 0 0; }

/* podgląd listu */
.podglad:empty { display: none; }
.podglad {
  margin-top: 28px; padding: 22px 22px 18px;
  border-radius: 6px; background: #fffdf7;
  border: 1px solid var(--papier-ciemny);
  box-shadow: 0 10px 30px -18px rgba(10, 20, 51, .5);
  transform: rotate(-.6deg);
}
.podglad h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 650; color: var(--tekst-cichy); }
.podglad-tresc { font-family: var(--reka); font-size: 1.6rem; line-height: 1.3; color: var(--atrament); }
.podglad-tresc p { margin: 0 0 8px; }
.podglad-popraw { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: .92rem; }
.podglad-popraw button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--atrament); text-decoration: underline; text-decoration-color: var(--zloto); text-underline-offset: 3px; cursor: pointer; }

.komunikat {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 12px;
  background: #fde8eb; color: var(--czerwien-ciemna); font-weight: 600;
  border-left: 5px solid var(--czerwien);
}
.komunikat.dobry { background: #e7f6f0; color: #145a45; border-left-color: #2f9b79; }

.miodek { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* przyciski */
.nawigacja { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.nawigacja #dalej, .nawigacja #wyslij { margin-left: auto; }
.przycisk {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: inherit; font-weight: 650; font-size: 1.15rem; line-height: 1.2;
  color: #fff8ea; background: var(--czerwien);
  border: 0; border-radius: 999px;
  padding: 16px 32px; min-height: 56px;
  box-shadow: 0 6px 0 var(--czerwien-ciemna), 0 14px 24px -10px rgba(126, 13, 30, .6);
  cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.przycisk:hover { background: #c41a35; }
.przycisk:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--czerwien-ciemna), 0 6px 14px -8px rgba(126, 13, 30, .6); }
.przycisk[disabled] { cursor: not-allowed; }
.przycisk.czeka { opacity: .75; pointer-events: none; }
.przycisk-cichy {
  font: inherit; font-size: 1.05rem; font-weight: 600;
  background: transparent; color: var(--atrament);
  border: 2px solid var(--linia); border-radius: 999px;
  padding: 12px 22px; min-height: 50px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.przycisk-cichy:hover { border-color: var(--zloto); }
.pieczec {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--czerwien-ciemna); color: #fbe3e6;
  box-shadow: inset 0 0 0 3px #9b1427, 0 0 0 2px #fff8ea;
  font-size: .9rem; font-weight: 700;
}
.przycisk-wyslij { padding-left: 14px; font-size: 1.2rem; }

/* sukces */
.sukces { margin-top: 0; text-align: center; }
.sukces:focus { outline: none; }
.koperta { width: 170px; margin: 0 auto 8px; animation: koperta .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes koperta { from { transform: translateY(-40px) scale(.6) rotate(-8deg); opacity: 0; } }
.sukces h2 { margin: 4px 0 10px; font-family: var(--tytul); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 400; line-height: 1.2; color: var(--atrament); text-wrap: balance; }
.sukces p { max-width: 32em; margin-left: auto; margin-right: auto; }
.nawigacja-sukces { justify-content: center; }
.nawigacja-sukces #kolejny { margin-left: 0; }
.dzieki { margin-top: 34px; padding-top: 22px; border-top: 2px dashed var(--papier-ciemny); }
.dzieki p { margin: 0 0 14px; font-size: .95rem; color: var(--tekst-cichy); }
.dzieki-loga { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.dzieki-loga span { display: flex; align-items: center; justify-content: center; height: 62px; background: #fff; border-radius: 10px; padding: 6px; }
.dzieki-loga img { max-height: 46px; width: auto; object-fit: contain; }

.list-zamkniety { text-align: center; }
.list-zamkniety h2 { font-family: var(--tytul); color: var(--atrament); font-weight: 400; }

/* lecąca koperta */
.lecaca { position: fixed; z-index: 60; width: 120px; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(10, 20, 51, .45)); }

/* ------------------------------------------------------- sponsorzy */
.sponsorzy { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 90px 20px 40px; text-align: center; }
.sponsorzy h2 { margin: 0; font-family: var(--tytul); font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 400; line-height: 1.15; color: var(--atrament); text-wrap: balance; }
.sponsorzy-wstep { max-width: 34em; margin: 12px auto 34px; color: var(--tekst-cichy); }
.sponsorzy-siatka { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.sponsorzy-siatka li {
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 14px; background: #fff; border-radius: 14px;
  box-shadow: 0 1px 0 #d6e0ee, 0 12px 26px -18px rgba(14, 27, 61, .5);
}
.sponsorzy-siatka a { display: contents; }
.sponsorzy-siatka img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }

.inne-drogi { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; padding: 20px 20px 60px; text-align: center; }
.inne-drogi h2 { margin: 0 0 8px; font-family: var(--tytul); font-size: 1.45rem; font-weight: 400; color: var(--atrament); }
.inne-drogi p { margin: 0; color: var(--tekst-cichy); }

.stopka { position: relative; z-index: 2; background: var(--noc); color: var(--szron); text-align: center; padding: 36px 20px 44px; font-size: .95rem; }
.stopka a { color: var(--zloto-jasne); }
.stopka-loga { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 18px; }
.stopka-loga span { background: #fff; border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; }
.stopka-loga img { height: 54px; width: auto; }
.stopka p { margin: 0; }

/* ----------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  background: radial-gradient(80% 60% at 50% 30%, rgba(36, 57, 111, .9), rgba(6, 12, 30, .94));
  backdrop-filter: blur(6px);
  animation: modal-tlo .5s ease both;
}
@keyframes modal-tlo { from { opacity: 0; } }
.modal-okno {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100dvh - 32px); overflow: auto;
  padding: 50px clamp(16px, 4vw, 44px) 30px;
  border-radius: 22px;
  background: var(--noc);
  color: #fff4d6; text-align: center;
  box-shadow: 0 0 0 1px rgba(242, 181, 68, .5), 0 40px 100px -20px rgba(0, 0, 0, .7);
  animation: modal-okno .7s cubic-bezier(.2, 1.2, .4, 1) both .1s;
}
@keyframes modal-okno { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal-drut { position: absolute; top: 12px; left: 0; width: 100%; height: 40px; }
.modal-reka { margin: 0; font-size: clamp(2rem, 5.5vw, 2.8rem); line-height: 1.05; color: var(--zloto-jasne); }
.modal h2 {
  margin: 8px auto 28px; max-width: 22em;
  font-family: var(--tytul); font-size: clamp(1.2rem, 2.9vw, 1.55rem); font-weight: 400; line-height: 1.35; color: var(--szron);
  text-wrap: balance;
}
.modal-loga {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px;
}
.modal-loga li { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 calc((100% - 56px) / 5); }
.bombka {
  width: 16px; height: 20px; margin-bottom: -4px; position: relative; z-index: 1;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #3a4c7d; border-top: 4px solid #6b7190;
  animation: bombka .5s ease both;
  animation-delay: calc(.35s + var(--i) * .2s);
}
@keyframes bombka { to { background: var(--zloto); box-shadow: 0 0 18px 5px rgba(242, 181, 68, .7); } }
.modal-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100px; padding: 12px;
  border-radius: 14px; background: #fff;
  opacity: .12; filter: grayscale(1) brightness(.6); transform: scale(.94);
  animation: logo-zapal .6s ease both;
  animation-delay: calc(.35s + var(--i) * .2s);
}
.modal-logo img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes logo-zapal {
  to { opacity: 1; filter: none; transform: none; box-shadow: 0 0 0 2px var(--zloto), 0 0 26px rgba(242, 181, 68, .45); }
}
.przycisk-modal { overflow: hidden; min-width: 280px; }
.przycisk-modal[disabled] { background: #5a2330; box-shadow: 0 6px 0 #3c1620; color: rgba(255, 248, 234, .75); }
.przycisk-pasek {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: var(--czerwien);
  animation: pasek var(--czas, 3.4s) linear both .35s;
}
@keyframes pasek { to { transform: scaleX(1); } }
.przycisk-tekst { position: relative; }

/* modal: list już dotarł */
.modal-maly .modal-okno { width: min(520px, 100%); padding: 34px clamp(18px, 4vw, 36px) 28px; }
.dubel-koperta { width: 140px; margin: 0 auto 6px; display: block; animation: koperta .8s cubic-bezier(.2, 1.4, .4, 1) both .15s; }
.dubel-tekst { margin: 6px auto 0; max-width: 26em; color: var(--szron); }
.dubel-podpis { margin: 4px 0 2px; font-size: 2.2rem; line-height: 1.1; color: #fff4d6; }
.dubel-akcje { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.przycisk-jasny { color: var(--szron); border-color: rgba(220, 232, 247, .35); }
.przycisk-jasny:hover { border-color: var(--zloto); }

/* muzyka */
.muzyka {
  position: fixed; z-index: 120;
  right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--noc); color: #fff4d6; border: 1px solid rgba(242, 181, 68, .55);
  box-shadow: 0 10px 30px -8px rgba(10, 20, 51, .6);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.muzyka:hover { border-color: var(--zloto); }
.muzyka-ikona { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; width: 18px; }
.muzyka-ikona i { width: 3px; background: var(--zloto); border-radius: 2px; height: 30%; }
.muzyka.gra .muzyka-ikona i { animation: slupek 1s ease-in-out infinite; }
.muzyka.gra .muzyka-ikona i:nth-child(2) { animation-delay: .25s; }
.muzyka.gra .muzyka-ikona i:nth-child(3) { animation-delay: .5s; }
.muzyka.gra .muzyka-ikona i:nth-child(4) { animation-delay: .1s; }
@keyframes slupek { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* --------------------------------------------------------- mobile */
@media (max-width: 640px) {
  .pas-sponsorow { height: 58px; }
  .pas-napis { font-size: 1.15rem; padding: 0 10px 0 12px; max-width: 118px; line-height: .95; }
  .pas-logo { height: 58px; }
  .pas-logo img { height: 32px; }
  .scena { padding: 34px 16px 300px; min-height: 0; }
  .warunki { gap: 8px; }
  .warunki li { font-size: .9rem; padding: 6px 14px; }
  .glowna { margin-top: -150px; padding: 0 8px; }
  .list { padding: 8px; }
  .list-papier { padding: 26px 18px 28px; }
  .stempel { width: 84px; height: 84px; top: 6px; right: 6px; }
  legend.duza { max-width: 72%; }
  .girlanda { max-width: 72%; margin-bottom: 24px; }
  .zarowka span { display: none; }
  .zarowka.biezaca span { display: block; position: absolute; top: 40px; font-size: .78rem; }
  .girlanda { margin-bottom: 40px; }
  .wiek-kafle { gap: 8px; }
  .kafel span { font-size: 1.7rem; }
  .rodz-wiersz { grid-template-columns: 1fr 80px 44px; gap: 8px; }
  .nawigacja { flex-direction: column-reverse; align-items: stretch; }
  .nawigacja #dalej, .nawigacja #wyslij { margin-left: 0; width: 100%; }
  .nawigacja .przycisk-cichy { justify-content: center; }
  .nawigacja-sukces { flex-direction: column; }
  .modal { padding: 10px; }
  .modal-okno { padding: 44px 14px 22px; }
  .modal-loga { gap: 16px 8px; margin-bottom: 22px; }
  .modal-loga li { flex-basis: calc((100% - 16px) / 3); }
  .modal-logo { height: 70px; padding: 8px; border-radius: 10px; }
  .modal-logo img { max-height: 52px; }
  .przycisk-modal { min-width: 0; width: 100%; }
  .dubel-akcje .przycisk { width: 100%; }
  .muzyka { padding: 9px 12px; }
  .kafel-kto span { font-size: 1.4rem; padding: 7px 14px; }
  .muzyka-tekst { display: none; }
  .sponsorzy-siatka { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sponsorzy-siatka li { height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .pas-tasma { animation: none; flex-wrap: wrap; }
  .pas-okno { overflow-x: auto; }
  .sanie { display: none; }
}
