/*
Theme Name: Biznes-Top
Theme URI: http://biznes-top.local
Author: Dominik
Description: Katalog firm — programmatic SEO directory dla biznesów z całej Polski.
Version: 0.2.0
Text Domain: biznes-top
*/

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #666;
    --color-border: #e5e5e5;
    --color-accent: #d97706;
    --color-accent-dark: #b45309;
    --color-link: #b45309; /* same as --color-accent-dark — brand-cohesive */
    --color-card: #fafafa;
    --max-w: 1140px;
    --radius: 8px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Body-content links — always underlined so they're recognisable as
 * clickable when the surrounding text is the same warm tone. UI-element
 * links (logo, nav, cards, chips, buttons) stay clean — they have other
 * visual signals (background, border, layout) that mark them as actionable. */
.bt-content a,
.bt-blog-content a,
.bt-archive-desc a,
.bt-info-row .value a,
.bt-firma .summary a:not(.bt-card-cat),
.bt-blog-widget-cta a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bt-content a:hover,
.bt-blog-content a:hover,
.bt-archive-desc a:hover,
.bt-info-row .value a:hover,
.bt-blog-widget-cta a:hover {
    text-decoration-thickness: 2px;
}
/* Footer links are navigational (Lokalizacje / Kategorie / Blog / etc.) —
   no underline, hover lifts to accent colour instead. */
.bt-footer .bt-container a { text-decoration: none; }
.bt-footer .bt-container a:hover { color: var(--color-accent-dark); }

.bt-container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

.bt-header {
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    padding: 14px 0;
    position: sticky; top: 0; z-index: 50;
}
.bt-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bt-logo { font-size: 20px; font-weight: 700; color: var(--color-text); }
.bt-logo span { color: var(--color-accent); }
.bt-nav a { margin-left: 18px; color: var(--color-text); font-weight: 500; }
.bt-nav a.bt-nav-cta { background: var(--color-accent); color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 600; }
.bt-nav a.bt-nav-cta:hover { background: var(--color-accent-dark); text-decoration: none; }

/* Hamburger toggle — desktop hidden, mobile only */
.bt-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}
.bt-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-bar:nth-child(2) { opacity: 0; }
.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.bt-search { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.bt-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 14px; }
.bt-search button { background: var(--color-accent); color: #fff; border: 0; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.bt-search button:hover { background: var(--color-accent-dark); }

.bt-hero { padding: 56px 0; background: linear-gradient(180deg, #fff8eb 0%, #fff 100%); text-align: center; }
.bt-hero h1 { font-size: 38px; margin: 0 0 12px; }
.bt-hero p { color: var(--color-muted); font-size: 17px; margin: 0 0 24px; }
.bt-home-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.bt-home-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.bt-home-stats strong {
    font-size: 28px;
    color: var(--color-accent-dark);
    font-weight: 800;
    line-height: 1.1;
}
.bt-home-stats span {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}
@media (max-width: 700px) {
    .bt-home-stats { gap: 20px; margin-top: 20px; padding-top: 18px; }
    .bt-home-stats strong { font-size: 22px; }
    .bt-home-stats span { font-size: 11px; }
}

/* Top-categories strip below the stats grid — chip-style links to /kategoria/<slug>/ */
.bt-home-top-cats { margin-top: 28px; text-align: center; }
.bt-home-top-cats-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 12px;
}
.bt-home-top-cats-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.bt-home-top-cats-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color .12s, color .12s, transform .12s, box-shadow .12s;
}
.bt-home-top-cats-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.12);
}
.bt-home-top-cats-chip-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    background: #fff8eb;
    padding: 2px 8px;
    border-radius: 999px;
}
.bt-home-top-cats-chip:hover .bt-home-top-cats-chip-count {
    color: var(--color-accent-dark);
}
@media (max-width: 700px) {
    .bt-home-top-cats { margin-top: 20px; }
    .bt-home-top-cats-chip { padding: 6px 12px; font-size: 13px; }
    .bt-home-top-cats-chip-count { font-size: 11px; padding: 1px 6px; }
}

