/* ──────────────────────────────────────────────────────────────
   BANER SEZONOWY – ZIMA  (winter.css + winter.js + blok "WINTER BANNER" w index.html)
   Na koniec sezonu: usuń te dwa pliki i blok w index.html.
   Układ reaguje na szerokość samej karty (container queries), nie okna.
   ────────────────────────────────────────────────────────────── */
.wsn-wrap { width: 100%; margin: 0; padding: 0; }

.wsn {
  container-type: inline-size;
  container-name: wsn;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  color: var(--navy);
  background:
    radial-gradient(ellipse 55% 85% at 76% 42%, rgba(255,255,255,.9), transparent 72%),
    radial-gradient(circle at 6% 0%, rgba(255,255,255,.95), transparent 40%),
    linear-gradient(115deg, #f4f8ff 0%, #e1eafb 50%, #cbdcf8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(32,59,140,.08);
  isolation: isolate;
}

/* warstwy tła */
.wsn-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wsn-garland { position: absolute; left: 0; top: 0; width: 100%; height: 56px; pointer-events: none; z-index: 1; overflow: visible; }
.wsn-drift { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(46px, 6cqw, 96px); pointer-events: none; z-index: 1; }

.wsn-wire { fill: none; stroke: rgba(32,59,140,.35); stroke-width: 1.4; }
.wsn-bulb { animation: wsnTwinkle 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.wsn-bulb-glow { opacity: .35; filter: blur(3px); }
@keyframes wsnTwinkle { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.08); } }

/* układ */
.wsn-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .36fr) minmax(0, .64fr);
  gap: 1rem;
  align-items: center;
  padding: 3.4rem max(2rem, calc((100cqw - 1136px) / 2)) 2.2rem;
}

/* tekst */
.wsn-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.wsn-tag svg { flex: none; }
.wsn-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.4cqw, 2.85rem);
  font-weight: 600; line-height: 1.08; color: var(--navy); margin: 0 0 .85rem;
}
.wsn-title em { color: var(--gold); font-style: italic; font-weight: 500; }
.wsn-lead { font-size: 15px; line-height: 1.7; color: #3f4a63; margin: 0 0 1.4rem; max-width: 34em; }
.wsn-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.wsn-hint { margin: 1rem 0 0; font-size: 12.5px; color: #6c7894; display: flex; align-items: center; gap: .5rem; }
.wsn-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(208,162,57,.6); animation: wsnPulse 2s ease-out infinite; }
@keyframes wsnPulse { 0% { box-shadow: 0 0 0 0 rgba(208,162,57,.55); } 100% { box-shadow: 0 0 0 10px rgba(208,162,57,0); } }

.wsn-copy-body { min-height: 13.5rem; }
.wsn-default[hidden], .wsn-detail[hidden] { display: none; }
.wsn-detail { animation: wsnIn .35s ease both; }
@keyframes wsnIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wsn-detail-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6c7894; margin-bottom: .35rem; }
.wsn-detail h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 2.8cqw, 2.3rem); font-weight: 600; color: var(--navy); line-height: 1.1; margin: 0 0 .6rem; }
.wsn-detail p { font-size: 15px; line-height: 1.7; color: #3f4a63; margin: 0 0 .9rem; max-width: 32em; }
.wsn-methods { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.3rem; padding: 0; }
.wsn-methods li { font-size: 12.5px; font-weight: 500; color: var(--navy); background: rgba(255,255,255,.8); border: 1px solid rgba(32,59,140,.18); border-radius: 999px; padding: .28rem .8rem; }
.wsn-back { background: none; border: 0; padding: .4rem .2rem; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wsn-back:hover { color: var(--gold); }

/* scena z produktami */
.wsn-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; --mx: 0; --my: 0; }
.wsn-item {
  position: absolute;
  left: var(--x); bottom: var(--b); height: var(--h);
  z-index: var(--z, 1);
  transform: translate3d(calc(var(--mx) * var(--d, 8) * 1px), calc(var(--my) * var(--d, 8) * .5px), 0);
  transition: transform .4s ease-out;
}
.wsn-btn {
  position: relative; display: block; height: 100%; padding: 0; margin: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s ease, filter .3s ease;
  transform-origin: 50% 90%;
}
.wsn-btn img {
  display: block; height: 100%; width: auto; pointer-events: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 10px 12px rgba(30,50,110,.16));
  transition: filter .3s ease;
}
.wsn-btn:hover, .wsn-btn:focus-visible { transform: translateY(-4%) scale(1.05); }
.wsn-btn:focus-visible { outline: none; }
.wsn-btn:focus-visible img { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 10px rgba(32,59,140,.6)); }
.wsn-btn.is-active { transform: translateY(-5%) scale(1.07); }
.wsn-btn.is-active img { filter: drop-shadow(0 0 14px rgba(208,162,57,.8)) drop-shadow(0 12px 14px rgba(30,50,110,.2)); }
.wsn[data-active] .wsn-btn:not(.is-active) { opacity: .45; filter: saturate(.55); }
.wsn[data-active] .wsn-btn:not(.is-active):hover { opacity: .85; }

