/* kupie-sprzedam-zamienie.pl – Design System (Light) */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --card: #f8f9fa;
  --card2: #f0f1f3;
  --border: #e2e5e9;
  --text: #1a1a2e;
  --muted: #6b7280;
  --primary: #f59e0b;
  --primary-h: #d97706;
  --secondary: #10b981;
  --danger: #ef4444;
  --danger-h: #dc2626;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);

  /* sklep.css compat tokens */
  --color-bg: var(--bg);
  --color-text: var(--text);
  --color-text-soft: #374151;
  --color-muted: var(--muted);
  --color-panel: var(--surface);
  --color-panel-2: var(--card);
  --color-border: var(--border);
  --color-border-soft: #edf0f3;
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-h);
  --color-hover: rgba(0, 0, 0, .04);
  --color-link: #3b82f6;
  --color-link-hover: #2563eb;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #d97706;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: linear-gradient(165deg, #92400e 0%, #b45309 8%, #d97706 20%, #b45309 80%, #92400e 100%) fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden
}

a {
  color: var(--primary);
  text-decoration: none
}

a:hover {
  color: var(--primary-h)
}

img {
  max-width: 100%
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25
}

h3 {
  font-size: 1.05rem;
  font-weight: 600
}

h4 {
  font-size: .92rem;
  font-weight: 600
}

p {
  color: var(--muted)
}

/* ── NAV ── */
.nav-main {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text) !important
}

.nav-logo span {
  color: var(--primary)
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 16px;
  justify-content: space-between;
  gap: 0;
  height: 100%
}

.nav-group-left {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%
}

.nav-group-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.nav-datetime {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 6px
}
.nav-datetime i {
  color: var(--primary);
  font-size: .85rem
}

.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 0;
  font-size: .875rem;
  font-weight: 500;
  transition: .2s;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  box-sizing: border-box;
  border-bottom: 3px solid transparent
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card)
}

.nav-links a.active {
  color: var(--primary) !important;
  font-weight: 700;
  background: rgba(245,158,11,.06);
  border-bottom-color: var(--primary)
}

/* ── CART BUTTON ── */
.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  transition: .2s;
  text-decoration: none
}
.btn-cart:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245,158,11,.08)
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15)
}

.btn-nav {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  transition: .2s !important
}

.btn-nav:hover {
  background: var(--primary-h) !important
}

.btn-nav-add {
  background: var(--secondary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: .2s !important
}

.btn-nav-add:hover {
  background: #059669 !important;
  color: #fff !important
}

.btn-nav-out {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  transition: .2s !important
}

.btn-nav-out:hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important
}

.nav-form-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 10px;
  margin-right: 6px;
  border-right: 1px solid var(--border)
}

.nav-form-links a {
  color: var(--text);
  font-weight: 600;
  font-size: .83rem;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: .2s;
  white-space: nowrap
}

.nav-form-links a:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 9px
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px
}

@media(max-width:900px) {
  .nav-hamburger {
    display: flex
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
    z-index: 200;
    margin-left: 0;
    justify-content: flex-start
  }

  .nav-links.open {
    display: flex
  }

  .nav-group-left,
  .nav-group-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px
  }

  .nav-group-right {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border)
  }

  .nav-datetime {
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box
  }

  .nav-links a.active::after {
    display: none
  }

  .nav-links a.active {
    border-left: 3px solid var(--primary);
    border-radius: 0
  }

  .btn-cart {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    height: auto;
    padding: 8px 14px
  }

  .nav-links a,
  .btn-nav,
  .btn-nav-add,
  .btn-nav-out {
    width: 100%;
    text-align: left !important
  }
}

/* ── HERO ── */
.hero {
  padding: 36px 20px 28px;
  max-width: 100%;
  margin: 0 auto
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px
}

.hero h1 span {
  color: var(--primary)
}

.hero p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 20px
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.hero-cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text)
}

.hero-cat-pill span.em {
  font-size: 1.3rem
}

.hero-cat-pill small {
  color: var(--muted);
  font-size: .75rem;
  margin-left: auto
}

@media(max-width:768px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-visual {
    display: none
  }

  .hero h1 {
    font-size: 1.6rem
  }
}

/* ── SEARCH ── */
.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 900px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.search-bar input,
.search-bar select {
  flex: 1;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm)
}

.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: var(--primary)
}

/* ── FB GRUPY ── */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px
}

.fb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: .2s;
  text-decoration: none
}

.fb-card:hover {
  border-color: var(--primary);
  background: var(--card);
  transform: translateY(-2px)
}

.fb-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: #fff
}

.fb-card-body h3 {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 4px
}

.fb-card-body p {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px
}

