/* ============================================================================
   szkodygorniczemapa.pl — authoritative design layer (amber / coal mining)
   Loaded LAST. Establishes the full visual identity, defines the layout
   classes the views use (.wrap, .hero-map, .vitrine, ...) and recolours the
   inherited donor sheets (style.css + lucht.css) from teal to amber.
   ============================================================================ */

/* ---- Design tokens ---- */
:root {
    --primary:        #b45309; /* amber-700 */
    --primary-dark:   #92400e; /* amber-800 */
    --primary-darker: #78350f; /* amber-900 */
    --primary-light:  #f59e0b; /* amber-500 */
    --primary-50:     #fffbeb;
    --primary-100:    #fef3c7;
    --primary-200:    #fde68a;
    --accent:         #b45309;
    --accent-dark:    #92400e;

    --ink:       #1c1917; /* stone-900 (coal) */
    --ink-soft:  #292524;

    --bg:        #faf6f0; /* warm off-white */
    --bg-white:  #ffffff;
    --bg-soft:   #f5efe5;
    --bg-warm:   #fdf9f3;
    --bg-light:  #f5efe5;

    --text:        #1c1917;
    --text-light:  #57534e;
    --text-muted:  #6b6259; /* WCAG AA: ~5.9:1 on white, ~5.7:1 on warm bg */
    --border:       #e9e1d4;
    --border-light: #f1ebe0;

    --radius-sm: 8px;
    --radius:    11px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(28,25,23,.06);
    --shadow:    0 6px 22px -8px rgba(28,25,23,.14);
    --shadow-lg: 0 24px 60px -18px rgba(28,25,23,.26);
    --ring:      0 0 0 3px rgba(180,83,9,.18);

    --maxw: 1140px;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Base typography ---- */
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.005em; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary-darker); }
::selection { background: var(--primary-200); color: var(--ink); }

/* ---- Containers / layout helpers (were undefined) ---- */
.wrap      { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-smal { max-width: 860px;       margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container { max-width: var(--maxw); }
.main-content .container { max-width: var(--maxw); } /* donor capped this at 800px; reading width is set per-page via .narrow/.prose/.order-box */
.narrow    { max-width: 840px; }
.main-content { padding: 44px 0 64px; }
.section   { padding-top: 10px; padding-bottom: 40px; }
.lead {
    font-size: 1.14rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 68ch;
    margin: 0 0 20px;
}
.small { font-size: .82rem; }
.muted { color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 11px 22px;
    transition: background .18s ease, box-shadow .18s ease, transform .05s ease, color .18s;
    box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(180,83,9,.55);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 24px -8px rgba(146,64,14,.6); }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary-dark); background: transparent; box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Header / nav ---- */
.site-header {
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(28,25,23,.02);
}
.site-header .container { height: 68px; }
.logo { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 1.24rem; }
.logo:hover { color: var(--primary-dark); }
.logo-text strong { color: var(--primary-dark); font-weight: 700; }
.logo-icon { font-size: 1.5rem; filter: saturate(1.1); }
.main-nav { gap: 26px; }
.main-nav a { color: var(--text-light); font-weight: 500; }
.main-nav a:hover { color: var(--primary-dark); }
.nav-dropdown-link { color: var(--text-light); }
.nav-dropdown-link:hover { color: var(--primary-dark); }
.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    box-shadow: 0 6px 16px -6px rgba(180,83,9,.5);
    transition: background .18s;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }
.nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { background: var(--ink); }
.nav-dropdown-count { background: var(--primary-100); color: var(--primary-dark); }
.nav-dropdown-item:hover { background: var(--primary-50); color: var(--primary-dark); }

