/* ============================================================
   Mapa-Firm.eu — wspólny arkusz stylów serwisu publicznego
   Kierunek: „kartograficzny". Morski petrol jako barwa terenu i nawigacji,
   terakotowa pinezka jako jedyny akcent (przyciski, punkty na mapie),
   ciepły papier zamiast bieli w tle, poziomice i siatka współrzędnych
   jako lekkie motywy (inline SVG / gradienty — bez plików graficznych).
   Typografia: Outfit (nagłówki) + Public Sans (treść).
   Nazwy zmiennych bazowych (--c-accent, --c-border…) zachowane z silnika,
   więc komponenty, których nie przebudowano (artykuły, strony prawne,
   opinie), przebarwiają się bez zmian w widokach.
   ============================================================ */

:root {
  /* --- Marka --- */
  --c-petrol:        #0e5e6f;
  --c-petrol-dark:   #0a4856;
  --c-petrol-deep:   #08343e;
  --c-petrol-soft:   #3f8794;
  --c-sea:           #dceaeb;
  --c-sea-x:         #edf4f4;
  --c-pin:           #c64b29;   /* przyciski — kontrast z bielą ≥ 4.5:1 */
  --c-pin-dark:      #a63c1f;
  --c-pin-bright:    #e8693f;   /* punkty na mapie, ozdobniki */
  --c-pin-soft:      #fbe7de;
  --c-paper:         #f7f3ec;
  --c-paper-2:       #efe8dc;
  --c-land:          #efe5d1;

  /* --- Aliasy używane przez komponenty silnika --- */
  --c-accent:         var(--c-petrol);
  --c-accent-dark:    var(--c-petrol-dark);
  --c-accent-light:   var(--c-sea);
  --c-accent-xlight:  var(--c-sea-x);
  --c-badge:          var(--c-petrol-deep);
  --c-hero-mid:       var(--c-petrol-dark);
  --c-on-dark-strong: #ffffff;
  --c-on-dark:        #cfe3e5;
  --c-on-dark-soft:   #9fc2c7;
  --c-border-accent:  #b9d3d6;
  --c-star:           #d9822b;
  --c-success:        var(--c-petrol);
  --c-phone-bg:       var(--c-sea-x);
  --c-phone-border:   var(--c-border-accent);

  --c-text:           #1c2b2f;
  --c-muted:          #5c6a6d;
  --c-border:         #e4dccd;
  --c-bg:             #ffffff;
  --c-bg-soft:        var(--c-paper);

  --font:      'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Outfit', 'Public Sans', system-ui, sans-serif;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px rgba(8,52,62,.06), 0 1px 1px rgba(8,52,62,.04);
  --shadow:      0 6px 22px rgba(8,52,62,.09);
  --shadow-lg:   0 18px 48px rgba(8,52,62,.16);
  --sidebar-w:   300px;
  --max-w:       1200px;
  --header-h:    68px;

  /* Poziomice: jasne (na papierze) i jasne-na-ciemnym (pas wpisu, stopka) */
  --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%230e5e6f' stroke-opacity='.11' stroke-width='1.1'%3E%3Cellipse cx='470' cy='130' rx='62' ry='34'/%3E%3Cellipse cx='470' cy='130' rx='104' ry='60'/%3E%3Cellipse cx='474' cy='134' rx='148' ry='88'/%3E%3Cellipse cx='480' cy='140' rx='196' ry='120'/%3E%3Cpath d='M-20 360C80 300 150 390 250 340s170-120 270-60 140 40 140 40'/%3E%3Cpath d='M-20 400C90 340 160 420 260 380s170-110 270-50 130 40 130 40'/%3E%3Cpath d='M-20 320C70 262 140 352 240 302s160-112 220-96'/%3E%3Cellipse cx='110' cy='110' rx='46' ry='28'/%3E%3Cellipse cx='110' cy='112' rx='84' ry='52'/%3E%3C/g%3E%3C/svg%3E");
  --contour-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.1'%3E%3Cellipse cx='470' cy='130' rx='62' ry='34'/%3E%3Cellipse cx='470' cy='130' rx='104' ry='60'/%3E%3Cellipse cx='474' cy='134' rx='148' ry='88'/%3E%3Cellipse cx='480' cy='140' rx='196' ry='120'/%3E%3Cpath d='M-20 360C80 300 150 390 250 340s170-120 270-60 140 40 140 40'/%3E%3Cpath d='M-20 400C90 340 160 420 260 380s170-110 270-50 130 40 130 40'/%3E%3Cpath d='M-20 320C70 262 140 352 240 302s160-112 220-96'/%3E%3Cellipse cx='110' cy='110' rx='46' ry='28'/%3E%3Cellipse cx='110' cy='112' rx='84' ry='52'/%3E%3C/g%3E%3C/svg%3E");
  /* Siatka współrzędnych (nagłówki list) */
  --grid: linear-gradient(rgba(14,94,111,.07) 1px, transparent 1px) 0 0 / 44px 44px,
          linear-gradient(90deg, rgba(14,94,111,.07) 1px, transparent 1px) 0 0 / 44px 44px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-paper);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.01em; line-height: 1.2; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --- Pomocnicze --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }
.mf-ico { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.mf-eyebrow {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-petrol); display: flex; align-items: center; gap: 8px;
}
.mf-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--c-pin-bright); border-radius: 2px; }
.tag {
  display: inline-block; background: var(--c-sea); color: var(--c-petrol-deep);
  font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}

