/* 7BA – Szkoła (/szkola/*). Ładowane tylko na stronach działu. Kolory modułów: Licytacja RAL 5014, Rozgrywka złoty, Wist zielony. */
.sz {
  --sz-lic: #5B7F95; --sz-lic-d: #46667a;
  --sz-roz: #C59B27; --sz-roz-d: #7d5f0e;
  --sz-wist: #2E7D32; --sz-wist-d: #22602a;
  --sz-ink: var(--ink, #241b16);
  --sz-muted: var(--muted, #75665e);
  --sz-line: var(--line, #e6d7c7);
  --sz-panel: var(--panel, #fffdf8);
  --sz-paper: var(--paper, #f3ead8);
  --sz-radius: 18px;
  --sz-shadow: 0 10px 28px rgba(74, 47, 36, .08);
  --acc: var(--sz-lic); --acc-d: var(--sz-lic-d);
  color: var(--sz-ink);
  overflow-wrap: break-word;
}
.sz *, .sz *::before, .sz *::after { box-sizing: border-box; }
.sz-acc--lic { --acc: var(--sz-lic); --acc-d: var(--sz-lic-d); }
.sz-acc--roz { --acc: var(--sz-roz); --acc-d: var(--sz-roz-d); }
.sz-acc--wist { --acc: var(--sz-wist); --acc-d: var(--sz-wist-d); }
.sz-acc--lic-roz { --acc: var(--sz-lic); --acc-d: var(--sz-lic-d); --acc-bar: linear-gradient(90deg, var(--sz-lic) 50%, var(--sz-roz) 50%); }
.sz-acc--mix { --acc: var(--sz-lic); --acc-d: var(--sz-lic-d); --acc-bar: linear-gradient(90deg, var(--sz-lic) 33.3%, var(--sz-roz) 33.3% 66.6%, var(--sz-wist) 66.6%); }

.sz h1, .sz h2, .sz h3 { color: var(--sz-ink); line-height: 1.15; margin: 0; }
.sz p { margin: 0; }
.sz a { text-underline-offset: 3px; }
.sz ul, .sz ol { margin: 0; padding: 0; }

/* ---------- Teksty pomocnicze ---------- */
.sz-eyebrow, .sz-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-d);
}
.sz-label { margin-bottom: 8px; }
.sz-lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.6; color: var(--sz-muted); max-width: 62ch; }
.sz .sz-back { margin: 0 0 18px; font-size: .95rem; }
.sz-back a { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; text-decoration: none; color: var(--sz-lic-d); padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--sz-line); background: var(--sz-panel); transition: background .2s, border-color .2s; }
.sz-back a:hover, .sz-back a:focus-visible { background: #fff; border-color: var(--sz-lic); }

/* ---------- Przyciski ---------- */
.sz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sz-btn span[aria-hidden] { transition: transform .18s ease; }
.sz-btn:hover span[aria-hidden], .sz-btn:focus-visible span[aria-hidden] { transform: translateX(3px); }
.sz-btn--primary { background: var(--sz-lic-d); color: #fffaf0; box-shadow: 0 6px 16px rgba(70, 102, 122, .28); }
.sz-btn--primary:hover, .sz-btn--primary:focus-visible { background: #3a5868; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(70, 102, 122, .34); }
.sz-btn--ghost { background: transparent; color: var(--sz-lic-d); border-color: color-mix(in srgb, var(--sz-lic) 55%, transparent); }
.sz-btn--ghost:hover, .sz-btn--ghost:focus-visible { background: #fff; border-color: var(--sz-lic); transform: translateY(-2px); }
.sz-btn:active { transform: translateY(0) scale(.98); }
.sz-btn:focus-visible, .sz-tab:focus-visible, .sz-legend__btn:focus-visible, .sz-back a:focus-visible { outline: 3px solid var(--sz-roz); outline-offset: 3px; }

/* ---------- Hero ---------- */
.sz-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.sz-hero--sub { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.sz-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin: 10px 0 16px; letter-spacing: -.01em; }
.sz-hero__stage { position: relative; }
.sz-art, .sz-art svg { display: block; width: 100%; height: auto; }
.sz-hero__art svg { filter: drop-shadow(0 18px 30px rgba(47, 65, 54, .22)); }
.sz-hero__stage--sub { max-width: 520px; justify-self: center; width: 100%; }

.sz-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.sz-legend__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--sz-line); background: var(--sz-panel); color: var(--sz-ink); font: inherit; font-weight: 800; font-size: .92rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.sz-legend__btn .sz-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.sz-legend__btn--lic { --c: var(--sz-lic); }
.sz-legend__btn--roz { --c: var(--sz-roz); }
.sz-legend__btn--wist { --c: var(--sz-wist); }
.sz-legend__btn:hover, .sz-legend__btn[aria-pressed="true"] { border-color: var(--c); background: #fff; transform: translateY(-1px); }
.sz-legend__btn[aria-pressed="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }

/* Warstwy stołu w hero: wybrany moduł wyraźny, pozostałe przygaszone. */
.sz-hero__stage .lyr { transition: opacity .45s ease, filter .45s ease; }
.sz-hero__stage[data-focus="lic"] .lyr:not(.lyr-lic),
.sz-hero__stage[data-focus="roz"] .lyr:not(.lyr-roz),
.sz-hero__stage[data-focus="wist"] .lyr:not(.lyr-wist):not(.lyr-def) { opacity: .28; }
.sz-hero__stage[data-focus="lic"] .lyr-lic { filter: drop-shadow(0 0 10px rgba(91, 127, 149, .9)); }
.sz-hero__stage[data-focus="roz"] .sz-ring { stroke-width: 5; }
.sz-hero__stage[data-focus="wist"] .sz-ring--wist { stroke-width: 5; }

/* ---------- Sekcje ---------- */
.sz-section { margin: 0 0 clamp(48px, 7vw, 84px); }
.sz-section__head { margin-bottom: 22px; max-width: 760px; }
.sz-section__head h2, .sz-signup__intro h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-top: 6px; }

/* ---------- Furtka 3 światów ---------- */
.sz-portals { display: flex; gap: 18px; align-items: stretch; }
.sz-portal {
  --acc: var(--sz-lic); --acc2: var(--sz-roz);
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--sz-panel); border: 2px solid var(--sz-line); border-radius: 28px 28px var(--sz-radius) var(--sz-radius);
  box-shadow: var(--sz-shadow);
  transition: flex-grow .45s cubic-bezier(.2, .7, .2, 1), transform .35s ease, border-color .3s ease, box-shadow .35s ease;
}
.sz-portal--pary { --acc: var(--sz-roz); --acc2: var(--sz-lic); }
.sz-portal--trenerzy { --acc: var(--sz-wist); --acc2: var(--sz-wist); }
.sz-portal::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--acc) 60%, var(--acc2)); z-index: 1; }
.sz-portal__scene { padding: 16px 16px 0; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 12%, #fff), transparent); }
.sz-portal__scene svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.sz-portal__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; flex: 1; }
.sz-portal .sz-label { color: color-mix(in srgb, var(--acc) 70%, #1d140f); margin: 0; }
.sz-portal h3 { font-size: 1.28rem; }
.sz-portal p { color: var(--sz-muted); line-height: 1.55; }
.sz-ticks { list-style: none; display: grid; gap: 8px; }
.sz-ticks li { position: relative; padding-left: 28px; line-height: 1.45; font-size: .96rem; }
.sz-ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sz-btn--portal { margin-top: auto; align-self: flex-start; max-width: 100%; border-radius: 18px; text-align: left; background: color-mix(in srgb, var(--acc) 82%, #1d140f); color: #fff; }
.sz-portal--pary .sz-btn--portal { background: var(--sz-roz-d); }
.sz-btn--portal:hover, .sz-btn--portal:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--acc) 40%, transparent); }

@media (min-width: 981px) {
  .sz-portal:hover, .sz-portal:focus-within { flex-grow: 1.45; transform: translateY(-8px); border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent), 0 24px 46px rgba(46, 36, 30, .16); }
  .sz-portals:hover .sz-portal:not(:hover):not(:focus-within) { opacity: .88; }
}

/* ---------- Pasek zaufania ---------- */
.sz-trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sz-trust__item { position: relative; display: grid; gap: 6px; padding: 22px 18px 18px; background: var(--sz-panel); border: 1px solid var(--sz-line); border-radius: var(--sz-radius); box-shadow: var(--sz-shadow); overflow: hidden; }
.sz-trust__item::before, .sz-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--acc-bar, var(--acc)); }
.sz-trust__num { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; font-weight: 800; color: var(--acc-d); font-family: Georgia, serif; }
.sz-trust__item span { color: var(--sz-muted); line-height: 1.45; font-size: .95rem; }
.sz-trust__item b { color: var(--sz-ink); }

