/* ============================================
   SKP.waw.pl — style
   Mobile-first, jasne kolory, czysty i nowoczesny
   ============================================ */

:root {
  --bg:           #f7fafc;
  --surface:      #ffffff;
  --surface-alt:  #f1f5f9;
  --primary:      #0ea5e9;       /* sky-500 */
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;       /* sky-100 */
  --accent:       #10b981;       /* emerald-500 */
  --accent-soft:  #d1fae5;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --text:         #0f172a;       /* slate-900 */
  --muted:        #64748b;       /* slate-500 */
  --border:       #e2e8f0;       /* slate-200 */
  --border-soft:  #f1f5f9;
  --shadow-sm:    0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow:       0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:    0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

/* --- layout helpers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--primary); color: #fff; padding: .5rem 1rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* --- header --- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.logo span strong { color: var(--primary); }
.main-nav { display: none; gap: 2rem; }
.main-nav a {
  color: var(--text); font-weight: 500; font-size: .98rem;
  padding: .5rem 0; position: relative;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.menu-toggle {
  width: 40px; height: 40px; background: none; border: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  cursor: pointer; padding: 10px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: .5rem 1.25rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: .85rem 0; border-bottom: 1px solid var(--border-soft);
  color: var(--text); font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* --- hero --- */
.hero {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 600; font-size: .85rem;
  padding: .35rem 1rem; border-radius: 99px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.hero h1 { margin-bottom: 1rem; }
.hero-lead {
  max-width: 720px; margin: 0 auto 2rem;
  font-size: 1.15rem; color: var(--muted);
}

/* --- search --- */
.hero-search {
  max-width: 900px; margin: 0 auto;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: left;
}
.search-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.search-field { display: block; }
.search-field > span {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--muted); margin-bottom: .35rem; text-transform: uppercase;
  letter-spacing: .05em;
}
.search-field select {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem; font-family: inherit; color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='%2364748b'><path d='M5.5 7l4.5 4 4.5-4' stroke='%2364748b' stroke-width='2' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.search-field select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.search-filters {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  margin-top: 1rem; font-size: .95rem;
}
.search-filters label {
  display: inline-flex; align-items: center; gap: .4rem;
  cursor: pointer; padding: .35rem 0;
}
.search-filters input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary);
}

/* --- buttons --- */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 0; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, .35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: var(--surface); color: var(--primary-dark);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); text-decoration: none; }

/* --- stats --- */
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; max-width: 600px; margin: 2.5rem auto 0;
}
.hero-stats > div {
  background: var(--surface); padding: 1rem;
  border-radius: var(--radius); text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.hero-stats strong {
  display: block; font-size: 1.6rem; color: var(--primary-dark); line-height: 1.2;
}
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* --- sections --- */
section { padding: 3rem 0; }
.section-lead {
  max-width: 700px; margin: 0 0 2rem;
  color: var(--muted); font-size: 1.08rem;
}

/* --- map --- */
.map-section { background: var(--surface); border-top: 1px solid var(--border); }
#map {
  height: 420px; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-top: 1rem;
  background: #cfd8dc;
}
.map-legend { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.marker-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  vertical-align: middle; margin-right: .25rem;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.marker-dot.red { background: #ef4444; }
.marker-dot.blue { background: var(--primary); }
.marker-dot.gray { background: #94a3b8; }

/* --- districts grid --- */
.districts-section { background: var(--bg); }
.districts-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
}
.district-card {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface); color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.district-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  text-decoration: none;
}
.district-card::after {
  content: "→"; position: absolute; top: 1rem; right: 1.25rem;
  color: var(--primary); opacity: 0; transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
  font-weight: 700;
}
.district-card:hover::after { opacity: 1; transform: translateX(0); }
.district-count {
  font-size: 1.8rem; font-weight: 700; color: var(--primary);
  line-height: 1;
}
.district-name { font-weight: 600; font-size: 1.05rem; margin-top: .35rem; }
.district-desc { font-size: .85rem; color: var(--muted); }

/* --- categories --- */
.categories-section { background: var(--surface); }
.categories-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.category-card {
  background: var(--surface); color: var(--text);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.category-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--primary); text-decoration: none;
}
.category-card svg { color: var(--primary); }
.category-card h3 { margin: 0; color: var(--text); }
.category-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.category-count {
  margin-top: auto; padding-top: .5rem;
  font-weight: 600; color: var(--primary-dark); font-size: .9rem;
}
.category-card.featured {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%);
  border-color: var(--primary);
}
.category-card.featured h3 { color: var(--primary-dark); }

