:root {
    --yellow: #ffbc00;
    --ink: #1c1e18;
    --text: #2c2e28;
    --muted: #5e635b;
    --bg: #f4f2ec;
    --paper: #fff;
    --line: #e3dfd4;
    --ok: #e5f4ea;
    --ok-text: #145c32;
    --bad: #fde8e6;
    --bad-text: #8d2218;
    --shadow: 0 10px 30px rgba(28, 30, 24, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1.05rem;
}
img { max-width: 100%; height: auto; }
a { color: #0f5f86; }
a:hover { color: #0a3f59; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 .6rem; }
h2 { font-size: 1.6rem; margin: 0 0 .8rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.skip {
    position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: .5rem 1rem; z-index: 10; }

.header-wrap { width: min(1370px, calc(100% - 4rem)); margin-inline: auto; }
.topbar { background: #202924; color: #e6eae3; font-size: .72rem; font-weight: 600; }
.topbar-inner, .footer-bottom { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.topbar-inner { min-height: 35px; }
.topbar-location { display: flex; align-items: center; gap: .55rem; }
.topbar-location > span { width: .42rem; height: .42rem; border-radius: 50%; background: #f5c629; }
.topbar-links { display: flex; align-items: center; gap: 1.7rem; }
.topbar a { color: #e6eae3; text-decoration: none; }
.topbar a:hover { color: #f5c629; }
.dot { margin: 0 .35rem; color: #aaa; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 246, .97); border-bottom: 1px solid #d9ddd5; backdrop-filter: blur(18px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.logo { flex: 0 0 auto; }
.logo img { display: block; width: 180px; height: auto; }
.nav > ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: #28312c; }
.nav > ul > li > a { position: relative; display: block; padding: .8rem .68rem; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.nav > ul > li > a::after { content: ''; position: absolute; bottom: .4rem; left: .68rem; right: .68rem; height: 2px; background: #dfb51d; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after, .has-sub:focus-within > a::after { transform: scaleX(1); }
.nav-chevron { margin-left: .15rem; font-size: 1rem; }
.has-sub { position: relative; }
.has-sub ul {
    display: none; position: absolute; top: 100%; left: 0; min-width: 245px; margin: 0;
    background: #fff; border: 1px solid #e3e6df; border-radius: 8px; list-style: none;
    box-shadow: 0 18px 40px rgba(22, 30, 25, .15); padding: .5rem;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.has-sub ul a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .8rem; border-radius: 4px; font-size: .84rem; font-weight: 650; }
.has-sub ul a:hover, .has-sub ul a[aria-current="page"] { background: #f2f3ed; }
.has-sub ul a span { color: #667067; }
.header-actions { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.header-call, .header-quote, .header-mobile-call { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 46px; padding: .7rem .9rem; border-radius: 4px; font-size: .8rem; font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.header-call { color: #222b25; border: 1px solid #abb3a8; }
.header-call:hover { background: #e9ece5; color: #222b25; }
.header-call__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4e8df; }
.header-quote { background: #f5c629; color: #1c241e; }
.header-quote:hover { background: #ffda53; color: #1c241e; }
.header-quote span { font-size: 1rem; }
.header-mobile-actions, .header-mobile-call, .nav-toggle { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible, .topbar a:focus-visible { outline: 3px solid #1974a3; outline-offset: 3px; }

.btn {
    display: inline-block; text-decoration: none; border: 0; cursor: pointer;
    border-radius: 8px; padding: .75rem 1.1rem; font: inherit; font-weight: 700;
    white-space: nowrap; text-align: center;
}
.btn-primary { background: var(--yellow); color: #1a1a1a; }
.btn-primary:hover { background: #f0b000; color: #1a1a1a; }
.btn-call { background: transparent; color: var(--ink); border: 1px solid currentColor; }
.btn-call:hover { background: var(--ink); color: white; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.cta-band .btn-call { color: white; }
.cta-band .btn-call:hover { background: white; color: var(--ink); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.7); }

.hero {
    position: relative; color: white; min-height: 520px;
    background: #1c1e18 url("../img/pompa-przy-domu.webp") center 40% / cover no-repeat;
    display: flex; align-items: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,20,16,.88), rgba(18,20,16,.35));
}
.hero-inner { position: relative; padding: 4rem 0; max-width: 720px; }
.hero h1, .hero p { color: white; }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--yellow); margin-bottom: .4rem; }
.lead, .section-lead { font-size: 1.15rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

.section { padding: 3.2rem 0; }
.section-alt { background: var(--paper); }
.page { padding: 1.5rem 0 3rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card-grid.articles { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    padding: 1rem; text-decoration: none; color: inherit; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .4rem;
}
.card h3, .card h2 { margin: 0; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.card img { width: 84px; height: auto; }
.card img.icon { width: 84px; height: 56px; object-fit: contain; background: transparent; }
.article-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }

.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: start; }
.advantage-list, .plain-list, .related { padding: 0; margin: 0 0 1rem; list-style: none; }
.advantage-list li, .plain-list li {
    background: var(--paper); border-left: 4px solid var(--yellow);
    padding: .7rem .9rem; margin-bottom: .5rem;
}
.towns { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.towns li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure, .article-figure { margin: 0; }
.gallery img, .article-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; }
.gallery figcaption, .article-figure figcaption { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.article-figure { margin: 1rem 0 1.5rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 1rem 0 0; margin: 0; color: var(--muted); font-size: .92rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; }

.prose h2 { margin-top: 1.6rem; }
.prose h3 { margin-top: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.note, .prose .note {
    background: #fff8e4; border: 1px solid #efd48a; border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0;
}
.block { margin: 1.6rem 0; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .5rem; }
.faq summary { cursor: pointer; font-weight: 700; }

.cta-band {
    background: var(--ink); color: white; border-radius: 16px; padding: 1.5rem;
}
.cta-band h2, .cta-band p { color: white; }
.cta-phones a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.article-aside { margin-top: 2rem; }
.related a { display: inline-block; margin: .2rem .4rem .2rem 0; }

.contact-grid, .map-grid, .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.map-grid { grid-template-columns: 1fr 1fr; }
.map-grid iframe { width: 100%; height: 280px; border: 0; border-radius: 12px; }
.contact-grid > div { background: var(--paper); border-radius: 12px; padding: 1rem; border: 1px solid var(--line); }

.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.form-grid { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.quote-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 650; font-size: .95rem; }
.quote-form input, .quote-form select, .quote-form textarea {
    font: inherit; padding: .65rem .7rem; border: 1px solid #ccc; border-radius: 8px; background: white;
}
.full { grid-column: 1 / -1; }
.opt { font-weight: 400; color: var(--muted); }
.consent { flex-direction: row !important; align-items: flex-start; gap: .6rem; font-weight: 400; margin: .4rem 0 1rem; }
.consent input { margin-top: .3rem; }
.field-error { color: var(--bad-text); font-weight: 600; font-size: .88rem; }
.alert { padding: .8rem 1rem; border-radius: 10px; }
.alert-ok { background: var(--ok); color: var(--ok-text); }
.alert-bad { background: var(--bad); color: var(--bad-text); }
.hp { position: absolute; left: -9999px; }

.site-footer { background: var(--ink); color: #e7e4db; margin-top: 2rem; }
.site-footer h2 { color: white; font-size: 1rem; }
.site-footer a { color: #f3d27a; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 1.5rem; padding: 2.2rem 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-brand { color: white; font-weight: 800; font-size: 1.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: .8rem 0 1.2rem; font-size: .9rem; }

@media (max-width: 980px) {
    .card-grid, .card-grid.articles, .gallery, .split, .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
    .header-inner { min-height: 76px; gap: .7rem; }
    .header-actions { display: none; }
    .header-mobile-call { display: inline-flex; margin-left: auto; min-height: 44px; color: #202924; border: 1px solid #aeb7aa; }
    .header-mobile-call:hover { color: #202924; background: #e9ece5; }
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; background: #202924; border: 0; border-radius: 4px; cursor: pointer; }
    .nav-toggle span { display: block; height: 2px; width: 100%; background: white; transition: transform .18s ease; }
    body.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
    body.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 76px); overflow-y: auto; background: #fafaf6; border-bottom: 1px solid #d9ddd5; padding: 1rem max(2rem, calc((100vw - 1370px)/2)) 1.5rem; box-shadow: 0 20px 30px rgba(22, 30, 25, .12); }
    body.nav-open .nav { display: block; }
    .nav > ul { display: block; }
    .nav > ul > li { border-bottom: 1px solid #e3e6df; }
    .nav > ul > li > a { padding: .8rem 0; font-size: 1rem; }
    .nav > ul > li > a::after { display: none; }
    .nav > ul > li > a[aria-current="page"] { color: #7b5e00; }
    .nav-chevron { display: none; }
    .has-sub ul, .has-sub:hover > ul, .has-sub:focus-within > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; min-width: 0; padding: 0 0 .7rem; background: transparent; border: 0; box-shadow: none; }
    .has-sub ul a { padding: .55rem .5rem .55rem 0; font-size: .85rem; }
    .header-mobile-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1.2rem; }
}
@media (max-width: 600px) {
    .header-wrap { width: calc(100% - 2rem); }
    .topbar-inner { min-height: 32px; }
    .topbar-links { display: none; }
    .header-inner { min-height: 68px; }
    .logo img { width: 145px; }
    .header-mobile-call { padding: .6rem .7rem; }
    .nav { max-height: calc(100vh - 68px); padding: .7rem 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header *, .site-header *::after { transition: none; }
}
@media (max-width: 760px) {
    .card-grid, .card-grid.articles, .gallery, .split, .footer-grid, .map-grid, .form-grid { grid-template-columns: 1fr; }
    .hero { min-height: 0; }
}
