/* ==========================================================================
   PARTLO – arkusz stylów
   Kolory: grafit (tekst, nagłówki), czerwień zacisku hamulcowego (akcja), chłodna szarość (tło).
   Czcionki systemowe: szybkie i bez wysyłania danych do zewnętrznych serwisów (RODO).
   ========================================================================== */

:root {
  --ink: #15171c;
  --ink-2: #3a404b;
  --muted: #5f6775;
  --line: #e1e4ea;
  --line-2: #cbd1da;
  --bg: #f2f3f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --brand: #d6342b;
  --brand-d: #b02720;
  --brand-t: #fdecea;
  --focus: #2457e6;
  --ok: #17794a;
  --ok-t: #e4f4eb;
  --warn: #8a5a00;
  --warn-t: #fff3d4;
  --danger: #b42318;
  --danger-t: #fdebe9;
  --info: #1d4ed8;
  --info-t: #e8eefc;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 4px 14px rgba(21, 23, 28, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--info); text-underline-offset: 2px; }
a:hover { color: #1739a8; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: #ffd9d6; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 8px; z-index: 100; }
.skip:focus { top: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .9rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 780px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: .72em 1.15em; border-radius: var(--r-sm); border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
  min-height: 44px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-d); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2f38; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f1f4; color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1b12; color: #fff; }
.btn--danger-ghost { background: var(--surface); color: var(--danger); border-color: #efc4c0; }
.btn--danger-ghost:hover { background: var(--danger-t); color: var(--danger); border-color: var(--danger); }
.btn--sm { padding: .45em .8em; min-height: 36px; font-size: .9rem; }
.btn--lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--info); text-decoration: underline; cursor: pointer; }
.link-btn--light { color: #c8cdd6; }
.inline-form { display: inline; margin-left: .5em; }
.icon { flex: none; vertical-align: -.2em; }

/* ---------- Nagłówek ---------- */
.announce { background: var(--warn-t); color: #4d3300; font-size: .92rem; padding: .55em 0; text-align: center; border-bottom: 1px solid #f0dca0; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__bar { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; flex: none; }
.logo:hover { color: var(--brand); }
.logo__word { font-size: 1.45rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); }
.logo--light { color: var(--brand); }
.logo--light .logo__word { color: #fff; }
.logo__word small { font-size: .6em; font-weight: 600; opacity: .7; letter-spacing: 0; margin-left: .2em; }

.header-search { order: 3; flex: 1 1 100%; display: flex; position: relative; }
.header-search input { width: 100%; font: inherit; padding: .7em 3em .7em 1em; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface-2); min-height: 44px; }
.header-search input:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(36, 87, 230, .25); }
.header-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px; border: 0; background: var(--ink); color: #fff; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.header-search button:hover { background: var(--brand); }

.nav-toggle { margin-left: auto; background: none; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.main-nav { display: none; width: 100%; order: 4; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.site-header.is-open .main-nav { display: flex; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: .65em .4em; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--r-sm); position: relative; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link--admin { color: var(--brand); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.count--alert { background: var(--brand); }
.nav-cta { margin-top: 6px; }

@media (min-width: 900px) {
  .site-header__bar { flex-wrap: nowrap; gap: 20px; }
  .header-search { order: 0; flex: 1 1 auto; max-width: 560px; }
  .nav-toggle { display: none; }
  .main-nav { display: flex; flex-direction: row; align-items: center; width: auto; order: 0; margin-left: auto; padding-top: 0; border: 0; gap: 4px; }
  .nav-link { padding: .5em .7em; }
  .nav-cta { margin: 0 0 0 8px; }
}
@media (min-width: 900px) and (max-width: 1100px) { .nav-link span:not(.sr-only) { display: none; } .nav-link--admin span { display: inline; } }

/* ---------- Komunikaty ---------- */
.flash { margin: 16px 0 0; padding: .85em 1.1em; border-radius: var(--r-sm); border: 1px solid; font-size: .98rem; }
.flash--success { background: var(--ok-t); border-color: #b5e0c8; color: #0f5a37; }
.flash--error { background: var(--danger-t); border-color: #f1c0bb; color: #7a1710; }
.flash--info { background: var(--info-t); border-color: #c4d3fa; color: #153a9c; }
.flash--warning { background: var(--warn-t); border-color: #efd88f; color: #5c3d00; }
.flash__list { margin: .4em 0 0; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--line-2); padding: .7em 1em; border-radius: var(--r-sm); font-size: .95rem; margin: .8em 0; }
.note--danger { border-left-color: var(--danger); background: var(--danger-t); }

/* ---------- Formularze ---------- */
.field { margin: 0 0 1.1em; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, legend.field-legend { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .35em; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .65em .85em; min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23596' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.4em; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36, 87, 230, .28); }
input::placeholder, textarea::placeholder { color: #8a92a0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.field__err { color: var(--danger); font-size: .9rem; margin: .35em 0 0; font-weight: 550; }
.form-hint { color: var(--muted); font-size: .88rem; margin: .35em 0 0; }
.counter { font-variant-numeric: tabular-nums; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1.2fr; } }
.range { display: flex; align-items: center; gap: 8px; }
.range input { text-align: center; }
.check { display: flex; gap: .65em; align-items: flex-start; cursor: pointer; font-weight: 450; line-height: 1.4; margin: .35em 0; }
.check input { width: 20px; height: 20px; margin: .1em 0 0; accent-color: var(--brand); flex: none; }
.check--inline { margin-top: .6em; }
.pw { position: relative; }
.pw input { padding-right: 4.6em; }
.pw__toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 .8em; background: none; border: 0; color: var(--info); font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; }
.seg { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .seg { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.seg > legend { grid-column: 1 / -1; }
.seg__opt { position: relative; display: flex; cursor: pointer; margin: 0; font-weight: 400 !important; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg__opt span { display: block; width: 100%; padding: .8em 1em; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, background .15s; }
.seg__opt small { display: block; color: var(--muted); font-size: .85rem; margin-top: .1em; }
.seg__opt input:checked + span { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.form-card h2 { margin-bottom: .8em; }
.form-card--danger { border-color: #efc4c0; }
.form-card--wide { max-width: 860px; }
.form-card--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; max-width: 640px; }
.form-card--inline h2 { flex: 1 1 100%; margin: 0; }
.form-card--inline .field { margin: 0; flex: 1 1 260px; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 20px; min-width: 0; }
.form-section > legend { font-weight: 800; font-size: 1.1rem; padding: 0 .5em; margin-left: -.5em; letter-spacing: -.01em; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-legal { font-size: .88rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { min-height: 38px; padding: .4em .8em; width: 200px; }
.input-sm { max-width: 90px; }

.dropzone { position: relative; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); text-align: center; padding: 28px 16px; transition: border-color .15s, background .15s; }
.dropzone.is-over, .dropzone:hover { border-color: var(--ink); background: #fff; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone p { margin: 0; color: var(--ink-2); pointer-events: none; }
.dropzone small { color: var(--muted); }
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 0; margin: 14px 0 0; }
.photo { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.photo__opt { font-size: .85rem; display: flex; gap: .4em; align-items: center; cursor: pointer; margin: 0; font-weight: 500; }
.photo__opt--del { color: var(--danger); }
.photo--new .photo__tag { font-size: .8rem; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo.is-marked { opacity: .45; }

/* ---------- Odznaki i statusy ---------- */
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18em .6em; border-radius: 999px; line-height: 1.5; letter-spacing: .01em; border: 1px solid transparent; white-space: nowrap; }
.badge--new { background: var(--ink); color: #fff; }
.badge--used { background: #fff; color: var(--ink); border-color: var(--line-2); }
.badge--refurb { background: var(--info-t); color: var(--info); }
.badge--featured { background: #fff1c2; color: #6b4700; border-color: #efd382; }
.badge--biz { background: var(--info-t); color: var(--info); }
.badge--priv { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge--off { background: var(--danger-t); color: var(--danger); }
.badge--alert { background: var(--danger-t); color: var(--danger); text-decoration: none; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15em .65em; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.status--active { background: var(--ok-t); color: var(--ok); border-color: #b5e0c8; }
.status--pending { background: var(--warn-t); color: var(--warn); border-color: #efd88f; }
.status--rejected, .status--removed { background: var(--danger-t); color: var(--danger); border-color: #f1c0bb; }
.status--sold { background: var(--info-t); color: var(--info); border-color: #c4d3fa; }

/* ---------- Strona główna ---------- */
.hero { background: var(--ink); color: #fff; background-image: linear-gradient(135deg, #15171c 0%, #1d2027 60%, #2a1614 100%); }
.hero__inner { padding-block: 40px 44px; display: grid; gap: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #ff9a92; margin: 0 0 .8em; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); letter-spacing: -.035em; margin-bottom: .35em; max-width: 14em; }
.hero__lead { color: #c9ced8; font-size: 1.1rem; max-width: 36em; margin: 0; }
.hero-search { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 920px; }
.hero-search__main input { font-size: 1.1rem; min-height: 54px; border-color: var(--line-2); }
.hero-search__row { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: 1fr; }
.hero-search__quick { margin: 12px 2px 0; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-search__quick a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.hero-search__quick a:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 720px) { .hero-search__row { grid-template-columns: 1fr auto; } .hero-search__vehicle .vehicle-fields { grid-template-columns: repeat(3, 1fr); } .hero__inner { padding-block: 56px 60px; } }

.section { padding-block: 36px 8px; }
.section--flush { padding-top: 8px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.section__head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.link-more { font-weight: 650; text-decoration: none; white-space: nowrap; }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-tile { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.cat-tile::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); transition: border-color .15s, right .15s; }
.cat-tile:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover::after { border-color: var(--brand); right: 10px; }
.cat-tile__name { font-weight: 700; padding-right: 18px; }
.cat-tile__count { font-size: .85rem; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-t); color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.band { background: var(--ink); color: #fff; margin-top: 44px; }
.band__inner { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; margin-bottom: .2em; }
.band p { margin: 0; color: #c9ced8; max-width: 40em; }

/* ---------- Karty ogłoszeń ---------- */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card-grid--results, .card-grid--account { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card--featured { border-color: #efd382; box-shadow: 0 0 0 1px #efd382; }
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #b3bac6; background: var(--surface-2); }
.card__noimg--lg { aspect-ratio: 4 / 3; }
.card__fav { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.fav-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-2); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); transition: color .15s, transform .15s; }
.fav-btn:hover { color: var(--brand); transform: scale(1.06); }
.fav-btn.is-on { color: var(--brand); }
.fav-btn.is-on .icon { fill: currentColor; }
.fav-btn--text { width: auto; height: auto; border-radius: var(--r-sm); background: var(--surface); box-shadow: none; display: inline-flex; gap: .5em; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card__badges { margin: 0 0 4px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.card__title { font-size: .98rem; font-weight: 650; margin: 0; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { font-size: 1.18rem; font-weight: 800; margin: 4px 0 0; letter-spacing: -.02em; }
.card__neg { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card__fit { margin: 0; font-size: .86rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { margin: auto 0 0; padding-top: 6px; font-size: .82rem; color: var(--muted); }

/* ---------- Breadcrumb / nagłówek strony ---------- */
.page-head { padding-top: 22px; }
.page-head--tight { padding-top: 14px; }
.page-head h1 { margin-bottom: .2em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Wyszukiwarka ---------- */
.search-layout { display: grid; gap: 18px; padding-block: 12px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .search-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; } .filters-wrap { position: sticky; top: 16px; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters__toggle { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters[open] .filters__toggle { border-bottom: 1px solid var(--line); }
.filters__form { padding: 16px; }
.filters__form .field { margin-bottom: .9em; }
.filters__form .field-row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
.filters__form fieldset.field { border: 0; }
.filters__actions { display: grid; gap: 8px; margin-top: 4px; }
@media (min-width: 900px) { .filters__toggle { cursor: default; pointer-events: none; } }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.results__count { margin: 0; color: var(--ink-2); }
.results__sort { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.results__sort select { min-height: 40px; padding-block: .4em; width: auto; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: .3em .5em .3em .9em; font-size: .88rem; color: var(--ink); text-decoration: none; font-weight: 550; }
.chip:hover { border-color: var(--danger); color: var(--danger); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 28px 0 0; }
.pager ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; }
.pager li a, .pager__cur, .pager__btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6em; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.pager li a:hover, .pager__btn:hover { border-color: var(--ink); color: var(--ink); }
.pager__cur { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.pager__gap { align-self: center; color: var(--muted); padding: 0 4px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 36px 20px; text-align: center; }
.empty h2, .empty h3 { margin-bottom: .3em; }
.empty p { color: var(--ink-2); max-width: 34em; margin-inline: auto; }
.empty .btn { margin: 4px; }

/* ---------- Strona ogłoszenia ---------- */
.listing { display: grid; gap: 20px; padding-block: 8px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .listing { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; } .listing__side { position: sticky; top: 16px; } }
.listing__main > *, .listing__side > * { margin-bottom: 16px; }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.gallery__stage { position: relative; background: #0f1115; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery__stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.gallery__nav--prev { left: 10px; transform: translateY(-50%) scaleX(-1); }
.gallery__nav--next { right: 10px; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; padding: .15em .65em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gallery__thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumb { border: 2px solid transparent; padding: 0; background: none; border-radius: 8px; cursor: pointer; display: block; overflow: hidden; opacity: .75; }
.gallery__thumb img { display: block; width: 84px; height: 63px; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brand); opacity: 1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h2 { font-size: 1.15rem; margin-bottom: .7em; }
.panel--warn { border-color: #efd88f; background: #fffdf5; }
.prose--listing p { margin-bottom: .9em; }
.specs { display: grid; gap: 0; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: .6em 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; }
.buybox__title { font-size: 1.35rem; margin: 0; }
.buybox__price { font-size: 2rem; font-weight: 850; letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.buybox__neg { margin: -6px 0 0; color: var(--muted); font-size: .9rem; }
.buybox .form-hint { margin: 0; }
.fav-form { margin: 0; }
.seller__h { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .5em !important; }
.seller__name { font-size: 1.15rem; font-weight: 750; margin: 0 0 .3em; }
.seller__name a { color: var(--ink); text-decoration: none; }
.seller__name a:hover { text-decoration: underline; }
.seller__type, .seller__meta { margin: 0 0 .5em; font-size: .93rem; color: var(--ink-2); }
.seller__note { font-size: .86rem; color: var(--muted); margin: .6em 0 0; padding-top: .6em; border-top: 1px solid var(--line); }
.report-link { margin: 0 4px 16px; font-size: .9rem; }
.report-link a { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.safety { background: var(--ok-t); border: 1px solid #b5e0c8; border-radius: var(--r); padding: 16px 18px; font-size: .92rem; color: #0f4a2e; }
.safety h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: .4em; color: #0f4a2e; }
.safety ul { margin: 0 0 .6em; padding-left: 1.1em; }
.safety a { color: #0f4a2e; font-weight: 600; }

/* ---------- Konto ---------- */
.account { display: grid; gap: 20px; padding-block: 24px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .account { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; } }
.side-nav ul { list-style: none; padding: 6px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: 2px; }
.side-nav li { flex: 1 1 auto; }
.side-nav a, .side-nav__logout { display: flex; align-items: center; gap: 10px; padding: .6em .8em; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.side-nav a:hover, .side-nav__logout:hover { background: var(--surface-2); }
.side-nav a.is-active { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .side-nav ul { flex-direction: column; flex-wrap: nowrap; } }
.account__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account__head h1, .account__main > h1 { margin-bottom: .4em; }
.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.tabs a { display: inline-flex; gap: 6px; align-items: center; padding: .4em .9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.tabs a b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs a:hover { border-color: var(--ink); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a.is-active b { color: #d3d7df; }
.my-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.my-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.my-item__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.my-item__img img { width: 100%; height: 100%; object-fit: cover; }
.my-item__top { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.my-item__left { font-size: .85rem; color: var(--muted); }
.my-item__title { font-size: 1.05rem; margin: 0 0 2px; }
.my-item__title a { color: var(--ink); text-decoration: none; }
.my-item__title a:hover { text-decoration: underline; }
.my-item__price { font-weight: 800; margin: 0 0 4px; }
.my-item__stats { margin: 0; font-size: .85rem; color: var(--muted); }
.my-item__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.my-item__actions form { margin: 0; }
@media (min-width: 720px) { .my-item { grid-template-columns: 140px minmax(0, 1fr) auto; } .my-item__actions { grid-column: auto; flex-direction: column; border: 0; padding: 0; min-width: 190px; } .my-item__actions .btn { width: 100%; justify-content: flex-start; } }
.inbox { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox__item { display: flex; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.inbox__item:hover { background: var(--surface-2); color: var(--ink); }
.inbox__item.is-unread { background: #fffaf9; }
.inbox__img { flex: none; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: #aab; }
.inbox__img img { width: 100%; height: 100%; object-fit: cover; }
.inbox__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.inbox__top { display: flex; gap: 8px; align-items: baseline; }
.inbox__top time { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.inbox__top small { color: var(--muted); }
.inbox__listing { font-size: .88rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__snippet { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-unread .inbox__snippet { color: var(--ink); font-weight: 600; }
.thread-listing { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; text-decoration: none; color: var(--ink); margin-bottom: 16px; }
.thread-listing__img { flex: none; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.thread-listing__img img { width: 100%; height: 100%; object-fit: cover; }
.thread { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg--theirs { align-self: flex-start; }
.msg__bubble { padding: .65em 1em; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg--mine .msg__bubble { background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-right-radius: 4px; }
.msg--theirs .msg__bubble { border-bottom-left-radius: 4px; }
.msg__time { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.reply { display: grid; gap: 10px; }
@media (min-width: 560px) { .reply { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Logowanie ---------- */
.auth { display: grid; place-items: start center; padding-block: 36px 56px; }
.auth__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth__card--wide { max-width: 620px; }
.auth__card h1 { font-size: 1.6rem; }
.auth__links { margin: 1em 0 0; text-align: center; font-size: .95rem; }
.auth__alt { text-align: center; margin: 0; }

/* ---------- Treści (regulamin itd.) ---------- */
.prose { line-height: 1.7; }
.prose--page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
@media (min-width: 640px) { .prose--page { padding: 36px 40px; } }
.prose h1 { margin-bottom: .6em; }
.prose h2 { font-size: 1.2rem; margin: 1.8em 0 .6em; padding-top: .2em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .45em; }
.prose ol, .prose ul { margin-bottom: 1em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose__meta { margin-top: 2em; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; }
.contact { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } }
.error-page { text-align: center; padding-block: 64px; }
.error-page__code { font-size: 5rem; font-weight: 900; letter-spacing: -.05em; color: var(--line-2); margin: 0; line-height: 1; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: #c4cad4; margin-top: 56px; flex-shrink: 0; }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 12px; font-size: .92rem; max-width: 26em; }
.footer-h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8em; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: #c4cad4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid #2a2f38; font-size: .85rem; color: #9aa2af; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 720px; margin-inline: auto; background: var(--ink); color: #e6e9ee; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .9rem; flex: 1 1 280px; }
.cookie-bar a { color: #fff; }
.cookie-bar .btn--dark { background: #fff; color: var(--ink); }

/* ==========================================================================
   Panel administratora
   ========================================================================== */
body.admin { background: #eef0f3; }
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--ink); color: #c4cad4; padding: 18px 14px; display: none; flex-direction: column; gap: 18px; }
.admin-side.is-open { display: flex; }
.admin-side nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: .6em .8em; border-radius: var(--r-sm); color: #c4cad4; text-decoration: none; font-weight: 600; font-size: .95rem; }
.admin-side nav a:hover { background: #232730; color: #fff; }
.admin-side nav a.is-active { background: var(--brand); color: #fff; }
.admin-side nav .count { margin-left: auto; background: var(--brand); }
.admin-side nav a.is-active .count { background: #fff; color: var(--brand); }
.admin-side__foot { margin-top: auto; display: grid; gap: 6px; font-size: .85rem; padding: 0 .4em; }
.admin-side__foot a { color: #fff; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-topbar h1 { margin: 0; font-size: 1.35rem; }
.admin-toggle { margin-left: 0; }
.admin-content { padding: 20px 16px 48px; max-width: 1300px; width: 100%; }
@media (min-width: 960px) {
  .admin-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .admin-side { display: flex; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .admin-toggle { display: none; }
  .admin-content { padding: 24px 28px 56px; }
  .admin-topbar { padding: 18px 28px; }
}
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
a.stat:hover { border-color: var(--ink); color: var(--ink); }
.stat__n { font-size: 2rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--ink-2); font-size: .9rem; line-height: 1.3; }
.stat__l small { color: var(--muted); }
.stat--alert { border-color: #f1c0bb; background: var(--danger-t); }
.stat--alert .stat__n { color: var(--danger); }
.admin-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 1100px) { .admin-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart__bar { fill: var(--brand); }
.chart__bar:hover { fill: var(--brand-d); }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: .15em; }
.checklist .is-ok { color: var(--ok); }
.checklist .is-ok span { color: var(--ink-2); }
.checklist .is-todo .icon { color: var(--warn); }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.recent li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.recent li:last-child { border: 0; padding: 0; }
.recent li > span { font-size: .85rem; color: var(--muted); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .8em 1em; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: .8em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.table td.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; min-width: 200px; }
.table td.actions form { margin: 0; }
.table td a { color: var(--info); }
.cell-listing { display: flex; gap: 12px; align-items: flex-start; min-width: 240px; }
.cell-listing img, .cell-listing__noimg { flex: none; width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: #aab; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 8px solid var(--bg); padding: 6px 0; }
  .table td { border: 0; padding: .4em 1em; display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
  .table td.actions { display: flex; min-width: 0; }
  .table td.actions::before { display: none; }
}
.popover { position: relative; }
.popover summary { list-style: none; cursor: pointer; }
.popover summary::-webkit-details-marker { display: none; }
.popover__body { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 300px; max-width: 80vw; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 14px; display: grid; gap: 8px; }
.popover__body label { font-weight: 650; font-size: .88rem; }
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.report { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: var(--r); padding: 16px 18px; }
.report--resolved { border-left-color: var(--ok); }
.report--dismissed { border-left-color: var(--line-2); }
.report__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 6px; }
.report__head time { color: var(--muted); font-size: .85rem; margin-left: auto; }
.report__listing, .report__who { margin: 0 0 .5em; font-size: .92rem; }
.report__who { color: var(--muted); }
.report__details { margin: 0 0 12px; padding: .7em 1em; background: var(--surface-2); border-radius: var(--r-sm); border-left: 3px solid var(--line-2); }
.report__form { display: grid; gap: 8px; }
.report__form label { font-weight: 650; font-size: .9rem; }
.report__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.report__res { margin: 0; font-size: .92rem; }

/* ---------- Ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .cookie-bar, .filters-wrap, .fav-btn { display: none !important; } body { background: #fff; } }

/* Wybór pojazdu (marka / model / generacja) */
.vehicle-fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
.vehicle-fields .field { margin: 0; min-width: 0; }
.hero-search__vehicle .vehicle-fields { gap: 10px; margin-top: 10px; }
.vehicle-fields select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.fit-link { display: inline-block; margin-left: 8px; font-size: .9rem; font-weight: 600; }
.badge--demo { display: block; background: #fff4d6; color: #6a4b00; border: 1px solid #f0d27a; border-radius: var(--r-s, 8px); padding: 8px 12px; font-weight: 600; margin: 0 0 12px; }
.demo-note { background: #fff4d6; border: 1px solid #f0d27a; color: #4a3600; border-radius: var(--r-s, 8px); padding: 12px 16px; }

/* ---- Moto Newsy, polecane warsztaty i usługi ---- */
.subnav{background:var(--surface,#fff);border-bottom:1px solid var(--line,#e3e6ec)}
.subnav__in{display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none}
.subnav a{padding:.7rem .9rem;font-weight:600;font-size:.95rem;color:inherit;text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent}
.subnav a:hover{color:var(--accent,#d6342b)}
.subnav a.is-active{border-bottom-color:var(--accent,#d6342b);color:var(--accent,#d6342b)}
.page-lead{max-width:62ch;color:var(--muted,#5b6270);margin:.25rem 0 0}
.section--tight{padding-top:.5rem}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,18rem),1fr));gap:1rem;margin:1rem 0}
.hub-card{background:var(--surface,#fff);border:1px solid var(--line,#e3e6ec);border-radius:14px;padding:1.1rem 1.2rem;display:flex;flex-direction:column;gap:.35rem;min-width:0}
.hub-card--featured{border-color:var(--accent,#d6342b)}
.hub-card p{margin:0}
.hub-card__meta{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.82rem;color:var(--muted,#5b6270)}
.hub-card__title{font-size:1.1rem;line-height:1.3;margin:.1rem 0}
.hub-card__title a{color:inherit;text-decoration:none}
.hub-card__title a:hover{text-decoration:underline}
.hub-card__loc{font-size:.9rem;color:var(--muted,#5b6270)}
.hub-card__more{margin-top:auto;padding-top:.4rem;font-weight:600;text-decoration:none}
.tag{display:inline-block;padding:.1rem .55rem;border-radius:99px;background:var(--bg-soft,#eef0f4);font-size:.75rem;font-weight:600;color:var(--fg,#15171c)}
.tag--hi{background:var(--accent,#d6342b);color:#fff}
.hub-filter{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin:.5rem 0 1rem}
.hub-filter .field{min-width:11rem;flex:1 1 11rem;margin:0}
.hub-cta{margin:2rem 0 0;padding:1.25rem;border:1px dashed var(--line,#cfd3db);border-radius:14px;text-align:center}
.hub-cta h2{font-size:1.15rem;margin:0 0 .25rem}
.hub-facts{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1rem;margin:1rem 0}
.hub-facts dt{font-weight:600}.hub-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.hub-more-h{font-size:1.1rem;margin:2rem 0 0}
.hub-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem;margin-top:1rem}
.hub-tile{display:flex;flex-direction:column;gap:.2rem;padding:1.1rem 1.2rem;border-radius:14px;background:var(--dark,#15171c);color:#fff;text-decoration:none}
.hub-tile span{opacity:.8;font-size:.92rem}
.hub-tile:hover{background:#262a33}
.prose .lead{font-size:1.1rem;color:var(--muted,#5b6270)}
.hub-card__imgwrap{display:block;margin:-1.1rem -1.2rem .6rem;border-radius:14px 14px 0 0;overflow:hidden;aspect-ratio:16/9;background:var(--bg-soft,#eef0f4)}
.hub-card__img{width:100%;height:100%;object-fit:cover;display:block}
.news-fig{margin:1rem 0 1.25rem}
.news-fig img{width:100%;height:auto;border-radius:14px;display:block}
.news-fig figcaption{font-size:.8rem;color:var(--muted,#5b6270);margin-top:.35rem}

/* Pola wyboru wewnątrz .field: reguła ".field > label" nie może ich zamieniać w blok (brak odstępu, pogrubienie) */
.field > label.check { display: flex; align-items: center; gap: .6em; font-weight: 450; font-size: inherit; margin: .4em 0; }
.field > label.check input { margin: 0; }

/* Formularz ogłoszenia: ukrywanie pól części / pojazdu */
[data-kind-only][hidden] { display: none !important; }
