/* =====================================================================
   Komuś Się Przyda – wygląd. Kolory zmienisz w sekcji :root.
   ===================================================================== */
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f6f1ea;
  --text: #1c2430;
  --muted: #5d6877;
  --line: #ebe3d8;
  --line-strong: #d8cdbd;
  --primary: #0f766e;
  --primary-dark: #0b5d57;
  --primary-soft: #e2f3f0;
  --peach: #ffd7bf;
  --peach-soft: #fff1e7;
  --need: #7c3aed;
  --need-dark: #6427cf;
  --need-soft: #f1eafe;
  --warn-soft: #fff4d9;
  --warn-text: #7a5300;
  --ok-soft: #e5f5ea;
  --ok-text: #17663a;
  --danger: #c0262d;
  --danger-soft: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 36, 48, .06);
  --shadow: 0 1px 2px rgba(28, 36, 48, .05), 0 6px 20px rgba(28, 36, 48, .07);
  --shadow-lg: 0 10px 40px rgba(28, 36, 48, .14);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bottom-nav: 0px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (min-width: 900px) { html { font-size: 17.5px; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: var(--bottom-nav); }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .55em; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h2 { font-size: 1.3rem; }
.h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 8px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic-lg { width: 1.6em; height: 1.6em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
main.wrap { padding-top: 22px; padding-bottom: 56px; min-height: 62vh; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- nagłówek ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.18rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.brand-text small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); padding: 9px 13px; border-radius: 12px; font-weight: 700; font-size: .95rem; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active:not(.btn) { background: var(--primary-soft); color: var(--primary-dark); }
.main-nav a.btn { color: #fff; margin-left: 6px; }
.dot-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; background: #e11d48; color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 6px; font-weight: 800; }
.header-account { display: none; }

/* dolny pasek na telefonie */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  :root { --bottom-nav: calc(66px + env(safe-area-inset-bottom)); }
  .header-inner { height: 60px; }
  .brand img { width: 36px; height: 36px; }
  .brand-text small { display: none; }
  .main-nav { display: none; }
  .header-account { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .9rem; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 800; padding: 4px 0; position: relative; }
  .bottom-nav a .ic { width: 25px; height: 25px; }
  .bottom-nav a.active { color: var(--primary-dark); }
  .bottom-nav a.add span.plus { width: 46px; height: 46px; margin-top: -20px; border-radius: 16px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15, 118, 110, .4); }
  .bottom-nav a.add .ic { stroke-width: 2.4; }
  .bottom-nav .dot-count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: .65rem; }
}

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .06s, box-shadow .15s; line-height: 1.2; }
.btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(15, 118, 110, .25); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-need { background: var(--need); border-color: var(--need); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, .25); }
.btn-need:hover { background: var(--need-dark); border-color: var(--need-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(.93); }
.btn-danger-ghost { color: var(--danger); background: transparent; }
.btn-danger-ghost:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 13px 28px; font-size: 1.06rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spinner { width: 1em; height: 1em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-dark); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- strona główna ---------- */
.hero { display: grid; gap: 10px; align-items: center; grid-template-columns: 1fr; background: linear-gradient(135deg, #fff 0%, var(--peach-soft) 100%); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4.5vw, 48px); margin-bottom: 26px; overflow: hidden; position: relative; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1.12rem; color: #3c4756; max-width: 560px; }
.hero-art { max-width: 440px; justify-self: center; width: 100%; height: auto; }
@media (max-width: 859px) { .hero-art { max-width: 190px; order: -1; margin: -10px auto -16px; } .hero { padding: 18px 18px 20px; border-radius: 22px; } .hero p.lead { font-size: 1rem; } .hero-actions { margin: 14px 0; } .hero-actions .btn { flex: 1 1 100%; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.stats b { color: var(--text); font-size: 1.15rem; font-weight: 900; margin-right: 3px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 0 12px; }
.section-head h2 { margin: 0; }

.cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cat { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 14px 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; text-align: center; font-weight: 700; font-size: .8rem; line-height: 1.2; color: var(--text); transition: border-color .15s, transform .1s, box-shadow .15s; }
.cat:hover { border-color: var(--primary); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .cats { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); overflow: visible; } .cat { width: auto; } }
.cat .cat-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-dark); }
.cat .cat-ic .ic { width: 26px; height: 26px; }
.cat[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.cat[aria-pressed="true"] .cat-ic { background: var(--primary); color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); margin-bottom: 18px; position: sticky; top: 76px; z-index: 10; }
@media (max-width: 760px) { .toolbar { position: static; } }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 13px; padding: 4px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 800; font-size: .92rem; cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid #f59e0b; }
.searchbox { flex: 1 1 240px; position: relative; }
.searchbox .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { padding-left: 42px; }
.more-filters { display: none; width: 100%; gap: 10px; flex-wrap: wrap; align-items: center; }
.more-filters.open { display: flex; }
.more-filters > * { flex: 1 1 180px; }
.more-filters .check { flex: 0 0 auto; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 34px 0 8px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust .ic { width: 30px; height: 30px; color: var(--primary); padding: 5px; background: var(--primary-soft); border-radius: 10px; box-sizing: content-box; }
.trust p { margin: 0; }
.trust strong { display: block; }
.trust span { color: var(--muted); font-size: .88rem; }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: st; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before { counter-increment: st; content: counter(st); display: inline-flex; width: 32px; height: 32px; border-radius: 10px; align-items: center; justify-content: center; background: var(--peach); color: #7a3b12; font-weight: 900; margin-bottom: 8px; }
.step strong { display: block; margin-bottom: 3px; }
.step span { color: var(--muted); font-size: .92rem; }

/* ---------- pola formularzy ---------- */
input, select, textarea { width: 100%; font: inherit; color: var(--text); padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 13px; background: #fff; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #98a1ad; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { resize: vertical; min-height: 96px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 4px 0; font-weight: 600 !important; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--primary); padding: 0; }

/* chipy (zaznaczalne) */
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .12s; user-select: none; }
.chip span .ic { width: 1.15em; height: 1.15em; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #f59e0b; }
.chip.need input:checked + span { background: var(--need); border-color: var(--need); }

/* ---------- karty ogłoszeń ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow-sm); }
.card-img .badge + .badge { left: auto; right: 10px; }
.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--primary-soft), var(--peach-soft)); color: var(--primary); }
.placeholder .ic { width: 34%; height: 34%; stroke-width: 1.3; opacity: .85; }
.placeholder.ph-need { background: linear-gradient(140deg, var(--need-soft), var(--peach-soft)); color: var(--need); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 1.02rem; margin: 0; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .84rem; font-weight: 600; margin-top: auto; padding-top: 4px; }
.card-meta .ic { width: 1.05em; height: 1.05em; }
.card-meta { white-space: nowrap; overflow: hidden; }
.card-meta .city { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .card-meta .when { display: none; } }
@media (max-width: 520px) { .card-body { padding: 10px 11px 12px; } .card-body h3 { font-size: .93rem; } .card-meta { font-size: .76rem; } .card-img .badge { top: 7px; left: 7px; font-size: .62rem; padding: 3px 7px; } }

.badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 900; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.badge-give { background: var(--primary); color: #fff; }
.badge-need { background: var(--need); color: #fff; }
.badge-status { background: #eceae6; color: #4b5563; }
.st-zarezerwowane { background: var(--warn-soft); color: var(--warn-text); }
.st-przekazane { background: var(--ok-soft); color: var(--ok-text); }
.badge-req { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 800; }
.rs-oczekuje { background: var(--warn-soft); color: var(--warn-text); }
.rs-zaakceptowana { background: var(--primary-soft); color: var(--primary-dark); }
.rs-zakonczona { background: var(--ok-soft); color: var(--ok-text); }
.rs-odrzucona, .rs-anulowana { background: #eceae6; color: #555; }
.empty { text-align: center; padding: 46px 18px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); grid-column: 1 / -1; }
.empty img { width: 150px; margin: 0 auto 10px; }
.skeleton { background: linear-gradient(90deg, #f1ece5 25%, #f8f4ef 50%, #f1ece5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: 3 / 4; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- panele, alerty ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-ok { background: var(--primary-soft); border-color: #bfe3dd; }
.alert { padding: 12px 15px; border-radius: 13px; margin: 10px 0; font-weight: 600; }
.alert-error { background: var(--danger-soft); color: #7a1a1f; }
.alert-ok { background: var(--ok-soft); color: #165a32; }
.hint { display: flex; gap: 10px; background: var(--warn-soft); color: #5c4300; padding: 11px 14px; border-radius: 13px; font-size: .9rem; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(22px + var(--bottom-nav)); transform: translateX(-50%); z-index: 70; max-width: min(92vw, 520px); padding: 13px 20px; border-radius: 14px; color: #fff; background: #1c2430; box-shadow: var(--shadow-lg); font-weight: 700; }
.toast-error { background: var(--danger); }

/* okno (modal) */
.modal-back { position: fixed; inset: 0; background: rgba(20, 26, 35, .5); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 22px; padding: 24px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 16, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }

/* ---------- szczegóły ogłoszenia ---------- */
.crumbs { margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.detail { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } .detail-media { position: sticky; top: 90px; } }
.gallery .main { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border-radius: var(--radius); cursor: zoom-in; }
.gallery-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; padding: 0; border: 2.5px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 10px 0 6px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-weight: 700; font-size: .93rem; margin-bottom: 16px; }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.facts dd { margin: 2px 0 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.desc { white-space: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; margin-bottom: 16px; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; font-size: .88rem; font-weight: 700; }
.cta-panel { background: var(--surface); border: 2px solid var(--primary); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.cta-panel.need { border-color: var(--need); }
.cta-panel h2 { margin-bottom: 4px; }
.cta-panel form { display: grid; gap: 12px; margin-top: 10px; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req { border-top: 1px solid var(--line); padding: 14px 0; }
.req:first-child { border-top: 0; padding-top: 4px; }
.req-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: var(--primary); font-size: .9rem; flex: none; }
.owner-line { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.report { margin-top: 18px; }
.report summary { cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.report form { margin-top: 8px; display: grid; gap: 8px; }
.safety { margin-top: 32px; background: var(--peach-soft); border: 1px solid #f6dcc9; border-radius: var(--radius); padding: 18px 22px; }
.safety h2 { display: flex; align-items: center; gap: 8px; }
.safety ul { margin: 0; padding-left: 20px; }
.safety li { margin-bottom: 4px; }

/* ---------- formularz ogłoszenia ---------- */
.form { display: grid; gap: 16px; }
.form-narrow { max-width: 720px; margin: 0 auto; }
.form label.field { display: grid; gap: 6px; font-weight: 800; }
.form .field-label { font-weight: 800; display: block; margin-bottom: 8px; }
.form .opt { color: var(--muted); font-weight: 600; font-size: .86rem; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind-tile { position: relative; }
.kind-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-tile > span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer; transition: all .12s; }
.kind-tile > span > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); box-sizing: content-box; }
.kind-tile.need > span > .ic { background: var(--need-soft); color: var(--need); }
.kind-tile strong { font-size: 1.05rem; display: block; }
.kind-tile small { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; line-height: 1.3; }
.kind-tile input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.kind-tile.need input:checked + span { border-color: var(--need); background: var(--need-soft); }
.kind-tile input:focus-visible + span { outline: 3px solid #f59e0b; }
@media (max-width: 520px) { .kind-tile > span { flex-direction: column; text-align: center; gap: 6px; padding: 12px 8px; } }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: var(--surface); color: var(--muted); font-weight: 700; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.dropzone .ic { width: 34px; height: 34px; color: var(--primary); }
.dropzone strong { color: var(--text); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.photo-grid:empty { display: none; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .first { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.ph button { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ph button .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.account-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.account-box h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.account-box p { margin: 0; }
.legal-note { font-size: .84rem; color: var(--muted); font-weight: 600; }
.submit-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .submit-bar.sticky { position: sticky; bottom: calc(var(--bottom-nav) + 8px); z-index: 15; background: rgba(251, 247, 242, .95); padding: 10px; margin: 0 -10px; border-radius: 16px; backdrop-filter: blur(6px); }
  .submit-bar.sticky .btn-primary { flex: 1; }
}

/* ---------- moje sprawy ---------- */
.tabs-line { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab-link { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; text-decoration: none; color: var(--muted); font-weight: 800; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-link:hover { color: var(--text); }
.tab-link.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.case-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.case { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.case:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow); }
.case.unread { border-left: 5px solid #e11d48; }
.case-thumb { width: 62px; height: 62px; flex: none; border-radius: 12px; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.case-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.new-dot { background: #e11d48; color: #fff; font-size: .7rem; font-weight: 900; padding: 2px 9px; border-radius: 99px; }
@media (max-width: 560px) { .case { flex-wrap: wrap; } .case-side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; } }
.resolved { opacity: .6; }

/* ---------- rozmowa ---------- */
.case-listing { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.case-listing > span:last-child { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.status-panel p { margin: 0; }
.status-panel.rs-zaakceptowana { background: var(--primary-soft); border-color: #bfe3dd; }
.status-panel.rs-zakonczona { background: var(--ok-soft); border-color: #c4e6cf; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.msgs { list-style: none; margin: 0 0 12px; padding: 6px; max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg time { font-size: .74rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.bubble { padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.mine .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.theirs .bubble { background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; align-items: center; max-width: 92%; text-align: center; }
.msg.sys span { background: var(--warn-soft); color: #5c4300; padding: 7px 13px; border-radius: 12px; font-size: .86rem; font-weight: 700; }
.send { display: flex; gap: 8px; align-items: flex-end; }
.send textarea { flex: 1; min-height: 52px; }
.send .btn { min-height: 52px; }
.send-cam { padding: 0 12px; cursor: pointer; }
.send-photos { display: flex; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.send-thumb { position: relative; }
.send-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.send-thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #333; color: #fff; font-weight: 700; line-height: 1; cursor: pointer; }
.msg-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.msg.mine .msg-photos { justify-content: flex-end; }
.msg-photos img { width: 140px; max-width: 100%; height: 140px; object-fit: cover; border-radius: 14px; cursor: zoom-in; display: block; background: var(--surface-2); }
.quick-replies { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.quick-replies button { flex: none; border: 1.5px solid var(--line-strong); background: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--text); }
.quick-replies button:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ---------- konto, logowanie ---------- */
.auth { max-width: 500px; margin: 0 auto; }
.cols { display: grid; gap: 18px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } .cols .panel { margin-top: 0; } }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 800; }
.danger-zone label { display: grid; gap: 5px; margin: 10px 0; }
.recovery { border: 2px dashed #e0a800; background: #fffaf0; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.55rem; font-weight: 700; letter-spacing: .12em; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-align: center; user-select: all; }
.code-inline { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }

/* ---------- treści, stopka ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.5em; }
.prose li { margin-bottom: .45em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details[open] summary { margin-bottom: 8px; }
.site-footer { background: #17202b; color: #cfd6de; padding: 34px 0 30px; font-size: .92rem; }
.site-footer a { color: #fff; font-weight: 700; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.1rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .muted { color: #9aa6b2; }

/* ---------- oceny i profile ---------- */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.trust-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .84rem; color: var(--muted); font-weight: 700; }
.trust-line .stars { font-size: .95rem; }
.trust-line .ic { width: 1em; height: 1em; color: var(--ok-text); stroke-width: 2.4; }
.new-user { background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 1px 9px; font-size: .78rem; }
.person-link { color: var(--text); text-decoration: none; font-weight: 800; }
.person-link:hover { color: var(--primary-dark); text-decoration: underline; }
.rate-panel { border: 2px solid #f6c453; background: #fffaeb; }
.star-picker { display: flex; gap: 4px; margin: 6px 0 10px; }
.star-picker button { font-size: 2.1rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #d6cfc4; padding: 2px; transition: transform .1s, color .1s; }
.star-picker button.on { color: #f59e0b; }
.star-picker button:hover { transform: scale(1.12); }
.star-label { font-weight: 800; min-height: 1.4em; color: var(--warn-text); }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 1.8rem; }
.profile-head h1 { margin: 0 0 4px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-tile b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.stat-tile span { color: var(--muted); font-weight: 700; font-size: .86rem; }
.review-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.review-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 4px; }
.review p { margin: 4px 0 0; }
.badge-rate { background: #fff1c2; color: #7a5300; text-transform: none; letter-spacing: 0; }

/* baner wersji demo */
.demo-banner { background: #fff1c2; color: #5c4400; text-align: center; padding: 8px 14px; font-size: .86rem; font-weight: 700; }
.demo-banner a { color: #5c4400; }

/* podpowiedzi pod polami i pole danych konta */
.field-hint { font-weight: 600; font-size: .83rem; color: var(--muted); line-height: 1.35; }
.account-box-top { display: grid; gap: 4px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-strong); }
.account-box-top p { margin: 0; }

/* narzędzia w rozmowie */
.case-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; margin-top: 14px; }
.case-tools .report { margin-top: 0; flex: 1 1 260px; }
.block-btn { color: var(--danger); font-size: .88rem; }
.hint-panel { background: var(--warn-soft); border-color: #f3dfa4; }
.hint a { color: inherit; }
