/* =========================================================================
   krakow1.pl — styl A · Błękit
   Wszystkie kolory, odstępy i zaokrąglenia są w zmiennych poniżej.
   ========================================================================= */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.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: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext-wght-normal.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;
}

:root {
    /* Kolory */
    --blue: #1450A3;          /* krakowski błękit — akcent marki */
    --blue-dark: #0D3A7A;     /* hover, tekst na jasnoniebieskim */
    --blue-soft: #E8F0FB;     /* tła chipów, wyróżnień */
    --blue-light: #7FA8E8;    /* akcent na ciemnym tle */
    --ink: #0E1A2B;           /* tekst główny */
    --ink-2: #1F2A3D;         /* tekst akapitów */
    --muted: #5A6B80;         /* tekst pomocniczy (kontrast 5.3:1 na białym) */
    --line: #E3E9F2;          /* obramowania */
    --line-soft: #EEF2F7;
    --bg: #F4F7FB;            /* tło strony */
    --surface: #FFFFFF;       /* karty */
    --field: #F1F5FA;         /* pola formularzy */
    --green: #11643A;
    --green-soft: #E4F6EC;
    --amber: #7A4B00;
    --amber-soft: #FDF1DC;

    /* Kształt */
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1180px;
    --gutter: 24px;

    /* Tekst: systemowy (Segoe UI / San Francisco / Roboto) — najczytelniejszy na każdym urządzeniu.
       Nagłówki, logo, przyciski: Manrope — charakter marki. */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, .logo, .btn, .chip, .eyebrow, .stat strong, .main-nav, .site-footer h2 { font-family: var(--font-display); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.env-banner { background: #FFF3C4; color: #5C4700; text-align: center; font-size: 14px; padding: 6px 16px; border-bottom: 1px solid #ECD98A; }

/* ---------- Logo ---------- */
.logo {
    display: inline-flex; align-items: center; gap: 1px;
    font-weight: 800; font-size: 24px; letter-spacing: -0.03em;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo__one {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin: 0 1px; border-radius: 9px;
    background: var(--blue); color: #fff; font-size: 19px;
}
.logo__tld { color: #7A8AA0; font-weight: 600; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__tld { color: var(--blue-light); }

/* ---------- Przyciski i chipy ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--blue); color: #fff; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 16px;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn--soft { background: var(--blue-soft); color: var(--blue-dark); }
.btn--soft:hover { background: #D6E4F7; color: var(--blue-dark); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; line-height: 1.4;
    background: var(--field); color: #3D4B5E; text-decoration: none;
}
a.chip:hover { color: var(--blue-dark); background: var(--blue-soft); }
.chip--blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip--green { background: var(--green-soft); color: var(--green); }
.chip--amber { background: var(--amber-soft); color: var(--amber); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card--pad { padding: 24px; }
.card__title { font-size: 18px; margin: 0 0 12px; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ---------- Nagłówek ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header-search {
    flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px; background: var(--field); border: 1px solid var(--line); border-radius: 12px;
    color: var(--muted);
}
.header-search:focus-within { border-color: var(--blue); background: var(--surface); }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.menu-button { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Treść ---------- */
.site-main { padding: 28px 0 64px; min-height: 60vh; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #A9B6C6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

.section-title { font-size: 24px; margin: 0 0 14px; }
.section-title__more { margin-left: 10px; font-size: 15px; font-weight: 700; text-decoration: none; }

/* ---------- Strona główna ---------- */
.hero { padding: 6px 0 8px; }
.hero__eyebrow { margin: 0 0 8px; font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.hero__title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 800; color: var(--ink); }
.hero__lead { color: var(--ink-2); font-size: 19px; margin: 0 0 26px; }
.hero-search { display: flex; gap: 10px; max-width: 680px; }
.hero-search input {
    flex: 1; min-width: 0; height: 56px; padding: 0 18px; font: inherit; font-size: 17px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.hero-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.hero-search .btn { min-height: 56px; padding: 0 26px; border-radius: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.stat { padding: 18px 20px; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

.error-page { text-align: center; padding: 48px 0; }
.error-page h1 { font-size: 36px; margin: 0 0 8px; }

/* ---------- Karta firmy ---------- */
.firm-hero { padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.firm-hero__logo {
    width: 200px; height: 144px; flex: none; border-radius: 18px; background: var(--blue-soft);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: var(--blue); font-weight: 800; font-size: 32px; letter-spacing: -0.02em;
}
.firm-hero__logo--image { background: #fff; border: 1px solid var(--line); }
.firm-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.firm-hero__text { flex: 1 1 380px; min-width: 0; }
.firm-hero h1 { margin: 10px 0 0; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; overflow-wrap: anywhere; }
.firm-hero__address { margin: 10px 0 0; font-size: 17px; color: #3D4B5E; }
.firm-hero__official { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.firm-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.firm-layout { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; align-items: flex-start; }
.firm-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.firm-layout__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.contact-grid { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.contact-grid__value { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.contact-grid__value--big { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-grid__value--big:hover { color: var(--blue); }
.contact-grid__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-weight: 600; }
.contact-grid__note { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 24px 0 10px; font-size: 19px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose > :last-child { margin-bottom: 0; }
.lead-text { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.05); }

.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: block; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile:hover { color: var(--ink); border-color: #BFD2EE; box-shadow: 0 6px 18px rgba(20, 80, 163, .08); }
.tile strong { display: block; font-size: 16px; line-height: 1.35; }
.tile span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.map-card { overflow: hidden; }
.map { height: 240px; background: #DCE7F5; }
.map-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 15px; font-weight: 600; }
.map-card__footer a { font-size: 14px; white-space: nowrap; }

.hours { padding: 22px; }
.hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.hours__row:last-child { border-bottom: 0; }
.hours__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours__row.is-closed span:last-child { color: var(--muted); }
.hours__row.is-today { margin: 2px -12px; padding: 9px 12px; border-radius: var(--radius-sm); border-bottom: 0; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.hours__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Nagłówek strony listy ---------- */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4.2vw, 40px); letter-spacing: -0.03em; font-weight: 800; }
.page-head__count { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.page-head__intro { margin-top: 14px; }
.page-head .hero-search { margin-top: 20px; }
.page-section { margin-top: 48px; }
.page-section .section-title a { text-decoration: none; }
.page-outro { margin-top: 40px; }

.filter-row { margin: 0 0 20px; }
.chip--active { background: var(--blue); color: #fff; }
a.chip--active:hover { background: var(--blue-dark); color: #fff; }
.chips--small .chip { font-size: 12px; padding: 3px 10px; }

/* ---------- Lista firm + mapa ---------- */
.listing { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.listing__main { flex: 999 1 560px; min-width: 0; }
.listing__map { flex: 1 1 360px; min-width: 0; position: sticky; top: 16px; }
.map--tall { height: min(70vh, 620px); }

.district-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.district-filter select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); max-width: 100%; }

.firm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.firm-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) 200px; gap: 16px 18px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.firm-card[hidden] { display: none; }
.firm-card:hover { border-color: #BFD2EE; }
.firm-card__logo { width: 112px; height: 80px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-decoration: none; }
.firm-card__logo--image { background: #fff; border: 1px solid var(--line); }
.firm-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.firm-card__name { margin: 0 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.firm-card__name a { color: var(--ink); text-decoration: none; }
.firm-card__name a:hover { color: var(--blue); text-decoration: underline; }
.firm-card__line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.firm-card__line .icon { color: var(--blue); margin-top: 3px; }
.firm-card__intro { grid-column: 2 / -1; grid-row: 2; margin: -6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.firm-card__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.empty-note { margin: 16px 0; color: var(--muted); }
.empty-state h2 { margin: 0 0 6px; font-size: 22px; }
.empty-state p { margin: 0 0 16px; color: var(--ink-2); }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* Pinezka mapy w kolorze marki */
.map-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(14, 26, 43, .35); }
.map-popup__name { font-weight: 700; font-size: 15px; color: var(--blue); }
.map-popup__address { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ---------- Katalog: rozdziały ---------- */
.section-grid { columns: 3 300px; column-gap: 16px; }
.section-card { break-inside: avoid; margin-bottom: 16px; padding: 22px; }
.section-card h2 { margin: 0 0 10px; font-size: 19px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.section-card h2 a { color: var(--ink); text-decoration: none; }
.section-card h2 a:hover { color: var(--blue); }
.section-card h2 span, .section-card li span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); }
.section-card ul { list-style: none; margin: 0; padding: 0; }
.section-card li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.section-card li a { color: var(--ink-2); text-decoration: none; }
.section-card li a:hover { color: var(--blue); text-decoration: underline; }
.tile--category strong { font-size: 17px; }
.tile-grid--compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- Artykuły: karty i listy ---------- */
.page-head__page { color: var(--muted); font-weight: 600; font-size: .6em; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: #BFD2EE; box-shadow: 0 8px 24px rgba(20, 80, 163, .08); }
.article-card__image { display: block; aspect-ratio: 16 / 10; background: var(--blue-soft); overflow: hidden; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-card__image img { transform: scale(1.03); }
.article-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9FB8DE; font-size: 40px; }
.article-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-card__category { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.article-card__title { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a:hover { color: var(--blue); }
.article-card__excerpt { margin: 0; color: var(--ink-2); font-size: 16px; }
.article-card__date { margin: auto 0 0; padding-top: 4px; font-size: 14px; color: var(--muted); }

.article-card--featured { flex-direction: row; margin-bottom: 20px; }
.article-card--featured .article-card__image { flex: 1 1 55%; aspect-ratio: auto; min-height: 320px; }
.article-card--featured .article-card__body { flex: 1 1 45%; padding: 28px; justify-content: center; gap: 12px; }
.article-card--featured .article-card__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.article-card--featured .article-card__date { margin-top: 4px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.pagination ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.pagination li a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pagination li a:hover { border-color: var(--blue); color: var(--blue); }
.pagination li span[aria-current] { background: var(--blue); color: #fff; }
.pagination__gap { display: inline-flex; align-items: center; color: var(--muted); padding: 0 2px; }
.pagination__step { font-family: var(--font-display); font-weight: 700; text-decoration: none; padding: 10px 4px; }

/* ---------- Artykuł ---------- */
.article-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.article { flex: 999 1 600px; min-width: 0; max-width: 760px; }
.article-side { flex: 1 1 280px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }
.article__head h1 { margin: 14px 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.article__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 15px; }
.article__image { margin: 24px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-soft); }
.article__image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.article__lead { margin: 24px 0 0; font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.article__body { margin-top: 24px; font-size: 18px; line-height: 1.75; }
.article__body h2 { font-size: 27px; margin: 40px 0 14px; scroll-margin-top: 20px; }
.article__body h3 { font-size: 21px; margin: 30px 0 10px; }
.article__body h4 { font-size: 18px; margin: 24px 0 8px; }
.article__body img { display: block; max-width: 100%; height: auto; margin: 24px auto 8px; border-radius: var(--radius); }
.article__body .image-caption { margin: 0 0 24px; text-align: center; font-size: 14px; color: var(--muted); }
.article__body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin: 24px 0; }
.article__body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.article__body th, .article__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article__body th { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; white-space: nowrap; }
.article__body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--ink); font-size: 19px; }
.article__body li { margin-bottom: 6px; }

.toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.toc--side { padding: 22px; max-height: calc(100vh - 32px); overflow: auto; }
.toc--inline { display: none; margin-top: 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc--inline summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; }
.toc--inline ol { margin-top: 12px; }

.side-list { padding: 22px; }
.side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.side-list a:hover { color: var(--blue); }
.side-list span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ---------- Strony statyczne ---------- */
.static-head__lead { margin: 12px 0 0; font-size: 19px; color: var(--ink-2); }
.static-head__intro { margin-top: 14px; }
.static-head .btn { margin-top: 6px; }
.static-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.static-page { flex: 999 1 560px; min-width: 0; }
.static-page.prose h2 { font-size: 23px; margin: 32px 0 10px; }
.static-page.prose h2:first-child { margin-top: 0; }
.static-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.static-side__line { margin: 0 0 10px; overflow-wrap: anywhere; }
.static-side__line:last-child { margin-bottom: 0; }
.static-side__muted { font-size: 14px; color: var(--muted); }
.section-lead { margin: -4px 0 18px; max-width: 820px; color: var(--ink-2); }

/* ---------- Formularze ---------- */
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.form-optional { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink);
    padding: 12px 14px; border: 1px solid #CDD7E5; border-radius: 12px; background: var(--surface);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form-field [aria-invalid="true"] { border-color: #B42318; }
.form-error { margin: 6px 0 0; font-size: 14px; color: #B42318; }
.form-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FDECEA; color: #8A1C12; font-weight: 600; }
.form-note { margin: 18px 0; font-size: 14px; color: var(--muted); }
.form-success h2 { margin: 0 0 8px; font-size: 24px; color: var(--green); }
.form-success p { margin: 0 0 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pakiety / cennik ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; }
.plan--featured { border: 2px solid var(--blue); box-shadow: 0 12px 32px rgba(20, 80, 163, .12); }
.plan__badge { position: absolute; top: -13px; left: 24px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.plan__name { margin: 0; font-size: 22px; }
.plan__price { margin: 10px 0 2px; font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__price--text { font-size: 22px; }
.plan__note { margin: 0 0 18px; color: var(--muted); }
.plan__features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.plan__features li.is-no { color: #8795A8; }
.icon--check { color: var(--green); stroke-width: 2.6; margin-top: 2px; }
.icon--cross { color: #A9B6C6; stroke-width: 2.2; margin-top: 2px; }
.plans--compact .plan { padding: 22px; }
.plans--compact .plan__note { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.step { counter-increment: step; padding: 20px 22px; }
.step h3 { margin: 0 0 6px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.step h3::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 15px; flex: none; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Konto: logowanie / rejestracja ---------- */
.auth { max-width: 460px; margin: 8px auto 0; }
.auth__card { padding: 32px; }
.auth__card h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.03em; }
.auth__lead { margin: 0 0 22px; color: var(--ink-2); }
.auth .form-field { margin-bottom: 14px; }
.auth__submit { width: 100%; margin-top: 6px; }
.auth__aside-link { float: right; font-weight: 500; font-size: 14px; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__switch { text-align: center; margin: 18px 0 0; color: var(--ink-2); }
.auth__resend { margin-top: 14px; text-align: center; }
.btn--google { width: 100%; background: #fff; color: var(--ink); border: 1px solid #CDD7E5; }
.btn--google:hover { background: var(--field); color: var(--ink); }
.btn--danger { background: #B42318; }
.btn--danger:hover { background: #8A1C12; }

.flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-weight: 600; overflow-wrap: anywhere; }
.flash--success { background: var(--green-soft); color: var(--green); }
.flash--error { background: #FDECEA; color: #8A1C12; }
.flash--info { background: var(--blue-soft); color: var(--blue-dark); }
.flash--dev { background: #FFF3C4; color: #5C4700; font-weight: 500; font-size: 14px; }

.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; font-size: 15px; }
.form-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.form-counter { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.form-counter.is-over { color: #B42318; font-weight: 700; }
.form-field select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #CDD7E5; border-radius: 12px; background: var(--surface); color: var(--ink); }
.form-field input[type="file"] { padding: 10px; background: var(--field); }
.form-field input:disabled { background: var(--field); color: var(--muted); }
.form-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.narrow-form { max-width: 520px; }
.narrow-form .form-field { margin-bottom: 14px; }

/* ---------- Konto: panel ---------- */
.panel { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.panel__nav { flex: 0 0 240px; position: sticky; top: 16px; }
.panel__user { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; overflow-wrap: anywhere; }
.panel__user span { display: block; font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--muted); }
.panel__nav nav { display: flex; flex-direction: column; gap: 2px; }
.panel__nav nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.panel__nav nav a:hover { background: var(--surface); color: var(--blue); }
.panel__nav nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.panel__main { flex: 999 1 560px; min-width: 0; }
.panel__title { margin: 0 0 18px; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.panel__lead { margin: -6px 0 20px; color: var(--ink-2); }
.panel__toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }

.my-firms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.my-firm { padding: 20px 22px; }
.my-firm__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.my-firm__name { margin: 0; font-size: 20px; }
.my-firm__meta { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.my-firm__note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--field); font-size: 15px; }
.my-firm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.my-firm__delete { margin-left: auto; font-size: 14px; color: #B42318; }
.chip--red { background: #FDECEA; color: #8A1C12; }

.firm-form { display: flex; flex-direction: column; gap: 18px; }
.form-section { margin: 0; padding: 22px 24px 24px; min-width: 0; }
.form-section legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.form-section legend + * { clear: both; }
.form-grid--3 { grid-template-columns: 2fr 1fr 1fr; }
.hours-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.hours-form__row { display: grid; grid-template-columns: 130px minmax(0, 260px) auto; gap: 12px; align-items: center; }
.hours-form__row label { font-weight: 600; font-size: 15px; }
.hours-form__row input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #CDD7E5; border-radius: 10px; }
.logo-field { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.logo-field__preview { width: 144px; height: 104px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.logo-field .form-field { flex: 1 1 280px; }

.photo-upload { display: grid; gap: 14px; max-width: 640px; margin-bottom: 20px; }
.photo-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-grid__item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--line); }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid__item form { position: absolute; right: 8px; bottom: 8px; }
.photo-grid__delete { border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(14, 26, 43, .8); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.photo-grid__delete:hover { background: #B42318; }
.upsell h2 { margin: 0 0 8px; font-size: 21px; }
.upsell p { margin: 0 0 16px; color: var(--ink-2); max-width: 640px; }

.plan-choice { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan-choice__option { position: relative; display: grid; gap: 4px; padding: 20px 20px 20px 52px; cursor: pointer; }
.plan-choice__option input { position: absolute; left: 20px; top: 24px; width: 20px; height: 20px; accent-color: var(--blue); }
.plan-choice__option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.plan-choice__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.plan-choice__price { font-family: var(--font-display); font-weight: 700; color: var(--blue); }
.plan-choice__desc { font-size: 15px; color: var(--ink-2); }

/* ---------- Panel administratora ---------- */
.panel--admin .panel__nav { flex-basis: 220px; }
.admin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #B42318; color: #fff; font-size: 12px; font-weight: 800; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-tile { display: block; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.admin-tile strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.admin-tile span { font-size: 14px; color: var(--muted); }
a.admin-tile:hover { border-color: #BFD2EE; }
.admin-tile--hot { border-color: #F2C3BF; background: #FFF7F6; }
.admin-tile--hot strong { color: #B42318; }
.admin-tiles--muted strong { font-size: 24px; color: var(--blue); }
.admin-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 8px; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { padding: 9px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.admin-list li:first-child { border-top: 0; }
.admin-list a { font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.admin-list a:hover { color: var(--blue); }
.admin-list span { font-size: 13px; color: var(--muted); }
.admin-subtitle { margin-top: 22px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-filters__form, form.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.admin-filters { justify-content: flex-start; }
.admin-filters input[type="search"], .admin-filters select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border: 1px solid #CDD7E5; border-radius: 10px; background: var(--surface); color: var(--ink); max-width: 100%; }
.admin-filters input[type="search"] { min-width: 260px; flex: 1 1 260px; }
.admin-count { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.admin-link { font-size: 14px; font-weight: 600; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #FAFBFD; }
.admin-table td span:not(.chip) { display: block; font-size: 13px; color: var(--muted); }
.admin-table__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.admin-table__name:hover { color: var(--blue); text-decoration: underline; }
.admin-table__actions { white-space: nowrap; text-align: right; }
.admin-table__actions form { display: inline; }
.admin-table__actions > * { margin-left: 4px; vertical-align: middle; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; }
.admin-bar__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.admin-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-bar__actions form { display: inline; }
.admin-reject { margin-bottom: 16px; }
.admin-reject summary { cursor: pointer; font-weight: 700; color: #8A1C12; }
.admin-reject form { margin-top: 14px; }
.btn--ghost-danger { background: transparent; color: #B42318; box-shadow: inset 0 0 0 1.5px #E7B5B0; }
.btn--ghost-danger:hover { background: #FDECEA; color: #8A1C12; }
.form-actions--sticky { position: sticky; bottom: 0; z-index: 3; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.firm-form .form-section > .form-field { margin-bottom: 14px; }
.admin-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 15px; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.logo-field__preview--wide { width: 240px; height: 150px; object-fit: cover; padding: 0; }
.inbox { display: flex; flex-direction: column; gap: 12px; }
.inbox__item { padding: 18px 20px; }
.inbox__item.is-done { opacity: .65; }
.inbox__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 15px; }
.inbox__head span { color: var(--muted); font-size: 14px; margin-left: auto; }
.inbox__text { margin: 10px 0 12px; white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); }
.inbox__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inbox__actions form { display: inline; }
.tox-tinymce { border-radius: 12px !important; border-color: #CDD7E5 !important; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: #B9C6D8; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer__brand p { margin: 12px 0 0; max-width: 280px; }
.site-footer h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #B9C6D8; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { padding-top: 18px; padding-bottom: 24px; border-top: 1px solid #22314A; font-size: 14px; }

/* ---------- Telefon / tablet ---------- */
@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
    .menu-button { display: inline-flex; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .main-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-top: 4px; }
    .is-menu-open .main-nav { display: flex; }
    .main-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
    .main-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
    .main-nav .btn { margin-top: 12px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .listing__map { position: static; order: -1; flex-basis: 100%; }
    .map--tall { height: 220px; }
    .panel__nav { position: static; flex-basis: 100%; }
    .panel__nav nav { flex-direction: row; flex-wrap: wrap; }
    .panel__nav nav a { padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); }
    .article-side { position: static; flex-basis: 100%; }
    .toc--side { display: none; }
    .toc--inline { display: block; }
    .article-card--featured { flex-direction: column; }
    .article-card--featured .article-card__image { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .site-main { padding-top: 18px; }
    .firm-hero { padding: 20px; gap: 16px; }
    .firm-hero__logo { width: 160px; height: 116px; font-size: 28px; border-radius: 16px; }
    .firm-hero__actions { width: 100%; }
    .firm-hero__actions .btn { flex: 1 1 0; }
    .contact-grid { grid-template-columns: 1fr; padding: 20px; }
    .firm-card { grid-template-columns: 76px minmax(0, 1fr); padding: 16px; gap: 12px 14px; }
    .firm-card__logo { width: 76px; height: 56px; font-size: 16px; border-radius: 12px; }
    .firm-card__logo img { padding: 5px; }
    .firm-card__actions { grid-column: 1 / -1; grid-row: 3; flex-direction: row; }
    .firm-card__intro { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    .firm-card__actions .btn { flex: 1 1 0; }
    .firm-card__name { font-size: 17px; }
    .hero-search { flex-direction: column; }
    .prose, .lead-text { font-size: 16px; }
    .article__body { font-size: 17px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid--3 { grid-template-columns: 1fr; }
    .hours-form__row { grid-template-columns: 1fr; gap: 4px; }
    .auth__card { padding: 22px; }
    .form-section { padding: 18px; }
    .my-firm__delete { margin-left: 0; }
    .form-card { padding: 20px; }
    .article__lead { font-size: 18px; }
    .article__body h2 { font-size: 23px; }
    .article-card--featured .article-card__body { padding: 18px; }
}

/* /korki/ — mapa korków */
.btn--large { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn--large .icon { width: 22px; height: 22px; }
.traffic { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #DCE6F2; }
.traffic__placeholder {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    height: clamp(320px, 55vh, 520px); background-size: cover; background-position: center;
}
.traffic__placeholder[hidden], .traffic__map[hidden] { display: none; }
.traffic__note { color: #fff; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(10,25,50,.6); }
.traffic__map { height: clamp(360px, 65vh, 620px); }

/* Reklamy AdSense */
.ad-slot { margin: 24px 0; text-align: center; min-height: 100px; }
.ad-slot--rect { min-height: 250px; margin: 0; }
.ad-slot--preview {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 120px; border: 2px dashed #B9C7DA; border-radius: var(--radius); color: var(--muted); font-size: 14px; font-weight: 700;
}
.ad-slot--preview.ad-slot--rect { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.ad-slot--preview small { font-weight: 400; }

/* ---------- Strona główna: katalog + ostatnio dodane ---------- */
.home-catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 24px; }
.home-catalog__main { flex: 999 1 560px; min-width: 0; }
.home-catalog__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-catalog .section-title a { text-decoration: none; }
.home-sections { columns: 2 300px; column-gap: 32px; }
.home-section { break-inside: avoid; padding: 18px 0 16px; border-top: 1px solid var(--line); }
.home-section h3 { margin: 0 0 8px; font-size: 17px; }
.home-section h3 a { color: var(--ink); text-decoration: none; }
.home-section h3 a:hover { color: var(--blue); }
.home-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.home-section li { font-size: 15px; line-height: 1.6; }
.home-section li a { color: var(--blue); text-decoration: none; }
.home-section li a:hover { text-decoration: underline; }
.home-section li span { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.home-add p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }

/* ---------- Podpowiedzi wyszukiwarki ---------- */
.has-suggest { position: relative; }
.suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    max-height: min(70vh, 460px); overflow: auto; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 25, 50, .16); text-align: left;
}
.suggest[hidden] { display: none; }
.suggest__group { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.suggest__item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--blue-soft); color: var(--blue-dark); }
.suggest__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.suggest__name mark { background: none; color: var(--blue); font-weight: 800; }
.suggest__meta { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.suggest__all {
    display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line-soft);
    background: none; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; border-radius: 0 0 10px 10px;
}
.suggest__all:hover { background: var(--field); }
.hero-search.has-suggest .suggest { right: auto; width: 100%; }
@media (max-width: 560px) {
    .hero-search input { flex: none; }
    .suggest__meta { display: none; }
}
.home-catalog__main.card { padding: 24px 28px 8px; }
.home-catalog__main .section-title { margin-bottom: 4px; }
.home-catalog__main .home-section:first-child { border-top: 0; }
@media (max-width: 560px) { .home-catalog__main.card { padding: 18px 18px 4px; } }
.home-catalog__main .home-section { border-top: 0; padding: 14px 0 12px; }
.home-catalog__main .section-title { margin-bottom: 0; }
@media (max-width: 560px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .stat { padding: 12px; }
    .stat strong { font-size: 22px; }
    .stat span { font-size: 12px; line-height: 1.3; display: block; }
}
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-popular > span { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.hero-popular .chip { padding: 7px 14px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.hero-popular .chip:hover { border-color: #BFD2EE; background: var(--blue-soft); color: var(--blue-dark); }
.archive-link { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

/* Media społecznościowe w stopce */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-links a {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px;
    border: 1px solid #2A3B57; border-radius: 10px; color: #DCE5F2; text-decoration: none; font-size: 14px; font-weight: 600;
}
.social-links a:hover { background: #1C2A42; border-color: #3A5075; color: #fff; }
.social-links svg { width: 20px; height: 20px; }
.contact-grid__phones { display: flex; flex-direction: column; gap: 4px; }
.firm-about .section-title { margin-bottom: 10px; }
.firm-about .lead-text { margin: 0; }
.firm-about .lead-text + .prose { margin-top: 14px; }
.firm-others { margin-top: 32px; }
.contact-grid__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Galeria firmy + podgląd zdjęć ---------- */
.firm-photos .section-title { margin-bottom: 14px; }
.section-title__count { margin-left: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.gallery a { cursor: zoom-in; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(8, 14, 26, .94); color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; z-index: 2; }
.lightbox__counter { font-size: 15px; font-weight: 600; color: #C9D4E5; font-variant-numeric: tabular-nums; }
.lightbox__tools { display: flex; gap: 4px; }
.lightbox button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.lightbox button:hover, .lightbox button.is-active { background: rgba(255,255,255,.12); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__stage { margin: 0; max-width: calc(100vw - 150px); max-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .2s; user-select: none; }
.lightbox.is-loading .lightbox__stage img { opacity: .35; }
.lightbox__stage figcaption { font-size: 15px; color: #DCE5F2; text-align: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px !important; height: 52px !important; background: rgba(255,255,255,.08) !important; border-radius: 50% !important; }
.lightbox__nav:hover { background: rgba(255,255,255,.2) !important; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single [data-lb="play"] { display: none; }
@media (max-width: 560px) {
    .lightbox__stage { max-width: 100vw; }
    .lightbox__stage img { border-radius: 0; max-height: calc(100vh - 160px); }
    .lightbox__nav { top: auto; bottom: 18px; transform: none; }
    .lightbox [data-lb="full"] { display: none; }
}
.hours__note { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }

/* Strony statyczne: główny tekst w białej karcie */
.prose.static-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; }
.prose.static-page > :first-child { margin-top: 0; }
.prose.static-page > :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .prose.static-page { padding: 20px 18px; } }
/* Zdjęcie zamiast logo: wypełnia ramkę, bez obramowania, lekko zaokrąglone rogi */
.firm-hero__logo.is-photo, .firm-card__logo.is-photo { border: 0; background: var(--line); border-radius: 6px; }
.firm-hero__logo.is-photo img, .firm-card__logo.is-photo img { object-fit: cover; padding: 0; }

/* Wybór pakietu w „Dodaj firmę” + weryfikacja bez kolejki */
.form-section--plain { border: 0; padding: 0; margin: 0 0 18px; }
.form-section--plain > legend { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 12px; padding: 0; }
.plan-choice--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 10px; }
.plan-choice__speed { font-size: 14px; font-weight: 700; color: var(--muted); }
.plan-choice__speed.is-fast { color: var(--green); }
.form-section--plain .form-hint { margin: 0; font-size: 14px; color: var(--muted); }
.plan__features li.plan__speed { display: block; color: var(--ink-2); }
.plan__features li.plan__speed strong { color: var(--muted); }
.plan__features li.plan__speed.is-fast strong { color: var(--green); }

/* /artykul-sponsorowany/ — korzyści bez numerów, karty w węższej kolumnie */
.static-page .steps { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.steps--four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.step--plain h3::before { display: none; }
.static-side .plan .btn { margin-top: 4px; }
.form-field label + .form-hint { margin: -2px 0 8px; }

/* Mapa z pinezką w formularzu firmy */
.pin-map { margin-top: 16px; }
.pin-map__map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.pin-map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.pin-map__bar .form-hint { margin: 0; flex: 1 1 260px; }
.pin-map__map .map-pin { cursor: grab; }
@media (max-width: 560px) { .pin-map__map { height: 260px; } }
/* Opis pod nagłówkiem sekcji formularza — odstęp od pól */
.form-section > .form-hint:not(:last-child) { margin: 0 0 18px; }
.form-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
.form-meta .form-hint, .form-meta .form-counter { margin: 0; }
.form-meta .form-counter { flex: none; }
.panel__toolbar { gap: 12px; align-items: center; }
.firm-filter { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.firm-filter input { flex: 1 1 auto; max-width: 420px; min-width: 0; height: 42px; padding: 0 14px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.firm-filter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.firm-filter__count { flex: none; font-size: 14px; color: var(--muted); }
.my-firm[hidden] { display: none; }
.order-steps { margin: 0 0 20px; padding: 18px 22px 18px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.order-steps strong { color: var(--ink); }
/* Tabela firm w panelu: status, pakiet i data w jednej kolumnie; przyciski jeden pod drugim */
.admin-table__state { min-width: 170px; }
.admin-table__state .chips { margin-bottom: 6px; }
.admin-table__state strong { color: var(--ink-2); font-weight: 600; }
.admin-table td.admin-table__actions { width: 1%; }
.admin-table td.admin-table__actions > * { display: block; width: 100%; margin: 0 0 6px; text-align: center; }
.admin-table td.admin-table__actions form .btn { width: 100%; }
.admin-table td.admin-table__actions .admin-link { margin: 2px 0 0; font-size: 13px; }
.panel__nav nav a:has(.admin-badge) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