/* ---------- Karty ---------- */
.sz-cards { display: grid; gap: 16px; }
.sz-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sz-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sz-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; overflow: hidden;
  background: var(--sz-panel); border: 1px solid var(--sz-line); border-radius: var(--sz-radius); box-shadow: var(--sz-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sz-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 55%, var(--sz-line)); box-shadow: 0 18px 36px rgba(46, 36, 30, .12); }
.sz-card h3 { font-size: 1.15rem; }
.sz-card p { line-height: 1.6; color: var(--sz-muted); }
.sz-card__sub { font-size: .88rem; font-weight: 700; color: var(--acc-d) !important; margin-top: -4px !important; }
.sz-card--num { padding-top: 22px; }
.sz-card__num { font-family: Georgia, serif; font-weight: 800; font-size: 1.6rem; color: var(--acc); line-height: 1; }
.sz-cards + .sz-form-wrap { margin-top: 28px; }

/* ---------- Kroki (oś czasu) ---------- */
.sz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; position: relative; }
.sz-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sz-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 3px; background: linear-gradient(90deg, var(--sz-lic), var(--sz-roz), var(--sz-wist)); border-radius: 2px; opacity: .55; }
.sz-step { position: relative; display: grid; gap: 8px; align-content: start; }
.sz-step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sz-lic); font-weight: 800; font-size: 1.2rem; color: var(--sz-lic-d); box-shadow: 0 4px 10px rgba(46, 36, 30, .1);
}
.sz-step:nth-child(2) .sz-step__num { border-color: var(--sz-roz); color: var(--sz-roz-d); }
.sz-step:nth-child(3) .sz-step__num { border-color: var(--sz-wist); color: var(--sz-wist-d); }
.sz-step:nth-child(4) .sz-step__num { border-color: var(--sz-lic); }
.sz-step h3 { font-size: 1.06rem; margin-top: 6px; }
.sz-step p { color: var(--sz-muted); line-height: 1.55; font-size: .96rem; }

