/* =====================================================================
   Styl strony. Motyw: obieg instalacji – czerwone zasilanie, niebieski powrót.
   Kolory zmienisz w jednym miejscu: sekcja :root poniżej.
   ===================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url(../fonts/bricolage-grotesque-latin.woff2) format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url(../fonts/public-sans-latin.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url(../fonts/public-sans-latin-ext.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #15283a;        /* granat – tło nagłówków, tekst */
  --ink-2: #213a52;
  --ink-3: #0e1c29;      /* stopka */
  --text: #1c2833;
  --muted: #56677a;
  --line: #d3dce4;
  --steel: #e8edf1;      /* tło sekcji */
  --paper: #ffffff;
  --hot: #c8322b;        /* zasilanie – akcja główna */
  --hot-dk: #a5271f;
  --hot-lt: #fbeceb;
  --cold: #2b6cb0;       /* powrót – linki, fokus */
  --cold-dk: #1f5592;
  --cold-lt: #e6eff8;
  --on-ink: #e9eff5;
  --on-ink-muted: #a9bccd;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --section: clamp(56px, 8vw, 104px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--cold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--cold-dk); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.55rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------------ przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.2em;
  border: 2px solid transparent; border-radius: var(--r);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 56px; padding: .85em 1.45em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--hot); color: #fff; }
.btn-primary:hover { background: var(--hot-dk); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--steel); color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ------------------------------------------------------------------ nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: block; flex: none; border-radius: 4px; }
.logo img { width: 168px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink); font-weight: 600; cursor: pointer;
}
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 550;
}
.main-nav a:not(.btn):hover { color: var(--hot); }
.main-nav a[aria-current="page"] { color: var(--hot); }