/* --- Przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px;
  border-radius: var(--radius); font-family: var(--font-head); font-size: .92rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent; transition: background .16s, border-color .16s, transform .12s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-primary { background: var(--c-petrol); color: #fff; }
.btn-primary:hover { background: var(--c-petrol-dark); }
.btn-pin { background: var(--c-pin); color: #fff; }
.btn-pin:hover { background: var(--c-pin-dark); }
.btn-outline { background: transparent; color: var(--c-petrol); border-color: var(--c-petrol); }
.btn-outline:hover { background: var(--c-sea-x); }
.btn-white { background: #fff; color: var(--c-petrol-deep); }
.btn-white:hover { background: var(--c-sea); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ============================================================
   NAGŁÓWEK
   ============================================================ */
.header {
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 100; backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: 22px; padding: 0 20px; height: var(--header-h);
  max-width: var(--max-w); margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--c-petrol-deep); }
.logo-mark { width: 34px; height: 34px; }
.logo-map { fill: var(--c-petrol); }
.logo-fold { stroke: rgba(255,255,255,.35); stroke-width: 1.2; fill: none; }
.logo-pin { fill: var(--c-pin-bright); stroke: #fff; stroke-width: 1.6; }
.logo-dot { fill: #fff; }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; }
.logo-tld { color: var(--c-pin); font-weight: 600; }
.logo--dark { color: #fff; }
.logo--dark .logo-map { fill: #fff; }
.logo--dark .logo-fold { stroke: rgba(8,52,62,.25); }
.logo--dark .logo-pin { stroke: var(--c-petrol-deep); }
.logo--dark .logo-tld { color: var(--c-pin-bright); }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius); font-size: .9rem; font-weight: 500;
  color: var(--c-muted); white-space: nowrap; transition: color .15s, background .15s; position: relative;
}
.nav a:hover { color: var(--c-petrol); background: var(--c-sea-x); }
.nav a.active { color: var(--c-petrol-deep); font-weight: 600; }
.nav a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--c-pin-bright); border-radius: 2px;
}
.header-search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--c-border); border-radius: 999px;
  font: inherit; font-size: .86rem; background: var(--c-paper); outline: none; transition: border-color .15s, background .15s;
}
.header-search input:focus { border-color: var(--c-petrol); background: #fff; }
.header-search .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
  fill: none; stroke: var(--c-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-login { font-size: .88rem; font-weight: 600; color: var(--c-petrol); }
.header-login:hover { text-decoration: underline; }

/* ============================================================
   MAPA POLSKI (inline SVG, partial mapa_polski)
   ============================================================ */
.mf-map { display: block; width: 100%; height: auto; }
.mf-map-grid line { stroke: var(--c-petrol); stroke-opacity: .12; stroke-width: 1; stroke-dasharray: 3 5; }
.mf-map-grid text { fill: var(--c-petrol); fill-opacity: .45; font: 600 11px var(--font-head); letter-spacing: .04em; }
.mf-map-land { fill: var(--c-land); stroke: var(--c-petrol); stroke-width: 2; stroke-linejoin: round; }
.mf-pt circle { fill: var(--c-pin-bright); fill-opacity: .9; stroke: #fff; stroke-width: 2; transition: fill .15s, r .15s; }
.mf-pt text {
  font: 600 14px var(--font-head); fill: var(--c-petrol-deep);
  paint-order: stroke; stroke: var(--c-land); stroke-width: 4px; stroke-linejoin: round; pointer-events: none;
}
.mf-pt--empty circle { fill: #fff; stroke: var(--c-petrol-soft); stroke-width: 1.5; }
.mf-pt--hi circle { fill: var(--c-pin); stroke: #fff; stroke-width: 3; }
.mf-pt--hi text { font-size: 16px; }
.mf-map a:hover circle, .mf-map a:focus circle { fill: var(--c-petrol); }
.mf-map a:focus { outline: none; }
.mf-map--mini .mf-map-grid text { display: none; }
.mf-map--mini .mf-pt text { font-size: 18px; }

/* ============================================================
   STRONA GŁÓWNA (mh-*)
   ============================================================ */
.mh-hero { background: var(--contour) right -60px top -40px / 900px auto no-repeat, var(--c-paper); border-bottom: 1px solid var(--c-border); }
.mh-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 48px 20px 44px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
}
.mh-hero-text { display: flex; flex-direction: column; gap: 18px; }
.mh-title { font-size: 3rem; font-weight: 700; line-height: 1.06; color: var(--c-petrol-deep); letter-spacing: -.025em; }
.mh-title em { font-style: normal; color: var(--c-petrol); background: linear-gradient(transparent 68%, var(--c-pin-soft) 68%); }
.mh-lead { font-size: 1.06rem; color: var(--c-muted); max-width: 560px; }

.mh-search {
  display: grid; grid-template-columns: 1.3fr 1fr auto; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 640px;
}
.mh-search-field { display: flex; flex-direction: column; padding: 10px 16px 8px; border-right: 1px solid var(--c-border); min-width: 0; }
.mh-search-label { font-family: var(--font-head); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--c-petrol); }
.mh-search-field input { border: none; outline: none; font: inherit; font-size: .98rem; color: var(--c-text); padding: 3px 0; background: transparent; width: 100%; }
.mh-search-field:focus-within { background: var(--c-sea-x); }
.mh-search-btn { border-radius: 0; padding: 0 26px; font-size: 1rem; }
.mh-search--page { margin-top: 6px; }

.mh-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; }
.mh-jump > span { color: var(--c-muted); font-weight: 600; margin-right: 2px; }
.mh-jump a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--c-border); color: var(--c-petrol-deep); font-weight: 500; transition: border-color .15s;
}
.mh-jump a:hover { border-color: var(--c-petrol); }
.mh-jump a b { font-size: .74rem; color: #fff; background: var(--c-petrol); border-radius: 999px; padding: 0 7px; }

.mh-map-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 14px 14px 10px;
}
.mh-map-card figcaption, .mf-atlas-map figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; color: var(--c-muted); padding: 8px 4px 2px; border-top: 1px dashed var(--c-border); margin-top: 6px;
}
.mh-map-card figcaption a { color: var(--c-petrol); font-weight: 600; }
.mh-key { display: inline-flex; align-items: center; gap: 7px; }
.mh-key-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c-pin-bright); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c-border); }
.mh-key-dot--empty { background: #fff; box-shadow: 0 0 0 1.5px var(--c-petrol-soft); }

.mh-legend { background: var(--c-petrol-deep); color: var(--c-on-dark); }
.mh-legend-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr);
}
.mh-legend-inner > div { padding: 16px 18px; font-size: .86rem; border-left: 1px solid rgba(255,255,255,.1); display: flex; align-items: baseline; gap: 8px; }
.mh-legend-inner > div:first-child { border-left: none; padding-left: 0; }
.mh-legend strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: #fff; }

