/* Fonty serwisu hostowane lokalnie - bez zapytań do fonts.googleapis.com i fonts.gstatic.com.
   Dwa krojce, podzbiory latin + latin-ext (polskie znaki diakrytyczne są w latin-ext).
   PODMIANA KROJU: wgraj nowe .woff2 do public/fonts/ i popraw ścieżki poniżej.
   font-display: swap - tekst jest widoczny od razu krojem zastępczym, bez pustej plamy. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/archivo-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/archivo-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Katalog Sprawdzonych Firm - własny arkusz stylów, bez frameworka.
   KIERUNEK (świadomy wybór, nie domyślny motyw): gęsty, użytkowy katalog konsumencki
   z rodziny oferteo.pl / panoramafirm.pl / pkt.pl - dominująca wyszukiwarka, listy
   firm z przyciskami akcji, dużo wejść w branże i miasta.
   TOŻSAMOŚĆ: granat + mosiądz ("certyfikat"), typografia Archivo (nagłówki) + IBM Plex Sans (tekst).
   Kolejność sekcji: tokeny → utils → nagłówek → formularze → karty → układ strony →
   strona główna → karty firm → narzędzia listingu → wizytówka → cennik → panel → stopka → warstwy.
   UWAGA przy wdrożeniu: logo podmieniamy w public/img/logo.svg, obrazek OG w public/img/og-default.png. */

/* ===== 1. TOKENY ===== */
:root {
  --navy: #12365a; --navy-2: #0c2740; --navy-3: #1d4f7f; --navy-4: #295f92;
  --brass: #c99a2e; --brass-2: #a87c1a; --brass-soft: #fbf3dd; --brass-line: #ecd9a4;
  --green: #1f8a5b; --green-soft: #e4f4ec; --red: #b3261e; --red-soft: #fbe9e7;
  --ink: #16202c; --ink-2: #47566a; --ink-3: #6f7d8c; --line: #dde3ea; --line-2: #eef1f5;
  --bg: #f3f6f9; --paper: #ffffff;
  --radius: 10px; --radius-sm: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(12,39,64,.06), 0 1px 3px rgba(12,39,64,.06);
  --shadow-2: 0 2px 4px rgba(12,39,64,.06), 0 10px 24px -14px rgba(12,39,64,.28);
  --shadow-3: 0 4px 10px rgba(12,39,64,.08), 0 24px 48px -24px rgba(12,39,64,.36);
  --ring: 0 0 0 3px rgba(29,79,127,.28);
  --font-display: "Archivo", "Segoe UI", Arial, sans-serif; --font-text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px; --header-h: 72px;
  --t: 150ms cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 15.5px/1.6 var(--font-text); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
body.is-locked { overflow: hidden; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy-3); text-decoration: none; transition: color var(--t); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--navy-3); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.4vw, 38px); } h2 { font-size: clamp(21px, 2.2vw, 26px); } h3 { font-size: 17.5px; } h4 { font-size: 15px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.flex { display: flex; gap: 12px; align-items: center; } .between { justify-content: space-between; } .wrap-items { flex-wrap: wrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.right { text-align: right; } .center { text-align: center; }

/* ===== 2. GÓRNY PASEK / NAGŁÓWEK / NAWIGACJA ===== */
.topbar { background: var(--navy-2); color: #b9c8d6; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar a { color: #dbe5ee; } .topbar a:hover { color: #fff; }
.topbar .links { display: flex; gap: 18px; align-items: center; }
.topbar b { color: #f3e3b3; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; transition: box-shadow var(--t); }
body.is-scrolled .header { box-shadow: var(--shadow-2); }
.header .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--brass-2); margin-top: 3px; }

/* wyszukiwarka - wariant "pigułka" w nagłówku i duży w hero */
.searchbar { flex: 1; display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill); max-width: 620px; transition: border-color var(--t), box-shadow var(--t); overflow: hidden; }
.searchbar:focus-within { border-color: var(--navy-3); box-shadow: var(--ring); }
.searchbar .fld { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding-left: 16px; }
.searchbar .fld + .fld { border-left: 1px solid var(--line); flex: 0 0 32%; }
.searchbar .fld svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.searchbar .fld input { border: 0; box-shadow: none; border-radius: 0; padding: 11px 6px; font: inherit; min-width: 0; width: 100%; outline: none; background: transparent; }
.searchbar button { border: 0; background: var(--navy); color: #fff; padding: 0 22px; margin: 4px; border-radius: var(--radius-pill); font: 700 14.5px var(--font-display); cursor: pointer; transition: background var(--t); white-space: nowrap; }
.searchbar button:hover { background: var(--navy-3); }
.header .actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }

.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.nav > .wrap { display: flex; align-items: center; gap: 4px; }
.nav > .wrap > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0 2px; align-items: center; width: 100%; }
.nav > .wrap > ul > li > a, .nav > .wrap > ul > li > button { display: flex; align-items: center; gap: 6px; padding: 12px 12px; font: 600 14px var(--font-display); color: var(--ink-2); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t); }
.nav > .wrap > ul > li > a:hover, .nav > .wrap > ul > li > a.is-active, .nav > .wrap > ul > li > button:hover, .nav > .wrap > ul > li > button[aria-expanded="true"] { color: var(--navy); border-color: var(--brass); text-decoration: none; }
.nav .chev { width: 14px; height: 14px; flex: none; transform-origin: 50% 50%; stroke-linecap: round; stroke-linejoin: round; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform var(--t); }
.nav li > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav .nav-cta { margin-left: auto; }
.nav > .wrap > ul > li { white-space: nowrap; }
body.is-home .header .searchbar { visibility: hidden; }
body.is-home.is-scrolled-far .header .searchbar { visibility: visible; }
@media (max-width: 1000px) { body.is-home .header .searchbar { display: none; } }
.rating-summary .stars .n { display: none; }