/* ---------- Zakładki (Dla uczniów) ---------- */
.sz-tabs { --acc: var(--sz-lic); --acc-d: var(--sz-lic-d); }
.sz-tabs[data-mod="roz"] { --acc: var(--sz-roz); --acc-d: var(--sz-roz-d); }
.sz-tabs[data-mod="wist"] { --acc: var(--sz-wist); --acc-d: var(--sz-wist-d); }
.sz-tabs__list { display: none; }
.sz-js .sz-tabs__list { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--sz-panel); border: 1px solid var(--sz-line); margin-bottom: 18px; box-shadow: var(--sz-shadow); }
.sz-tab {
  --c: var(--sz-lic); min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 800; color: var(--sz-muted); transition: background .25s, color .25s, box-shadow .25s;
}
.sz-tab--roz { --c: var(--sz-roz); }
.sz-tab--wist { --c: var(--sz-wist); }
.sz-tab:hover { color: var(--sz-ink); background: color-mix(in srgb, var(--c) 12%, #fff); }
.sz-tab[aria-selected="true"] { background: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.sz-tab--roz[aria-selected="true"] { color: #241b16; }
.sz-tabs__panels { display: grid; gap: 22px; }
.sz-tabpanel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(18px, 3vw, 30px); background: var(--sz-panel); border: 2px solid color-mix(in srgb, var(--acc) 45%, var(--sz-line)); border-radius: 24px; box-shadow: var(--sz-shadow);
}
.sz-tabpanel__scene svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.sz-tabpanel__text { display: grid; gap: 12px; }
.sz-tabpanel__text .sz-label { margin: 0; }
.sz-tabpanel__text h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.sz-tabpanel__text p { line-height: 1.6; color: var(--sz-muted); }
.sz-benefit { padding: 12px 14px; border-left: 4px solid var(--acc); background: color-mix(in srgb, var(--acc) 9%, #fff); border-radius: 0 12px 12px 0; color: var(--sz-ink) !important; }
.sz-js .sz-tabpanel[hidden] { display: none; }
.sz-js .sz-tabpanel.is-entering { animation: szPanelIn .45s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Formularz ---------- */
.sz-signup { display: grid; gap: 22px; }
.sz-signup__intro { max-width: 760px; display: grid; gap: 10px; }
.sz-signup__intro p:not(.sz-eyebrow) { color: var(--sz-muted); line-height: 1.6; }
.sz-form-wrap { position: relative; padding: clamp(20px, 3.5vw, 34px); background: var(--sz-panel); border: 1px solid var(--sz-line); border-radius: 24px; box-shadow: var(--sz-shadow); overflow: hidden; scroll-margin-top: 110px; }
.sz-form-wrap::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--sz-lic) 33.3%, var(--sz-roz) 33.3% 66.6%, var(--sz-wist) 66.6%); }
.sz-form-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.sz-form-lead { color: var(--sz-muted); margin: 6px 0 14px !important; }
.sz-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sz-field { display: grid; gap: 6px; align-content: start; }
.sz-field--wide { grid-column: 1 / -1; }
.sz-field label { font-weight: 700; font-size: .95rem; }
.sz-req { color: #b3261e; }
.sz-field input[type="text"], .sz-field select, .sz-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #cdbfa9; background: #fff; color: var(--sz-ink);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.sz-field textarea { min-height: 110px; resize: vertical; }
.sz-field input:focus, .sz-field select:focus, .sz-field textarea:focus { outline: none; border-color: var(--sz-lic); box-shadow: 0 0 0 4px rgba(91, 127, 149, .2); }
.sz-field.has-error input, .sz-field.has-error select, .sz-field.has-error textarea { border-color: #b3261e; }
.sz-field-err { color: #b3261e; font-size: .86rem; min-height: 0; }
.sz-field-err:empty { display: none; }
.sz-consent { margin-top: 16px; }
.sz-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; line-height: 1.45; color: var(--sz-muted); }
.sz-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sz-lic-d); }
.sz-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.sz-form-note { color: var(--sz-muted); font-size: .88rem; }
.sz-form [disabled] { opacity: .6; cursor: progress; }
.sz-form-status:empty { display: none; }
.sz-ok, .sz-err { padding: 14px 16px; border-radius: 12px; font-weight: 700; margin: 6px 0 12px !important; }
.sz-ok { background: #e7f2e8; color: #1f5a25; border: 1px solid #a9cfae; }
.sz-err { background: #fff0ee; color: #8f1d1d; border: 1px solid #f2b8b5; }
.sz-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Animacje ---------- */
@keyframes szDeal { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes szPop { 0% { opacity: 0; transform: scale(.85); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes szFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes szPulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
@keyframes szPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes szWire { to { stroke-dashoffset: -18; } }
@keyframes szHot { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

@media (prefers-reduced-motion: no-preference) {
  /* Wejście sekcji przy przewijaniu (tylko gdy działa JS). */
  .sz-js .sz-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .sz-js .sz-reveal.is-visible { opacity: 1; transform: none; }
  .sz-portals .sz-reveal:nth-child(2), .sz-cards .sz-reveal:nth-child(2), .sz-steps .sz-reveal:nth-child(2), .sz-trust__list .sz-reveal:nth-child(2) { transition-delay: .08s; }
  .sz-portals .sz-reveal:nth-child(3), .sz-cards .sz-reveal:nth-child(3), .sz-steps .sz-reveal:nth-child(3), .sz-trust__list .sz-reveal:nth-child(3) { transition-delay: .16s; }
  .sz-cards .sz-reveal:nth-child(4), .sz-steps .sz-reveal:nth-child(4), .sz-trust__list .sz-reveal:nth-child(4) { transition-delay: .24s; }

  /* Hero: karty rozdawane, potem licytacja i wist. */
  .sz-hero__art .sz-deal { transform-box: fill-box; transform-origin: center; animation: szDeal .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
  .sz-hero__art .sz-bid { animation: szFade .4s ease both; animation-delay: calc(1.1s + var(--i, 0) * 30ms); }
  .sz-hero__art .sz-trick, .sz-hero__art .sz-ring, .sz-hero__art .sz-lead, .sz-hero__art .sz-plan, .sz-hero__art .sz-bubble, .sz-hero__art .sz-note, .sz-hero__art .sz-votes { transform-box: fill-box; transform-origin: center; animation: szPop .5s ease both; animation-delay: 2.6s; }
  .sz-hero__art .sz-ring { animation: szPop .5s ease 2.8s both, szPulse 2.4s ease-in-out 3.4s infinite; }
  .sz-hero__art .sz-wire { animation: szWire 1.2s linear infinite; }

  /* Portale: scena „ożywa” po najechaniu lub zaznaczeniu klawiaturą (na telefonie — po przewinięciu do portalu). */
  .sz-portal .sz-bubble, .sz-portal .sz-note, .sz-portal .sz-votes, .sz-portal .sz-ring, .sz-portal .sz-bubble--coach { transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .4s ease; }
  .sz-portal .sz-bubble, .sz-portal .sz-note { opacity: .0; transform: scale(.9); }
  .sz-portal .sz-ring { opacity: .35; }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-bubble, .sz-portal:is(:hover, :focus-within, .is-live) .sz-note { opacity: 1; transform: none; }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-ring { opacity: 1; animation: szPulse 1.6s ease-in-out infinite; }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-wire { animation: szWire 1s linear infinite; }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-bidbtn--hot { animation: szHot 1.2s ease-in-out infinite; }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-vote--on { animation: szPop .45s ease both; animation-delay: calc(var(--i) * 140ms); }
  .sz-portal:is(:hover, :focus-within, .is-live) .sz-notemark { animation: szPulse 1.4s ease-in-out infinite; }

  /* Zakładki i obrazki podstron: obwódki pulsują. */
  .sz-tabpanel .sz-ring, .sz-hero__stage--sub .sz-ring { animation: szPulse 2s ease-in-out infinite; }
  .sz-tabpanel .sz-bidbtn--hot { animation: szHot 1.4s ease-in-out infinite; }
  .sz-js .sz-tabpanel.is-entering .sz-deal { transform-box: fill-box; transform-origin: center; animation: szDeal .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  .sz-js .sz-tabpanel.is-entering .sz-bid { animation: szFade .35s ease both; animation-delay: calc(.3s + var(--i, 0) * 25ms); }
}
@media (prefers-reduced-motion: reduce) {
  .sz *, .sz *::before, .sz *::after { animation: none !important; transition: none !important; }
}

/* ---------- Układ responsywny ---------- */
@media (max-width: 980px) {
  .sz-portals { flex-direction: column; }
  .sz-portal { border-radius: 24px; }
  .sz-portal__scene { padding: 14px 14px 0; }
  .sz-portal__scene svg { max-width: 520px; margin: 0 auto; }
  .sz-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-steps::before { display: none; }
  .sz-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sz-hero, .sz-hero--sub { grid-template-columns: minmax(0, 1fr); }
  .sz-hero__stage { max-width: 560px; justify-self: center; width: 100%; }
  .sz-tabpanel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sz-cards--2, .sz-cards--3, .sz-steps, .sz-steps--3, .sz-form-grid { grid-template-columns: minmax(0, 1fr); }
  .sz-trust__list { grid-template-columns: minmax(0, 1fr); }
  .sz-trust__item { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
  .sz-trust__num { min-width: 3.2ch; }
  .sz-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
  .sz-step__num { grid-row: span 2; }
  .sz-step h3 { margin-top: 0; align-self: center; }
  .sz-actions .sz-btn { flex: 1 1 100%; }
  .sz-js .sz-tabs__list { display: flex; border-radius: 18px; }
  .sz-tab { flex: 1 1 0; padding: 8px 10px; }
  .sz-portal__body { padding: 16px 18px 20px; }
  .sz-btn--portal { align-self: stretch; }
}