/* --- outskirts --- */
.outskirts-section { background: var(--surface-alt); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface); color: var(--text);
  padding: .55rem 1rem; border-radius: 99px;
  border: 1px solid var(--border); text-decoration: none;
  font-size: .95rem;
  transition: transform .15s, border-color .15s;
}
.chip small {
  background: var(--primary-soft); color: var(--primary-dark);
  padding: .1rem .45rem; border-radius: 99px; font-size: .75rem; font-weight: 700;
}
.chip:hover {
  border-color: var(--primary); color: var(--primary-dark);
  transform: translateY(-1px); text-decoration: none;
}

/* --- features --- */
.features-section { background: var(--surface); }
.features-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.feature {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: .5rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============================================
   SEO content — zróżnicowane bloki
   ============================================ */
.seo-content {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 20%, var(--surface) 80%, var(--bg) 100%);
  padding: 4rem 0;
}
.seo-header {
  max-width: 820px; margin: 0 auto 3rem; text-align: center;
}
.seo-eyebrow {
  display: inline-block;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: .35rem 1rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.seo-header h2 { margin-bottom: 1rem; }
.seo-content .lead {
  font-size: 1.15rem; color: var(--text);
  max-width: 760px; margin: 0 auto;
  line-height: 1.7;
}

.content-block {
  max-width: 1000px; margin: 0 auto 3rem;
  padding: 0 0.25rem;
}
.content-block h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 0; margin-bottom: 1rem;
  color: var(--text);
}
.content-block h4 { margin: 0 0 .5rem; }
.content-block p { color: var(--text); line-height: 1.7; }
.content-block.alt { background: var(--bg); padding: 2.5rem; border-radius: var(--radius-lg); }

.two-col {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
  align-items: start;
}

/* Placeholder grafik */
.img-placeholder {
  margin: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #bae6fd 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--primary-dark);
  min-height: 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem;
}
.img-placeholder svg { opacity: .6; }
.img-placeholder figcaption {
  font-size: .85rem; font-weight: 600; opacity: .8;
}
.img-placeholder.small { min-height: 90px; padding: 1rem; }
.img-placeholder.small svg { width: 36px; height: 36px; }