/* mega-menu kategorii (klawiatura: Enter/Spacja otwiera, Esc zamyka) */
.megamenu { max-height: calc(100vh - 150px); overflow-y: auto; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); padding: 24px 0 28px; }
.megamenu[hidden] { display: none; }
.megamenu .mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
@media (max-width: 1050px) { .megamenu .mm-grid { grid-template-columns: repeat(3, 1fr); } }
.mm-col .mm-h { font: 700 14.5px var(--font-display); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.mm-col .mm-h a { color: var(--navy); }
.mm-col .ico { width: 20px; height: 20px; color: var(--brass-2); flex: none; }
.mm-col ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.75; }
.mm-col li a { color: var(--ink-2); } .mm-col li a:hover { color: var(--navy); }
.megamenu .mm-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

.burger { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 9px 12px; font: 600 13.5px var(--font-display); cursor: pointer; color: var(--ink-2); }
.burger svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* szuflada mobilna */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(9,26,44,.55); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--paper); box-shadow: var(--shadow-3); overflow-y: auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); width: 38px; height: 38px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.drawer-panel .dr-h { font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 2px; }
.drawer-panel nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-panel nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }

@media (max-width: 1000px) {
  .header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .header .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .burger { display: inline-flex; }
  .header .actions .btn-desktop { display: none; }
  .nav { display: none; }
  .topbar .links a:not(.always) { display: none; }
}

