/* Neutralne szarości, czerń, biel + Pantone 282 C (#041E42) jako jedyny kolor. */
:root {
  --paper: #ffffff;
  --paper-2: #f2f2f1;
  --field: #ffffff;
  --ink: #111214;
  --muted: #5d6066;
  --rule: #cfd0d1;
  --accent: #041e42;
  --accent-hover: #0b2e5c;
  --accent-tint: #dfe5ee;
  --accent-ink: #ffffff;
  --ok: #041e42;
  --err: #111214;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Nagłówek katalogu */
.masthead { text-align: center; padding: clamp(48px, 9vw, 110px) 16px clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--ink); max-width: 1100px; margin: 0 auto; }
.kicker, .sale, .disclaimer { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.kicker { color: var(--muted); }
.masthead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 13vw, 148px); line-height: .9; letter-spacing: -.02em; margin: 22px 0 26px; }
.masthead h1 em { font-style: italic; color: var(--accent); }
.sale { color: var(--ink); }
.disclaimer { color: var(--muted); margin-top: 10px; letter-spacing: .08em; text-transform: none; font-size: 12px; }

/* Pasek ofert */
.ticker { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper-2); max-width: 1100px; margin: 0 auto; }
.ticker-track { display: inline-flex; gap: 48px; white-space: nowrap; padding: 12px 16px; font-family: var(--sans); font-size: 13px; animation: slide 40s linear infinite; }
.ticker-track b { font-weight: 700; color: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Katalog */
.catalog { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.loading { text-align: center; color: var(--muted); font-style: italic; padding: 64px 0; }
.lot {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--rule);
}
.lot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lot-no { color: var(--accent); font-weight: 700; }
.lot-est { color: var(--muted); }
.lot-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.01em; margin: 14px 0 18px; text-wrap: balance; }
.lot-desc { margin: 0 0 14px; max-width: 34em; }
.lot-fine { margin: 0; font-style: italic; font-size: 15px; color: var(--muted); max-width: 34em; }
.lot-state { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 4px; }
.count { display: block; margin-top: 4px; letter-spacing: .06em; text-transform: none; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.label { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--sans); font-size: 30px; font-weight: 400; font-variant-numeric: tabular-nums; }
.price.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { color: var(--accent); background: var(--accent-tint); } 100% { color: var(--ink); background: transparent; } }
.leader { font-style: italic; text-align: right; overflow-wrap: anywhere; }
.clock { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.clock.urgent { color: var(--accent); font-weight: 700; }

/* Formularz */
.bid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; align-items: end; }
.bid-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--field); border: 1px solid var(--muted); border-radius: 0;
  padding: 10px 12px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.4; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field.wide { grid-column: 1 / -1; }
.opt { text-transform: none; letter-spacing: .02em; color: var(--muted); font-size: 11px; }
.bid-form button {
  grid-column: 1 / -1; font-family: var(--sans); font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); border: 0; min-height: 52px; cursor: pointer; transition: background .2s;
}
.bid-form button:hover { background: var(--accent-hover); }
.bid-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bid-form button[disabled] { background: var(--muted); cursor: wait; }
.msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 15px; font-style: italic; }
.msg.err { color: var(--err); font-style: normal; font-weight: 600; }
.msg.err::before { content: "— "; }
.msg.ok { color: var(--ok); }