/* Busy-hours tiles below top-categories — peak / trough at a glance */
.bt-home-busy { margin-top: 28px; text-align: center; }
.bt-home-busy-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 12px;
}
.bt-home-busy-tiles {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bt-home-busy-tile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: left;
}
.bt-home-busy-tile.is-peak   { border-left: 3px solid var(--color-accent); }
.bt-home-busy-tile.is-trough { border-left: 3px solid #a8a29e; }
.bt-home-busy-tile.is-rating { border-left: 3px solid #f59e0b; }
.bt-home-busy-tile.is-top    { border-left: 3px solid var(--color-accent-dark); }
a.bt-home-busy-tile { text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
a.bt-home-busy-tile:hover {
    text-decoration: none;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.12);
}
a.bt-home-busy-tile:hover .bt-home-busy-text strong { color: var(--color-accent-dark); }
.bt-home-busy-icon {
    font-size: 22px;
    line-height: 1;
    color: var(--color-accent);
}
.bt-home-busy-tile.is-trough .bt-home-busy-icon { color: #a8a29e; }
.bt-home-busy-tile.is-rating .bt-home-busy-icon { color: #f59e0b; }
.bt-home-busy-tile.is-top    .bt-home-busy-icon { color: var(--color-accent-dark); }
/* Top firma's title can be long — keep tile from blowing up the row */
.bt-home-busy-tile.is-top .bt-home-busy-text strong {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bt-home-busy-text { display: flex; flex-direction: column; line-height: 1.3; }
.bt-home-busy-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}
.bt-home-busy-text strong { font-size: 16px; color: var(--color-text); }
.bt-home-busy-pct { font-size: 12px; color: var(--color-muted); }
@media (max-width: 700px) {
    .bt-home-busy { margin-top: 20px; }
    .bt-home-busy-tiles { gap: 8px; }
    .bt-home-busy-tile { padding: 8px 12px; }
    .bt-home-busy-text strong { font-size: 14px; }
}

/* Combined archive stats: rating + top firma + peak + trough — single
   labelled block, auto-fit grid so 4 tiles sit on one row on desktop and
   wrap to 2x2 on tablet / 1x4 on mobile. */
.bt-archive-stats {
    margin: 24px 0 8px;
    padding: 16px;
    background: linear-gradient(180deg, #fff8eb 0%, #fff 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.bt-archive-stats-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 12px;
}
.bt-archive-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.bt-archive-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: left;
    min-width: 0;
}
.bt-archive-stat.is-rating { border-left: 3px solid #f59e0b; }
.bt-archive-stat.is-top    { border-left: 3px solid var(--color-accent-dark); }
.bt-archive-stat.is-peak   { border-left: 3px solid var(--color-accent); }
.bt-archive-stat.is-trough { border-left: 3px solid #a8a29e; }
a.bt-archive-stat { text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
a.bt-archive-stat:hover {
    text-decoration: none;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.12);
}
a.bt-archive-stat:hover .bt-archive-stat-text strong { color: var(--color-accent-dark); }
.bt-archive-stat-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.bt-archive-stat.is-rating .bt-archive-stat-icon { color: #f59e0b; }
.bt-archive-stat.is-top    .bt-archive-stat-icon { color: var(--color-accent-dark); }
.bt-archive-stat.is-peak   .bt-archive-stat-icon { color: var(--color-accent); }
.bt-archive-stat.is-trough .bt-archive-stat-icon { color: #a8a29e; }
.bt-archive-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
}
.bt-archive-stat-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}
.bt-archive-stat-text strong {
    font-size: 16px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bt-archive-stat-unit { font-weight: 500; color: var(--color-muted); font-size: 13px; }
.bt-archive-stat-sub { font-size: 11px; color: var(--color-muted); }
@media (max-width: 700px) {
    .bt-archive-stats { padding: 12px; }
    .bt-archive-stats-grid { gap: 8px; }
    .bt-archive-stat { padding: 8px 12px; gap: 10px; }
    .bt-archive-stat-icon { font-size: 18px; }
    .bt-archive-stat-text strong { font-size: 14px; }
}

.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 24px 0; }

.bt-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.bt-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.bt-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.bt-card h3 a { color: var(--color-text); }
.bt-card-meta { font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.bt-card-cat { display: inline-block; padding: 2px 8px; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; font-size: 12px; color: var(--color-text); margin-right: 4px; }
.bt-card-cat:hover { border-color: var(--color-accent); text-decoration: none; }
.bt-cat-primary { background: #fff8eb; border-color: var(--color-accent); color: var(--color-accent-dark); font-weight: 600; }
.bt-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--color-accent-dark); }
.bt-rating .star { color: #f59e0b; }
.bt-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--color-accent-dark); font-size: 15px; cursor: help; }
.bt-score .star { color: #f59e0b; }
.bt-muted { color: var(--color-muted); font-weight: 400; font-size: 13px; }
.bt-reviews-count { cursor: help; }
.bt-fb-recommend { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #1877f2; font-size: 14px; cursor: help; }
.bt-fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #1877f2; color: #fff; border-radius: 4px; font-family: Georgia, serif; font-style: italic; font-weight: 800; font-size: 13px; }

.bt-page-title { padding: 32px 0 16px; }
.bt-page-title h1 { margin: 0 0 8px; font-size: 30px; }
.bt-page-title .breadcrumb { font-size: 13px; color: var(--color-muted); }
.bt-page-title .breadcrumb a { color: var(--color-muted); }
.bt-page-title .meta { color: var(--color-muted); font-size: 14px; margin-top: 6px; }

.bt-firma { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 32px; padding: 24px 0; }
@media (max-width: 800px) { .bt-firma { grid-template-columns: minmax(0, 1fr); } }
.bt-firma .main img.hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.bt-firma h1 { margin: 0 0 8px; }
.bt-firma .summary { color: var(--color-muted); margin-bottom: 16px; }
/* Title-strip split into TWO rows so long category lists don't disrupt the
   muted city/score/review meta line. */
.bt-firma-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.bt-firma-cats .bt-card-cat { margin-right: 0; }
.bt-firma-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.bt-firma-meta-sep { opacity: 0.5; }
.bt-firma-meta .bt-score { color: var(--color-text); }
.bt-firma-source {
    font-size: 12px;
    color: var(--color-muted);
    margin: -8px 0 14px;
    letter-spacing: 0.01em;
}
.bt-firma-source time { font-style: normal; }

/* Vertical rhythm between sections in the main column. Each h2 inside
 * .bt-firma .main gets extra top breathing room, except the first one
 * that follows the hero map. */
.bt-firma .main h2 { margin-top: 40px; margin-bottom: 14px; }
.bt-firma .main > h2:first-of-type { margin-top: 24px; }
.bt-firma .main > h3 { margin-top: 32px; margin-bottom: 12px; }
@media (max-width: 700px) {
    .bt-firma .main h2 { margin-top: 28px; }
}
.bt-firma .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 16px 0; }
.bt-firma .gallery img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }

/* Single review card — used in "Wybrane opinie klientów" */
.bt-review {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.bt-review-head { margin-bottom: 8px; }
.bt-review-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.bt-review-sub { font-size: 13px; color: var(--color-muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.bt-review-sub .bt-rating { color: var(--color-accent-dark); font-size: 13px; gap: 1px; }
.bt-review-sub .star { color: #f59e0b; }
.bt-review-body { font-size: 14px; line-height: 1.5; color: var(--color-text); }

/* Review distribution — horizontal bars, 5★ on top */
.bt-review-dist { max-width: 520px; margin: 8px 0 24px; }
.bt-rd-row { display: grid; grid-template-columns: 32px 1fr 60px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.bt-rd-label { color: var(--color-accent-dark); font-weight: 700; }
.bt-rd-bar { background: var(--color-card); height: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.bt-rd-fill { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }
.bt-rd-count { color: var(--color-muted); font-size: 13px; text-align: right; }

/* Popular times — compact summary inside the hours box */
.bt-popular-times { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--color-border); font-size: 13px; line-height: 1.5; }
.bt-popular-row { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.bt-popular-icon { color: var(--color-accent); font-weight: 800; min-width: 14px; }

/* "Klienci szukali też" — card grid (same DNA as bt-card but compact) */
.bt-also-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.bt-also-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    transition: box-shadow .15s ease, transform .15s ease;
}
.bt-also-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); transform: translateY(-2px); text-decoration: none; }
/* External marker kept for future use, but currently we only render internal
 * matches so this rule is dormant. */
.bt-also-card.bt-also-external::after {
    content: "↗ Google";
    align-self: flex-start;
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 600;
    margin-top: auto;
}
.bt-also-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bt-also-card .bt-card-cat { align-self: flex-start; }

/* "Firma w sieci" — list of external sources from Google's web_results */
.bt-web-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 12px 0 24px;
}
.bt-web-result {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.bt-web-result:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bt-web-result-head { font-size: 12px; color: var(--color-muted); margin-bottom: 6px; text-transform: lowercase; letter-spacing: 0.02em; }
.bt-web-result-domain { font-weight: 600; }
.bt-web-result-title { margin: 0 0 10px; font-size: 15px; line-height: 1.35; color: var(--color-text); flex: 1; }
.bt-web-result-link { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--color-link); }

.bt-info-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}
.bt-info-box h3 { margin: 0 0 12px; font-size: 16px; }

/* Free-listing website "link" — visible text but not clickable.
 * Becomes a real <a> when admin sets bt_website_dofollow=1 on the firma. */
.bt-link-disabled {
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--color-border);
    cursor: not-allowed;
    user-select: text;
}
/* Inline directions icon next to the sidebar Adres value. Compact,
   doesn't push other rows around — sits as an emoji-icon link with a
   subtle hover state. */
.bt-addr-dir {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    text-decoration: none;
    background: #fff8eb;
    border: 1px solid var(--color-border);
    font-size: 13px;
    line-height: 1;
    transition: border-color .12s, background .12s;
    vertical-align: 1px;
}
.bt-addr-dir:hover {
    border-color: var(--color-accent);
    background: #fef3cf;
    text-decoration: none;
}

.bt-info-row { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--color-border); }
.bt-info-row:last-child { border-bottom: 0; }
.bt-info-row .label { color: var(--color-muted); min-width: 90px; flex-shrink: 0; }
/* `min-width:0` lets the flex item actually shrink below its content size,
   which is the prerequisite for `overflow-wrap` to take effect on long
   unbreakable strings (URLs, addresses without spaces, etc.). */
.bt-info-row .value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bt-info-row .value a { overflow-wrap: anywhere; }

.bt-hours { font-size: 14px; }
.bt-hours .day { display: flex; justify-content: space-between; padding: 4px 0; }
.bt-hours .day.today { font-weight: 700; color: var(--color-accent-dark); }

.bt-footer { border-top: 1px solid var(--color-border); padding: 32px 0; margin-top: 48px; color: var(--color-muted); font-size: 14px; }
.bt-footer .bt-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.bt-pagination { display: flex; gap: 8px; justify-content: center; padding: 24px 0; }
.bt-pagination a, .bt-pagination span { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px; }
.bt-pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Standard WP a11y pattern — visible only to screen readers. We were
 * missing this, so the "Posts pagination" h2 above the page numbers
 * was rendering as visible text. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip-to-content link — hidden until keyboard focus, then visible
   at the top-left so screen-reader / keyboard users can jump past
   the repeated header nav straight to <main>. */
.bt-skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 6px 0;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform .15s ease-out;
}
.bt-skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: #fff;
    text-decoration: none;
}

/* /reklama/ landing page */
.bt-reklama-hero {
    background: linear-gradient(180deg, #fff8eb 0%, #fff 100%);
    padding: 56px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}
.bt-reklama-hero h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.2; }
.bt-reklama-lead { font-size: 18px; color: var(--color-muted); max-width: 720px; margin: 0 auto 28px; }
.bt-reklama-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.bt-reklama-stats > div { display: flex; flex-direction: column; align-items: center; }
.bt-reklama-stats strong { font-size: 28px; color: var(--color-accent-dark); font-weight: 800; }
.bt-reklama-stats span { font-size: 13px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.bt-reklama-intro { background: var(--color-card); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; font-size: 16px; line-height: 1.65; }

.bt-reklama-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; padding: 12px 0 32px; }
.bt-reklama-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.bt-reklama-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.bt-reklama-card.bt-reklama-featured {
    background: linear-gradient(180deg, #fff8eb 0%, #fff 30%);
    border: 2px solid var(--color-accent);
}
.bt-reklama-tier { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--color-card); color: var(--color-accent-dark); margin-bottom: 10px; }
.bt-reklama-card h3 { margin: 0 0 8px; font-size: 22px; }
.bt-reklama-desc { color: var(--color-text); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.bt-reklama-features { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; }
.bt-reklama-features li { padding: 5px 0 5px 22px; position: relative; line-height: 1.45; }
.bt-reklama-features li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--color-accent); font-weight: 700; }
.bt-reklama-example { font-size: 13px; color: var(--color-muted); padding: 10px 12px; background: var(--color-card); border-radius: 6px; margin-bottom: 14px; line-height: 1.6; }
.bt-reklama-example code { background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.bt-reklama-price { margin-top: auto; font-size: 14px; color: var(--color-muted); padding-top: 12px; border-top: 1px dashed var(--color-border); }
.bt-reklama-price strong { color: var(--color-accent-dark); font-size: 20px; font-weight: 800; }

.bt-reklama-claim { background: var(--color-card); padding: 24px 28px; border-radius: var(--radius); border-left: 4px solid var(--color-accent); margin-bottom: 32px; }
.bt-reklama-claim p { margin: 0 0 12px; font-size: 16px; }
.bt-reklama-claim ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }

.bt-reklama-steps { padding-left: 22px; line-height: 1.7; font-size: 15px; max-width: 760px; }
.bt-reklama-steps li { margin-bottom: 8px; }

.bt-reklama-faq { max-width: 760px; margin-bottom: 32px; }
.bt-reklama-faq details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fff;
}
.bt-reklama-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 4px 0; outline: none; }
.bt-reklama-faq summary:hover { color: var(--color-accent-dark); }
.bt-reklama-faq details[open] summary { color: var(--color-accent-dark); margin-bottom: 8px; }
.bt-reklama-faq p { margin: 0 0 6px; line-height: 1.6; color: var(--color-text); font-size: 14px; }