.mh-sec { padding: 52px 0; }
.mh-sec--tint { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.mf-sec-head { max-width: 760px; margin-bottom: 24px; }
.mf-sec-head h2 { font-size: 1.85rem; font-weight: 700; color: var(--c-petrol-deep); margin-bottom: 8px; }
.mf-sec-head p { color: var(--c-muted); font-size: .97rem; }
.mf-sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.mf-sec-head--row > div { max-width: 720px; }
.mf-more { font-family: var(--font-head); font-weight: 600; color: var(--c-petrol); white-space: nowrap; }
.mf-more:hover { color: var(--c-pin); }

.mh-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.mh-region { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 16px 18px; position: relative; overflow: hidden; }
.mh-region::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c-petrol), var(--c-petrol-soft)); }
.mh-region-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mh-region-head h3 { font-size: 1.12rem; font-weight: 600; text-transform: capitalize; color: var(--c-petrol-deep); }
.mh-region-head span { font-size: .78rem; color: var(--c-muted); white-space: nowrap; }
.mh-region li, .mf-woj li, .mf-places li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0;
  border-top: 1px dashed var(--c-border); font-size: .9rem;
}
.mh-region li:first-child, .mf-woj li:first-child, .mf-places li:first-child { border-top: none; }
.mh-region li a, .mf-woj li a, .mf-places li a { color: var(--c-text); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.mh-region li a::before, .mf-woj li a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-pin-bright); flex-shrink: 0; }
.mh-region li a:hover, .mf-woj li a:hover, .mf-places li a:hover { color: var(--c-petrol); text-decoration: underline; text-underline-offset: 3px; }
.mh-region li b, .mf-woj li b, .mf-places li b {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--c-petrol);
  background: var(--c-sea-x); border-radius: 999px; padding: 1px 9px; min-width: 28px; text-align: center;
}

.mh-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px 14px; }
.mh-layer {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-paper); transition: border-color .15s, background .15s;
}
.mh-layer:hover { border-color: var(--c-petrol); background: #fff; }
.mh-layer-ico { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid var(--c-border); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.mh-layer-name { flex: 1; font-weight: 600; font-size: .92rem; }
.mh-layer-n { font-family: var(--font-head); font-weight: 700; color: var(--c-petrol); }
.mh-layer.is-empty { opacity: .62; }
.mh-layer.is-empty .mh-layer-n { color: var(--c-muted); font-weight: 500; }

.mh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.mh-about { background: var(--contour-dark) left -120px bottom -160px / 1000px auto no-repeat, var(--c-petrol-deep); color: var(--c-on-dark); }
.mh-about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 44px; align-items: start; }
.mh-about .mf-eyebrow { color: var(--c-on-dark-soft); }
.mh-about h2 { font-size: 2rem; color: #fff; margin: 10px 0 14px; }
.mh-about-text p { margin-bottom: 14px; font-size: .97rem; }
.mh-about-link { font-family: var(--font-head); font-weight: 600; color: #fff; border-bottom: 2px solid var(--c-pin-bright); padding-bottom: 2px; }
.mh-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mh-rule { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 16px 18px; }
.mh-rule h3 { font-size: 1.04rem; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mh-rule h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-pin-bright); }
.mh-rule p { font-size: .87rem; line-height: 1.6; color: var(--c-on-dark); }
.mh-rule--pin { grid-column: 1 / -1; background: rgba(232,105,63,.12); border-color: rgba(232,105,63,.35); }

.mh-owner { background: var(--c-paper-2); border-top: 1px solid var(--c-border); }
.mh-owner-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 40px 20px; display: grid;
  grid-template-columns: 1.1fr 1.3fr auto; gap: 28px; align-items: center;
}
.mh-owner h2 { font-size: 1.5rem; color: var(--c-petrol-deep); margin-bottom: 6px; }
.mh-owner p { color: var(--c-muted); font-size: .92rem; }
.mh-steps { list-style: none; display: grid; gap: 8px; }
.mh-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.mh-steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--c-petrol); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: .82rem; flex-shrink: 0; }
.mh-owner-cta { display: flex; flex-direction: column; gap: 8px; }
.mh-owner-cta .btn-ghost { color: var(--c-petrol); border-color: var(--c-petrol); }
.mh-owner-cta .btn-ghost:hover { background: var(--c-sea-x); }

/* ============================================================
   KARTA FIRMY (partial firm_card — mf-card)
   ============================================================ */
.mf-list { display: flex; flex-direction: column; gap: 14px; }
.mf-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .18s, border-color .18s;
  min-width: 0;
}
.mf-card:hover { box-shadow: var(--shadow); border-color: var(--c-border-accent); }
.mf-card.is-featured { border-color: rgba(232,105,63,.45); }
.mf-card-loc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 16px;
  border-bottom: 1px dashed var(--c-border); font-size: .8rem; color: var(--c-muted);
  background: linear-gradient(90deg, var(--c-sea-x), transparent 70%); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mf-card-loc .mf-ico { color: var(--c-pin); }