/* Sprzedane */
.sold { margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.sold[hidden] { display: none; }
.stamp {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 2px solid var(--accent); padding: 8px 14px; transform: rotate(-6deg);
}
.sold-line { font-style: italic; }

/* Regulamin */
.rules { max-width: 1100px; margin: 0 auto; padding: 56px 16px 80px; }
.rules h2 { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.rules ol { margin: 0; padding-left: 1.2em; max-width: 40em; }
.rules li { margin-bottom: 8px; }
.colophon { margin-top: 32px; color: var(--muted); font-style: italic; font-size: 15px; }

@media (max-width: 760px) {
  .lot { grid-template-columns: minmax(0, 1fr); }
  .lot-side { margin-top: 24px; }
}

/* ---------- Ludzik ---------- */
.lz { position: fixed; left: 0; bottom: 4px; width: 100px; height: 134px; z-index: 40; pointer-events: none; transition: opacity .35s; will-change: transform; }
.lz.away { opacity: 0; }
.lz-fig { width: 100%; height: 100%; filter: drop-shadow(0 0 1.5px var(--paper)) drop-shadow(0 0 1.5px var(--paper)) drop-shadow(0 0 1px var(--paper)); }
.lz-all { stroke: var(--accent); stroke-width: 3.2; }
.lz-glasses { stroke: #111214; stroke-width: 3.4; }
.lz-glasses rect { fill: rgba(255, 255, 255, .55); }
.lz-head circle { fill: var(--paper); }
.lz-mouth { opacity: 0; stroke-width: 2.6; }
.lz g, .lz path, .lz ellipse { transform-box: view-box; }
.lz-legL, .lz-legR { transform-origin: 60px 108px; }
.lz-armL, .lz-arm { transform-origin: 60px 72px; }
.lz-armR-wave { transform-origin: 86px 66px; }
.lz-head { transform-origin: 60px 62px; transition: transform .5s ease; }
.lz-body { transform-origin: 60px 146px; animation: lz-breath 3.2s ease-in-out infinite; }
.lz-arm { display: none; }
.lz-armR-hip { display: inline; }
.lz.is-think .lz-armR-hip, .lz.is-scratch .lz-armR-hip, .lz.is-wave .lz-armR-hip { display: none; }
.lz.is-think .lz-armR-chin, .lz.is-scratch .lz-armR-scratch, .lz.is-wave .lz-armR-wave { display: inline; }

.lz.is-walk .lz-legL { animation: lz-step .52s ease-in-out infinite; }
.lz.is-walk .lz-legR { animation: lz-step .52s ease-in-out infinite reverse; }
.lz.is-walk .lz-body { animation: lz-bob .26s ease-in-out infinite alternate; }
.lz.is-walk .lz-armL { animation: lz-swing .52s ease-in-out infinite; }
.lz.is-think .lz-head { transform: rotate(-9deg); }
.lz.is-think .lz-armR-chin { animation: lz-tap 1.1s ease-in-out infinite; }
.lz.is-scratch .lz-head { transform: rotate(7deg); }
.lz.is-scratch .lz-armR-scratch { animation: lz-scratch .18s linear infinite alternate; }
.lz.is-wave .lz-armR-wave { animation: lz-wave .35s ease-in-out infinite alternate; }
.lz.is-talk .lz-smile { animation: lz-talk-a .32s steps(1) infinite; }
.lz.is-talk .lz-mouth { animation: lz-talk-b .32s steps(1) infinite; }
.lz.is-talk .lz-head { animation: lz-nod .64s ease-in-out infinite; }

@keyframes lz-breath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }
@keyframes lz-step { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(-18deg); } }
@keyframes lz-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes lz-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@keyframes lz-tap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes lz-scratch { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
@keyframes lz-wave { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
@keyframes lz-talk-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes lz-talk-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes lz-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }

.lz-bubble {
  position: absolute; left: 0; bottom: calc(100% + 6px); width: max-content; max-width: min(240px, calc(100vw - 16px));
  background: var(--field); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 8px 12px; font-family: var(--sans); font-size: 14px; line-height: 1.35;
  opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s;
}
.lz-bubble.on { opacity: 1; translate: 0 0; }
.lz-bubble.thought { border-style: dashed; font-style: italic; color: var(--muted); }

@media (max-width: 760px) {
  .lz { width: 70px; height: 94px; }
  .lz-bubble { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lz *, .lz { animation: none !important; transition: none !important; }
}