.bt-reklama-cta {
    text-align: center;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    padding: 40px 24px;
    border-radius: var(--radius);
    margin: 32px 0 56px;
}
.bt-reklama-cta h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.bt-reklama-cta p { font-size: 16px; opacity: 0.95; margin: 0 0 18px; }
.bt-reklama-cta-btn { display: inline-block; background: #fff; color: var(--color-accent-dark); font-weight: 700; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-size: 18px; }
.bt-reklama-cta-btn:hover { background: #fff8eb; text-decoration: none; }

@media (max-width: 600px) {
    .bt-reklama-hero h1 { font-size: 28px; }
    .bt-reklama-stats { gap: 18px; }
    .bt-reklama-stats strong { font-size: 22px; }
}

/* Sponsored ad slot on archive pages */
.bt-ad {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px 16px;
    margin: 8px 0 16px;
}
.bt-ad-label {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: var(--color-card);
    padding: 1px 6px;
    border-radius: 3px;
}
.bt-ad-body { font-size: 15px; line-height: 1.5; }
.bt-ad-body img { max-width: 100%; height: auto; display: block; }
.bt-ad-body a { font-weight: 600; }

/* SEO description block on archive pages (manual or auto-template) */
.bt-archive-desc {
    background: var(--color-card);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    padding: 14px 18px;
    margin: 8px 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}
.bt-archive-desc p { margin: 0 0 10px; }
.bt-archive-desc p:last-child { margin-bottom: 0; }
.bt-archive-desc h3 { margin: 8px 0 6px; font-size: 17px; }

/* Section header with "see all" link on the right */
.bt-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-top: 32px; }
.bt-section-header h2 { margin: 0; }
.bt-section-link { font-size: 14px; font-weight: 600; }

/* Blog grid (homepage section, /blog/ index, related on single) */
.bt-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 16px 0;
}
.bt-blog-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.bt-blog-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.bt-blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--color-card); }
.bt-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder when post has no featured image — soft brand gradient
   keeps card heights consistent across the blog grid. */
