/* ==========================================================================
   Flotilo — design system
   Paleta z logo: #009FE3 (cyan), #B5E0F6 (jasny), #646363 / #4B4A4A (szarości)
   ========================================================================== */

:root {
  /* marka */
  --brand:        #009FE3;
  --brand-600:    #0089C6;
  --brand-700:    #0270A3;
  --brand-100:    #D6EEFB;
  --brand-50:     #EDF7FD;
  --brand-tint:   #B5E0F6;

  /* neutralne */
  --ink:          #14202B;
  --ink-2:        #3D4C59;
  --muted:        #64758400;   /* nieużywane wprost */
  --gray:         #647584;
  --gray-2:       #8A98A5;
  --line:         #E3E9EE;
  --line-2:       #EEF2F5;
  --surface:      #FFFFFF;
  --bg:           #F4F7F9;

  /* semantyczne */
  --danger:       #DC3226;
  --danger-bg:    #FDECEA;
  --warn:         #B7791F;
  --warn-bg:      #FEF6E7;
  --ok:           #0F8A5F;
  --ok-bg:        #E7F6F0;

  /* kształt / cień */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(20,32,43,.06), 0 1px 3px rgba(20,32,43,.05);
  --sh-2: 0 4px 12px rgba(20,32,43,.08), 0 2px 4px rgba(20,32,43,.04);
  --sh-3: 0 12px 32px rgba(20,32,43,.14), 0 4px 8px rgba(20,32,43,.06);

  /* wymiary */
  --wrap: 1360px;
  --hdr: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Przyciski
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gray-2); background: #fff; }
.btn--quiet { color: var(--ink-2); padding-inline: 12px; }
.btn--quiet:hover { background: var(--line-2); }
.btn--lg { height: 52px; padding-inline: 26px; font-size: 16px; border-radius: var(--r); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: #C7D2DC;
  font-size: 13px;
}
.topbar__in { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar a:hover { color: #fff; }
.topbar__sep { flex: 1; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--hdr); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { height: 30px; width: auto; }

.hdr__actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.iconbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 550; font-size: 14px;
}
.iconbtn:hover { background: var(--line-2); color: var(--ink); }
.iconbtn__badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.burger { display: none; }

/* ==========================================================================
   Wyszukiwarka
   ========================================================================== */
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 640px; }
.search__box {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-xl);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search__box:focus-within {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.search__box svg { flex: none; color: var(--gray); }
.search__input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font-size: 15px;
  color: var(--ink);   /* nie dziedziczy koloru z hero (biały na białym) */
}
.search__input::placeholder { color: var(--gray-2); }
.search__clear { flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--gray); display: none; place-items: center; }
.search__clear:hover { background: var(--line); color: var(--ink); }
.search.is-filled .search__clear { display: grid; }
.search__go { flex: none; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; }
.search__go:hover { background: var(--brand-600); }

