/* Poczta do Świętego Mikołaja: noc polarna, zorza, papier listowy i lak. */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: 'Fraunces'; font-style: italic; src: url('/assets/fonts/fraunces-latin-ext-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; src: url('/assets/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; 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; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; 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; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; 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 {
  --night: #070d22;
  --night-2: #0d1838;
  --night-3: #16244d;
  --ink: #1d2340;
  --frost: #e9f1ff;
  --frost-dim: #a9b8d8;
  --aurora-1: #3ef0b0;
  --aurora-2: #38c6f4;
  --aurora-3: #9b7bff;
  --gold: #f4c76b;
  --gold-deep: #c8912d;
  --paper: #fbf3e2;
  --paper-line: #d9c9a6;
  --wax: #b3202e;
  --wax-deep: #7d1220;
  --pine: #0f3b35;
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--frost); background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ─── Niebo: gwiazdy, śnieg, zorza ─────────────────────────── */
#sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block;
  background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night-2) 40%, var(--night) 75%); }
.aurora { position: absolute; inset: 0 0 auto; height: 70vh; overflow: hidden; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.aurora i { position: absolute; width: 70vw; height: 40vh; border-radius: 50%; filter: blur(60px); opacity: .38; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -10vw; top: -8vh; background: var(--aurora-1); }
.aurora i:nth-child(2) { left: 30vw; top: -14vh; background: var(--aurora-2); animation-duration: 28s; animation-delay: -6s; opacity: .3; }
.aurora i:nth-child(3) { right: -20vw; top: -4vh; background: var(--aurora-3); animation-duration: 34s; animation-delay: -12s; opacity: .26; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scaleX(1) rotate(-6deg); }
  50% { transform: translate3d(8vw, 4vh, 0) scaleX(1.25) rotate(4deg); }
  100% { transform: translate3d(-6vw, 2vh, 0) scaleX(.9) rotate(-2deg); }
}