.bt-blog-card-img-placeholder {
    background: linear-gradient(135deg, #fff8eb 0%, #fde2b1 100%);
    position: relative;
}
.bt-blog-card-img-placeholder::after {
    content: 'Biznes-TOP';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
    opacity: 0.45;
}
.bt-blog-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.bt-blog-card h2, .bt-blog-card h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.3; }
.bt-blog-card h2 a, .bt-blog-card h3 a { color: var(--color-text); }
.bt-blog-meta { color: var(--color-muted); font-size: 13px; }
.bt-blog-excerpt { color: var(--color-muted); font-size: 14px; flex: 1; }
.bt-blog-readmore { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }

/* Blog 2-column layout (single post + index) */
.bt-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    padding: 16px 0 24px;
    align-items: start;
}
@media (max-width: 800px) {
    /* `1fr` is shorthand for `minmax(auto, 1fr)` — auto min lets children
       grow past the viewport. Use `minmax(0, 1fr)` to force shrink. */
    .bt-blog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 800px) {
    .bt-blog-sidebar { order: 2; }
}

.bt-blog-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
@media (max-width: 800px) {
    .bt-blog-sidebar { position: static; }
}
.bt-blog-widget {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}
.bt-blog-widget h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.bt-blog-widget-list { list-style: none; padding: 0; margin: 0; }
.bt-blog-widget-list li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.bt-blog-widget-list li:last-child { border-bottom: none; padding-bottom: 0; }
.bt-blog-widget-list li a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
}
.bt-blog-widget-list li a:hover { color: var(--color-accent-dark); text-decoration: none; }
.bt-blog-widget-title { font-weight: 500; }
.bt-blog-widget-date { font-size: 12px; color: var(--color-muted); }
.bt-blog-widget-count { float: right; font-size: 12px; color: var(--color-muted); background: #fff; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--color-border); }

.bt-blog-search { display: flex; gap: 6px; }
.bt-blog-search input { flex: 1; padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 14px; background: #fff; }
.bt-blog-search button { background: var(--color-accent); color: #fff; border: 0; padding: 7px 12px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.bt-blog-search button:hover { background: var(--color-accent-dark); }

.bt-blog-widget-cta { background: linear-gradient(180deg, #fff8eb 0%, var(--color-card) 100%); border-color: var(--color-accent); }
.bt-blog-widget-cta p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--color-text); }
.bt-blog-widget-cta a { color: var(--color-accent-dark); font-weight: 700; font-size: 14px; }

/* Sidebar search — compact, single-row look */
.bt-blog-widget-search { padding: 0; background: transparent; border: 0; }
.bt-blog-search { display: flex; gap: 0; }
.bt-blog-search input {
    flex: 1;
    /* Without `min-width:0`, flex items default to `min-width:auto` which
       prevents shrinking below intrinsic content width — long placeholder
       text would overflow narrow mobile viewports. */
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    background: #fff;
    outline: none;
}
.bt-blog-search input:focus { border-color: var(--color-accent); }
.bt-blog-search button {
    padding: 0 14px;
    background: var(--color-accent);
    color: #fff;
    border: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 700;
}
.bt-blog-search button:hover { background: var(--color-accent-dark); }

/* Latest posts — title-only with subtle hover */
.bt-blog-widget-list-titles li {
    border: 0;
    padding: 0;
}
.bt-blog-widget-list-titles li + li { border-top: 1px solid var(--color-border); }
.bt-blog-widget-list-titles li a {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    border-bottom: 0;
    display: block;
}
.bt-blog-widget-list-titles li a:hover { color: var(--color-accent-dark); }

/* Polecane firmy — bridge widget into the directory side of the site */
.bt-blog-widget-firms-list { list-style: none; padding: 0; margin: 0; }
.bt-blog-widget-firms-list li + li { border-top: 1px solid var(--color-border); }
.bt-blog-widget-firms-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    color: var(--color-text);
    border-bottom: 0;
    transition: color .12s;
}
.bt-blog-widget-firms-list a:hover { color: var(--color-accent-dark); }
.bt-blog-widget-firms-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    /* Truncate long firma names — sidebar is narrow, names like
       "VTP Vape Shop E-papierosy — Warszawa Mokotów" overflow. */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bt-blog-widget-firms-rating { font-size: 12px; color: var(--color-muted); display: inline-flex; align-items: center; gap: 4px; }
.bt-blog-widget-firms-rating .star { color: #f59e0b; }
.bt-blog-widget-firms-more {
    display: inline-block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-dark);
    width: 100%;
}
.bt-blog-widget-firms-more:hover { text-decoration: underline; }

/* Stats widget — 2x2 grid, brand-toned accent on the numbers */
.bt-blog-widget-stats { background: linear-gradient(180deg, #fff8eb 0%, #fff 100%); }
.bt-blog-widget-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bt-blog-widget-stats-list li {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 0;
    border: 0;
}
.bt-blog-widget-stats-list strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent-dark);
    line-height: 1.1;
}
.bt-blog-widget-stats-list span {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* Single blog post (article) */
.bt-blog-single { padding: 8px 0 32px; max-width: 760px; }
.bt-blog-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.bt-blog-content { font-size: 16px; line-height: 1.7; }
.bt-blog-content p { margin: 0 0 16px; }
.bt-blog-content h2 { margin: 28px 0 12px; font-size: 24px; }
.bt-blog-content h3 { margin: 24px 0 10px; font-size: 19px; }
.bt-blog-content a { text-decoration: underline; }
.bt-blog-content blockquote {
    margin: 16px 0; padding: 8px 16px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-card);
    color: var(--color-muted);
}

/* Footer blog strip */
.bt-footer-blog {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 28px 0 4px;
    margin-top: 48px;
}
.bt-footer-blog .bt-section-header { margin-top: 0; }
.bt-footer-blog .bt-section-header h2 { font-size: 22px; }
.bt-footer-blog-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.bt-footer-blog-list li a {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 14px;
}
.bt-footer-blog-list li a:hover { border-color: var(--color-accent); text-decoration: none; }
.bt-footer-blog-date { color: var(--color-accent-dark); font-weight: 600; min-width: 50px; }
.bt-footer-blog-title { line-height: 1.35; }

/* Map markers — divIcon is registered with className:'' so our .bt-pin is
 * the only thing styling it; otherwise Leaflet's .leaflet-div-icon defaults
 * (white bg + thin gray border) win the cascade.
 *
 * Color hierarchy on archive/competitor maps:
 *   .bt-pin          → soft orange  (peer firms)
 *   .bt-pin-current  → deep orange  (current firma — when shown)
 *   .bt-pin-user     → blue         ("you are here" via geolocation) */
.bt-pin {
    width: 100%;
    height: 100%;
    background: #fb923c;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    /* the dot character has weird vertical metrics — nudge it visually */
    text-shadow: 0 0 1px rgba(0,0,0,.2);
}
.bt-pin-user {
    background: #1d4ed8;
    font-size: 16px;
}
.bt-pin-current {
    background: #d97706;
    font-size: 18px;
    color: #fff;
}
.bt-pin span { display: block; }

/* Category-aware action card above the hero map. Mirrors the firma-w-sieci
   visual idiom (head tag → H3 → link) so it reads as a content card, not a
   flashy ad-button. Better SEO surface: H3 with firma name + intent keyword
   (menu/rezerwacja/oferta), visible domain, descriptive anchor text. */
.bt-firma-action {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 6px 0 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .12s, border-color .12s;
}
.bt-firma-action:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bt-firma-action-head {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bt-firma-action-tag {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-dark);
    font-size: 11px;
}
.bt-firma-action-sep { opacity: 0.5; }
.bt-firma-action-domain { text-transform: lowercase; }
/* H2 here intentionally — heading-order audit needs it post-H1. The
   site-wide `.bt-firma .main h2 { margin-top: 40px }` rule has higher
   specificity, so we override per-card with `!important`-equivalent
   nesting. */
.bt-firma-action .bt-firma-action-title,
.bt-firma .main h2.bt-firma-action-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}
.bt-firma-action-link {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
}
.bt-firma-action-link:hover { text-decoration: underline; }

/* Hero map on single-firma — replaces the deprecated photo */
.bt-firma-hero-map-wrap {
    position: relative;
    margin-bottom: 16px;
}
.bt-firma-hero-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    z-index: 1;
    background: var(--color-card); /* visible while tiles load */
}
/* Visible "Wyznacz trasę" CTA overlaid in the top-right of the map.
   Sits above Leaflet's tile pane (z-index:1) and zoom controls (z-index:1000)
   so it's always reachable. */