/* ===== 3. PRZYCISKI I FORMULARZE ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm); font: 700 14.5px var(--font-display); cursor: pointer; text-decoration: none; line-height: 1.2; transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t); }
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #20190a; } .btn-brass:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); } .btn-outline:hover { background: #f1f5f9; color: var(--navy); border-color: var(--navy-3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--navy-3); } .btn-ghost:hover { background: var(--line-2); color: var(--navy); }
.btn-green { background: var(--green); border-color: var(--green); } .btn-green:hover { background: #176e48; border-color: #176e48; }
.btn-danger { background: var(--red); border-color: var(--red); } .btn-danger:hover { background: #8f1e18; border-color: #8f1e18; }
.btn-white { background: #fff; border-color: #fff; color: var(--navy); } .btn-white:hover { background: #eef3f8; border-color: #eef3f8; color: var(--navy); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; } .btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 26px; font-size: 16.5px; border-radius: var(--radius); } .btn-block { width: 100%; }
.btn-pill { border-radius: var(--radius-pill); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.field { margin-bottom: 15px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=date], select, textarea {
  width: 100%; border: 1px solid #c8cfd7; border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: var(--ring); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; }
.error { color: var(--red); font-size: 13px; margin-top: 4px; }
.is-invalid { border-color: var(--red) !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } @media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; } @media (max-width: 760px) { .form-row-3 { grid-template-columns: 1fr; } }

/* ===== 4. KARTY, PLAKIETKI, KOMUNIKATY ===== */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.box-brass { background: var(--brass-soft); border-color: var(--brass-line); }
.box-navy { background: var(--navy); color: #d8e2ec; border-color: var(--navy); } .box-navy h2, .box-navy h3 { color: #fff; } .box-navy a { color: #fff; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: 14.5px; }
.alert-success { background: var(--green-soft); border-color: #b9dfc9; color: #15563b; }
.alert-error { background: var(--red-soft); border-color: #f1b9b3; color: #7a1a14; }
.alert-info { background: #e9f0f8; border-color: #c2d4e8; color: #1b3d5e; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font: 700 11.5px var(--font-display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.badge-cert { background: var(--navy); color: #f3e3b3; border: 1px solid var(--brass); }
.badge-premium { background: var(--brass); color: #20190a; }
.badge-standard { background: #e1e8f0; color: var(--navy); }
.badge-green { background: var(--green-soft); color: #15563b; } .badge-red { background: var(--red-soft); color: #7a1a14; } .badge-grey { background: var(--line-2); color: var(--ink-2); } .badge-amber { background: #fff1d6; color: #7a4b00; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 800 28px var(--font-display); color: var(--navy); letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ===== 5. UKŁAD STRONY ===== */
.page { padding-top: 24px; padding-bottom: 48px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .lead { color: var(--ink-2); font-size: 16px; max-width: 820px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li:before { content: "›"; margin: 0 5px; color: #a5b0bc; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.layout-left { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .layout, .layout-left { grid-template-columns: 1fr; } .layout-left aside { order: 2; } }
.sidebar .card { padding: 18px; }
.sidebar h3 { font-size: 15.5px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 980px) { .sticky-side { position: static; } }
.section { margin: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
.section-head:after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--brass); border-radius: 2px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.section-head .sub { display: block; font: 400 14px var(--font-text); color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }

/* ===== 6. STRONA GŁÓWNA ===== */
.hero { position: relative; background: var(--navy-2); color: #fff; padding: 56px 0 64px; overflow: hidden; border-bottom: 3px solid var(--brass); }
/* tło: warstwa granatu + delikatna siatka "planu miasta", bez gradientów-ozdobników */
.hero:before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1000px 420px at 78% -10%, rgba(41,95,146,.55), transparent 65%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 64px); }
.hero .wrap { position: relative; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #f3e3b3; background: rgba(201,154,46,.16); border: 1px solid rgba(201,154,46,.45); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 12px; letter-spacing: -.03em; }
.hero p.lead { color: #c9d6e2; max-width: 660px; margin: 0 auto 26px; font-size: 17px; }
.hero .searchbar { max-width: 860px; margin: 0 auto; text-align: left; border: 0; border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow-3); }
.hero .searchbar .fld { padding-left: 18px; }
.hero .searchbar .fld input { padding: 15px 8px; font-size: 16px; }
.hero .searchbar button { background: var(--brass); color: #20190a; font-size: 15.5px; padding: 0 30px; border-radius: var(--radius); margin: 0; }
.hero .searchbar button:hover { background: #dcb04a; }
.hero .quick { margin-top: 16px; justify-content: center; font-size: 13.5px; color: #a9bbcb; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero .quick a { color: #e7eef4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: var(--radius-pill); transition: background var(--t); }
.hero .quick a:hover { text-decoration: none; background: rgba(255,255,255,.18); }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; font-size: 13.5px; color: #bccbd8; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--brass); flex: none; }
@media (max-width: 760px) {
  .hero { padding: 36px 0 40px; }
  .searchbar { flex-wrap: wrap; border-radius: var(--radius); }
  .searchbar .fld { flex-basis: 100%; padding: 4px 14px; }
  .searchbar .fld + .fld { border-left: 0; border-top: 1px solid var(--line); flex: 1 1 100%; }
  .searchbar button { flex-basis: 100%; padding: 13px 0; border-radius: var(--radius-sm); }
  .hero .searchbar { border: 0; }
}

.statsbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -34px 0 32px; position: relative; z-index: 2; }
@media (max-width: 760px) { .statsbar { grid-template-columns: repeat(2, 1fr); margin-top: 20px; } .statsbar .stat:last-child { grid-column: 1 / -1; } }
.statsbar .stat { box-shadow: var(--shadow-2); }

/* kafle branż - główne wejście w katalog (oferteo/pkt.pl) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #c9d6e2; }
.cat-tile .ico-box { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--brass-soft); border: 1px solid var(--brass-line); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cat-tile .ico-box svg { width: 24px; height: 24px; color: var(--brass-2); }
.cat-tile h3 { font-size: 16px; margin: 0 0 4px; color: var(--navy); }
.cat-tile .count { font-size: 12.5px; color: var(--ink-3); display: block; margin-bottom: 8px; }
.cat-tile ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.cat-tile li { display: inline; } .cat-tile li:after { content: " · "; color: #b2bcc7; } .cat-tile li:last-child:after { content: ""; }

/* lista kategorii w kolumnach (starsza sekcja, nadal używana na /kategorie) */
.cat-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; }
@media (max-width: 900px) { .cat-dir { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .cat-dir { grid-template-columns: 1fr; } }
.cat-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-1); }
.cat-block h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 15.5px; }
.cat-block h3 a { color: var(--navy); } .cat-block .ico { width: 22px; height: 22px; color: var(--brass-2); flex: none; }
.cat-block ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.cat-block li { display: inline; } .cat-block li:after { content: " · "; color: #b2bcc7; } .cat-block li:last-child:after { content: ""; }
.cat-block li a { color: var(--ink-2); } .cat-block li a:hover { color: var(--navy); }
.cat-block li a b { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.cat-block .more { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-pill); font-size: 13.5px; color: var(--ink-2); transition: border-color var(--t), color var(--t), background var(--t); }
.chip:hover { border-color: var(--navy-3); color: var(--navy); text-decoration: none; background: #f7fafd; } .chip b { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; } .chip.is-active b { color: #c3d3e2; }

/* jak to działa */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.steps li:before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 16px var(--font-display); align-items: center; justify-content: center; margin-bottom: 12px; }
.steps h3 { font-size: 16.5px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* miasta */
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1000px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
.city-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color var(--t), box-shadow var(--t), color var(--t); }
.city-card:hover { text-decoration: none; color: var(--navy); border-color: var(--navy-3); box-shadow: var(--shadow-1); }
.city-card span { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }

/* pas CTA dla firm */
.cta-band { background: var(--navy); color: #d6e1ec; border-radius: var(--radius-lg); padding: 34px 36px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--navy-3); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; font-size: 15.5px; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; }
.cta-band li { display: flex; align-items: center; gap: 8px; }
.cta-band li:before { content: "✓"; color: var(--brass); font-weight: 800; }

/* pas z opiniami / dowodem społecznym */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-1); }
.quote p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.quote footer { font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quote footer b { color: var(--ink); }

/* blok tekstu SEO na dole listingów */
.seo-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; font-size: 15px; color: var(--ink-2); box-shadow: var(--shadow-1); }
.seo-block h2 { font-size: 20px; }
.seo-block h3 { font-size: 16px; margin-top: 1.4em; }

/* ===== 7. KARTY FIRM ===== */
.company-list { display: flex; flex-direction: column; gap: 14px; }
.co { display: grid; grid-template-columns: 86px 1fr 210px; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; box-shadow: var(--shadow-1); transition: box-shadow var(--t), border-color var(--t), transform var(--t); }
.co:hover { box-shadow: var(--shadow-2); border-color: #c9d6e2; transform: translateY(-1px); }
.co.is-premium { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset, var(--shadow-1); background: linear-gradient(100deg, #fffdf6, #fff 45%); }
.co.is-standard { border-color: #b8c8d9; }
.co-logo { width: 86px; height: 86px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.co-logo img { width: 100%; height: 100%; object-fit: cover; }
.co-logo.is-initials { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; font: 800 26px var(--font-display); letter-spacing: -.03em; }
.co-logo.is-initials.alt { background: #e8edf3; color: var(--navy); }
.co-main { min-width: 0; }
.co-main h3 { font-size: 18px; margin: 0 0 5px; } .co-main h3 a { color: var(--ink); } .co-main h3 a:hover { color: var(--navy-3); }
.co-meta { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; align-items: center; }
.co-meta span { display: inline-flex; align-items: center; gap: 5px; }
.co-meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.co-meta a { color: var(--ink-3); } .co-meta a:hover { color: var(--navy); }
.co-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.co-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.co-tags .tag { font-size: 12.5px; background: var(--line-2); color: var(--ink-2); padding: 3px 9px; border-radius: var(--radius-pill); }
.co-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; border-left: 1px solid var(--line-2); padding-left: 18px; }
.co-side .phone { font: 800 19px var(--font-display); color: var(--ink); letter-spacing: -.02em; text-align: center; }
.co-side .phone a { color: inherit; }
.co-side .www { font-size: 13px; text-align: center; }
.co-badges { position: absolute; top: -10px; left: 16px; display: flex; gap: 6px; }
.open-now { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font-text); }
.open-now:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: var(--green); } .open-now.is-closed { color: var(--ink-3); }
@media (max-width: 900px) { .co { grid-template-columns: 72px 1fr; } .co-logo { width: 72px; height: 72px; } .co-side { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 12px; flex-direction: row; align-items: center; flex-wrap: wrap; } .co-side .btn { flex: 1 1 auto; } .co-side .phone { text-align: left; } }
@media (max-width: 520px) { .co { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px; } .co-logo { width: 56px; height: 56px; } .co-logo.is-initials { font-size: 18px; } .co-main h3 { font-size: 16.5px; } }

.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-1); transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); border-color: #c9d6e2; }
.tile.is-premium { border-color: var(--brass); background: #fffdf6; }
.tile h3 { font-size: 15.5px; margin: 0 0 3px; } .tile h3 a { color: var(--ink); }
.tile .co-logo { width: 58px; height: 58px; flex: none; } .tile .co-logo.is-initials { font-size: 18px; }
.tile .t-body { min-width: 0; flex: 1; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--brass); font-size: 13.5px; white-space: nowrap; }
.stars .n { color: var(--ink); font-weight: 700; margin-left: 5px; } .stars .c { color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; } .stars svg.off { fill: #d8dee5; }

/* ===== 8. NARZĘDZIA LISTINGU ===== */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow-1); }
.toolbar .sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toolbar .sort > span { color: var(--ink-3); font-size: 13.5px; }
.toolbar .sort a { padding: 5px 12px; border-radius: var(--radius-pill); color: var(--ink-2); font-size: 13.5px; border: 1px solid transparent; }
.toolbar .sort a:hover { background: var(--line-2); text-decoration: none; }
.toolbar .sort a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.filter h4 { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.filter h4 + h4 { margin-top: 4px; }
.filter ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; } .filter li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; } .filter li a { color: var(--ink-2); } .filter li a:hover { color: var(--navy); } .filter li a.is-active { color: var(--navy); font-weight: 700; } .filter li span { color: var(--ink-3); font-size: 12px; }
.filter ul:last-child { margin-bottom: 0; }
.filter-toggle { display: none; }
@media (max-width: 980px) {
  .filter-toggle { display: inline-flex; width: 100%; justify-content: center; margin-bottom: 12px; }
  .sidebar[data-filters][hidden] { display: none; }
}
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 14px; color: var(--ink-2); }
.pagination .is-active span { background: var(--navy); border-color: var(--navy); color: #fff; } .pagination a:hover { border-color: var(--navy-3); text-decoration: none; color: var(--navy); }
.pagination .is-disabled span { opacity: .45; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-3); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ===== 9. WIZYTÓWKA FIRMY ===== */
.co-head { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-1); }
.co-cover { height: 220px; background: var(--navy-2); background-size: cover; background-position: center; position: relative; }
.co-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,26,44,.15), rgba(9,26,44,.55)); }
.co-cover.is-plain { height: 8px; background: var(--navy); } .co-cover.is-plain:after { display: none; }
.co-head-body { display: flex; gap: 22px; padding: 18px 26px 22px; align-items: flex-start; flex-wrap: wrap; }
.co-head-body .co-logo { width: 112px; height: 112px; margin-top: -60px; border: 4px solid #fff; box-shadow: var(--shadow-2); flex: none; position: relative; z-index: 1; border-radius: var(--radius); }
.co-head-body .co-logo.is-initials { font-size: 34px; }
.co-head-body.no-cover .co-logo { margin-top: 0; }
.co-title { flex: 1; min-width: 260px; } .co-title h1 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 8px; }
.co-title .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.co-title .addr { color: var(--ink-2); font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.co-title .addr svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; color: var(--brass-2); }
.co-rate { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.co-cta { display: flex; flex-direction: column; gap: 10px; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.co-cta .phone { font: 800 24px var(--font-display); color: var(--ink); letter-spacing: -.02em; text-align: center; }
.co-cta .phone a { color: inherit; }
.co-cta .note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 0; }
/* "Jesteś właścicielem? Przejmij wizytówkę" - przycisk w kolumnie CTA jest węższy niż tekst,
   więc etykieta musi się łamać na dwie linie zamiast wychodzić poza przycisk. */
.co-cta .btn-claim { font-size: 13.5px; padding: 9px 12px; text-align: center; }

/* zakładki wizytówki - przyklejone pod nagłówkiem */
.profile-tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; padding: 0 6px; box-shadow: var(--shadow-1); overflow-x: auto; }
.profile-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.profile-tabs a { display: block; padding: 13px 16px; font: 600 14.5px var(--font-display); color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.profile-tabs a:hover { color: var(--navy); text-decoration: none; }
.profile-tabs a.is-active { color: var(--navy); border-color: var(--brass); }

.contact-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; } .contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; } .contact-list li:last-child { border: 0; }
.contact-list svg { width: 19px; height: 19px; flex: none; color: var(--brass-2); margin-top: 2px; } .contact-list b { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; } .hours td { padding: 6px 0; border-bottom: 1px solid var(--line-2); } .hours td:last-child { text-align: right; font-weight: 600; } .hours tr.today td { color: var(--navy); font-weight: 700; } .hours tr:last-child td { border: 0; }
.desc { font-size: 16px; line-height: 1.7; color: var(--ink-2); } .desc p { margin-bottom: 1em; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; } .services li { display: flex; gap: 9px; align-items: flex-start; } .services li:before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .gallery button { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--line-2); border: 0; padding: 0; cursor: zoom-in; } .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); } .gallery button:hover img { transform: scale(1.04); }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius-sm); background: var(--line-2); }