/* ─── Nawigacja ──────────────────────────────────────────── */
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--frost); text-decoration: none; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.logo svg { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a.link { color: var(--frost-dim); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.link:hover { color: var(--frost); background: rgba(255, 255, 255, .07); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { position: relative; min-height: min(860px, 100vh); display: flex; flex-direction: column; overflow: hidden; }
.hero-inner { position: relative; z-index: 3; flex: 1; display: grid; align-content: center; padding: 40px 0 220px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--aurora-1); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.05; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 13ch; margin-top: 18px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--frost-dim); max-width: 46ch; margin: 22px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  --bg: var(--gold); --fg: #2a1a00;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(244, 199, 107, .6); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(244, 199, 107, .75); }
.btn.ghost { --bg: rgba(255, 255, 255, .08); --fg: var(--frost); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.btn.ghost:hover { --bg: rgba(255, 255, 255, .14); }
.btn.wax { --bg: var(--wax); --fg: #fff; box-shadow: 0 10px 30px -10px rgba(179, 32, 46, .8); }
.btn svg { width: 20px; height: 20px; }

.landscape { position: absolute; inset: auto 0 0; z-index: 2; height: 300px; pointer-events: none; }
.landscape svg { width: 100%; height: 100%; display: block; }
.moon { position: absolute; z-index: 1; right: 9%; top: 15%; width: clamp(90px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf2, #f3e6c2 60%, #d9c79a); box-shadow: 0 0 80px 20px rgba(255, 240, 200, .18); }
/* Przelot sań (public/assets/sleigh.js) */
.sleigh-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sleigh-stage { position: absolute; z-index: 2; left: 0; top: 0; width: clamp(260px, 30vw, 440px); opacity: 0; pointer-events: none;
  transform-origin: 0 0; will-change: transform; transition: opacity .6s; }
.sleigh-stage.far { filter: blur(.4px) saturate(.8); }
.sleigh-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 214, 140, .28)) drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.sleigh-svg .deer { animation: deer-bob .9s ease-in-out infinite alternate; }
.sleigh-svg .leg { transform-box: fill-box; transform-origin: 50% 0; animation: gallop .42s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.sleigh-svg .leg.back { animation-direction: alternate-reverse; }
.sleigh-svg .wave { transform-box: view-box; transform-origin: 71px -1px; animation: wave .5s ease-in-out infinite alternate; }
.sleigh-svg .sleigh { animation: sleigh-sway 1.8s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 60px 40px; }
.sleigh-svg .nose-glow { animation: nose 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.sleigh-svg .lamp-glow { animation: lamp 1.6s steps(6) infinite alternate; transform-box: fill-box; transform-origin: center; }
.sleigh-svg .reins { animation: reins 1.8s ease-in-out infinite alternate; }
@keyframes deer-bob { from { transform: translateY(-2.2px); } to { transform: translateY(2.2px); } }
@keyframes gallop { from { transform: rotate(-38deg); } to { transform: rotate(34deg); } }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
@keyframes sleigh-sway { from { transform: rotate(-1.6deg) translateY(-1px); } to { transform: rotate(1.4deg) translateY(1.5px); } }
@keyframes nose { from { transform: scale(.75); opacity: .55; } to { transform: scale(1.35); opacity: 1; } }
@keyframes lamp { from { opacity: .65; } to { opacity: 1; } }
@keyframes reins { from { transform: translateY(-.6px); } to { transform: translateY(.8px); } }

/* ─── Sekcje ─────────────────────────────────────────────── */
section.block { position: relative; padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 14px; }
.section-head p { color: var(--frost-dim); font-size: 1.1rem; margin: 18px 0 0; }

/* Kroki jako znaczki pocztowe */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.stamp-card {
  position: relative; padding: 12px; background: var(--paper); color: var(--ink); border-radius: 2px;
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s;
}
/* ząbki znaczka: kółka w kolorze nocy na krawędziach */
.stamp-card::before {
  content: ''; position: absolute; inset: -6px; pointer-events: none;
  --dot: radial-gradient(circle, var(--night) 5px, transparent 5.5px);
  background: var(--dot) top left / 18px 12px repeat-x, var(--dot) bottom left / 18px 12px repeat-x,
    var(--dot) top left / 12px 18px repeat-y, var(--dot) top right / 12px 18px repeat-y;
}
.stamp-card:nth-child(1) { --tilt: -1.5deg; }
.stamp-card:nth-child(2) { --tilt: 1deg; }
.stamp-card:nth-child(3) { --tilt: -.5deg; }
.stamp-card:hover { transform: rotate(0) translateY(-6px); }
.stamp-card .inner { border: 2px solid var(--ink); padding: 26px 22px; height: 100%; }
.stamp-card .num { font-family: 'Fraunces', serif; font-size: 3.4rem; line-height: 1; color: var(--wax); font-style: italic; }
.stamp-card h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.stamp-card p { margin: 0; color: #4a4560; font-size: .98rem; }
.stamp-card .value { position: absolute; right: 30px; top: 30px; font-weight: 900; font-size: .78rem; letter-spacing: .12em; color: var(--ink); opacity: .55; }

/* ─── List ───────────────────────────────────────────────── */
.letter-zone { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.paper {
  position: relative; color: #2c2416; background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(196, 160, 96, .22), transparent 60%);
  border-radius: 6px; padding: 54px 56px 64px; box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transform: rotate(-.6deg);
}
.paper::before { content: ''; position: absolute; inset: 14px; border: 1.5px solid rgba(139, 105, 52, .35); border-radius: 4px; pointer-events: none; }
.paper .corner { position: absolute; width: 70px; height: 70px; opacity: .55; color: #8b6934; }
.paper .corner.tl { left: 20px; top: 20px; }
.paper .corner.br { right: 20px; bottom: 20px; transform: rotate(180deg); }
.paper .to-line { font-family: 'Fraunces', serif; font-style: italic; font-size: .95rem; color: #7a6440; text-align: right; margin-bottom: 18px; }
.paper .hello { font-family: 'Caveat', cursive; font-size: 2.6rem; line-height: 1; margin: 0 0 12px; color: #2c2416; }
.lined {
  width: 100%; border: 0; resize: vertical; background: transparent; color: #2c2416;
  font-family: 'Caveat', cursive; font-size: 1.75rem; line-height: 44px; padding: 0 4px;
  background-image: linear-gradient(transparent 43px, var(--paper-line) 43px, var(--paper-line) 44px);
  background-size: 100% 44px; background-attachment: local;
  min-height: calc(44px * 7);
}
.lined::placeholder { color: #b2a17f; }
.lined:focus { outline: none; }
.wishes { margin: 26px 0 0; }
.wishes h3 { font-family: 'Caveat', cursive; font-weight: 700; font-size: 2rem; margin-bottom: 6px; }
.wishes ol { margin: 0; padding-left: 34px; font-family: 'Caveat', cursive; font-size: 1.7rem; }
.wishes li { border-bottom: 1px solid var(--paper-line); }
.wishes input { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; padding: 4px 0; }
.wishes input:focus { outline: none; background: rgba(244, 199, 107, .14); }
.wishes input::placeholder { color: #b2a17f; }
.good { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 28px; font-family: 'Caveat', cursive; font-size: 1.6rem; }
.good label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.good input { appearance: none; width: 24px; height: 24px; border: 2px solid #5a4a30; border-radius: 6px; display: grid; place-content: center; margin: 0; cursor: pointer; }
.good input:checked::after { content: '✓'; font-family: 'Caveat', cursive; font-size: 1.6rem; line-height: 0; color: var(--wax); transform: translate(2px, -2px); }
.sign { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin-top: 30px; font-family: 'Caveat', cursive; font-size: 1.7rem; }
.sign input { width: 220px; border: 0; border-bottom: 1.5px solid #5a4a30; background: transparent; font: inherit; color: inherit; text-align: center; }
.sign input:focus { outline: none; }
.seal {
  position: absolute; right: -26px; bottom: -26px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0505c, var(--wax) 45%, var(--wax-deep));
  box-shadow: 0 10px 20px rgba(0, 0, 0, .35), inset 0 -6px 12px rgba(0, 0, 0, .3);
  display: grid; place-content: center; color: rgba(255, 220, 220, .85); transform: rotate(12deg);
}
.seal svg { width: 52px; height: 52px; }
.letter-side { position: sticky; top: 30px; display: grid; gap: 20px; }
.note-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px); }
.note-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.note-card p, .note-card li { color: var(--frost-dim); margin: 0; font-size: .98rem; }
.note-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.note-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.saved { font-size: .85rem; color: var(--aurora-1); min-height: 1.3em; margin-top: 10px; }
.address { font-family: 'Fraunces', serif; font-size: 1.1rem; line-height: 1.45; color: var(--frost); }

/* ─── Trasa i mapa ──────────────────────────────────────── */
.route-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.map-card { position: relative; background: linear-gradient(180deg, rgba(22, 36, 77, .75), rgba(7, 13, 34, .85)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.map { width: 100%; height: auto; display: block; }
.map .land { fill: #1a2a55; }
.map .sea { fill: #0a1430; }
.map .coast { fill: none; stroke: rgba(150, 190, 255, .25); stroke-width: 1; }
.map .sea-label { fill: rgba(120, 170, 255, .3); font: italic 9px 'Fraunces', serif; letter-spacing: .3em; }
.map .country { fill: rgba(200, 215, 255, .26); font: 700 9px 'Nunito', sans-serif; letter-spacing: .25em; }
.map .arctic { stroke: var(--aurora-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.map .arctic-label { fill: var(--aurora-2); font: italic 9px 'Fraunces', serif; opacity: .9; }
.map .route-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; }
.map .route-done { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(244, 199, 107, .6)); }
.map .stop circle { fill: var(--night); stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.map .stop.major circle { r: 5.5; }
.map .stop.passed circle { fill: var(--gold); stroke: var(--gold); }
.map .stop.current circle { fill: var(--aurora-1); stroke: #fff; }
.map .stop text { fill: var(--frost); font: 800 10px 'Nunito', sans-serif; letter-spacing: .08em; }
.map .stop .city { fill: var(--frost-dim); font: 600 8px 'Nunito', sans-serif; letter-spacing: 0; }
.map .pulse { fill: none; stroke: var(--aurora-1); stroke-width: 2; animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { r: 6; opacity: .9; } to { r: 22; opacity: 0; } }
.map .delay-ring { fill: none; stroke: #ff7a7a; stroke-width: 2; stroke-dasharray: 4 3; animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: var(--frost-dim); }
.chip b { color: var(--gold); letter-spacing: .1em; font-size: .78rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.fact { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.fact strong { display: block; font-family: 'Fraunces', serif; font-size: 1.6rem; white-space: nowrap; font-weight: 500; color: var(--gold); line-height: 1.1; }
.fact span { font-size: .88rem; color: var(--frost-dim); }

/* ─── Formularz śledzenia ──────────────────────────────── */
.track-form { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); max-width: 560px; backdrop-filter: blur(8px); }
.track-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--frost); font: 700 1.05rem ui-monospace, 'DejaVu Sans Mono', monospace; letter-spacing: .06em; padding: 0 18px; text-transform: uppercase; }
.track-form input::placeholder { color: rgba(233, 241, 255, .4); letter-spacing: .04em; font-family: 'Nunito', sans-serif; font-weight: 600; text-transform: none; }
.track-form input:focus { outline: none; }
.track-form .btn { padding: 13px 22px; }
.form-error { color: #ff9a9a; font-size: .9rem; margin: 10px 0 0 18px; min-height: 1.3em; }
.track-big { text-align: center; display: grid; justify-items: center; }
.track-big .track-form { width: 100%; margin-top: 34px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: 'Fraunces', serif; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--frost-dim); }

footer.site { padding: 60px 0 50px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--frost-dim); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }

/* ─── Strona śledzenia ─────────────────────────────────── */
.track-page { padding: 10px 0 90px; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin: 20px 0 34px; }
.track-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: none; margin: 10px 0 0; }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: rgba(13, 24, 56, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.parcel-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; }
.parcel-no { font: 800 1.35rem ui-monospace, 'DejaVu Sans Mono', monospace; letter-spacing: .06em; }
.parcel-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--frost-dim); font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; background: rgba(62, 240, 176, .14); color: var(--aurora-1); border: 1px solid rgba(62, 240, 176, .35); }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-pill.delayed { background: rgba(255, 122, 122, .12); color: #ff9a9a; border-color: rgba(255, 122, 122, .35); }
.status-pill.delivered { background: rgba(244, 199, 107, .15); color: var(--gold); border-color: rgba(244, 199, 107, .4); }
.status-pill.cancelled { background: rgba(255, 255, 255, .08); color: var(--frost-dim); border-color: rgba(255, 255, 255, .2); }
.now { margin: 26px 0 6px; }
.now h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.now p { color: var(--frost-dim); margin: 8px 0 0; }
.eta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.eta-row div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.eta-row span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--frost-dim); font-weight: 800; }
.eta-row strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.15rem; }
.eta-row .late strong { color: #ff9a9a; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.codes span { font: 800 .74rem 'Nunito', sans-serif; letter-spacing: .1em; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--frost-dim); }
.codes span.passed { background: rgba(244, 199, 107, .16); color: var(--gold); }
.codes span.current { background: var(--aurora-1); color: #03251a; }
.codes i { width: 10px; height: 1px; background: rgba(255, 255, 255, .25); }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 63px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), rgba(255, 255, 255, .1)); }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 26px; padding: 12px 0; animation: rise .5s both; }
.timeline li::before { content: ''; position: absolute; left: 58px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--night-2); border: 2px solid var(--gold); }
.timeline li:first-child::before { background: var(--aurora-1); border-color: #fff; box-shadow: 0 0 14px var(--aurora-1); }
.timeline li.delay::before { border-color: #ff7a7a; background: #ff7a7a; }
.timeline li.delivered::before { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.timeline .code { font: 900 .82rem 'Nunito', sans-serif; letter-spacing: .1em; color: var(--gold); padding-top: 12px; text-align: right; }
.timeline li.delay .code { color: #ff9a9a; }
.timeline .ev { padding-left: 4px; }
.timeline time { font-size: .82rem; color: var(--frost-dim); font-weight: 700; }
.timeline h3 { font-family: 'Nunito', sans-serif; font-size: 1.05rem; font-weight: 800; margin: 2px 0 2px; letter-spacing: 0; }
.timeline li.delay h3 { color: #ffb3b3; }
.timeline p { margin: 0; color: var(--frost-dim); font-size: .94rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.empty { text-align: center; padding: 60px 20px; }
.empty h2 { font-size: 2rem; margin-bottom: 12px; }
.empty p { color: var(--frost-dim); }
.refresh-note { font-size: .8rem; color: var(--frost-dim); margin-top: 18px; text-align: right; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }

/* ─── Responsywność ───────────────────────────────────── */
@media (max-width: 960px) {
  .steps, .facts { grid-template-columns: 1fr; }
  .letter-zone, .route-grid, .track-grid { grid-template-columns: 1fr; }
  .letter-side { position: static; }
  .nav ul { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .paper { padding: 40px 26px 54px; transform: none; }
  .seal { width: 80px; height: 80px; right: -8px; bottom: -22px; }
  .track-form { border-radius: 22px; flex-direction: column; padding: 12px; }
  .track-form input { padding: 10px 8px; text-align: center; }
  .eta-row { grid-template-columns: 1fr; }
  section.block { padding: 80px 0; }
  .hero-inner { padding-bottom: 170px; }
  .landscape { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sleigh-stage { display: none; }
}

/* ─── Druk listu ──────────────────────────────────────── */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #000; }
  body > *:not(main), main > *:not(#napisz), #sky, .aurora, .section-head, .letter-side { display: none !important; }
  #napisz { padding: 0; }
  .letter-zone { display: block; }
  .paper { box-shadow: none; transform: none; background: #fff; padding: 14mm; }
  .seal { right: 10mm; bottom: 10mm; }
  .lined { resize: none; overflow: visible; }
  .print-text { display: block !important; white-space: pre-wrap; font-family: 'Caveat', cursive; font-size: 1.75rem; line-height: 44px;
    background-image: linear-gradient(transparent 43px, var(--paper-line) 43px, var(--paper-line) 44px); background-size: 100% 44px; min-height: calc(44px * 7); }
  .print-text + .lined { display: none; }
}
.print-text { display: none; }