.bt-map-dir-btn {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    text-decoration: none;
    transition: background .12s, transform .12s;
}
.bt-map-dir-btn:hover {
    background: var(--color-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.bt-map-dir-icon { font-size: 16px; line-height: 1; }
/* Tooltip styling — Leaflet sets .leaflet-tooltip; we override our class */
.bt-pin-tooltip {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    font-size: 13px;
    line-height: 1.4;
    max-width: 240px;
    white-space: normal;
}
.bt-pin-tooltip .bt-pin-addr { color: var(--color-muted); font-size: 12px; }
.bt-pin-tooltip::before { display: none; } /* drop the tooltip arrow */
/* Marker is now interactive — show pointer */
.bt-pin-current { cursor: pointer; }
@media (max-width: 700px) {
    .bt-map-dir-btn { padding: 6px 10px; font-size: 13px; top: 8px; right: 8px; }
}

/* On the hero map of single-firma pages, "Wyznacz trasę" already sits
   at top-right (absolute, z-index 1100). Push the Leaflet topright
   corner down so the locate control doesn't collide with it. */
.bt-firma-hero-map-wrap .leaflet-top.leaflet-right { top: 56px; }

/* "Zlokalizuj mnie" button — registered via L.control() so Leaflet
   absolutely-positions it in the corner. We just style the inner button. */
.bt-map-locate-ctrl button {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: border-color .12s, color .12s;
}
.bt-map-locate-ctrl button:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.bt-map-locate-ctrl button:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 700px) {
    .bt-map-locate-ctrl button { padding: 6px 10px; font-size: 12px; }
}

.bt-archive-map {
    width: 100%;
    height: 480px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin: 12px 0 32px;
    z-index: 1;
}
.bt-archive-map .leaflet-popup-content { font-size: 14px; line-height: 1.45; margin: 8px 12px; }
.bt-archive-map .leaflet-popup-content a { color: var(--color-link); }

.bt-cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.bt-cat-cloud a { padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-text); font-size: 14px; }
.bt-cat-cloud a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); text-decoration: none; }