/* podsumowanie ocen */
.rating-summary { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 620px) { .rating-summary { grid-template-columns: 1fr; gap: 14px; } }
.rating-summary .big { text-align: center; }
.rating-summary .big b { display: block; font: 800 44px var(--font-display); color: var(--navy); letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.rating-summary .big span { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 6px; }
.rating-bars { display: grid; gap: 6px; }
.rating-bars .row { display: grid; grid-template-columns: 54px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.rating-bars .bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.rating-bars .bar i { display: block; height: 100%; background: var(--brass); }

.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); } .review:last-of-type { border: 0; } .review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; flex-wrap: wrap; } .review-head b { color: var(--ink); font-size: 14.5px; }
.review .reply { margin-top: 10px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--brass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.star-input { display: flex; gap: 3px; } .star-input button { border: 0; background: none; font-size: 28px; color: #d5dbe2; cursor: pointer; padding: 0 2px; line-height: 1; transition: color var(--t); } .star-input button.is-on { color: var(--brass); }
.cert-panel { display: flex; gap: 18px; align-items: center; background: var(--navy); color: #d8e2ec; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--brass); flex-wrap: wrap; }
.cert-panel h3 { color: #fff; margin: 0 0 4px; } .cert-panel p { margin: 0; font-size: 14px; } .cert-panel a { color: #f3e3b3; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 10. CENNIK ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; } @media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.plan.is-highlight { border: 2px solid var(--brass); position: relative; box-shadow: var(--shadow-2); } .plan.is-highlight:before { content: "Najczęściej wybierany"; position: absolute; top: -12px; left: 20px; background: var(--brass); color: #20190a; font: 700 11px var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); }
.plan h3 { font-size: 21px; margin-bottom: 2px; } .plan .tag { color: var(--ink-3); font-size: 13.5px; margin-bottom: 16px; }
.plan .price { font: 800 38px var(--font-display); color: var(--navy); letter-spacing: -.04em; line-height: 1; } .plan .price small { font: 500 13px var(--font-text); color: var(--ink-3); letter-spacing: 0; }
.plan .per { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; flex: 1; } .plan li { padding: 7px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 9px; } .plan li:before { content: "✓"; color: var(--green); font-weight: 700; }
.plan-choice { border: 2px solid var(--line); border-radius: var(--radius); padding: 15px; cursor: pointer; display: block; } .plan-choice:has(input:checked) { border-color: var(--navy); background: #f2f6fa; }
.plan-choice input { margin-right: 8px; }

/* ===== 11. PANEL KLIENTA / ADMIN ===== */
.panel { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; padding-top: 24px; padding-bottom: 48px; }
@media (max-width: 980px) { .panel { grid-template-columns: 1fr; } }
.side-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-1); }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side-nav a:hover { background: var(--line-2); text-decoration: none; color: var(--navy); } .side-nav a.is-active { background: var(--navy); color: #fff; }
.side-nav .sep { border-top: 1px solid var(--line-2); margin: 6px 0; } .side-nav .head { padding: 10px 13px 4px; font: 700 11px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.side-nav .count { background: var(--brass); color: #20190a; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); } .side-nav a.is-active .count { background: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); } table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper); }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; } .tbl th { font: 700 11.5px var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); white-space: nowrap; }
.tbl tr:hover td { background: #fbfcfd; } .tbl td.nowrap, .nowrap { white-space: nowrap; } .tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl form { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .inline-form input, .inline-form select { width: auto; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 7px 14px; font-size: 14.5px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
/* Skrót faktów na wizytówce (branża, miasto, telefon, ocena...) - zwarta lista pod opisem firmy. */
.kv.facts { grid-template-columns: 150px 1fr; gap: 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.kv.facts dt { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink-3); }
.kv.facts dd { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
@media (max-width: 560px) { .kv.facts { grid-template-columns: 1fr; } .kv.facts dt { padding-bottom: 0; border-bottom: 0; } }
pre.log { background: #0f1720; color: #cfe3f5; padding: 14px; border-radius: var(--radius-sm); font-size: 12.5px; overflow: auto; max-height: 400px; white-space: pre-wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; } .tabs button { border: 0; background: none; padding: 11px 15px; font: 600 14.5px var(--font-display); color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs button.is-active { color: var(--navy); border-color: var(--brass); }
.progress { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--green); }
code.inline { background: var(--line-2); padding: 2px 7px; border-radius: 4px; font-size: 13px; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.auth-box { max-width: 460px; margin: 40px auto; }
.auth-box .card { padding: 30px; }
.ico-list { list-style: none; padding: 0; margin: 0; } .ico-list li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; } .ico-list li:before { content: "✓"; color: var(--green); font-weight: 800; }
.prose { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--ink-2); } .prose h2 { margin-top: 1.5em; color: var(--ink); } .prose h3 { color: var(--ink); } .prose ol, .prose ul { padding-left: 22px; } .prose li { margin-bottom: .4em; }

/* ===== 12. STOPKA ===== */
.footer { background: var(--navy-2); color: #a9bbcb; margin-top: 56px; padding: 44px 0 24px; font-size: 14px; }
.footer a { color: #d3dfe9; } .footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 28px; } @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h2 { color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { padding: 4px 0; }
.footer .brand { color: #fff; margin-bottom: 12px; } .footer .brand small { color: var(--brass); }
.footer-cities { border-top: 1px solid #1f3d58; margin-top: 30px; padding-top: 20px; }
.footer-cities h2 { margin-bottom: 10px; }
.footer-cities .chips .chip { background: rgba(255,255,255,.06); border-color: #244763; color: #c6d5e2; }
.footer-cities .chips .chip:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #35617f; }
.footer-bottom { border-top: 1px solid #1f3d58; margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #7f95a8; }

/* ===== 13. WARSTWY: modal, lightbox, toast, powrót na górę ===== */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9,26,44,.6); }
.modal-box { position: relative; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); max-width: 520px; width: 100%; padding: 26px; max-height: 88vh; overflow-y: auto; }
.modal-box h2 { margin-top: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--line-2); border-radius: 50%; width: 34px; height: 34px; font-size: 19px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(6,18,30,.92); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-3); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.lightbox .lb-close { top: 20px; right: 20px; } .lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, 92vw); }
.toast { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); padding: 13px 16px; font-size: 14.5px; animation: toast-in 200ms ease-out; }
.toast.is-success { border-left-color: var(--green); } .toast.is-error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-2); cursor: pointer; color: var(--navy); display: none; align-items: center; justify-content: center; }
body.is-scrolled-far .to-top { display: flex; }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ===== 14. RUCH I DRUK ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .co:hover, .tile:hover, .cat-tile:hover { transform: none; }
}
@media print {
  .topbar, .header, .nav, .footer, .co-cta, .profile-tabs, .to-top { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ===== 15. FAQ (details/summary) ===== */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 16px; color: var(--ink); }
.faq summary:after { content: "+"; font: 700 22px var(--font-display); color: var(--brass-2); flex: none; transition: transform var(--t); }
.faq details[open] summary:after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }
.h4-like { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-weight: 700; }
.box-brass .h4-like { font-size: 15.5px; letter-spacing: -.01em; text-transform: none; }
.sidebar .side-h { font-size: 17px; margin-bottom: 10px; }
.hours th { text-align: left; font-weight: inherit; }
.hours tr.today th { color: var(--navy); font-weight: 700; }
.sidebar-wrap { min-width: 0; }
.layout-left > .sidebar-wrap { align-self: stretch; }

/* ===== 16. MOBILE: zwarty nagłówek (logo + menu w jednym rzędzie, wyszukiwarka w jednej linii) ===== */
@media (max-width: 1000px) {
  :root { --header-h: 0px; }
  .header { position: relative; }
  .header .wrap { flex-wrap: wrap; }
  .header .brand { flex: 1; min-width: 0; }
  .header .actions { margin-left: 0; }
  .header .searchbar { flex-wrap: nowrap; border-radius: var(--radius-pill); }
  .header .searchbar .fld { flex: 1 1 auto; flex-basis: auto; padding: 0 0 0 14px; }
  .header .searchbar .fld + .fld { display: none; }
  .header .searchbar button { flex-basis: auto; padding: 0 16px; margin: 4px; border-radius: var(--radius-pill); }
  .profile-tabs { top: 0; }
  .co-cta { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .brand { font-size: 16px; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 9.5px; }
  .burger .lbl { display: none; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .co-head-body { padding: 16px; gap: 14px; }
  .co-head-body .co-logo { width: 84px; height: 84px; }
  .card { padding: 16px; }
}
@media (max-width: 760px) { .hero .searchbar button { padding: 14px 0; flex-basis: 100%; } .hero .searchbar .fld input { padding: 12px 6px; } }

/* ===== 18. SZEROKIE EKRANY (1440 / 1600) =====
   Skala szerokości kontenera: < 1440 px → 1240 px (bez zmian, niżej działają dotychczasowe progi),
   od 1440 px → 1400 px, od 1600 px → 1560 px. Szerokość zmieniamy tylko tokenem --wrap,
   a gęstsze siatki (więcej kolumn) dopasowują się, żeby kafle nie robiły się za szerokie. */
@media (min-width: 1440px) {
  :root { --wrap: 1400px; }
  .wrap { padding: 0 28px; }
  .layout { grid-template-columns: 1fr 340px; gap: 32px; }
  .layout-left { grid-template-columns: 300px 1fr; gap: 32px; }
  .panel { grid-template-columns: 260px 1fr; gap: 30px; }
  .hero-inner, .hero .searchbar { max-width: 920px; }
  .megamenu .mm-grid { grid-template-columns: repeat(5, 1fr); }
  .city-grid { grid-template-columns: repeat(8, 1fr); }
  .co { grid-template-columns: 96px 1fr 230px; }
  .gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1600px) {
  :root { --wrap: 1560px; }
  .wrap { padding: 0 32px; }
  body { font-size: 16px; }
  .layout { grid-template-columns: 1fr 360px; gap: 36px; }
  .layout-left { grid-template-columns: 320px 1fr; gap: 36px; }
  .hero { padding: 72px 0 80px; }
  .hero-inner, .hero .searchbar { max-width: 980px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .megamenu .mm-grid { grid-template-columns: repeat(6, 1fr); }
  .steps, .quote-grid { gap: 24px; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
}