/* podpowiedzi */
.ac {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  color: var(--ink);   /* nie dziedziczy białego tekstu z hero */
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3);
  overflow: hidden; display: none;
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
}
.ac.is-open { display: block; }
.ac__group + .ac__group { border-top: 1px solid var(--line-2); }
.ac__label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gray-2);
}
.ac__label button { font-size: 11.5px; font-weight: 600; color: var(--brand); text-transform: none; letter-spacing: 0; }
.ac__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 8px 14px; text-align: left;
}
.ac__item:hover, .ac__item.is-active { background: var(--brand-50); }
.ac__thumb {
  width: 46px; height: 36px; flex: none; border-radius: 6px;
  background: var(--line-2) center/cover no-repeat;
  display: grid; place-items: center; color: #B6C2CC;
}
.ac__ico {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--line-2); color: var(--gray);
  display: grid; place-items: center;
}
.ac__txt { min-width: 0; flex: 1; }
/* display:block — inaczej overflow/ellipsis nie działa na spanach i tekst nachodzi na cenę */
.ac__t { display: block; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac__t mark { background: none; color: var(--brand-700); font-weight: 700; }
.ac__s { display: block; font-size: 12.5px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac__price { flex: none; font-size: 13.5px; font-weight: 700; }
.ac__count { flex: none; font-size: 12.5px; color: var(--gray); }
.ac__empty { padding: 26px 16px; text-align: center; color: var(--gray); font-size: 14px; }

/* ==========================================================================
   Pasek kategorii + mega menu
   ========================================================================== */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.catbar__in { display: flex; align-items: center; gap: 2px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.catbar__in::-webkit-scrollbar { display: none; }
.catbar__item {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap;
}
.catbar__item:hover, .catbar__item.is-open { background: var(--brand-50); color: var(--brand-700); }
.catbar__item.is-current { color: var(--brand-700); font-weight: 650; }
.catbar__item em { font-style: normal; color: var(--gray-2); font-size: 12.5px; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  display: none; padding: 22px 0 26px;
}
.mega.is-open { display: block; }
.mega__grid { columns: 4; column-gap: 34px; }
.mega__col { break-inside: avoid; }
.mega__link {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 8px; border-radius: 6px; font-size: 14px;
}
.mega__link:hover { background: var(--brand-50); color: var(--brand-700); }
.mega__link em { font-style: normal; color: var(--gray-2); font-size: 12.5px; }
.mega__all { margin-top: 14px; font-weight: 650; color: var(--brand); font-size: 14px; }

/* ==========================================================================
   Karta aukcji
   ========================================================================== */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: #D4DDE4; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__img { transform: scale(1.04); }
.card__img.is-loading { opacity: 0; }
.card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #C3CDD6;
  background: linear-gradient(100deg, #EDF1F4 30%, #F7FAFB 50%, #EDF1F4 70%) 0 0/300% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }
.card__img[src] + .card__ph { display: none; }

.card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  background: rgba(255,255,255,.94); color: var(--ink);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
}
.flag--nomin { background: #16202B; color: #fff; }
.flag--new   { background: var(--brand); color: #fff; }
.flag--bids  { background: var(--ok); color: #fff; }

.card__fav {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink-2);
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
  transition: transform .12s, color .15s, background .15s;
}
.card__fav:hover { transform: scale(1.09); background: #fff; }
.card__fav.is-on { color: var(--danger); }
.card__fav.is-on svg { fill: currentColor; }

.card__time {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 10px; border-radius: 6px;
  background: rgba(20,32,43,.86); color: #fff;
  font-size: 12.5px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}
.card__time.is-soon { background: var(--danger); }
.card__time.is-ended { background: var(--gray); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
.card__eyebrow {
  font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray-2); margin-bottom: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card__title {
  font-size: 15px; font-weight: 650; line-height: 1.34; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.34em);
}
.card:hover .card__title { color: var(--brand-700); }
.card__loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.card__loc svg { flex: none; }
.card__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.card__pricelabel { font-size: 11.5px; color: var(--gray); margin-bottom: 1px; }
.card__price { font-size: 19px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__price small { font-size: 12.5px; font-weight: 600; color: var(--gray); margin-left: 4px; letter-spacing: 0; }
.card__bids { text-align: right; font-size: 12.5px; color: var(--gray); white-space: nowrap; }
.card__bids b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }

/* widok listy */
.grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.grid.is-list .card { flex-direction: row; }
.grid.is-list .card__media { width: 260px; flex: none; aspect-ratio: 4 / 3; }
.grid.is-list .card__body { padding: 16px 20px; }
.grid.is-list .card__title { font-size: 17px; -webkit-line-clamp: 2; min-height: 0; }
.grid.is-list .card__foot { border: 0; padding-top: 14px; }
.grid.is-list .card__price { font-size: 22px; }

/* szkielet ładowania */
.skel { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.skel__m { aspect-ratio: 4/3; background: linear-gradient(100deg,#EDF1F4 30%,#F7FAFB 50%,#EDF1F4 70%) 0 0/300% 100%; animation: shimmer 1.3s linear infinite; }
.skel__b { padding: 14px 15px 18px; }
.skel__l { height: 11px; border-radius: 5px; background: #EDF1F4; margin-bottom: 9px; }

/* ==========================================================================
   Layout listingu
   ========================================================================== */
.page { padding: 22px 0 60px; }
.layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs svg { color: var(--gray-2); }
.crumbs b { color: var(--ink-2); font-weight: 600; }

.side { position: sticky; top: calc(var(--hdr) + 12px); max-height: calc(100vh - var(--hdr) - 28px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.side::-webkit-scrollbar { width: 8px; }
.side::-webkit-scrollbar-thumb { background: #D9E1E7; border-radius: 4px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; }
.panel__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 15px; font-size: 13.5px; font-weight: 700;
  letter-spacing: .02em;
}
.panel__hd button { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.panel__bd { padding: 0 15px 15px; }

/* drzewo kategorii */
.tree__row { display: flex; align-items: center; gap: 2px; }
.tree__toggle {
  width: 22px; height: 30px; flex: none; display: grid; place-items: center;
  color: var(--gray-2); border-radius: 4px;
}
.tree__toggle:hover { color: var(--ink); background: var(--line-2); }
.tree__toggle svg { transition: transform .16s; }
.tree__row.is-open > .tree__toggle svg { transform: rotate(90deg); }
.tree__link {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px;
  padding: 6px 8px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2);
}
.tree__link:hover { background: var(--brand-50); color: var(--brand-700); }
.tree__link.is-active { background: var(--brand); color: #fff; font-weight: 650; }
.tree__link.is-active em { color: rgba(255,255,255,.8); }
.tree__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__link em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--gray-2); flex: none; }
.tree__kids { display: none; padding-left: 14px; border-left: 1px solid var(--line-2); margin-left: 11px; }
.tree__kids.is-open { display: block; }
.tree__row.is-leaf .tree__toggle { visibility: hidden; }

/* filtry */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field__lb { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.inp {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
select.inp { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23647584' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
.pair { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: 6px; }
.pair span { text-align: center; color: var(--gray-2); }

.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; cursor: pointer; }
.check em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--gray-2); }
.check:hover { color: var(--brand-700); }

/* pasek wyników */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 14px; margin-bottom: 16px;
}
.toolbar__count { font-size: 14px; color: var(--gray); }
.toolbar__count b { color: var(--ink); font-weight: 700; font-size: 15px; }
.toolbar__sep { flex: 1; }
.viewtoggle { display: flex; gap: 2px; padding: 2px; background: var(--bg); border-radius: var(--r-sm); }
.viewtoggle button { width: 34px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--gray); }
.viewtoggle button.is-on { background: #fff; color: var(--brand-700); box-shadow: var(--sh-1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 8px 0 12px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: 13px; font-weight: 600;
}
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-700); }
.chip button:hover { background: var(--brand-100); }
.chip--clear { background: none; border-color: var(--line); color: var(--ink-2); padding-inline: 12px; cursor: pointer; }
.chip--clear:hover { border-color: var(--gray-2); }

.empty { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty svg { color: #C3CDD6; margin-bottom: 14px; }
.empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--gray); margin: 0 0 18px; }

.morebar { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 0 10px; }
.morebar p { margin: 0; font-size: 13.5px; color: var(--gray); }

/* filtry mobilne */
.filterbar { display: none; gap: 10px; margin-bottom: 14px; }
.side__close { display: none; }

/* ==========================================================================
   Strona główna
   ========================================================================== */
/* bez overflow:hidden — przycinałoby listę podpowiedzi na krawędzi sekcji.
   Gradient ::after ma inset:0, więc i tak nie wychodzi poza hero. */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0B2434 0%, #123A52 45%, #0F5C82 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 84% 12%, rgba(0,159,227,.42), transparent 60%),
    radial-gradient(520px 300px at 8% 92%, rgba(181,224,246,.16), transparent 62%);
  pointer-events: none;
}
/* z-index 3 — podpowiedzi wyszukiwarki muszą nachodzić na panel statystyk (z-index 2) */
.hero__in { position: relative; z-index: 3; padding: 62px 0 66px; max-width: 780px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 47px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.hero h1 b { color: var(--brand-tint); font-weight: 750; }
.hero p { font-size: 17.5px; color: #BBD0DE; margin: 0 0 28px; max-width: 620px; }
.hero__search { max-width: 660px; margin-bottom: 20px; }
.hero__search .search__box { height: 56px; background: #fff; border-radius: 28px; padding-right: 7px; box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.hero__search .search__go { height: 42px; padding: 0 22px; border-radius: 21px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: #9FBACB; }
.hero__tags a {
  padding: 6px 13px; border-radius: 15px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #E4EFF6;
}
.hero__tags a:hover { background: rgba(255,255,255,.2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: -34px 0 0; position: relative; z-index: 2; box-shadow: var(--sh-2); }
.stat { background: #fff; padding: 20px 22px; }
.stat b { display: block; font-size: 27px; font-weight: 750; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--gray); }

.section { padding: 46px 0 0; }
.section__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__hd h2 { font-size: 24px; letter-spacing: -.02em; }
.section__hd p { margin: 5px 0 0; color: var(--gray); font-size: 14.5px; }
.section__more { font-weight: 650; color: var(--brand); font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.section__more:hover { color: var(--brand-700); gap: 8px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.cat:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--brand-100); }
.cat__ico {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center;
}
.cat__t { font-weight: 650; font-size: 15.5px; }
.cat__n { font-size: 13px; color: var(--gray); }
.cat__ar { margin-left: auto; color: var(--gray-2); }
.cat:hover .cat__ar { color: var(--brand); }

.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
.usp__i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.usp__i > svg { color: var(--brand); margin-bottom: 12px; }
.usp__i h3 { font-size: 16.5px; margin-bottom: 7px; }
.usp__i p { margin: 0; font-size: 14px; color: var(--gray); line-height: 1.55; }

/* ==========================================================================
   Karta aukcji (szczegóły)
   ========================================================================== */
/* trzy obszary, żeby na mobile cena i „Licytuj” trafiły od razu pod zdjęcie */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  grid-template-areas: "gal side" "main side";
  column-gap: 30px; row-gap: 0;
  align-items: start;
}
.detail__gal  { grid-area: gal;  min-width: 0; }
.detail__side { grid-area: side; min-width: 0; }
.detail__main { grid-area: main; min-width: 0; }

.gal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.gal__main { position: relative; aspect-ratio: 4 / 3; background: #0E1926; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--sh-2);
}
.gal__nav:hover { background: #fff; }
.gal__nav--p { left: 12px; }
.gal__nav--n { right: 12px; }
.gal__count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 11px; border-radius: 14px;
  background: rgba(20,32,43,.78); color: #fff; font-size: 12.5px; font-weight: 600;
}
/* min-width:0 + max-width — bez tego pasek 70 miniatur rozpycha całą kolumnę */
.gal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; min-width: 0; max-width: 100%; }
.gal__thumbs::-webkit-scrollbar { height: 6px; }
.gal__thumbs::-webkit-scrollbar-thumb { background: #D9E1E7; border-radius: 3px; }
.gal__thumb {
  width: 82px; height: 62px; flex: none; border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; opacity: .68; transition: opacity .15s, border-color .15s;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-on { border-color: var(--brand); opacity: 1; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-top: 18px; }
.box h2 { font-size: 18px; margin-bottom: 14px; }
.desc { font-size: 14.7px; line-height: 1.72; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.desc.is-clamped { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.spec { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.spec dt { color: var(--gray); flex: none; }
.spec dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; word-break: break-word; }

.bidbox { position: sticky; top: calc(var(--hdr) + 14px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bidbox__hd { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.bidbox__num { font-size: 12.5px; color: var(--gray); }
.bidbox__t { font-size: 20px; line-height: 1.3; margin-top: 4px; letter-spacing: -.02em; }
.bidbox__bd { padding: 18px 20px 20px; }

.countdown { display: flex; gap: 8px; margin-bottom: 18px; }
.cd {
  flex: 1; text-align: center; padding: 9px 4px;
  background: var(--bg); border-radius: var(--r-sm);
}
.cd b { display: block; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd span { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; }
.countdown.is-soon .cd { background: var(--danger-bg); }
.countdown.is-soon .cd b { color: var(--danger); }

.pricerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 14px 0 16px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.pricerow__l { font-size: 13px; color: var(--gray); }
.pricerow__v { font-size: 30px; font-weight: 780; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.pricerow__v small { font-size: 15px; font-weight: 600; color: var(--gray); }
.pricerow__b { text-align: right; font-size: 13px; color: var(--gray); }
.pricerow__b b { display: block; font-size: 20px; color: var(--ink); }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.3px; line-height: 1.55; }
.note svg { flex: none; margin-top: 1px; }
.note--info { background: var(--brand-50); color: var(--brand-700); }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.note--ok   { background: var(--ok-bg); color: var(--ok); }
.note + .note { margin-top: 10px; }

.metalist { margin-top: 16px; }
.metalist div { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 13.5px; border-top: 1px solid var(--line-2); }
.metalist dt { color: var(--gray); }
.metalist dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; }

.map { display: block; height: 178px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--line-2) center/cover no-repeat; position: relative; }
.map__pin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--danger); }
.map__cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(255,255,255,.94); font-size: 13px; font-weight: 600; color: var(--brand-700); }

/* ==========================================================================
   Stopka
   ========================================================================== */
.foot { background: var(--ink); color: #A9B8C4; margin-top: 64px; padding: 44px 0 0; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; padding-bottom: 34px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.foot li { margin-bottom: 9px; }
.foot a:hover { color: #fff; }
.foot__logo svg { height: 30px; margin-bottom: 14px; }
.foot__logo p { margin: 0; line-height: 1.65; max-width: 320px; }
.foot__soc { display: flex; gap: 10px; margin-top: 16px; }
.foot__soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.09); display: grid; place-items: center; color: #D6E1E9; }
.foot__soc a:hover { background: var(--brand); color: #fff; }
.foot__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: #7F91A0; }
.foot__bar .foot__sep { flex: 1; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 550; box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 236px minmax(0, 1fr); gap: 20px; }
  .mega__grid { columns: 3; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
}

@media (max-width: 960px) {
  .hdr__in { gap: 12px; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--ink-2); }
  .burger:hover { background: var(--line-2); }
  .catbar { display: none; }
  .hdr__actions .iconbtn span { display: none; }
  .topbar { display: none; }

  .layout { grid-template-columns: 1fr; }
  .filterbar { display: flex; }
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 120; width: min(360px, 88vw);
    max-height: none; background: var(--bg); padding: 0 14px 20px;
    transform: translateX(-102%); transition: transform .24s ease;
    box-shadow: var(--sh-3); overflow-y: auto;
  }
  .side.is-open { transform: none; }
  .side__close {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: var(--bg);
    padding: 14px 0; margin-bottom: 6px; font-weight: 700; font-size: 16px;
  }
  .side__close button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
  .scrim { position: fixed; inset: 0; background: rgba(10,20,28,.45); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.is-on { opacity: 1; pointer-events: auto; }

  /* sortowanie jest już w pasku filtrów — w pasku wyników byłoby zdublowane */
  #sortSel { display: none; }

  /* minmax(0,1fr), nie 1fr — inaczej kolumna rozciąga się do szerokości miniatur */
  .detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gal" "side" "main";
    row-gap: 18px;
  }
  .bidbox { position: static; }
  .gal__main { aspect-ratio: 4 / 3; max-height: 62vh; }
  .gal__thumb { width: 64px; height: 48px; }
  .detail__main .box:first-child { margin-top: 0; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .usp { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .grid.is-list .card__media { width: 170px; }
}

/* na wąskich ekranach wyszukiwarka schodzi do własnego wiersza */
@media (max-width: 760px) {
  .hdr__in { flex-wrap: wrap; height: auto; padding: 9px 0 11px; gap: 8px; }
  .logo { margin-right: auto; }
  .logo svg { height: 26px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .hdr__actions { margin-left: 0; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 14px; }
  .crumbs__last { display: none; }   /* tytuł jest tuż niżej jako nagłówek */
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card__body { padding: 11px 12px 13px; }
  .card__title { font-size: 13.6px; }
  .card__price { font-size: 17px; }
  .card__eyebrow { font-size: 10.5px; }
  .card__loc { font-size: 12px; margin-bottom: 9px; }
  .card__bids { font-size: 11.5px; }
  .card__bids b { font-size: 13.5px; }
  .grid.is-list .card { flex-direction: column; }
  .grid.is-list .card__media { width: 100%; }

  /* bez tekstu przycisk byłby pustym owalem — lupa po lewej + Enter wystarczą */
  .search__go { display: none; }
  .search__box { padding-right: 14px; }
  .hero__search .search__box { padding-right: 10px; }
  .hero__in { padding: 40px 0 46px; }
  .hero p { font-size: 15.5px; }
  .hero__search .search__box { height: 50px; }
  .section { padding-top: 34px; }
  .section__hd h2 { font-size: 20px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot__logo { grid-column: 1 / -1; }
  .pricerow__v { font-size: 25px; }
  .cd b { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