/* =========================================================================
 * MOBILE OPTIMIZATIONS — single phone breakpoint at 700px.
 * Tablets at 800px already collapse the single-firma + alpha-list grids.
 * Goal: avoid horizontal scroll, keep tap targets >= 40px, prevent iOS
 * input-zoom (16px font), cut down hero/map heights.
 * ========================================================================= */
@media (max-width: 700px) {
    .bt-container { padding: 0 12px; }

    /* Header on mobile — hamburger toggles slide-down full-width nav */
    .bt-header { padding: 10px 0; }
    .bt-header-inner { gap: 8px; flex-wrap: nowrap; }
    .bt-logo { font-size: 18px; flex: 1 1 auto; }
    .bt-header .bt-search { display: none; }
    .bt-nav-toggle { display: inline-flex; flex: 0 0 auto; }
    .bt-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
        padding: 12px 0;
        flex-direction: column;
        gap: 0;
    }
    .bt-nav.is-open { display: flex; }
    .bt-header { position: relative; }
    .bt-nav a {
        margin: 0;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 0;
        display: block;
        border-bottom: 1px solid #f1f5f9;
    }
    .bt-nav a:last-child { border-bottom: 0; }
    .bt-nav a.bt-nav-cta {
        margin: 8px 16px 0;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
        border-bottom: 0;
    }
    /* Asystent looks like every other nav item — just text + emoji prefix.
       Drop all the pill/CTA styling that's inherited from desktop. */
    .bt-nav a.bt-nav-wizard {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin: 0;
        padding: 14px 20px;
        text-align: left;
        font-size: 16px;
        line-height: 1.4;
        font-weight: 500;
        color: var(--color-text);
        background: transparent;
        border: 0;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
    }
    .bt-nav a.bt-nav-wizard .bt-nav-wizard-icon {
        font-size: 16px;
        line-height: 1;
        flex: 0 0 auto;
    }

    /* Hero on home */
    .bt-hero { padding: 36px 0 28px; }
    .bt-hero h1 { font-size: 26px; }
    .bt-hero p { font-size: 15px; }

    /* Page titles across all archives */
    .bt-page-title { padding: 20px 0 12px; }
    .bt-page-title h1 { font-size: 22px; line-height: 1.25; }

    /* Single firma */
    .bt-firma { gap: 20px; padding: 16px 0; }
    .bt-firma h1 { font-size: 24px; }
    .bt-firma .summary { font-size: 14px; }

    /* Maps — phones can't deal with 360-480px tall iframes inline */
    .bt-firma-hero-map { height: 240px; margin-bottom: 12px; }
    .bt-archive-map { height: 320px; }

    /* Card grid tighter */
    .bt-grid { gap: 12px; padding: 16px 0; }
    .bt-card { padding: 14px; }
    .bt-card h3 { font-size: 16px; }

    /* Pagination — wrap, smaller pills */
    .bt-pagination { gap: 4px; padding: 16px 0; flex-wrap: wrap; }
    .bt-pagination a, .bt-pagination span { padding: 6px 10px; font-size: 13px; }

    /* Inputs — 16px prevents iOS zoom-on-focus */
    .bt-search input,
    input[type="search"],
    input[type="text"],
    input[type="email"] { font-size: 16px; }

    /* Sticky A-Z bar — header stays smaller, alpha bar shifts up */
    .bt-alpha-bar { top: 54px; padding: 8px; }
    .bt-alpha-bar a { width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
    .bt-alpha-section { scroll-margin-top: 96px; }
    .bt-alpha-section h3 { font-size: 22px; }

    /* Section header (h2 + "see all" link) — stack vertically */
    .bt-section-header { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Footer */
    .bt-footer { padding: 24px 0; margin-top: 32px; }
    .bt-footer .bt-container { flex-direction: column; align-items: flex-start; }
    .bt-footer-blog { padding: 20px 0 4px; margin-top: 32px; }

    /* Blog */
    .bt-blog-grid { gap: 12px; padding: 8px 0; }
    .bt-blog-card-body { padding: 14px; }
    .bt-blog-content { font-size: 15px; }
    .bt-blog-hero { max-height: 240px; }
    .bt-blog-single { padding: 4px 0 24px; }

    /* Archive description */
    .bt-archive-desc { padding: 12px 14px; font-size: 14px; }

    /* Sidebar info boxes (when single-firma collapses to 1 column) */
    .bt-info-box { padding: 14px; }
    .bt-info-row .label { min-width: 70px; font-size: 13px; }
    .bt-info-row .value { font-size: 13px; word-break: break-word; }

    /* Hours table */
    .bt-hours { font-size: 13px; }

    /* Reklama landing */
    .bt-reklama-hero { padding: 36px 0 28px; margin-bottom: 20px; }
    .bt-reklama-hero h1 { font-size: 24px; }
    .bt-reklama-lead { font-size: 15px; margin-bottom: 18px; }
    .bt-reklama-stats { gap: 14px; }
    .bt-reklama-stats strong { font-size: 22px; }
    .bt-reklama-card { padding: 18px; }
    .bt-reklama-card h3 { font-size: 19px; }
    .bt-reklama-cta { padding: 28px 18px; margin: 20px 0 36px; }
    .bt-reklama-cta h2 { font-size: 22px; }
    .bt-reklama-cta-btn { font-size: 16px; padding: 10px 20px; }

    /* Generic h2 sizing */
    h2 { font-size: 20px; }

    /* Ad block tighter on phone */
    .bt-ad { padding: 12px 14px; }
}

/* Even tighter for narrow phones (≤380px — iPhone SE, older Androids) */
@media (max-width: 380px) {
    .bt-page-title h1 { font-size: 20px; }
    .bt-hero h1 { font-size: 22px; }
    .bt-firma h1 { font-size: 21px; }
    .bt-card-cat { font-size: 11px; padding: 1px 6px; }
    .bt-firma-hero-map { height: 200px; }
}

/* /miasta/ and /kategorie/ A-Z directory pages */
.bt-alpha-bar {
    position: sticky; top: 64px; z-index: 10;
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 12px;
    margin: 16px 0 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.bt-alpha-bar a {
    display: inline-block;
    width: 30px; height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    font-size: 14px;
}
.bt-alpha-bar a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); text-decoration: none; }
.bt-alpha-list { margin-top: 16px; }
.bt-alpha-section { margin-bottom: 32px; scroll-margin-top: 110px; }
.bt-alpha-section h3 {
    font-size: 28px;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
    margin: 0 0 12px;
}
.bt-alpha-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
    column-gap: 24px;
}
.bt-alpha-section li {
    break-inside: avoid;
    padding: 4px 0;
    font-size: 14px;
}
@media (max-width: 800px) { .bt-alpha-section ul { columns: 2; } }
@media (max-width: 500px) { .bt-alpha-section ul { columns: 1; } }