.fb-card-body .fb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted)
}

.fb-card-body .fb-join {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: #1877f2;
  margin-top: 8px
}

/* ── FB STRIP (2-rzędowy na dole homepage) ── */
.fb-strip-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* scrollbar subtelny */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent
}
.fb-strip-wrap::-webkit-scrollbar { height: 4px }
.fb-strip-wrap::-webkit-scrollbar-track { background: transparent }
.fb-strip-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px }

.fb-strip {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 8px;
  width: max-content;
  min-width: 100%
}

.fb-strip-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 220px;
  text-decoration: none;
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: .15s;
  flex-shrink: 0
}
.fb-strip-card:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24,119,242,.05)
}
.fb-strip-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1
}
.fb-strip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

@media(max-width:600px) {
  .fb-strip {
    grid-template-rows: repeat(1, auto)
  }
  .fb-strip-card { width: 190px }
}

/* ── KATEGORIE ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  display: block
}

.cat-card:hover {
  border-color: var(--primary);
  background: var(--card);
  transform: translateY(-2px)
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 10px
}

.cat-card h4 {
  font-size: .825rem;
  color: var(--text);
  margin-bottom: 2px
}

.cat-card small {
  font-size: .72rem;
  color: var(--muted)
}

/* ── OGŁOSZENIA ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
  cursor: pointer
}

.listing-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.listing-img {
  aspect-ratio: 16/10;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted)
}

.listing-body {
  padding: 12px 14px
}

.listing-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 3px
}

.listing-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--muted)
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700
}

.badge-new {
  background: rgba(16, 185, 129, .12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, .25)
}

.badge-used {
  background: rgba(245, 158, 11, .1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, .2)
}

.badge-fb {
  background: rgba(24, 119, 242, .12);
  color: #1d4ed8;
  border: 1px solid rgba(24, 119, 242, .25)
}

/* ── SEKCJA ── */
.section {
  padding: 32px 20px;
  max-width: 100%;
  margin: 0 auto
}

.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px
}

.section-hdr h2 {
  margin: 0
}

.section-title {
  text-align: center;
  margin-bottom: 24px
}

.section-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 20px
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px
}

.trust-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.trust-item {
  text-align: center
}

.trust-item .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary)
}

.trust-item .lbl {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 3px
}

@media(max-width:640px) {
  .trust-inner {
    grid-template-columns: 1fr 1fr
  }
}

/* ── CTA ── */
.cta-strip {
  background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(16, 185, 129, .05));
  border: 1px solid rgba(245, 158, 11, .15);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin: 0 20px 32px
}

.cta-strip h2 {
  margin-bottom: 12px
}

.cta-strip p {
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto
}

/* ── PRZYCISKI ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  font-size: .95rem
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-h);
  color: #fff
}

.btn-green {
  background: var(--secondary);
  color: #fff
}

.btn-green:hover {
  background: #059669;
  color: #fff
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted)
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.btn-fb {
  background: #1877f2;
  color: #fff
}

.btn-fb:hover {
  background: #1558b0;
  color: #fff
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem
}

.btn-full {
  width: 100%;
  justify-content: center
}

/* ── ALERTY ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.alert-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #dc2626
}

.alert-info {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
  color: #b45309
}

.alert-success {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #15803d
}

/* ── LOGIN ── */
.login-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px
}

.login-logo {
  text-align: center;
  margin-bottom: 28px
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 8px
}

.login-card .sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 24px
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px
}

.form-input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: .2s;
  width: 100%;
  display: block
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15)
}

.form-hint {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 5px
}

.sms-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px
}

.sms-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: .2s
}

.sms-digit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15)
}

.back-link {
  text-align: center;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted)
}

.back-link a {
  color: var(--muted)
}

/* ── SOCIAL LOGIN ── */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
  margin-bottom: 10px;
  border: none
}

.btn-social:hover {
  opacity: .85
}

.btn-facebook {
  background: #1877F2;
  color: #fff
}

.btn-google {
  background: #fff;
  color: #333;
  border: 2px solid #dadce0
}

.login-divider {
  text-align: center;
  color: var(--muted);
  margin: 16px 0;
  font-size: .85rem;
  position: relative
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border)
}

.login-divider::before {
  left: 0
}

.login-divider::after {
  right: 0
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 20px 20px
}

.footer-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px
}

.footer-brand .logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px
}

.footer-brand .logo span {
  color: var(--primary)
}

.footer-brand p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6
}

.footer-col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px
}

.footer-col a {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 8px;
  transition: .15s
}

.footer-col a:hover {
  color: var(--primary)
}

.footer-bottom {
  max-width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px
}