@media (max-width: 959px) {
  .main-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px -18px rgba(21,40,58,.35);
  }
  .main-nav li + li { border-top: 1px solid var(--steel); }
  .main-nav .btn-call { margin-top: 12px; width: 100%; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 28px; }
  .main-nav ul { display: flex; gap: 26px; }
  .main-nav a:not(.btn) { padding: 8px 0; position: relative; }
  .main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--hot);
  }
  .logo img { width: 190px; }
}
.btn-call { background: var(--ink); color: #fff; min-height: 46px; }
.btn-call:hover { background: var(--ink-2); color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px);
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: var(--on-ink-muted); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero .btn-ghost { color: #fff; border-color: rgba(233,239,245,.45); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; color: var(--on-ink); }
.hero-facts .icon { color: #7fb0e3; }
@media (min-width: 700px) { .hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; } .hero-facts li { white-space: nowrap; } }

.manifold { margin: 0; max-width: 520px; justify-self: center; width: 100%; }
@media (max-width: 959px) { .manifold { max-width: 400px; } }
@media (max-width: 699px) {
  .manifold { display: none; }
  .hero-actions .btn { width: 100%; }
}
.manifold svg { width: 100%; height: auto; overflow: visible; }
.m-loop { fill: none; stroke: #2c4762; stroke-width: 9; stroke-linecap: round; }
.m-out { fill: none; stroke-width: 9; stroke-linecap: round; }
.m-hot { stroke: var(--hot); }
.m-cold { stroke: var(--cold); }
.m-bar-hot { fill: var(--hot); }
.m-bar-cold { fill: var(--cold); }
.m-flow { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; }
.m-valves circle, .m-valves rect { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.m-gauges circle { fill: var(--ink-2); stroke: var(--on-ink-muted); stroke-width: 3; }
.m-gauges path { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.m-legend { display: flex; justify-content: center; gap: 28px; margin-top: 18px; font-size: .92rem; color: var(--on-ink-muted); }
.m-key { display: inline-flex; align-items: center; gap: 10px; }
.m-key::before { content: ""; width: 22px; height: 8px; border-radius: 4px; background: var(--hot); }
.m-key-cold::before { background: var(--cold); }
@media (prefers-reduced-motion: no-preference) {
  .m-flow-hot { animation: flow 1.6s linear infinite; }
  .m-flow-cold { animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -36; } }
}

/* ------------------------------------------------------------------ sekcje */
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { max-width: 66ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.section-head-row h2 { margin: 0; }
.link-more { font-weight: 600; }

/* usługi – grupy oznaczone kolorem obiegu (rura po lewej stronie) */
.service-group { position: relative; padding-left: 26px; }
.service-group + .service-group { margin-top: clamp(40px, 5vw, 64px); }
.service-group::before {
  content: ""; position: absolute; left: 0; top: .35em; bottom: 0; width: 6px; border-radius: 3px; background: var(--hot);
}
.obieg-powrot::before { background: var(--cold); }
.group-title { font-size: 1.05rem; font-weight: 650; color: var(--hot); letter-spacing: .01em; margin-bottom: 18px; }
.obieg-powrot .group-title { color: var(--cold); }
.service-list { display: grid; gap: 0 48px; }
@media (min-width: 820px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.service h4 { margin-bottom: .3em; }
.service p { color: var(--muted); margin-bottom: .7em; }
.service-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot-lt); color: var(--hot);
}
.obieg-powrot .service-icon { background: var(--cold-lt); color: var(--cold); }
.service-points { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.service-points li {
  font-size: .9rem; padding: 3px 10px; border-radius: 999px; background: var(--steel); color: var(--ink-2);
}

/* marki i uprawnienia */
.brands { background: var(--steel); }
.brands-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .brands-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; } }
.brands p { max-width: 62ch; }
.brand-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.brand-list li {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  color: var(--ink); letter-spacing: -0.02em;
}
.certs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.certs li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.certs .icon { color: var(--cold); margin-top: .2em; }

/* etapy – to faktyczna kolejność, więc numeracja */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: krok; display: grid; gap: 0; }
.steps li { counter-increment: krok; position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(krok); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.1rem var(--display); color: #fff; background: var(--ink);
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 0; width: 4px; background: var(--line); border-radius: 2px; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 52px; right: -24px; top: 20px; bottom: auto; width: auto; height: 4px; }
}

/* realizacje – siatka */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-link { display: block; color: inherit; text-decoration: none; border-radius: var(--r); }
.work-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--steel); }
.work-img picture, .work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-text { display: block; padding-top: 14px; }
.work-title { display: block; font: 650 1.12rem/1.3 var(--display); color: var(--ink); }
.work-meta { display: block; margin-top: 4px; font-size: .95rem; color: var(--muted); }
.work-link:hover .work-title { color: var(--hot); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.latest { background: var(--paper); }
.home .latest { border-top: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 550;
}
.filters a span { font-size: .85rem; color: var(--muted); }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters a[aria-current="page"] span { color: var(--on-ink-muted); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { padding: 40px; border: 2px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--muted); }

/* podstrona realizacji */
.work-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 22px 0 0; }
.work-facts div { min-width: 0; }
.work-facts dt { font-size: .85rem; color: var(--muted); }
.work-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.work-body { display: grid; gap: 32px; }
.work-desc { max-width: 68ch; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--steel); cursor: zoom-in; }
.photo picture, .photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* strony podrzędne */
.page-head { background: var(--steel); padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 24ch; margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #9aa9b7; }
.breadcrumbs a { color: var(--muted); }
.page-status { padding: clamp(48px, 8vw, 110px) 0; }
.page-status .hero-actions { margin-top: 20px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* FAQ */
.faq { background: var(--steel); }
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-list details { background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.faq-list details + details { margin-top: 10px; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font: 650 1.08rem/1.35 var(--display); color: var(--ink); border-radius: var(--r);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--hot), var(--hot)) center / 14px 2.5px no-repeat, linear-gradient(var(--hot), var(--hot)) center / 2.5px 14px no-repeat;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* CTA */
.cta { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 6vw, 80px) 0; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-ink-muted); margin: 0; max-width: 56ch; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ kontakt */
.contact-grid { display: grid; gap: 40px; align-items: stretch; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact-mail {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 18px 22px; border-radius: var(--r-lg);
  border: 2px solid var(--line); color: var(--ink); text-decoration: none;
}
.contact-mail:hover { border-color: var(--ink); color: var(--ink); }
.contact-mail .icon { width: 28px; height: 28px; color: var(--cold); }
.contact-mail small { display: block; font-size: .9rem; color: var(--muted); }
.contact-mail span { font: 650 clamp(1.05rem, .95rem + .5vw, 1.25rem)/1.3 var(--display); overflow-wrap: anywhere; }
.contact-note { font-size: .88rem; color: var(--muted); margin: 0; }
.contact-map { display: flex; flex-direction: column; }
.contact-map .map { flex: 1 0 auto; }
.contact-phone {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--hot); color: #fff; text-decoration: none;
}
.contact-phone:hover { background: var(--hot-dk); color: #fff; }
.contact-phone .icon { width: 32px; height: 32px; }
.contact-phone small { display: block; font-size: .9rem; font-weight: 600; color: #fff; }
.contact-phone span { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 1.8rem)/1.2 var(--display); }
.contact-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--cold); margin-top: 3px; }
.contact-list small { display: block; font-size: .88rem; color: var(--muted); }
.contact-legal { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

.map { position: relative; height: 380px; border-radius: var(--r-lg); overflow: hidden; background: var(--steel); border: 1px solid var(--line); }
@media (min-width: 960px) { .map { height: auto; min-height: 460px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 10px; }
.map-consent > .icon { width: 36px; height: 36px; color: var(--hot); }
.map-address { font: 650 1.2rem var(--display); color: var(--ink); margin: 0; }
.map-note { font-size: .85rem; color: var(--muted); max-width: 52ch; margin: 6px 0 0; }
.map-links { margin-top: 16px; }

/* ------------------------------------------------------------------ stopka */
.site-footer { background: var(--ink-3); color: var(--on-ink-muted); padding: 56px 0 24px; font-size: .96rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 48px; } }
.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-h { font: 650 1rem var(--display); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li, .footer-list a { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: .25em; color: #7fb0e3; }
.footer-links li { display: block; }
.footer-legal { margin: 0; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid #22374b; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* pasek „Zadzwoń / Napisz” na telefonach */
.call-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 72px; }
  .call-bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(21,40,58,.35);
  }
  .call-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
    border-radius: var(--r); font-weight: 700; text-decoration: none; color: var(--ink); border: 2px solid var(--line);
  }
  .call-bar-phone { background: var(--hot); border-color: var(--hot); color: #fff; }
  .call-bar-phone:hover { color: #fff; }
  .page-contact .call-bar { display: none; }
  .page-contact { padding-bottom: 0; }
}

/* ------------------------------------------------------------------ podgląd zdjęć */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #080e14; color: #fff;
}
.lightbox::backdrop { background: rgba(8, 14, 20, .94); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 64px 12px 16px; }
.lb-media { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lb-media picture { max-width: 100%; max-height: 100%; display: contents; }
.lb-media img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { padding: 14px 8px 0; text-align: center; max-width: 70ch; color: #dfe7ee; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff;
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count { position: absolute; top: 22px; left: 20px; margin: 0; font-size: .95rem; color: #c3d0dc; }
@media (max-width: 699px) {
  .lightbox figure { padding-bottom: 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .call-bar, .cta, .map, .map-links, .site-footer .footer-links { display: none !important; }
  body { padding: 0; }
}