/* Anonymised review cards: stars + date + auto-extracted keyword chips
   from THAT review's content. Replaces verbatim UGC reproduction with
   a privacy- and copyright-safe summary while keeping the per-review
   granularity that gives the section its "feel". */
.bt-topics { margin: 24px 0; }
.bt-topics h2 { margin-bottom: 4px; }
.bt-topics-meta { color: var(--color-muted); font-size: 13px; margin: 0 0 14px; }
.bt-topics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.bt-topic-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid #a8a29e;
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bt-topic-card.is-pos { border-left-color: #16a34a; }
.bt-topic-card.is-neg { border-left-color: #b91c1c; }
.bt-topic-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.bt-topic-card-stars { font-size: 14px; letter-spacing: 1px; }
.bt-topic-card-stars .star { color: var(--color-border); }
.bt-topic-card-stars .star.on { color: #f59e0b; }
.bt-topic-card-date { font-size: 12px; color: var(--color-muted); }
.bt-topic-card-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bt-topic-card-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fafafa;
    border: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text);
}
.bt-topic-card.is-pos .bt-topic-card-chip { background: #f0fdf4; border-color: #bbf7d0; }
.bt-topic-card.is-neg .bt-topic-card-chip { background: #fef2f2; border-color: #fecaca; }

/* "Oferta i udogodnienia" — comma-separated inline list, not chips */
.bt-services-list {
    line-height: 1.7;
    color: var(--color-text);
    margin: 8px 0 24px;
}

/* End-of-content notice for sponsored / external blog posts. Set via
   "Typ artykułu" metabox on post edit screen. */
.bt-article-notice {
    margin: 32px 0 0;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    background: #fff8eb;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}
.bt-article-notice-external {
    border-left-color: #6b7280;
    background: #f8f9fa;
}

/* Top-10 ranking table on archive routes. Wider columns on desktop;
   horizontal scroll on mobile rather than wrapping into broken layout. */
.bt-top-table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.bt-top-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.bt-top-table th,
.bt-top-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.bt-top-table-loc {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.45;
    max-width: 360px;
}
.bt-top-table thead th {
    background: #fff8eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    font-weight: 700;
}
.bt-top-table tbody tr:last-child td { border-bottom: 0; }
.bt-top-table tbody tr:hover { background: #fafafa; }
.bt-top-table-rank {
    font-weight: 700;
    color: var(--color-accent-dark);
    width: 36px;
    text-align: center;
}
.bt-top-table-stars { color: #f59e0b; }
.bt-top-table a { color: var(--color-text); font-weight: 600; }
.bt-top-table a:hover { color: var(--color-accent-dark); }
@media (max-width: 700px) {
    .bt-top-table { font-size: 13px; }
    .bt-top-table th, .bt-top-table td { padding: 8px 10px; }
}

/* FAQ accordion on single-firma — backs up FAQPage JSON-LD that drives
   Google rich-snippets. Native <details>/<summary> for accessibility +
   crawlability (Google indexes content inside collapsed details). */
.bt-faqs { margin: 12px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.bt-faq {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .15s;
}
.bt-faq[open] { border-color: var(--color-accent); }
.bt-faq-q {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 44px 12px 16px;
    list-style: none;
    position: relative;
    color: var(--color-text);
}
.bt-faq-q::-webkit-details-marker { display: none; }
.bt-faq-q::after {
    content: '+';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: var(--color-muted);
    transition: transform .15s;
}
.bt-faq[open] .bt-faq-q::after { content: '−'; color: var(--color-accent); }
.bt-faq-q:hover { color: var(--color-accent-dark); }
.bt-faq-a {
    padding: 0 16px 14px;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 14px;
}

/* /o-nas/ + /kontakt/ pages — share the score-page typography */
.bt-onas-page .bt-content { max-width: 720px; margin: 0 auto; padding: 24px 0 48px; line-height: 1.65; }
.bt-onas-page h2 { font-size: 22px; margin: 32px 0 12px; }

/* Generic page template (page.php) — Polityka prywatności, Regulamin, etc. */
.bt-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 0 48px;
    line-height: 1.7;
    font-size: 16px;
}
.bt-page-content h2 { font-size: 22px; margin: 32px 0 12px; }
.bt-page-content h3 { font-size: 18px; margin: 24px 0 10px; }
.bt-page-content p  { margin: 0 0 16px; }
.bt-page-content ul,
.bt-page-content ol { margin: 0 0 16px 24px; padding: 0; }
.bt-page-content li { margin: 4px 0; }
.bt-page-content a { color: var(--color-accent-dark); }
.bt-page-content a:hover { color: var(--color-accent); }
.bt-page-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 0 0 16px;
    padding: 8px 16px;
    background: #fff8eb;
    border-radius: var(--radius);
    color: var(--color-text);
}
.bt-page-content table { border-collapse: collapse; width: 100%; margin: 0 0 16px; }
.bt-page-content th,
.bt-page-content td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }
.bt-page-content code { background: #f6f7f7; padding: 2px 6px; border-radius: 3px; font-size: 14px; }
.bt-page-pagination { margin: 24px 0; font-size: 14px; }
.bt-page-pagination a { margin: 0 6px; }
.bt-onas-page .bt-lead {
    font-size: 17px;
    color: var(--color-text);
    background: #fff8eb;
    border-left: 3px solid var(--color-accent);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 0 0 24px;
}
.bt-contact-list { list-style: none; padding: 0; margin: 12px 0; }
.bt-contact-list li {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    line-height: 1.55;
}
.bt-contact-list li strong { display: block; margin-bottom: 4px; }

/* /score/ explainer page */
.bt-score-page .bt-content { max-width: 720px; margin: 0 auto; padding: 24px 0 48px; line-height: 1.65; }
.bt-score-page h2 { font-size: 22px; margin: 32px 0 12px; }
.bt-score-page .bt-lead {
    font-size: 17px;
    color: var(--color-text);
    background: #fff8eb;
    border-left: 3px solid var(--color-accent);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 0 0 24px;
}
.bt-score-scale { list-style: none; padding: 0; margin: 12px 0; }
.bt-score-scale li { padding: 8px 0; display: flex; align-items: center; gap: 12px; }
.bt-score-band {
    display: inline-block;
    min-width: 110px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    color: #fff;
}
.bt-score-band.band-5 { background: #15803d; }
.bt-score-band.band-4 { background: #65a30d; }
.bt-score-band.band-3 { background: #ca8a04; }
.bt-score-band.band-2 { background: #d97706; }
.bt-score-band.band-1 { background: #a8a29e; }
.bt-score-formula {
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 15px;
    overflow-x: auto;
}
.bt-score-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.bt-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background .12s;
}
.bt-btn:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.bt-btn-ghost {
    background: transparent;
    color: var(--color-accent-dark);
    border: 1px solid var(--color-accent);
}
.bt-btn-ghost:hover { background: #fff8eb; color: var(--color-accent-dark); }

/* === /znajdz/ wizard ============================================== */
.bt-wizard-page { padding-bottom: 48px; }
.bt-wizard {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 28px 32px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.bt-wizard-steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    counter-reset: step;
}
.bt-wizard-step {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, border-color .15s, color .15s;
}
.bt-wizard-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
}
.bt-wizard-step.active {
    background: #fff8eb;
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}
.bt-wizard-step.active .num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.bt-wizard-step.done .num::before { content: "✓"; }
.bt-wizard-step.done .num { color: transparent; position: relative; }
.bt-wizard-step.done .num::before {
    color: #fff;
    background: #22c55e;
    border-radius: 50%;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: -1px;
    font-size: 14px;
    border: 1px solid #22c55e;
}
.bt-wizard-panel h2 {
    font-size: 22px;
    margin: 4px 0 18px;
    line-height: 1.3;
}
.bt-wizard-panel h2 strong {
    color: var(--color-accent-dark);
    font-weight: 700;
}
.bt-wizard-search {
    position: relative;
    margin-bottom: 22px;
}
.bt-wizard-search input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
.bt-wizard-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}
.bt-wizard-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    max-height: 320px;
    overflow-y: auto;
}
.bt-wizard-suggestions li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}
.bt-wizard-suggestions li:hover,
.bt-wizard-suggestions li.active { background: #f1f5f9; }
.bt-wiz-sugg-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-wiz-sugg-count { color: var(--color-muted); font-size: 13px; flex-shrink: 0; }
.bt-wizard-section-label {
    font-size: 13px;
    color: var(--color-muted);
    margin: 4px 0 10px;
    font-weight: 500;
}
.bt-wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.bt-wizard-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.bt-wizard-chip:hover {
    background: #fff8eb;
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}
.bt-wizard-chip-count {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 400;
}
.bt-wizard-chip:hover .bt-wizard-chip-count { color: var(--color-accent-dark); }
.bt-wizard-help {
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 13px;
}
.bt-wizard-back-wrap { margin-top: 18px; }
.bt-wizard-back {
    background: transparent;
    border: 0;
    color: var(--color-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0;
}
.bt-wizard-back:hover { color: var(--color-accent-dark); }
.bt-wizard-noscript {
    margin-top: 16px;
    padding: 12px;
    background: #fff8eb;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-accent-dark);
    font-size: 14px;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
@media (max-width: 600px) {
    .bt-wizard { padding: 18px 16px 24px; }
    .bt-wizard-steps { gap: 6px; }
    .bt-wizard-step { padding: 8px 10px; font-size: 13px; }
    .bt-wizard-step .num { width: 22px; height: 22px; font-size: 12px; }
    .bt-wizard-panel h2 { font-size: 18px; }
}

/* === Hero search + wizard CTA ===================================== */
.bt-hero-actions {
    margin: 0 auto;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.bt-hero-actions .bt-search {
    flex: 1 1 360px;
    max-width: 420px;
    min-width: 0;
}
.bt-hero-or {
    color: var(--color-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    flex: 0 0 auto;
}
.bt-hero-wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    color: var(--color-accent-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: background .12s, transform .08s, box-shadow .12s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    flex: 0 0 auto;
}
.bt-hero-wizard-btn:hover {
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, .25);
}
.bt-hero-wizard-btn-icon { font-size: 18px; }
.bt-hero-wizard-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.bt-hero-wizard-btn-text strong { font-weight: 700; font-size: 14px; }
.bt-hero-wizard-btn-sub { font-size: 12px; opacity: .8; font-weight: 400; }
@media (max-width: 720px) {
    .bt-hero-actions { flex-direction: column; gap: 10px; }
    .bt-hero-actions .bt-search { flex: 1 1 100%; max-width: 100%; width: 100%; }
    .bt-hero-or { font-size: 12px; }
    .bt-hero-wizard-btn { width: 100%; max-width: 360px; justify-content: center; }
    .bt-hero-wizard-btn-text { align-items: center; }
}

/* === Header nav: Asystent pill ==================================== */
.bt-nav-wizard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    color: var(--color-accent-dark);
    font-weight: 600;
    background: #fff8eb;
    transition: background .12s, color .12s, border-color .12s;
}
.bt-nav-wizard:hover {
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-color: var(--color-accent);
}
.bt-nav-wizard-icon { font-size: 13px; }

/* === 404 page ===================================================== */
.bt-404-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 48px;
}
.bt-404-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.bt-404-block h2 {
    font-size: 18px;
    margin: 0 0 12px;
}
.bt-404-search .bt-search { margin: 0; max-width: 100%; }
.bt-404-hint { color: var(--color-muted); font-size: 13px; margin: 10px 0 0; }
.bt-404-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bt-404-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.bt-404-chip:hover {
    background: #fff8eb;
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    text-decoration: none;
}
.bt-404-chip span {
    color: var(--color-muted);
    font-size: 12px;
}
