:root {
  --primary: #0e5d45;
  --primary-dark: #0a4a37;
  --accent: #f0a500;
  --accent-dark: #d99400;
  --text: #1d2b25;
  --muted: #6f7a72;
  --bg: #f7f5f0;
  --card: #ffffff;
  --border: #e6e2d8;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20, 40, 30, 0.08);
  --shadow-hover: 0 10px 24px rgba(20, 40, 30, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); }
h1 { font-size: 1.6rem; margin: 18px 0 10px; }
h2 { font-size: 1.2rem; margin: 18px 0 8px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; }
.logo span span { color: var(--primary); }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; }

/* buttons */
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card); color: var(--text); cursor: pointer;
  text-decoration: none; font-size: 0.95rem; font-family: inherit; }
.btn:hover { border-color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }
.btn-lg { padding: 12px 26px; font-size: 1.05rem; margin-top: 12px; }

/* flash */
.flash { padding: 10px 14px; border-radius: 6px; margin: 10px 0; font-size: 0.95rem; }
.flash-success { background: #e6f4ea; color: #1e6b3a; }
.flash-error { background: #fdecea; color: #a12622; }
.flash-info { background: #e8f0fe; color: #1a4c96; }

/* hero */
/* hero.jpg: Unsplash (unsplash.com/photos/pXjEdSc4rMU), licencja Unsplash —
   wolno uzywac komercyjnie, bez obowiazku podawania autora */
.hero-full { width: 100vw; margin-left: calc(50% - 50vw); text-align: center;
  background-color: #0e5d45;   /* zanim zdjecie sie wczyta */
  background-image:
    linear-gradient(135deg, rgba(10, 74, 55, 0.94) 0%, rgba(14, 93, 69, 0.91) 55%,
                    rgba(21, 128, 94, 0.88) 100%),
    url('hero.jpg');
  background-size: cover; background-position: center 40%;
  color: #fff; padding: 52px 16px 40px; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-full h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 12px;
  letter-spacing: -0.5px; }
.hero-full p { color: #fff; font-size: 1.08rem; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: #fff; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--accent); }
.hero-stats span { font-size: 0.85rem; color: #fff; }
@media (max-width: 560px) { .hero-full h1 { font-size: 1.7rem; } .hero-stats { gap: 22px; } }

.btn-accent { background: var(--accent); border-color: var(--accent);
  color: #1d2b25 !important; font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,0.6);
  color: #fff !important; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* kafle kategorii */
.cat-tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: 20px 0 4px; scroll-margin-top: 20px; }
.cat { padding: 9px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 0.93rem; box-shadow: var(--shadow); }
.cat:hover { border-color: var(--primary); }
.cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* mobilne CTA */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  /* --cookie-h ustawia skrypt banera cookies, zeby nie zaslanial przycisku */
  .mobile-cta { display: block; position: fixed; left: 14px; right: 14px;
    bottom: calc(14px + var(--cookie-h, 0px));
    z-index: 110; text-align: center; background: var(--accent); color: #1d2b25;
    font-weight: 800; padding: 14px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(20,40,30,0.3);
    transition: bottom 0.2s ease; }
}

/* filters */
.filters { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 14px 0 18px;
  box-shadow: var(--shadow); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; align-items: end; }
.filters label { display: flex; flex-direction: column; font-size: 0.85rem;
  color: var(--muted); gap: 3px; }
.filters input, .filters select { padding: 7px 9px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
.filters-actions { display: flex; gap: 8px; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin: 10px 0 30px; }
.card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--text); display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: box-shadow 0.18s, transform 0.18s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-photo { position: relative; aspect-ratio: 4/3; background: #eceff1; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--muted); font-size: 0.85rem; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: #fff; }
.badge-share { background: var(--accent); }
.badge-debt { background: var(--danger); }
.badge-info { background: #3b6ea5; }
.badge-ok { background: var(--primary); }

/* znaczniki: zarezerwowane / sprzedane / nieaktualne — wyszarzaja miniaturke */
.card-tagged .card-photo img, .card-tagged .card-photo .ph-tile,
.row-tagged .row-photo img, .row-tagged .row-photo .ph-tile {
  filter: grayscale(1); opacity: 0.6; }
.card-tagged .card-price, .card-tagged .card-title { color: var(--muted); }
.tag-overlay { position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); text-align: center; color: #fff;
  font-weight: 800; letter-spacing: 2px; font-size: 1rem; padding: 6px 0;
  background: rgba(29, 43, 37, 0.72); }
.tag-zarezerwowane { background: rgba(196, 124, 0, 0.82); }
.tag-sprzedane { background: rgba(20, 60, 44, 0.82); }
.tag-nieaktualne { background: rgba(80, 88, 84, 0.82); }
.tag-chip { display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; color: #fff; vertical-align: middle; }
.tag-select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 0.85rem; background: var(--card); }
.detail-tagged .gallery img, .detail-tagged .ph-tile-lg { filter: grayscale(1);
  opacity: 0.7; }
.card-body { padding: 10px 12px 12px; }
.card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.card-title { font-weight: 600; margin: 2px 0; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta, .card-city { font-size: 0.85rem; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* stronicowanie */
.wyniki-info { color: var(--muted); font-size: 0.9rem; margin: 4px 0 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  align-items: center; margin: 6px 0 32px; }
.pager-btn, .pager-num { display: inline-flex; align-items: center;
  justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.pager-btn:hover, .pager-num:hover { border-color: var(--primary); }
.pager-num.current { background: var(--primary); border-color: var(--primary);
  color: #fff; }
.pager-dots { color: var(--muted); padding: 0 2px; }
@media (max-width: 700px) {
  .pager-btn { flex: 1 1 100%; order: 2; }
  .pager-btn[rel="prev"] { order: 1; }
}

/* detail */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin: 8px 0 40px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
/* formularz kontaktowy jedzie z trescia, zeby nie uciekl przy dlugim opisie */
@media (min-width: 801px) {
  .detail-side { position: sticky; top: 16px; align-self: start; }
}
.back-link { display: inline-block; font-size: 0.9rem; margin: 10px 0 4px; }

.detail-head { margin-bottom: 14px; }
.detail-head h1 { font-size: 1.6rem; line-height: 1.25; }
.detail-city { color: var(--muted); margin-top: 2px; }
.detail-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 8px; }
.detail-price { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.detail-ppm { font-weight: 700; color: var(--muted); }
.detail-id { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.detail-photo { position: relative; }
.gallery img#gallery-main { display: block; width: 100%; border-radius: 10px;
  max-height: 480px; object-fit: cover; background: #eceff1; cursor: zoom-in; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; color: #fff;
  background: rgba(20, 40, 30, 0.72); font-size: 0.8rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--primary); }

/* powiekszenie zdjecia na pelny ekran */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(12, 22, 18, 0.92); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 6px; right: 18px; border: none;
  background: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; left: 10px; transform: translateY(-50%);
  width: 52px; height: 66px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 2.6rem; line-height: 1; }
.lightbox-next { left: auto; right: 10px; }

/* najwazniejsze parametry jako kafelki zamiast wierszy tabeli */
.param-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin: 16px 0; }
.param { background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; }
.param-ico { font-size: 1.2rem; line-height: 1; margin-bottom: 4px; }
.param strong { font-size: 1.05rem; }
.param > span:last-child { font-size: 0.8rem; color: var(--muted); }

/* problemy — sedno oferty na nBazarze */
.problems-box { background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.problems-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.problems-box .detail-description { margin: 10px 0 0; }
.problem-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptag { background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }
/* nieruchomosc bez obciazen — jedyny przypadek na zielono */
.problems-none { background: #e6f4ea; border-color: #bfe3cb; }
.problems-none h2, .problems-note { color: #1e6b3a; }
.ptag-ok { background: #fff; border-color: #bfe3cb; color: #1e6b3a; }
.problems-note { font-size: 0.9rem; margin-top: 8px; }

.params { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
.params th, .params td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; }
.params th { color: var(--muted); font-weight: 500; width: 45%; }
.detail-description { white-space: pre-wrap; margin-bottom: 20px; }

.similar { margin-bottom: 30px; }
.similar h2 { margin-bottom: 10px; }
.similar-more { font-size: 0.9rem; color: var(--muted); }

.contact-box, .owner-box { background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.contact-box h3, .owner-box h3 { margin-bottom: 6px; }
.contact-box p { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.contact-box input, .contact-box textarea { width: 100%; padding: 9px 10px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* forms */
.form-listing, .auth-box { max-width: 640px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 10px 0 40px; }
.auth-box { max-width: 400px; margin: 30px auto; }
.form-listing label, .auth-box label { display: block; margin-bottom: 12px; font-weight: 500;
  font-size: 0.92rem; }
.form-listing input, .form-listing select, .form-listing textarea,
.auth-box input { width: 100%; padding: 9px 10px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.98rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-label { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.checkbox-label input { width: auto !important; margin-top: 4px; }
.auth-alt { text-align: center; margin-top: 12px; font-size: 0.92rem; }
.page-intro { color: var(--muted); margin-bottom: 12px; }

/* autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--border); border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12); max-height: 260px; overflow-y: auto; }
.autocomplete-item { padding: 8px 12px; cursor: pointer; font-size: 0.95rem; }
.autocomplete-item:hover { background: var(--bg); }
.autocomplete-item.active { background: var(--primary); color: #fff; }

/* rows (account / admin) */
.listing-rows { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 30px; }
.row-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; align-items: center; flex-wrap: wrap; }
.row-photo img, .row-photo .no-photo { width: 110px; height: 82px; object-fit: cover;
  border-radius: 6px; background: #eceff1; }
.row-body { flex: 1; min-width: 200px; }
.row-title { font-weight: 600; text-decoration: none; color: var(--text); }
.row-meta { font-size: 0.87rem; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.status { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.status-pending { background: #fef3d7; color: #8a6100; }
.status-active { background: #e6f4ea; color: #1e6b3a; }
.status-sold { background: #e8f0fe; color: #1a4c96; }
.status-rejected { background: #fdecea; color: #a12622; }
.status-deleted { background: #eceff1; color: #5b6770; }

/* kreator dodawania ogloszenia */
.wizard-progress { margin: 14px 0 4px; }
.wizard-progress-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 5px; }
.wizard-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wizard-bar-fill { height: 100%; background: var(--primary); border-radius: 4px;
  transition: width 0.25s; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h2 { margin: 14px 0 12px; }
/* pola tozsamosci nieruchomosci zablokowane do edycji po pierwszej publikacji */
.locked-note { background: var(--bg); border-radius: 8px; padding: 9px 12px;
  font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.wizard-step .problem-tags { margin-bottom: 12px; }
.tile-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .tile-group { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; border: 2px solid var(--border);
  border-radius: 10px; padding: 14px; cursor: pointer; background: #fff; }
.tile input { position: absolute; opacity: 0; }
.tile:hover { border-color: var(--primary); }
.tile.selected { border-color: var(--primary); background: #eef7f2; }
.tile-title { font-weight: 700; }
.tile-desc { font-size: 0.85rem; color: var(--muted); }
.tile-emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.tile-group-list .tile-emoji { margin-bottom: 0; font-size: 1.35rem; }
.tile-group-list { grid-template-columns: 1fr; }
.tile-group-list .tile { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.tile-group-list .tile-title { min-width: 150px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.wizard-error { color: var(--danger); font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }
.summary-table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.summary-table th, .summary-table td { text-align: left; padding: 6px 10px;
  border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.summary-table th { color: var(--muted); font-weight: 500; width: 45%; }

/* admin */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.admin-inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.admin-inline-form input { flex: 1 1 220px; max-width: 340px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 30px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--bg); }
.lead-new { background: #fffbea; }
.actions-cell { display: flex; gap: 5px; }
.sort-th { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-th:hover { text-decoration: underline; }
.sort-on { color: var(--primary); }

/* panel admina na stronie ogloszenia */
.admin-box { background: #fffbea; border: 1px solid #e6d9a8; border-radius: 10px;
  padding: 16px; margin-bottom: 16px; }
.admin-box h3 { margin-bottom: 8px; }
.admin-facts { width: 100%; font-size: 0.88rem; margin-bottom: 12px; }
.admin-facts th { text-align: left; font-weight: 500; color: var(--muted);
  padding: 3px 10px 3px 0; vertical-align: top; white-space: nowrap; }
.admin-facts td { padding: 3px 0; word-break: break-word; }
.admin-box label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.admin-box textarea { width: 100%; padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit;
  font-size: 0.92rem; }
.admin-box-actions { display: flex; gap: 8px; margin-top: 12px; }

/* legal */
.legal { max-width: 760px; margin-bottom: 40px; }
.legal ol, .legal ul { padding-left: 22px; margin: 6px 0 12px; }
.legal p { margin: 6px 0 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card);
  margin-top: 20px; padding: 16px 0; font-size: 0.88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner nav { display: flex; gap: 14px; }

/* plansza zastepcza (brak zdjecia) */
.ph-tile { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; height: 100%; width: 100%;
  background: linear-gradient(135deg, #0a4a37 0%, #0e5d45 60%, #15805e 100%); }
.ph-type { color: #fff; font-weight: 800; font-size: 1.15rem; }
.ph-city { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.ph-tile-lg { aspect-ratio: 16/7; border-radius: 10px; }
.ph-tile-lg .ph-type { font-size: 1.6rem; }
.ph-tile-lg .ph-city { font-size: 1.1rem; }

/* cena */
.neg { font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 6px; vertical-align: middle; }
.detail-price .neg { font-size: 0.9rem; }

/* pasek zaufania */
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  justify-content: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 6px 0 4px; text-align: center; }
.trust-item { display: flex; flex-direction: column; font-size: 0.85rem; }
.trust-item strong { color: var(--primary); font-size: 0.9rem; }
.trust-item span { color: var(--muted); }
.trust-link { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

/* zrealizowane transakcje */
.sold-section { margin: 10px 0 30px; }
.sold-section h2 { text-align: center; margin-bottom: 12px; }
.card-sold .card-photo img, .card-sold .ph-tile { filter: grayscale(0.55); }
.sold-overlay { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; font-size: 1.3rem;
  letter-spacing: 2px; background: rgba(20, 40, 30, 0.45); }

/* jak to dziala */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 12px 0 18px; }
.step-card { background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; font-size: 0.92rem; }
.step-card p { color: var(--muted); margin-top: 4px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 8px; }
.legal details { background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.legal summary { font-weight: 600; cursor: pointer; }
.legal details p { margin: 8px 0 2px; color: var(--muted); }

/* rejestracja w kreatorze */
.auth-inline { border-top: 2px solid var(--border); margin-top: 16px; padding-top: 6px; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px;
  margin: 16px 0 40px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
  margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px;
  font-size: 1.05rem; }
.contact-info-card strong { font-size: 0.85rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; }
.contact-form { margin: 0; max-width: none; }

/* modal / popup */
.modal-backdrop { position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 30, 24, 0.55); display: flex; align-items: center;
  justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.45s ease; }
.modal-backdrop.visible { opacity: 1; }
.modal { position: relative; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 24px; width: 100%;
  max-width: 420px; max-height: 90vh; overflow-y: auto;
  opacity: 0; transform: translateY(24px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.modal-backdrop.visible .modal { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { transition-duration: 0.01ms; }
  .modal { transform: none; }
}
.modal h3 { font-size: 1.3rem; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: none;
  background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal input, .modal textarea { width: 100%; padding: 10px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 8px; font-family: inherit;
  font-size: 0.98rem; }
.modal label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; }
.modal .tile-group { margin-bottom: 12px; }
.modal .tile { padding: 10px; text-align: center; }
.modal .tile-emoji { margin: 0 auto 4px; }
.modal-consent { font-size: 0.82rem; color: var(--muted); line-height: 1.35;
  margin-bottom: 12px; }

/* cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--card); border-top: 2px solid var(--primary); padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.12); font-size: 0.9rem; }
.cookie-actions { display: flex; gap: 8px; }