/* TL;DR box */
.tldr-box {
  display: flex; gap: 1.25rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #a7f3d0 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 auto 3rem; max-width: 1000px;
  border: 1px solid #6ee7b7;
}
.tldr-icon {
  flex-shrink: 0; color: var(--accent);
  background: #fff; border-radius: var(--radius);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.tldr-content h3 {
  margin: 0 0 .75rem; color: #065f46;
  font-size: 1.15rem;
}
.tldr-content ul { margin: 0; padding-left: 1.2rem; color: #064e3b; }
.tldr-content li { margin-bottom: .35rem; }

/* Timeline */
.timeline {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .75rem;
}
.timeline li {
  display: flex; gap: 1rem; align-items: center;
  background: var(--surface); padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
}
.timeline li:hover { border-color: var(--primary); transform: translateX(4px); }
.timeline-marker {
  flex-shrink: 0;
  min-width: 56px; height: 56px;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  padding: 0 .5rem;
}
.timeline li div { flex: 1; }
.timeline li strong { display: block; font-size: 1rem; color: var(--text); }
.timeline li p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Check grid (co sprawdza diagnosta) */
.check-grid {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
.check-item {
  background: var(--surface); padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.check-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  font-weight: 700; font-size: .85rem;
  margin-bottom: .5rem;
}
.check-item strong { display: block; margin-bottom: .25rem; }
.check-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Compare cards OSKP/PSKP */
.compare-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
.compare-card {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  position: relative;
}
.compare-card.compare-blue { border-color: var(--primary); }
.compare-card.compare-red  { border-color: #ef4444; background: linear-gradient(180deg, #fff 0%, #fef2f2 100%); }
.compare-tag {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: .25rem .75rem; border-radius: 99px;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  margin-bottom: .75rem;
}
.compare-red .compare-tag { background: #ef4444; }
.compare-card h4 {
  font-size: 1.15rem; margin-bottom: .35rem;
}
.compare-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.compare-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
  margin: 1rem 0 .35rem;
}
.yes-list, .no-list { list-style: none; padding: 0; margin: 0; }
.yes-list li, .no-list li {
  padding-left: 1.5rem; position: relative;
  margin-bottom: .35rem; line-height: 1.5;
}
.yes-list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.no-list li::before {
  content: "✗"; position: absolute; left: 0;
  color: #ef4444; font-weight: 700;
}

.small-note {
  font-size: .9rem; color: var(--muted);
  padding: .75rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
}

/* Price table */
.price-table-wrap { overflow-x: auto; margin: 1.5rem 0 1rem; }
.price-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: .9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--surface-alt);
  font-size: .82rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.price-table td:last-child { text-align: right; white-space: nowrap; color: var(--primary-dark); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tr.highlight { background: var(--primary-soft); }
.price-table tr.repeat td { background: var(--accent-soft); color: #065f46; }

.note-info {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: .9rem 1.25rem;
  font-size: .95rem;
  color: var(--primary-dark);
  margin: 0;
}

/* Spec grid (motocykle/ciągniki/zabytki) */
.spec-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
.spec-card {
  background: var(--surface); padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.spec-card h4 { font-size: 1.1rem; margin: 0 0 .5rem; }
.spec-card p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.55; }
.spec-card p:last-child { margin-bottom: 0; }
.spec-warn {
  font-size: .88rem !important;
  padding: .75rem .9rem;
  background: #fef3c7;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  color: #78350f;
  margin-top: auto !important;
}

/* Alert boxes (info/warning/danger) */
.alert-box {
  display: flex; gap: 1.25rem;
  max-width: 1000px; margin: 2rem auto 3rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid;
}
.alert-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius-sm);
}
.alert-box h4 { margin: 0 0 .5rem; font-size: 1.1rem; }
.alert-box p { margin: 0 0 .5rem; font-size: .98rem; line-height: 1.6; }
.alert-box p:last-child { margin-bottom: 0; }
.alert-extra { margin-top: .75rem; font-size: .92rem; opacity: .92; }
.alert-warning {
  background: #fef3c7; border-color: var(--warning); color: #78350f;
}
.alert-warning .alert-icon { color: var(--warning); }
.alert-warning h4 { color: #78350f; }
.alert-info {
  background: var(--primary-soft); border-color: var(--primary); color: #0c4a6e;
}
.alert-info .alert-icon { color: var(--primary); }
.alert-info h4 { color: #0c4a6e; }
.alert-danger {
  background: #fee2e2; border-color: #ef4444; color: #7f1d1d;
}
.alert-danger .alert-icon { color: #ef4444; }
.alert-danger h4 { color: #7f1d1d; }

.inline-num {
  margin: .75rem 0 0; padding-left: 1.25rem;
}
.inline-num li { margin-bottom: .5rem; line-height: 1.6; }

/* Checklist grid */
.checklist-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .5rem;
  grid-template-columns: 1fr;
}
.checklist-grid li {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .95rem;
}
.checklist-grid li::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>") center/14px no-repeat;
}

/* Doc grid */
.doc-grid {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
.doc-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.doc-item.must { border-left: 3px solid var(--accent); }
.doc-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.doc-item.must .doc-icon { background: var(--accent-soft); color: var(--accent); }
.doc-item strong { display: block; margin-bottom: .15rem; }
.doc-item p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Stats row (warszawska specyfika) */
.stats-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 1.5rem 0 2rem;
}
.stat-big {
  background: var(--surface); padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-big strong {
  display: block;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: .2rem;
}
.stat-big span { font-size: .82rem; color: var(--muted); }

/* Steps grid (jak korzystać) */
.steps-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 1.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
}
.step:hover { border-color: var(--primary); transform: translateY(-2px); }
.step-num {
  position: absolute; top: 1.5rem; left: 1.25rem;
  width: 36px; height: 36px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h4 { margin: 0 0 .5rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.cta-bottom {
  max-width: 1000px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}

/* Breakpointy dla SEO content */
@media (min-width: 640px) {
  .two-col { grid-template-columns: 1.4fr 1fr; }
  .two-col.reverse > :first-child { order: 2; }
  .two-col.reverse > :last-child  { order: 1; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .check-grid { grid-template-columns: repeat(4, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .checklist-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- guide --- */
.guide-section { background: var(--bg); }
.guide-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.guide-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.guide-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--primary);
}
.guide-thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #bae6fd 100%);
  border-bottom: 2px dashed var(--primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .4rem;
  color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.guide-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.4) 0, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.3) 0, transparent 40%);
  pointer-events: none;
}
.guide-thumb svg { opacity: .55; position: relative; z-index: 1; }
.guide-thumb figcaption {
  font-size: .72rem; font-weight: 600; opacity: .7;
  letter-spacing: .02em;
  position: relative; z-index: 1;
}
.guide-card:hover .guide-thumb svg { opacity: .75; transform: scale(1.05); transition: .25s; }
.guide-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.guide-cat {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); background: var(--accent-soft);
  padding: .25rem .65rem; border-radius: 99px;
  margin-bottom: .75rem;
  align-self: flex-start;
}
.guide-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem; line-height: 1.35;
}
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.guide-card p { margin: 0 0 .75rem; color: var(--muted); font-size: .93rem; }
.guide-card time { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: .5rem; }
.cta-center { text-align: center; margin-top: 2rem; }

/* --- faq --- */
.faq-section { background: var(--surface); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: .75rem;
  background: var(--surface);
}
.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer; font-weight: 600;
  list-style: none; position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  color: var(--primary); font-size: 1.5rem; font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.25rem 1.25rem; margin: 0;
  color: var(--muted);
}

/* --- footer --- */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.site-footer h4 {
  color: #fff; font-size: .95rem; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.footer-logo { color: #fff; margin-bottom: 1rem; }
.footer-logo strong { color: var(--primary); }
.footer-about { color: #94a3b8; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a { color: #cbd5e1; text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem; margin-top: 2rem;
  color: #64748b; font-size: .85rem;
}

/* ============================================
   Breakpointy — 640+ (mobile landscape)
   ============================================ */
@media (min-width: 640px) {
  .search-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .districts-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   768+ (tablet)
   ============================================ */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  #map { height: 520px; }
  .districts-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  section { padding: 4rem 0; }
}

/* ============================================
   1024+ (desktop)
   ============================================ */
@media (min-width: 1024px) {
  .districts-grid { grid-template-columns: repeat(6, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid .featured { grid-column: span 2; grid-row: span 2; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Focus visibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   Podstrony (kategoria poradnika, wpis)
   ============================================ */

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: .88rem;
  color: var(--muted);
  padding: 1rem 0 .5rem;
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "›"; margin: 0 .5rem; color: var(--border);
  font-size: 1.1rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* --- Page hero (dla kategorii i innych podstron) --- */
.page-hero {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
  padding: 2rem 0 3rem;
}
.page-hero .hero-eyebrow { background: var(--surface); border: 1px solid var(--border); }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: .75rem;
}
.page-hero .lead {
  font-size: 1.1rem; color: var(--muted);
  max-width: 720px; margin: 0 0 1.5rem;
}
.page-hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: .9rem; color: var(--muted);
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.page-hero .meta-row strong { color: var(--text); margin-right: .35rem; }

/* --- Layout z sidebarem --- */
.content-layout {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding: 2.5rem 0;
}
.sidebar { order: 2; }
.content-main { order: 1; min-width: 0; }

.sidebar-box {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.sidebar-box h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin: 0 0 .75rem;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { border-bottom: 1px solid var(--border-soft); }
.sidebar-box ul li:last-child { border-bottom: 0; }
.sidebar-box ul a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; color: var(--text); font-size: .95rem;
  text-decoration: none;
  transition: color .15s, padding .15s;
}
.sidebar-box ul a:hover { color: var(--primary-dark); padding-left: .25rem; }
.sidebar-box ul a.active {
  color: var(--primary-dark); font-weight: 600;
  padding-left: .75rem;
  border-left: 3px solid var(--primary);
  margin-left: -.25rem;
}
.sidebar-box ul a small {
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 99px;
}

/* TOC */
.sidebar-toc ul { counter-reset: toc; }
.sidebar-toc ul a {
  padding: .4rem 0 .4rem 2rem;
  position: relative;
  font-size: .92rem;
}
.sidebar-toc ul a::before {
  counter-increment: toc; content: counter(toc);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .35rem; margin: 3rem 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text); font-weight: 500;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .gap { border: 0; background: transparent; color: var(--muted); }

/* Article hero */
.article-hero { padding: 1rem 0 2.5rem; }
.article-cat-badge {
  display: inline-block;
  background: var(--accent-soft); color: #065f46;
  padding: .3rem .85rem; border-radius: 99px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2; margin-bottom: 1rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: .92rem; color: var(--muted);
  padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article-meta > div { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta svg { color: var(--primary); flex-shrink: 0; }
.article-hero-image {
  margin: 0 0 2rem;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #bae6fd 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--primary-dark);
  position: relative; overflow: hidden;
}
.article-hero-image::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.4) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.3) 0, transparent 40%);
}
.article-hero-image figcaption { font-size: .88rem; font-weight: 600; opacity: .75; position: relative; z-index:1; }
.article-hero-image svg { opacity: .55; position: relative; z-index:1; }

/* Prose */
.prose {
  max-width: 740px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}
.prose > * + * { margin-top: 1.1em; }
.prose .lead {
  font-size: 1.22rem; line-height: 1.65;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  scroll-margin-top: 80px;
}
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 1rem 0; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--primary); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure.inline-img {
  margin: 2rem 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #bae6fd 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--primary-dark);
}
.prose figure.inline-img svg { opacity: .55; }
.prose figure.inline-img figcaption {
  font-size: .82rem; font-weight: 600; opacity: .75;
}

/* Share bar */
.share-bar {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: 1.5rem 0; margin: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.share-bar span { font-size: .88rem; color: var(--muted); margin-right: .5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }

/* Author box */
.author-box {
  display: flex; gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  align-items: flex-start;
  margin: 2rem 0;
}
.author-avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.author-info strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: .25rem; }
.author-info p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* Related posts */
.related-section {
  background: var(--bg);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.related-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* CTA bar */
.cta-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-bar h2 { color: #fff; margin-bottom: .75rem; }
.cta-bar p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; }
.cta-bar .btn-ghost {
  background: #fff; color: var(--primary-dark); border-color: #fff;
}
.cta-bar .btn-ghost:hover { background: var(--primary-soft); }

/* Breakpointy dla podstron */
@media (min-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
  .content-layout.reverse { grid-template-columns: 280px 1fr; }
  .sidebar { order: 1; }
  .content-main { order: 2; }
  .sidebar-sticky { position: sticky; top: 80px; }
}

/* ============================================
   Dzielnica — lista stacji
   ============================================ */

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  align-items: center;
}
.filter-bar-label {
  font-size: .82rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  flex-shrink: 0;
}
.filter-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  flex: 1 1 auto;
  align-items: center;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); }
.filter-chip input { display: none; }
.filter-chip input:checked + span { color: var(--primary-dark); font-weight: 600; }
.filter-chip:has(input:checked) {
  border-color: var(--primary); background: var(--primary-soft);
}
.filter-sort {
  flex-shrink: 0;
  padding: .5rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit; font-size: .9rem;
  min-width: 200px;
}
@media (max-width: 820px) {
  .filter-sort { width: 100%; min-width: 0; }
}

.station-list {
  display: grid; gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.station-list > li { list-style: none; }
.station-card-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.station-card-full:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.station-thumb {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  position: relative;
}
.station-thumb svg { opacity: .5; }
.station-thumb figcaption {
  /* Visually hidden — dostępny dla screen readerów */
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.station-body {
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.station-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.station-tag {
  padding: .15rem .55rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
}
.station-tag.oskp { background: #fee2e2; color: #7f1d1d; }
.station-tag.pskp { background: var(--primary-soft); color: var(--primary-dark); }
.station-tag.service { background: var(--accent-soft); color: #065f46; }
.station-tag.warning { background: #fef3c7; color: #78350f; }

.station-name {
  margin: 0; font-size: 1.12rem; font-weight: 700;
}
.station-name a { color: var(--text); text-decoration: none; }
.station-name a:hover { color: var(--primary-dark); text-decoration: underline; }
.station-address {
  color: var(--muted); font-size: .95rem; margin: 0;
  display: inline-flex; gap: .35rem; align-items: flex-start;
}
.station-address svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.station-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  font-size: .9rem; color: var(--muted);
  margin-top: .25rem;
}
.station-meta strong { color: var(--text); margin-right: .25rem; }
.station-meta .rating {
  color: var(--warning); font-weight: 700;
}
.station-meta .status-open { color: var(--accent); font-weight: 600; }
.station-meta .status-closed { color: #dc2626; font-weight: 600; }

.station-actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .5rem;
}
.station-actions .btn-sm {
  padding: .5rem 1rem; font-size: .88rem;
  border-radius: var(--radius-sm); font-weight: 600;
  text-decoration: none;
}
.station-actions .btn-call {
  background: var(--accent); color: #fff;
  display: inline-flex; gap: .4rem; align-items: center;
}
.station-actions .btn-call:hover { background: #059669; }
.station-actions .btn-details {
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--border);
}
.station-actions .btn-details:hover { border-color: var(--primary); }

@media (min-width: 640px) {
  .station-card-full { grid-template-columns: 140px 1fr; }
  .station-thumb { aspect-ratio: auto; height: 100%; }
}

/* ============================================
   Karta pojedynczej stacji
   ============================================ */

.station-hero {
  padding: 1rem 0 2rem;
}
.station-hero-layout {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* Wariant bez zdjęcia — hero 1-kolumnowy z pastelowym tłem */
.station-hero.no-image {
  padding: 0;
  margin-bottom: 1.5rem;
}
.station-hero.no-image .hero-inner {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #e0f2fe 40%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.station-hero.no-image .hero-inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.5) 0, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(14,165,233,.08) 0, transparent 45%);
  pointer-events: none;
}
.station-hero.no-image .station-hero-layout {
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  gap: 2rem;
}
.station-hero.no-image .station-title-box {
  gap: .85rem;
}
.station-hero.no-image h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.station-initials {
  flex-shrink: 0;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.7);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .35rem;
  color: var(--primary-dark);
  backdrop-filter: blur(4px);
}
.station-initials svg { opacity: .6; }
.station-initials span {
  font-size: .72rem; font-weight: 600; opacity: .7;
  letter-spacing: .02em;
}
@media (max-width: 767px) {
  .station-hero.no-image .station-hero-layout {
    grid-template-columns: 1fr;
  }
  .station-hero.no-image .station-initials {
    order: -1; width: 96px; height: 96px; margin: 0 auto;
  }
}
.station-hero-image {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #bae6fd 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: var(--primary-dark);
  position: relative; overflow: hidden;
}
.station-hero-image svg { opacity: .55; }
.station-hero-image figcaption { font-size: .85rem; font-weight: 600; opacity: .75; }

.station-title-box {
  display: flex; flex-direction: column; gap: .75rem;
}
.station-title-box h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2; margin: 0;
}
.rating-stars {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.05rem;
}
.stars {
  display: inline-flex; gap: 2px; color: #f59e0b;
}
.stars svg { width: 18px; height: 18px; }
.rating-value { font-weight: 700; color: var(--text); }
.rating-count { color: var(--muted); font-size: .9rem; }

.info-cards {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
.info-card {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; gap: .85rem;
  align-items: flex-start;
}
.info-card-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.info-card-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: 0 0 .2rem;
}
.info-card-value {
  font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0;
  line-height: 1.4;
}
.info-card-value a { color: var(--primary-dark); text-decoration: none; }
.info-card-value a:hover { text-decoration: underline; }
.info-card-sub { font-size: .85rem; color: var(--muted); margin: .15rem 0 0; }

.info-card.status-open { border-left: 4px solid var(--accent); }
.info-card.status-closed { border-left: 4px solid #dc2626; }

/* Hours table */
.hours-table {
  width: 100%; margin-top: 1rem;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  table-layout: fixed;
}
.hours-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
}
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:first-child { color: var(--muted); }
.hours-table td:last-child {
  text-align: right; font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.hours-table tr.today {
  background: var(--primary-soft);
}
.hours-table tr.today td:first-child { color: var(--primary-dark); font-weight: 700; }
.hours-table td.closed { color: #dc2626; }

/* Services list */
.services-list {
  display: grid; gap: .6rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
  list-style: none; padding: 0;
}
@media (min-width: 520px) {
  .services-list { grid-template-columns: 1fr 1fr; }
}
.services-list li {
  display: flex; align-items: center; gap: .5rem;
  min-width: 0;
  overflow-wrap: break-word;
  padding: .6rem .85rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .92rem;
}
.services-list li.no { color: var(--muted); opacity: .7; }
.services-list li .ico {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700; font-size: .9rem;
}
.services-list li.yes .ico { background: var(--accent-soft); color: var(--accent); }
.services-list li.no .ico { background: #f1f5f9; color: #94a3b8; }

/* Rating breakdown */
.rating-breakdown {
  background: var(--surface); padding: 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.rating-big {
  display: flex; gap: 1.5rem; align-items: center;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.rating-big .big-num {
  font-size: 3rem; font-weight: 700; color: var(--warning);
  line-height: 1;
}
.rating-big .big-meta {
  display: flex; flex-direction: column; gap: .15rem;
}
.rating-big .big-meta .stars svg { width: 20px; height: 20px; }
.rating-bars {
  display: grid; gap: .5rem;
}
.rating-bar {
  display: grid;
  grid-template-columns: 30px 1fr 40px;
  gap: .75rem; align-items: center;
  font-size: .88rem;
}
.rating-bar .bar-track {
  height: 8px; background: var(--border-soft);
  border-radius: 99px; overflow: hidden;
}
.rating-bar .bar-fill {
  height: 100%; background: var(--warning);
  border-radius: 99px;
}
.rating-bar .bar-count { color: var(--muted); text-align: right; }

.station-map {
  height: 380px; border-radius: var(--radius);
  overflow: hidden; margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.street-view {
  margin: 1rem 0 1.5rem;
}
.street-view iframe {
  display: block;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .station-hero-layout { grid-template-columns: 1.2fr 1fr; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .info-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Leaflet marker styling override */
.skp-marker {
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.skp-marker.oskp { background: #ef4444; }
.skp-marker.pskp { background: var(--primary); }
.skp-marker.unknown { background: #94a3b8; }

.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content {
  margin: 1rem 1.25rem;
  font-family: var(--font);
}
.leaflet-popup-content h4 {
  margin: 0 0 .35rem; font-size: 1rem; color: var(--text);
}
.leaflet-popup-content .popup-meta {
  font-size: .85rem; color: var(--muted); margin: 0 0 .5rem;
}
.leaflet-popup-content .popup-link {
  display: inline-block; margin-top: .25rem;
  color: var(--primary-dark); font-weight: 600; font-size: .9rem;
}