.wsn-label {
  position: absolute; left: 50%; top: 0; z-index: 9;
  transform: translate(-50%, -100%) translateY(4px);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; line-height: 1;
  padding: .45rem .75rem; border-radius: 999px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 16px rgba(32,59,140,.25);
}
.wsn-btn:hover .wsn-label, .wsn-btn:focus-visible .wsn-label, .wsn-btn.is-active .wsn-label { opacity: 1; transform: translate(-50%, -100%) translateY(-4px); }

.wsn-dot {
  position: absolute; left: var(--dx, 56%); top: var(--dy, 38%); width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(32,59,140,.35); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wsn-dot::before, .wsn-dot::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy); border-radius: 1px; transform: translate(-50%, -50%); }
.wsn-dot::before { width: 8px; height: 2px; }
.wsn-dot::after  { width: 2px; height: 8px; }
.wsn-dot i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); animation: wsnRing 2.4s ease-out infinite; }
@keyframes wsnRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.wsn-btn:hover .wsn-dot, .wsn-btn:focus-visible .wsn-dot, .wsn[data-active] .wsn-dot { opacity: 0; transform: scale(.6); }

/* powitalny "ukłon" produktów (raz, po wejściu w kadr) */
.wsn.is-wave .wsn-btn { animation: wsnHop .75s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes wsnHop { 0%, 100% { transform: none; } 40% { transform: translateY(-6%) scale(1.03); } }

/* ── wąska karta: telefon / mały tablet ── */
@container wsn (max-width: 760px) {
  .wsn-grid { grid-template-columns: 1fr; gap: 1rem; padding: 3.2rem 0 1.4rem; }
  .wsn-copy { padding: 0 1.4rem; }
  .wsn-copy-body { min-height: 0; }
  .wsn-title { font-size: clamp(1.8rem, 8cqw, 2.4rem); }
  .wsn-stage {
    aspect-ratio: auto; height: 250px; display: flex; align-items: flex-end; gap: 0;
    overflow-x: auto; overflow-y: hidden; padding: 1.6rem 1.2rem 1.2rem; scroll-snap-type: x proximity;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .wsn-stage::-webkit-scrollbar { display: none; }
  .wsn-item { position: relative; left: auto; bottom: auto; height: var(--mh); flex: none; margin-left: -10px; scroll-snap-align: center; transform: none; }
  .wsn-item:first-child { margin-left: 0; }
  .wsn-label { display: none; }
  .wsn-hint { justify-content: center; }
}
@container wsn (max-width: 520px) {
  .wsn-actions .btn-primary, .wsn-actions .btn-secondary { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wsn-bulb, .wsn-dot i, .wsn-hint::before, .wsn-detail { animation: none; }
  .wsn.is-wave .wsn-btn { animation: none; }
  .wsn-btn, .wsn-item { transition: none; }
}

/* ── okienko z formularzem ── */
.wsn-lock { overflow: hidden; }
.wsn-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.wsn-modal[hidden] { display: none; }
.wsn-modal-backdrop { position: fixed; inset: 0; background: rgba(20,32,80,.55); backdrop-filter: blur(3px); animation: wsnFade .25s ease both; }
.wsn-modal-card { position: relative; width: 100%; max-width: 680px; margin: auto; background: #fff; border-radius: 18px; padding: 2rem 2rem 1.6rem; box-shadow: 0 30px 80px rgba(20,32,80,.35); animation: wsnPop .35s cubic-bezier(.34,1.3,.64,1) both; }
.wsn-modal-card h3 { margin-bottom: .6rem; }
.wsn-modal-sub { font-size: 14px; line-height: 1.6; color: #4a4a4a; margin: 0 0 1.4rem; }
.wsn-modal-sub a { color: var(--navy); }
.wsn-modal-x { position: absolute; right: .8rem; top: .6rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(32,59,140,.08); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; }
.wsn-modal-x:hover { background: rgba(32,59,140,.16); }
@keyframes wsnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wsnPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .wsn-modal-card { padding: 1.6rem 1.1rem 1.2rem; } }