.mf-card-city { font-family: var(--font-head); font-weight: 600; color: var(--c-petrol-deep); font-size: .88rem; }
a.mf-card-city:hover { text-decoration: underline; }
.mf-card-woj::before, .mf-card-cat::before { content: '·'; margin-right: 8px; opacity: .6; }
.mf-flag { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-pin-dark); background: var(--c-pin-soft); padding: 2px 9px; border-radius: 999px; }
.mf-card-main { display: flex; gap: 16px; padding: 14px 16px 10px; min-width: 0; }
.mf-card-logo {
  width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--c-border); background: #fff;
  overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
}
.mf-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.mf-card-logo span { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--c-petrol); background: var(--c-sea-x); width: 100%; height: 100%; display: grid; place-items: center; }
.mf-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mf-card-name { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.mf-card-name a:hover { color: var(--c-petrol); }
.mf-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.mf-rate { font-weight: 700; color: var(--c-text); }
.mf-rate .stars { color: var(--c-star); }
.mf-rate small { font-weight: 400; color: var(--c-muted); }
.mf-rate--none { font-weight: 400; color: var(--c-muted); }
.mf-ok { color: var(--c-petrol); font-weight: 600; }
.mf-card-desc { font-size: .86rem; color: var(--c-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.mf-tags li { font-size: .72rem; color: var(--c-petrol-deep); background: var(--c-paper); border: 1px solid var(--c-border); padding: 1px 8px; border-radius: 6px; }
.mf-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px 12px; margin-top: auto;
}
.mf-card-addr { font-size: .82rem; color: var(--c-petrol); font-weight: 500; min-width: 0; }
a.mf-card-addr:hover { text-decoration: underline; }
.mf-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-link { font-size: .82rem; font-weight: 600; color: var(--c-petrol); }
.mf-link:hover { color: var(--c-pin); }
.firm-phone {
  display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--c-petrol-deep);
  background: var(--c-sea-x); padding: 6px 11px; border-radius: var(--radius); border: 1px solid var(--c-border-accent);
}
button.firm-phone { font-family: inherit; cursor: pointer; }
button.firm-phone:hover { border-color: var(--c-petrol); }

/* ============================================================
   NAGŁÓWKI LIST (branża, miasto, przeglądy) — mf-lhead
   ============================================================ */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--c-border); }
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 9px 20px; font-size: .8rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--c-petrol); text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--c-text); font-weight: 600; }

.mf-lhead { background: var(--grid), var(--c-paper); border-bottom: 1px solid var(--c-border); }
.mf-lhead-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 20px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center;
}
.mf-lhead--plain .mf-lhead-inner { grid-template-columns: minmax(0, 1fr); }
.mf-lhead-text { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.mf-lhead h1 { font-size: 2.3rem; font-weight: 700; color: var(--c-petrol-deep); }
.mf-lhead h1 span { color: var(--c-petrol); font-weight: 500; }
.mf-lhead-lead { font-size: 1rem; color: var(--c-muted); }
.mf-coords { font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--c-petrol); letter-spacing: .04em; }
.mf-coords::before { content: '⌖ '; color: var(--c-pin); }
.mf-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mf-stats > * { font-size: .82rem; background: #fff; border: 1px solid var(--c-border); padding: 5px 12px; border-radius: 999px; color: var(--c-muted); }
.mf-stats b { font-family: var(--font-head); color: var(--c-petrol-deep); margin-right: 3px; }
.mf-stats a { color: var(--c-petrol); font-weight: 500; }
.mf-stats a:hover { border-color: var(--c-petrol); }
.mf-lhead-map { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-sm); }
.mf-hint { font-size: .82rem; color: var(--c-muted); }