/* ---- Hero (home) ---- */
.hero-map {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 20px;
}
.hero-map-intro { max-width: 760px; margin-bottom: 26px; }
.hero-map-intro h1 { margin-bottom: 14px; }
.hero-lead {
    font-size: 1.16rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 20px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-chips {
    list-style: none; display: flex; flex-wrap: wrap;
    gap: 8px 20px; padding: 0; margin: 14px 0 0;
    font-size: .92rem; color: var(--text-light); font-weight: 500;
}
.hero-chips li { white-space: nowrap; }

/* Address search bar */
.adres-search { display: flex; gap: 10px; margin: 20px 0 6px; max-width: 540px; }
.adres-search input {
    flex: 1; min-width: 0; padding: 13px 16px; font-size: 1rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; box-shadow: var(--shadow-sm);
}
.adres-search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.adres-search .btn { padding-left: 24px; padding-right: 24px; }
.adres-search-sm { margin: 0 0 12px; }
.adres-search-sm input { padding: 10px 12px; font-size: .95rem; }

/* ---- Map block ---- */
.map-flex { display: flex; gap: 20px; align-items: stretch; }
.map-flex .map-canvas { flex: 1; min-width: 0; }
.map-canvas {
    height: 60vh; min-height: 440px;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    overflow: hidden; z-index: 1;
}
body.map-page .hero-map .map-canvas,
body.map-page #map.map-canvas { border-radius: var(--radius-lg) !important; height: 60vh; min-height: 440px; }
.map-flex-compact .map-canvas { height: auto; min-height: 440px; }
.map-side {
    width: 330px; min-width: 300px; flex: 0 0 330px;
    display: flex; flex-direction: column; gap: 12px;
}
.dz-hint {
    background: var(--bg-warm); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
}
.dz-hint h2 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.dz-hint ol { margin: 0 0 8px 18px; padding: 0; }
.dz-hint li { font-size: .9rem; color: var(--text-light); margin-bottom: 5px; line-height: 1.45; }
.dz-hint-note { font-size: .84rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Result panel */
.dz-panel {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow);
}
.dz-facts > div { border-bottom: 1px solid var(--border-light); }
.dz-facts dt { color: var(--text-muted); }
.dz-facts dd { color: var(--ink); }
.dz-cta { border-top: 2px solid var(--border-light); }

/* Verdict badges keep semantic colours; just soften radius */
.verdict { border-radius: var(--radius); }

/* ---- Sections rhythm + bands ---- */
.section-how, .section-woj, .section-blog { padding: 44px 0; }
.section-how { background: var(--bg-warm); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-how > .wrap > h2,
.section-woj > .wrap > h2,
.section-blog > .wrap > h2 { margin-bottom: 8px; }
.section-woj { background: linear-gradient(180deg, var(--primary-50), #fff); }
.section-cta { margin: 24px 0 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Feature grid / cards ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin: 22px 0; }
.feature {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px 22px 20px;
    box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s;
    position: relative;
}
.feature::before {
    content: ""; position: absolute; left: 22px; top: 22px;
    width: 34px; height: 3px; border-radius: 3px; background: var(--primary-light);
}
.feature { padding-top: 34px; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary-200); }
.feature h3 { font-size: 1.06rem; margin: 0 0 7px; color: var(--ink); }
.feature p { font-size: .92rem; color: var(--text-light); margin: 0; line-height: 1.55; }

/* ---- Region grids / chips / crumbs / alpha ---- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.region-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.region-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.region-name { font-weight: 700; color: var(--ink); }
.region-go { font-size: .82rem; color: var(--primary-dark); font-weight: 600; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.chip-grid .chip, .chip {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 15px; font-size: .9rem; box-shadow: var(--shadow-sm);
    transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary-dark); }

.crumbs, .breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.crumbs a, .breadcrumb a { color: var(--primary-dark); }
.crumbs a:hover, .breadcrumb a:hover { text-decoration: underline; }

.alpha-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0; }
.alpha {
    width: 36px; height: 36px; border: 1px solid var(--border);
    border-radius: 9px; font-weight: 600; color: var(--text); background: #fff;
}
.alpha:hover, .alpha.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.related { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: .9rem; color: var(--text-muted); }
.related a { color: var(--primary-dark); font-weight: 500; }

/* ---- Vitrine (money page) ---- */
.vitrine h1 { margin-bottom: 12px; }
.vitrine-grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; margin-top: 26px; align-items: start; }
.vitrine-main h2 { font-size: 1.3rem; margin: 0 0 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li {
    position: relative; padding: 11px 0 11px 34px;
    border-bottom: 1px solid var(--border-light); font-size: .96rem; line-height: 1.5; color: var(--text-light);
}
.check-list li strong { color: var(--ink); }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 14px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-100);
    box-shadow: inset 0 0 0 1px var(--primary-200);
}
.check-list li::after {
    content: ""; position: absolute; left: 7.5px; top: 18px;
    width: 4px; height: 8px; border: solid var(--primary-dark); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.price-card {
    background: var(--bg-white);
    border: 1px solid var(--primary-200);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 26px 24px; text-align: center;
    box-shadow: var(--shadow-lg); position: sticky; top: 88px;
}
.price-big { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--primary-dark); line-height: 1; }
.price-sub { font-size: .84rem; color: var(--text-muted); margin: 6px 0 18px; }
.price-card .btn-block { margin-bottom: 4px; }
.mini-list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; font-size: .86rem; color: var(--text-light); }
.mini-list li { padding: 5px 0 5px 22px; position: relative; }
.mini-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.vitrine-hint { margin-top: 16px; font-size: .86rem; color: var(--text-muted); }
.vitrine-cta { position: relative; }