.footer-bottom small {
  font-size: .78rem;
  color: var(--muted)
}

.footer-bottom small a {
  color: var(--muted)
}

@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-brand {
    grid-column: 1/-1
  }
}

@media(max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* ── UTILITY ── */
.text-center {
  text-align: center
}

.mt-8 {
  margin-top: 8px
}

.mt-16 {
  margin-top: 16px
}

.mt-24 {
  margin-top: 24px
}

.mt-32 {
  margin-top: 32px
}

.mb-8 {
  margin-bottom: 8px
}

.mb-16 {
  margin-bottom: 16px
}

.mb-24 {
  margin-bottom: 24px
}

/* ── TOPBAR ── */
.main-content-wrap {
  background: var(--bg);
  display: block;
}
.topbar {
  background: transparent;
  color: #fff
}
.topbar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px
}
.topbar-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0
}
.topbar-link {
  color: rgba(255,255,255,.9) !important;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px
}
.topbar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.18)
}
.topbar-btn-add {
  background: rgba(255,255,255,.2);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none
}
.topbar-btn-add:hover {
  background: rgba(255,255,255,.32);
  color: #fff !important
}
@media(max-width:640px) {
  .topbar-tagline { display: none }
}

/* ── NAV SEPARATOR ── */
.nav-separator {
  display: none !important;
  height: 0 !important;
  background: none !important;
}

/* ── HERO SHOWCASE (zastępuje hero-visual/cat pills) ── */
.hero-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden
}
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 8px
}
.showcase-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: .15s
}
.showcase-card:hover { border-color: var(--primary) }
.sc-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--card2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center
}
.sc-info { flex: 1; min-width: 0 }
.sc-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.sc-price { font-size: .88rem; font-weight: 800; color: var(--primary) }
.sc-loc { font-size: .7rem; color: var(--muted) }

/* ── GRUPY FB – THUMBNAIL GRID ── */
.fb-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px
}
.fb-thumb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: .2s;
  display: flex;
  flex-direction: column
}
.fb-thumb-card:hover {
  border-color: #1877f2;
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}
.fb-thumb-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  flex-shrink: 0
}
.fb-thumb-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px
}
.fb-thumb-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3
}
.fb-thumb-join {
  margin-top: auto;
  padding-top: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: #1877f2;
  display: flex;
  align-items: center;
  gap: 5px
}

/* ── MAPA WOJEWÓDZTW ── */
.map-bar {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 32px 20px
}
.map-bar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px
}
.map-bar h2 { color: #fff; margin-bottom: 8px }
.woj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
  margin-top: 28px
}
.woj-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: rgba(255,255,255,.9);
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 4px
}
.woj-card:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff
}
.woj-name { font-size: .82rem; font-weight: 600 }
.woj-count { font-size: .7rem; color: rgba(255,255,255,.5) }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-inner,
  .topbar-inner { padding: 0 12px }
  .hero { padding: 24px 12px 20px }
  .section { padding: 24px 12px }
  .trust-bar { padding: 12px 12px }
  .cta-strip { margin: 0 12px 24px; padding: 24px 12px }
  .section-sep { margin: 0 16px }
  .topbar-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px
  }
  .topbar-actions {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end
  }
  .topbar-btn-add {
    font-size: .72rem;
    padding: 4px 10px
  }
  .hero h1 { font-size: 1.5rem }
  .hero p { font-size: .85rem }

  /* Touch targets — min 44x44px na mobile */
  .nav-links a,
  .footer-col a,
  .topbar-link,
  .woj-card,
  .cat-card,
  .fb-strip-card {
    min-height: 44px;
    display: flex;
    align-items: center
  }
  .footer-col a {
    padding: 8px 0
  }
  .fb-card-body .fb-meta,
  .fb-card-body .fb-join,
  .listing-meta {
    font-size: .8rem
  }
  /* Zapewnij czytelność tekstu */
  .fb-card-body p,
  .cat-card small,
  .listing-meta,
  .woj-count,
  .sc-loc,
  .fb-thumb-join {
    font-size: .78rem
  }
}
@media (max-width: 480px) {
  .cr-item-shop { flex: 0 0 170px }
  .cr-item-listing { flex: 0 0 160px }
  .cr-item-fb { flex: 0 0 170px }
  .cr-item-free { flex: 0 0 160px }
  .cr-arrow button { width: 28px; height: 28px; font-size: 14px }
  .cr-arrow { flex: 0 0 32px }
  #box_miasta .miasto-chip { font-size: 11px; padding: 4px 10px }
}
@media (max-width: 420px) {
  .topbar-actions .topbar-btn-add:last-child { display: none }
}