.mf-chips { background: #fff; border-bottom: 1px solid var(--c-border); }
.mf-chips-inner { max-width: var(--max-w); margin: 0 auto; padding: 10px 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.mf-chips a {
  flex-shrink: 0; font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--c-border); color: var(--c-text); white-space: nowrap; transition: border-color .12s;
}
.mf-chips a small { color: var(--c-muted); margin-left: 3px; }
.mf-chips a:hover { border-color: var(--c-petrol); }
.mf-chips a.active { background: var(--c-petrol); border-color: var(--c-petrol); color: #fff; }
.mf-chips a.active small { color: var(--c-on-dark); }

.mf-list-layout {
  max-width: var(--max-w); margin: 26px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 26px; align-items: start;
}
.mf-list-layout--single { grid-template-columns: minmax(0, 860px); }
.mf-list-main { min-width: 0; }
.mf-list-title { font-size: 1.2rem; font-weight: 600; color: var(--c-petrol-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.mf-list-title small { font-size: .8rem; background: var(--c-petrol); color: #fff; border-radius: 999px; padding: 1px 10px; font-weight: 600; }
.mf-empty { background: #fff; border: 1px dashed var(--c-border-accent); border-radius: var(--radius-lg); padding: 22px 22px 12px; }
.mf-empty p { margin-bottom: 10px; font-size: .92rem; }
.mf-empty a { color: var(--c-petrol); font-weight: 600; }

.mf-aside { display: flex; flex-direction: column; gap: 16px; }
.mf-box { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 14px 16px; }
.mf-box-head { font-size: .95rem; font-weight: 600; color: var(--c-petrol-deep); margin-bottom: 8px; }
.mf-box p { font-size: .85rem; color: var(--c-muted); margin-bottom: 10px; }
.mf-box-foot { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--c-petrol); }
.mf-places li.active a { color: var(--c-pin); font-weight: 700; }
.mf-box--note { background: var(--c-sea-x); border-color: var(--c-border-accent); }
.mf-box--pin { background: var(--contour) center / 520px auto, var(--c-pin-soft); border-color: rgba(198,75,41,.25); }

/* Poradnik branży pod listą */
.mf-guide { background: #fff; border-top: 1px solid var(--c-border); }
.mf-guide-inner { max-width: 860px; margin: 0 auto; padding: 36px 20px 44px; }
.mf-guide h2 { font-size: 1.5rem; color: var(--c-petrol-deep); margin-bottom: 14px; padding-left: 14px; border-left: 4px solid var(--c-pin-bright); }
.mf-guide-text p { font-size: .98rem; line-height: 1.75; margin-bottom: 14px; color: #2c3a3e; }

/* /kategorie/ */
.mf-page { padding-top: 28px; padding-bottom: 48px; }
.mf-branze { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mf-branza { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.mf-branza:hover { border-color: var(--c-border-accent); box-shadow: var(--shadow); }
.mf-branza h2 { font-size: 1.12rem; font-weight: 600; }
.mf-branza h2 a:hover { color: var(--c-petrol); }
.mf-branza-n { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--c-petrol); }
.mf-branza-lead { font-size: .86rem; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mf-branza-where { font-size: .8rem; color: var(--c-petrol-deep); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--c-border); }
.mf-branza.is-empty { background: var(--c-paper); }

/* /miasta/ */
.mf-atlas { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.mf-atlas-map { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.mf-atlas-text h2 { font-size: 1.4rem; color: var(--c-petrol-deep); margin-bottom: 12px; }
.mf-atlas-text p { color: #2c3a3e; margin-bottom: 12px; font-size: .95rem; }
.mf-woj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.mf-woj { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 14px 18px; }
.mf-woj header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--c-sea); }
.mf-woj h2 { font-size: 1.02rem; font-weight: 600; color: var(--c-petrol-deep); }
.mf-woj header span { font-size: .76rem; color: var(--c-muted); white-space: nowrap; }
.mf-woj li.is-empty span { color: var(--c-muted); padding-left: 14px; }
.mf-woj li.is-empty b { background: transparent; color: var(--c-muted); font-weight: 400; }

/* PAGINACJA */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0 8px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; font-size: .86rem; display: flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s; }
.page-btn:hover { border-color: var(--c-petrol); color: var(--c-petrol); }
.page-btn.active { background: var(--c-petrol); color: #fff; border-color: var(--c-petrol); font-weight: 700; }
.page-btn.dots { border: none; background: none; }

/* ============================================================
   WPIS FIRMY (profil)
   ============================================================ */
.mf-phead {
  --cover: none;
  background: var(--contour-dark) right -80px center / 900px auto no-repeat, linear-gradient(120deg, var(--c-petrol-deep), var(--c-petrol-dark) 70%, var(--c-petrol));
  color: var(--c-on-dark);
}
.mf-phead.has-cover { background: linear-gradient(100deg, rgba(8,52,62,.95) 30%, rgba(8,52,62,.7)), var(--cover) center / cover; }
.mf-phead-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 30px 20px; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.mf-phead-logo { width: 104px; height: 104px; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.14); display: grid; place-items: center; }
.mf-phead-logo img { width: 100%; height: 100%; object-fit: contain; }
.mf-phead-logo span { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--c-petrol); }
.mf-phead-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mf-phead-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mf-chip-dark { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
a.mf-chip-dark:hover { background: rgba(255,255,255,.2); }
.mf-chip-pin { background: var(--c-pin); border-color: var(--c-pin); }
.mf-phead-name { font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1.12; overflow-wrap: anywhere; }
.mf-phead-where { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.mf-phead-where .mf-ico { color: var(--c-pin-bright); width: 16px; height: 16px; }
.mf-phead-maplink { color: #fff; font-weight: 600; border-bottom: 1px dashed rgba(255,255,255,.6); }
.mf-phead-rate { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.mf-phead-rate .stars { color: #f3b562; letter-spacing: 1px; }
.mf-phead-rate strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.mf-phead-rate a { color: var(--c-on-dark); text-decoration: underline; }
.mf-phead-actions { display: flex; flex-direction: column; gap: 8px; }

.profile-layout { max-width: var(--max-w); margin: 24px auto 40px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.profile-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.profile-side { display: flex; flex-direction: column; gap: 16px; }
.profile-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 5px; flex-wrap: wrap; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; box-shadow: var(--shadow-sm);
}
.profile-tabs a { flex: 1; text-align: center; padding: 7px 12px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.profile-tabs a:hover { background: var(--c-sea-x); color: var(--c-petrol); }
.profile-tabs a.active { background: var(--c-petrol); color: #fff; }

.panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-body { padding: 20px 24px; }
.panel h2 { font-size: 1.25rem; font-weight: 600; color: var(--c-petrol-deep); margin-bottom: 12px; }
.panel p { font-size: .93rem; margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }
.verified { display: inline-flex; align-items: center; gap: 4px; background: var(--c-sea); color: var(--c-petrol-deep); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.firm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.firm-tag { background: var(--c-paper); border: 1px solid var(--c-border); color: var(--c-petrol-deep); font-size: .76rem; padding: 2px 9px; border-radius: 6px; }

/* Sekcja „Gdzie znajduje się firma" */
.mf-where { border-color: var(--c-border-accent); }
.mf-where-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.mf-where-data dt { font-family: var(--font-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--c-petrol); margin-top: 12px; }
.mf-where-data dt:first-child { margin-top: 0; }
.mf-where-data dd { font-size: .92rem; font-weight: 500; }
.mf-where-data dd a { color: var(--c-petrol); text-decoration: underline; text-underline-offset: 2px; }
.mf-where-map { min-width: 0; }
.map-embed { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-foot { margin-top: 8px; font-size: .84rem; display: flex; gap: 16px; flex-wrap: wrap; }
.map-foot a { color: var(--c-petrol); font-weight: 600; }
.map-foot a:hover { color: var(--c-pin); }
.map-note-txt { font-size: .76rem !important; color: var(--c-muted); margin-top: 6px; }
/* Przed geokodowaniem (mapa hidden) — widoczne „puste pole mapy" z siatką */
.mf-where-map:has(#firma-mapa[hidden])::before {
  content: 'Wyznaczam położenie z adresu…'; display: grid; place-items: center; height: 180px;
  background: var(--grid), var(--c-paper); border: 1px dashed var(--c-border-accent); border-radius: var(--radius);
  font-size: .82rem; color: var(--c-muted); margin-bottom: 4px;
}

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--c-sea-x); overflow: hidden; display: block; }
.gallery-item img { transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }

.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.article-card:hover { border-color: var(--c-border-accent); }
.article-thumb { height: 120px; background: var(--c-sea-x); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--c-muted); }
.article-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--c-pin); }
.article-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.article-title a:hover { color: var(--c-petrol); }
.article-excerpt { font-size: .82rem; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: .74rem; color: var(--c-muted); display: flex; gap: 12px; margin-top: auto; padding-top: 6px; }

.contact-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.contact-card-head { font-family: var(--font-head); padding: 12px 18px; font-size: .95rem; font-weight: 600; color: var(--c-petrol-deep); border-bottom: 2px solid var(--c-sea); background: var(--c-sea-x); }
.contact-list { padding: 4px 0; }
.contact-row { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px dashed var(--c-border); font-size: .88rem; align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { width: 24px; height: 24px; border-radius: 50%; background: var(--c-sea-x); color: var(--c-petrol); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.contact-row .label { color: var(--c-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; display: block; }
.contact-row .val { font-weight: 600; overflow-wrap: anywhere; }
.contact-row a.val:hover { color: var(--c-petrol); text-decoration: underline; }
.contact-actions { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--c-border); }
.contact-actions .btn-primary { background: var(--c-pin); }
.contact-actions .btn-primary:hover { background: var(--c-pin-dark); }
.val.masked { letter-spacing: 1px; color: var(--c-muted); }
.reveal-btn { margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--c-petrol); background: var(--c-sea-x); border: 1px solid var(--c-border-accent); padding: 4px 11px; border-radius: 20px; cursor: pointer; font-family: inherit; }
.reveal-btn:hover { background: var(--c-petrol); color: #fff; }
a.revealed { color: var(--c-petrol); font-weight: 700; }

.hours-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px dashed var(--c-border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 7px 18px; }
.hours-table td.day { color: var(--c-muted); }
.hours-table td.time { text-align: right; font-weight: 600; }
.hours-table tr.today { background: var(--c-pin-soft); }
.hours-table tr.today td.day { color: var(--c-pin-dark); font-weight: 700; }

.similar-item { display: flex; gap: 10px; padding: 11px 18px; border-bottom: 1px dashed var(--c-border); align-items: center; }
.similar-item:last-child { border-bottom: none; }
.similar-item:hover .similar-name { color: var(--c-petrol); }
.similar-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--c-sea-x); color: var(--c-petrol); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.similar-name { font-weight: 600; font-size: .86rem; }
.similar-meta { font-size: .76rem; color: var(--c-muted); }
.similar-meta .stars { color: var(--c-star); }

/* Opinie */
.review-summary { display: flex; gap: 24px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; }
.review-score { text-align: center; }
.review-score .big { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--c-petrol-deep); }
.review-score .stars { color: var(--c-star); }
.review-score small { display: block; color: var(--c-muted); font-size: .8rem; margin-top: 4px; }
.review-flash { border-radius: var(--radius); padding: 10px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 14px; border: 1px solid; }
.review-flash.ok { background: #eef7f1; color: #1d6b3d; border-color: #bfe2cc; }
.review-flash.err { background: #fdf0ec; color: #a63c1f; border-color: #f2c7b8; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.review-item { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 13px 15px; background: var(--c-paper); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-author { font-weight: 700; }
.review-stars { color: var(--c-star); letter-spacing: 1px; }
.review-date { color: var(--c-muted); font-size: .78rem; margin-left: auto; }
.review-text { font-size: .9rem; line-height: 1.55; }
.review-reply { margin-top: 10px; padding: 10px 12px; background: #fff; border-radius: var(--radius); font-size: .86rem; border-left: 3px solid var(--c-petrol); }
.review-form-wrap { margin-top: 8px; }
.review-form-wrap > summary { margin-bottom: 12px; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; margin-top: 8px; background: var(--c-paper); }
.review-form label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; }
.review-form .req { color: var(--c-pin); }
.review-form input, .review-form select, .review-form textarea { padding: 9px 11px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: .9rem; font-family: inherit; background: #fff; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { border-color: var(--c-petrol); outline: none; }
.review-form .rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form .rf-note { font-size: .76rem; color: var(--c-muted); font-weight: 400; margin: 0; }

/* Opis firmy (HTML bez linków) — globalny reset zdejmuje punktory, więc przywracamy je tu */
.firm-opis { line-height: 1.7; font-size: .95rem; }
.firm-opis > *:first-child { margin-top: 0; }
.firm-opis p { margin: 0 0 14px; }
.firm-opis h2 { font-size: 1.22rem; margin: 22px 0 10px; color: var(--c-petrol-deep); }
.firm-opis h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.firm-opis h4 { font-size: 1rem; margin: 16px 0 8px; }
.firm-opis ul { list-style: disc; margin: 0 0 14px; padding-left: 24px; }
.firm-opis ol { list-style: decimal; margin: 0 0 14px; padding-left: 24px; }
.firm-opis li { margin-bottom: 6px; padding-left: 4px; }
.firm-opis li::marker { color: var(--c-pin); }
.firm-opis strong { font-weight: 700; }
.firm-opis blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--c-petrol); background: var(--c-paper); border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-muted); }

/* ============================================================
   ARTYKUŁY (lista i pojedynczy)
   ============================================================ */
.art-hero { background: var(--contour-dark) right -100px top -60px / 900px auto no-repeat, var(--c-petrol-deep); color: #fff; padding: 40px 20px; }
.art-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.art-hero-eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--c-on-dark-soft); margin-bottom: 8px; }
.art-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.art-hero p { font-size: .98rem; color: var(--c-on-dark); max-width: 600px; }
.art-search { margin-top: 20px; display: flex; max-width: 520px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.art-search input { flex: 1; border: none; outline: none; padding: 12px 16px; font: inherit; font-size: .92rem; }
.art-search button { background: var(--c-pin); color: #fff; border: none; padding: 0 22px; font-size: 1rem; cursor: pointer; }

.filter-bar { background: #fff; border-bottom: 1px solid var(--c-border); }
.filter-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 12px 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; color: var(--c-text); }
.chip:hover { border-color: var(--c-petrol); }
.chip.active { background: var(--c-petrol); color: #fff; border-color: var(--c-petrol); }

.art-layout { max-width: var(--max-w); margin: 28px auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; align-items: start; }
.art-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--c-petrol-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.feat-article { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.feat-thumb { background: var(--c-sea-x); min-height: 240px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--c-muted); position: relative; overflow: hidden; }
.feat-flag { position: absolute; top: 12px; left: 12px; background: var(--c-pin); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: 20px; }
.feat-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.art-cat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c-pin); }
.feat-body h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.feat-body h3 a:hover, .art-body h3 a:hover { color: var(--c-petrol); }
.feat-body .excerpt { font-size: .9rem; color: var(--c-muted); }
.art-author { display: flex; align-items: center; gap: 9px; margin-top: auto; }
.art-author .av { width: 36px; height: 36px; border-radius: 10px; background: var(--c-sea-x); display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.art-author .meta { font-size: .8rem; line-height: 1.35; }
.art-author .meta .firm { font-weight: 700; }
.art-author .meta .firm a:hover { color: var(--c-petrol); }
.art-author .meta .sub { color: var(--c-muted); font-size: .76rem; }

.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.art-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.art-grid--compact .art-thumb { height: 130px; font-size: 1.8rem; }
.art-grid--compact .art-body { padding: 12px 14px; gap: 6px; }
.art-grid--compact .art-body h3 { font-size: .98rem; }
.art-grid--compact .art-body .excerpt { font-size: .8rem; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.art-card:hover { box-shadow: var(--shadow); border-color: var(--c-border-accent); }
.art-thumb { height: 150px; background: var(--c-sea-x); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--c-muted); overflow: hidden; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-body h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.3; }
.art-body .excerpt { font-size: .84rem; color: var(--c-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-foot { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; color: var(--c-muted); border-top: 1px dashed var(--c-border); padding-top: 10px; margin-top: auto; }
.art-foot .stats { display: flex; gap: 10px; }

.art-side { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.side-box-head { font-family: var(--font-head); padding: 11px 16px; font-size: .92rem; font-weight: 600; color: var(--c-petrol-deep); background: var(--c-sea-x); border-bottom: 2px solid var(--c-sea); }
.side-cat a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: .86rem; border-bottom: 1px dashed var(--c-border); }
.side-cat a:last-child { border-bottom: none; }
.side-cat a:hover { color: var(--c-petrol); }
.side-cat .ic { width: 20px; text-align: center; }
.side-cat .nm { flex: 1; }
.side-cat .ct { font-size: .74rem; color: var(--c-muted); font-weight: 700; }
.side-pop a { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px dashed var(--c-border); align-items: flex-start; }
.side-pop a:last-child { border-bottom: none; }
.side-pop a:hover .pt { color: var(--c-petrol); }
.side-pop .num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--c-pin-bright); flex-shrink: 0; width: 18px; }
.side-pop .pt { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.side-pop .pm { font-size: .74rem; color: var(--c-muted); }
.side-cta { background: var(--contour-dark) center / 500px auto, var(--c-petrol); color: #fff; padding: 20px 16px; border-radius: var(--radius-lg); text-align: center; }
.side-cta h3 { font-size: 1.05rem; margin-bottom: 8px; }
.side-cta p { font-size: .82rem; color: var(--c-on-dark); margin-bottom: 14px; line-height: 1.5; }

.article-page { padding-bottom: 32px; }
.article-hero { background: var(--contour-dark) right -100px top -60px / 900px auto no-repeat, var(--c-petrol-deep); color: #fff; padding: 44px 0 52px; }
.article-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.article-hero h1 { font-size: 2.3rem; font-weight: 700; line-height: 1.16; margin: 10px 0 14px; max-width: 900px; }
.article-lead { font-size: 1.08rem; line-height: 1.6; color: var(--c-on-dark); margin-bottom: 18px; max-width: 760px; }
.article-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--c-on-dark-soft); }
.article-hero-meta a { color: #fff; font-weight: 600; }
.article-hero-meta a:hover { text-decoration: underline; }
.article-hero .art-cat-label { color: var(--c-pin-bright); }
.article-layout { max-width: var(--max-w); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: start; }
.article-main { min-width: 0; }
.article-aside { display: flex; flex-direction: column; gap: 18px; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-lg); margin: 0 0 28px; }
.article-content { font-size: 1.06rem; line-height: 1.82; color: #23333a; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--c-petrol-deep); }
.article-content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; padding-left: 4px; }
.article-content li::marker { color: var(--c-pin); }
.article-content a { color: var(--c-petrol); text-decoration: underline; text-underline-offset: 2px; }
.article-content img { border-radius: var(--radius); margin: 18px 0; }
.article-content blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--c-petrol); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-muted); }
.article-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border); }

.author-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px; }
.author-card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.author-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--c-sea-x); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; }
.author-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; margin-bottom: 2px; }
.author-name { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.author-name a:hover { color: var(--c-petrol); }
.author-card .verified { margin-top: 6px; }
.author-desc { font-size: .85rem; color: var(--c-muted); line-height: 1.55; margin: 0 0 16px; }

/* Strony prawne / informacyjne */
.legal { max-width: 880px; margin: 28px auto 48px; padding: 28px 30px; line-height: 1.7; color: #23333a; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.legal h1 { font-size: 1.9rem; color: var(--c-petrol-deep); }
.legal .legal-meta { color: var(--c-muted); font-size: .86rem; margin: 4px 0 22px; }
.legal h2 { font-size: 1.22rem; margin: 30px 0 10px; color: var(--c-petrol-deep); }
.legal h3 { font-size: 1.02rem; margin: 20px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 24px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--c-petrol); text-decoration: underline; text-underline-offset: 2px; }
.legal-toc { background: var(--c-paper); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; }
.legal-toc strong { display: block; margin-bottom: 6px; font-size: .9rem; }
.legal-toc ol { margin: 0; padding-left: 20px; font-size: .9rem; }
.legal-todo { background: #fff3cd; color: #7a5b00; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.legal-note { background: #fff8e6; border: 1px solid #f0d68a; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 22px; font-size: .88rem; color: #6b5200; }

/* ============================================================
   STOPKA
   ============================================================ */
.footer { background: var(--contour-dark) right -140px bottom -120px / 1000px auto no-repeat, var(--c-petrol-deep); color: var(--c-on-dark-soft); padding: 46px 0 0; margin-top: 0; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; padding: 0 20px 30px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { font-size: .86rem; line-height: 1.65; max-width: 320px; margin-top: 12px; color: var(--c-on-dark); }
.footer-col-title { font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .86rem; color: var(--c-on-dark); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note { max-width: var(--max-w); margin: 0 auto; padding: 0 20px 26px; }
.footer-note p { font-size: .8rem; line-height: 1.6; color: var(--c-on-dark-soft); border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; max-width: 920px; }
.footer-note strong { color: #fff; }
.footer-note a { color: #fff; text-decoration: underline; }
.footer-bottom { background: rgba(0,0,0,.18); }
.footer-bottom-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
.footer-bottom a { color: var(--c-on-dark); text-decoration: underline; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1100px) {
  .header-search { max-width: 220px; }
  .header-login { display: none; }
}
@media (max-width: 1040px) {
  .mh-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .mh-map-card { max-width: 560px; }
  .mh-title { font-size: 2.4rem; }
  .mh-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .mh-owner-inner { grid-template-columns: 1fr 1fr; }
  .mh-owner-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .mf-list-layout, .profile-layout, .art-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .mf-aside { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .mf-atlas { grid-template-columns: 1fr; }
  .feat-article { grid-template-columns: 1fr; }
  .art-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mf-phead-inner { grid-template-columns: auto minmax(0, 1fr); }
  .mf-phead-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  :root { --header-h: 108px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 10px 14px; }
  .header-search { order: 2; max-width: none; flex: 1 1 160px; }
  .header-cta { order: 1; margin-left: auto; }
  .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 10px 4px; overflow-x: auto; border-top: 1px solid var(--c-border); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .header-search { display: none; }
  .mh-cards { grid-template-columns: 1fr; }
  .mf-lhead-inner { grid-template-columns: 1fr; }
  .mf-lhead-map { max-width: 320px; }
  .mf-where-grid { grid-template-columns: 1fr; }
  .profile-tabs { position: static; }
}
@media (max-width: 640px) {
  .container, .mh-hero-inner, .mf-lhead-inner, .mf-list-layout, .profile-layout, .mh-owner-inner,
  .footer-grid, .footer-note, .footer-bottom-inner, .mf-phead-inner, .art-layout, .article-layout, .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .mh-hero-inner { padding-top: 28px; }
  .mh-title { font-size: 2rem; }
  .mh-search { grid-template-columns: 1fr; }
  .mh-search-field { border-right: none; border-bottom: 1px solid var(--c-border); }
  .mh-search-btn { padding: 13px; }
  .mh-legend-inner { grid-template-columns: 1fr 1fr; }
  .mh-legend-inner > div { padding: 12px 0; border-left: none; }
  .mh-legend strong { font-size: 1.25rem; }
  .mh-sec { padding: 36px 0; }
  .mf-sec-head h2, .mh-about h2 { font-size: 1.45rem; }
  .mf-sec-head--row { flex-direction: column; align-items: flex-start; }
  .mh-rules { grid-template-columns: 1fr; }
  .mh-owner-inner { grid-template-columns: 1fr; }
  .mf-lhead h1 { font-size: 1.7rem; }
  .mf-card-main { gap: 12px; }
  .mf-card-logo { width: 52px; height: 52px; }
  .mf-card-foot { flex-direction: column; align-items: stretch; }
  .mf-card-actions .btn { flex: 1; }
  .mf-flag { margin-left: 0; }
  .mf-phead-inner { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .mf-phead-logo { width: 76px; height: 76px; }
  .mf-phead-name { font-size: 1.55rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid, .art-grid, .art-grid--3 { grid-template-columns: 1fr; }
  .panel-body { padding: 16px 16px; }
  .review-form .rf-row { grid-template-columns: 1fr; }
  .art-hero h1, .article-hero h1 { font-size: 1.6rem; }
  .article-content { font-size: 1.01rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .legal { padding: 20px 18px; margin: 16px 12px 32px; }
  .logo-word { font-size: 1.15rem; }
  .header-cta .btn { padding: 8px 12px; font-size: .84rem; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Dostępność — skip-link, widoczny focus
   ============================================================ */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 2000; background: var(--c-petrol-deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-pin-bright); outline-offset: 2px; border-radius: 4px;
}