/* ---- Order form ---- */
.order-box { max-width: 580px; }
.order-lead { font-size: 1rem; color: var(--text-light); margin: 0 0 20px; }
.order-lead strong { color: var(--ink); }
.ctx-card {
    background: var(--primary-50); border: 1px solid var(--primary-200);
    border-left: 4px solid var(--primary); border-radius: var(--radius);
    padding: 13px 16px; margin-bottom: 20px;
}
.ctx-k { font-size: .72rem; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.ctx-v { font-size: 1rem; color: var(--ink); margin-top: 2px; }
.ctx-id { font-size: .76rem; color: var(--text-muted); margin-top: 3px; }
.order-form .field { margin-bottom: 18px; }
.order-form .field > span { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.order-form .field input {
    padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; background: #fff;
}
.order-form .field input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.order-form .field small { color: var(--text-muted); }
.order-form .check {
    display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px;
    font-size: .88rem; color: var(--text-light); line-height: 1.5;
    background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.order-form .check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.order-form .btn-block { margin-top: 6px; }
.order-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* Generic form focus (override donor teal rings) */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary) !important; box-shadow: var(--ring) !important; }

.alert { border-radius: var(--radius); }
.alert-info { background: var(--primary-50); border: 1px solid var(--primary-200); color: var(--primary-darker); }

/* ---- Thanks page ---- */
.thanks-box { max-width: 600px; margin: 0 auto; text-align: center; }
.thanks-box .btn-lg { margin: 10px 0; }

/* ---- Guides / blog cards ---- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 22px 0; }
.guide-card, .post-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .18s, border-color .18s; display: block; color: var(--text);
}
.guide-card:hover, .post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary-200); color: var(--text); }
.guide-card h2 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin: 0 0 7px; }
.guide-card p, .post-card p { font-size: .9rem; color: var(--text-light); margin: 0; line-height: 1.55; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.post-card h3 { font-size: 1.04rem; margin: 0 0 7px; color: var(--ink); }
.posts-grid { gap: 16px; }

.blog-card { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card h2 { font-family: var(--font-sans); font-size: 1.2rem; color: var(--ink); }
.blog-date { color: var(--text-muted); }

.blog-cat-chip { background: #fff; border: 1px solid var(--border); color: var(--text); }
.blog-cat-chip:hover, .blog-cat-chip-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CTA panel at the end of a blog article */
.gids-cta {
    margin: 30px 0 8px;
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.gids-cta h2 { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.gids-cta p { font-size: .95rem; color: var(--text-light); line-height: 1.6; margin: 0 0 14px; }
.gids-cta .btn { margin-top: 2px; }

/* Related tiles */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.tile-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--text);
}
.tile-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile-card h3 { font-size: 1rem; margin: 0; color: var(--ink); }

/* ---- Prose (articles, guides, static pages) ---- */
.prose { max-width: 760px; color: var(--text-light); line-height: 1.75; }
.prose > .lead:first-of-type, .prose .lead { color: var(--text-light); }
.prose h1 { color: var(--ink); margin-bottom: 14px; }
.prose h2 { color: var(--ink); margin: 32px 0 12px; }
.prose h3 { color: var(--ink); margin: 24px 0 8px; font-size: 1.14rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 15px; }
.prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary-darker); }
.prose blockquote {
    border-left: 4px solid var(--primary); background: var(--primary-50);
    border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-style: normal;
}
.prose thead th, .prose table thead th { background: var(--primary); color: #fff; }
.prose tbody tr:nth-child(even) { background: var(--bg-warm); }
.prose tbody tr:hover { background: var(--primary-50); }
.page-content h1, .page-content h2 { color: var(--ink); }
.page-content h1 { font-family: var(--font-serif); }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq-item h3 { color: var(--ink); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { color: var(--ink); }

.toc { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.toc a { color: var(--primary-dark); }

/* ---- Page hero (interior pages that use .page-hero) ---- */
.page-hero { background: linear-gradient(135deg, var(--ink), var(--primary-darker)); }
.page-hero h1 { color: #fff; }
.hero-banner { background: linear-gradient(135deg, var(--ink), var(--primary-darker)); }

/* ---- Footer (coal charcoal, amber accents) ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px 0 24px; }
.footer-about { margin-bottom: 8px; }
.footer-about .logo-icon, .footer-about .logo-text { color: #fff; font-family: var(--font-serif); font-size: 1.18rem; }
.footer-about .logo-text strong { color: var(--primary-light); }
.footer-about p { font-size: .9rem; margin-top: 10px; line-height: 1.65; max-width: 460px; }
.footer-links h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .82rem; line-height: 1.7; margin-top: 8px; }
.footer-bottom a, .footer-sister a { color: var(--primary-light); text-decoration: none; }
.footer-bottom a:hover, .footer-sister a:hover { color: #fff; text-decoration: underline; }

/* ---- Admin recolour ---- */
.admin-table th { background: var(--ink); }
.stat-card .stat-number { color: var(--primary-dark); font-family: var(--font-serif); }
.sidebar-stat strong { color: var(--primary-dark); }
.login-box { border-top: 4px solid var(--primary); }
.pagination a:hover, .pagination .current { background: var(--primary); border-color: var(--primary); }

/* ---- Consent bar ---- */
.consent-bar { background: var(--ink); }
.consent-bar a { color: var(--primary-light); }
.consent-bar .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.consent-bar .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.cookie-consent { background: var(--ink); }

/* ---- Leaflet popup + map controls ---- */
.map-controls label { background: var(--bg-warm); border-color: var(--border); }
.map-controls input { accent-color: var(--primary); }
.map-legend { border: 1px solid var(--border); }
.popup-link, .station-head a:hover, .link-list a:hover, .breadcrumb a { color: var(--primary-dark); }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; }

/* ---- Flash ---- */
.flash-success { background: #e8f6ec; color: #1b5e20; }
.flash-error { background: #fdecea; color: #8a1c13; }

/* ---- 404 ---- */
.not-found h1 { font-family: var(--font-serif); color: var(--primary); font-size: 5rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vitrine-grid { grid-template-columns: 1fr; gap: 22px; }
    .price-card { position: static; }
}
@media (max-width: 760px) {
    .hero-map { padding: 26px 18px 10px; }
    .map-flex { flex-direction: column; }
    .map-side { width: 100%; min-width: 0; flex: none; }
    .map-canvas, body.map-page .hero-map .map-canvas { height: auto; min-height: 56vh; }
    .wrap, .wrap-smal { padding-left: 18px; padding-right: 18px; }
    .adres-search { max-width: 100%; flex-wrap: wrap; }
    .adres-search input { flex: 1 1 100%; }
    .adres-search .btn { flex: 1 1 100%; justify-content: center; }
    .section-how, .section-woj, .section-blog { padding: 32px 0; }
    .hero-lead, .lead { font-size: 1.05rem; }
}
@media (max-width: 480px) {
    .not-found h1 { font-size: 3.4rem; }
    .price-big { font-size: 2.1rem; }
}
/* Very narrow phones (<=360px): keep the logo + hamburger within 320px even while
   the display webfont is still swapping in (a wider fallback serif briefly pushed
   the nav-toggle past the viewport edge). */
@media (max-width: 360px) {
    .site-header .container { height: 60px; }
    .logo { font-size: 1rem; gap: 6px; }
    .logo-icon { font-size: 1.25rem; }
}
