/* ==========================================================================
   Zwyżka Wrocław — Lift Wrocław
   Paleta wyprowadzona z logo: granat #24303c + stalowy niebieski #48789c
   ========================================================================== */

:root {
  /* Granaty / szarości — z ciemnej części logo */
  --ink: #1a232c;
  --ink-2: #24303c;
  --ink-3: #33414f;
  --graphite: #4a5866;
  --muted: #64707e;
  --line: #e1e7ec;
  --paper: #ffffff;
  --paper-2: #f4f7fa;

  /* Niebieskie — z podnośnika w logo */
  --blue: #48789c;
  --blue-dark: #33607f;
  --blue-deep: #275070;
  --blue-bright: #8fc2e8;
  --blue-soft: #eef4f9;

  --danger: #c0392b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(26, 35, 44, .06), 0 2px 8px rgba(26, 35, 44, .05);
  --shadow: 0 4px 12px rgba(26, 35, 44, .08), 0 12px 32px rgba(26, 35, 44, .09);
  --shadow-lg: 0 8px 24px rgba(26, 35, 44, .1), 0 24px 60px rgba(26, 35, 44, .13);

  --wrap: 1180px;
  --nav-h: 78px;

  /* Skala odstępów 4/8 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Minimalny cel dotykowy (Apple HIG 44pt) */
  --tap: 44px;

  /* Skala z-index */
  --z-raised: 10; --z-fab: 90; --z-sticky: 100; --z-skip: 1000;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Widoczny focus dla nawigacji klawiaturą (WCAG 2.4.7) — nigdy nie usuwamy */
:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.pagehead :focus-visible,
.footer :focus-visible,
.ctabar :focus-visible,
.section--dark :focus-visible { outline-color: var(--blue-bright); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink-2);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 750; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* Linki wewnętrzne w treści — wyraźnie zaznaczone (cross-linking) */
.prose a {
  color: var(--blue-dark);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(51, 96, 127, .38);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color .15s, text-decoration-color .15s;
}
.prose a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }

/* ---------------------------------- Skip link --------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------- Topbar ------------------------------ */
.topbar {
  background: var(--ink);
  color: #c2ccd7;
  font-size: .84rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar__list { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar a {
  color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; padding-block: 9px; /* większy obszar dotykowy */
}
.topbar .dot { color: var(--blue-bright); }

/* ---------------------------------- Nav --------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 46px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 650; color: var(--graphite); text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink-2); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--blue-deep); background: var(--blue-soft); }
/* CTA w rozwijanym menu — tylko na mobile (na desktopie jest w .nav__cta) */
.nav__links .btn { display: none; }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--radius-sm); cursor: pointer;
  padding: 0; place-items: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink-2); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform .2s, top .2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: .96rem; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; /* usuwa 300 ms opóźnienia tapnięcia */
  transition: transform .12s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(72, 120, 156, .3); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 6px 20px rgba(51, 96, 127, .38); }

.btn--dark { background: var(--ink-2); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }

.btn--light { background: #fff; color: var(--ink-2); }
.btn--light:hover { background: var(--paper-2); color: var(--ink-2); }

.btn--outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .7); }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }

/* ---------------------------------- Hero -------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 42%;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26, 35, 44, .96) 0%, rgba(26, 35, 44, .9) 42%, rgba(26, 35, 44, .55) 70%, rgba(36, 48, 60, .42) 100%),
    linear-gradient(180deg, rgba(26, 35, 44, .5) 0%, transparent 30%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 100px); }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero h1 em { font-style: normal; color: var(--blue-bright); }
.hero__lead { font-size: clamp(1.03rem, 1.7vw, 1.2rem); color: #d3dce5; max-width: 58ch; margin-bottom: 32px; }
.hero__lead a { color: var(--blue-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero__lead a:hover { color: #fff; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(143, 194, 232, .16); border: 1px solid rgba(143, 194, 232, .38);
  color: var(--blue-bright); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(143, 194, 232, .2);
}
.eyebrow--light { background: var(--blue-soft); border-color: rgba(72, 120, 156, .3); color: var(--blue-deep); }
.eyebrow--light::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(72, 120, 156, .16); }

/* Pasek zaufania pod heroem */
.trust { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(15, 21, 28, .82); position: relative; z-index: 1; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-block: 0; }
.trust__item { padding: 22px 20px 22px 0; }
.trust__k { display: block; font-size: 1.6rem; font-weight: 850; color: var(--blue-bright); letter-spacing: -.03em; line-height: 1.1; }
.trust__v { font-size: .87rem; color: #aab6c3; font-weight: 600; }

/* ---------------------------------- Page header (podstrony) ------------- */
.pagehead {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehead__veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26, 35, 44, .96) 0%, rgba(26, 35, 44, .88) 48%, rgba(26, 35, 44, .6) 100%);
}
.pagehead .wrap { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 76px); }
.pagehead h1 { color: #fff; margin-bottom: .35em; }
.pagehead p { color: #d3dce5; max-width: 68ch; font-size: 1.06rem; margin: 0; }

.crumbs { font-size: .85rem; color: #97a4b2; margin-bottom: 18px; }
.crumbs a { color: #ced7e1; font-weight: 600; }
.crumbs a:hover { color: var(--blue-bright); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* ---------------------------------- Sekcje ------------------------------ */
.section { padding-block: clamp(52px, 7vw, 88px); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #ced7e1; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 74ch; margin-bottom: 44px; }
.section__head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section__head--center { margin-inline: auto; text-align: center; }

.lead { font-size: 1.1rem; color: var(--graphite); }

/* ---------------------------------- Grid / karty ------------------------ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d3dd; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

.card__icon {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep);
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--alt { background: var(--ink-2); color: var(--blue-bright); }

/* ---------------------------------- Zdjęcia ----------------------------- */
.media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }

figure { margin: 0; }
.figcap { font-size: .87rem; color: var(--muted); margin-top: 10px; }

/* Diagram pracy — jasne tło, bo rysunek techniczny jest na białym */
.diagram {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); text-align: center;
}
.diagram img { margin-inline: auto; max-height: 460px; width: auto; }

/* ---------------------------------- Tabela parametrów / cennika --------- */
.tablebox {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.tablebox__head {
  padding: 22px 26px; background: var(--ink-2); color: #fff;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tablebox__head h3 { color: #fff; margin: 0; font-size: 1.22rem; }
.tablebox__badge {
  font-size: .82rem; font-weight: 700; color: #fff; background: var(--blue);
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
/* Zdjęcia maszyn są pionowe (wysunięte ramię), więc pokazujemy je w całości
   zamiast przycinać do poziomej ramki — inaczej gubi się kosz i zasięg. */
.tablebox__media {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2);
  border-bottom: 1px solid var(--line); padding: 14px;
}
.tablebox__media img { width: 100%; height: 100%; object-fit: contain; }
.tablebox__foot { padding: 20px 26px; border-top: 1px solid var(--line); }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%; border-collapse: collapse; font-size: .96rem;
  font-variant-numeric: tabular-nums; /* równe kolumny liczb i cen */
}
thead th {
  text-align: left; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 13px 26px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 26px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-2); }
tbody td:first-child { color: var(--graphite); }
tbody td:last-child { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.t-total { color: var(--blue-deep) !important; }

/* ---------------------------------- Cennik: karty maszyn ---------------- */
.pricecard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.pricecard--featured { border-color: var(--blue); box-shadow: var(--shadow); }
.pricecard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.pricecard__media img { width: 100%; height: 100%; object-fit: cover; }
.pricecard__top { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.pricecard__name { font-size: 1.3rem; font-weight: 800; color: var(--ink-2); margin-bottom: 4px; letter-spacing: -.02em; }
.pricecard__meta { font-size: .89rem; color: var(--muted); font-weight: 600; }
.pricecard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.pricecard__amount {
  font-size: 2.5rem; font-weight: 850; color: var(--ink-2);
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.pricecard__unit { font-size: .93rem; color: var(--muted); font-weight: 650; }
.pricecard__body { padding: 26px 28px; flex: 1; }
.pricecard__body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.pricecard__foot { padding: 0 28px 28px; }

/* Lista z „ptaszkami" */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: .97rem; color: var(--graphite); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23275070' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--onDark li { color: #ced7e1; }
.checks--onDark li::before {
  background: rgba(143, 194, 232, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fc2e8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------------------------------- Galeria ----------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 15px;
  background: linear-gradient(transparent, rgba(15, 21, 28, .92));
  color: #fff; font-size: .93rem; font-weight: 650; line-height: 1.35;
}

.shot--klikalny { cursor: zoom-in; }
/* pojedyncze zdjęcia w treści też można powiększyć */
.media--powieksz { transition: transform .18s, box-shadow .18s, border-color .18s; }
.media--powieksz:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c8d3dd; }
.media--powieksz img { transition: transform .35s; }
.media--powieksz:hover img { transform: scale(1.03); }
.shot--klikalny::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(15, 21, 28, .6) center / 17px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
  opacity: 0; transition: opacity .18s; pointer-events: none;
}
.shot--klikalny:hover::after, .shot--klikalny:focus-visible::after { opacity: 1; }

/* ---------------------------------- Podgląd zdjęcia (galeria) ----------- */
.bez-przewijania { overflow: hidden; }

.lupa {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(11, 15, 20, .93);
  backdrop-filter: blur(4px);
}
.lupa.is-open { display: flex; }

.lupa__ramka {
  margin: 0; max-width: min(1200px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lupa__img {
  max-width: 100%; max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: lupa-wjazd .22s ease-out;
}
@keyframes lupa-wjazd {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.lupa__podpis {
  color: #e7edf3; font-size: .97rem; font-weight: 600; text-align: center;
  max-width: 70ch; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.lupa__zamknij, .lupa__nav {
  position: absolute; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background .15s, border-color .15s, transform .12s;
}
.lupa__zamknij:hover, .lupa__nav:hover {
  background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .6);
}
.lupa__zamknij svg, .lupa__nav svg { width: 24px; height: 24px; }
.lupa__zamknij { top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); }
.lupa__nav--wstecz { left: clamp(10px, 2.5vw, 26px); top: 50%; transform: translateY(-50%); }
.lupa__nav--dalej  { right: clamp(10px, 2.5vw, 26px); top: 50%; transform: translateY(-50%); }
.lupa__nav:hover { transform: translateY(-50%) scale(1.06); }
.lupa__nav[hidden] { display: none; }

@media (max-width: 620px) {
  .lupa__nav { width: 46px; height: 46px; }
  .lupa__nav--wstecz { left: 8px; }
  .lupa__nav--dalej  { right: 8px; }
  .lupa__img { max-height: calc(100dvh - 190px); }
}

/* Media społecznościowe */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: .95rem; color: var(--ink-2); text-decoration: none;
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.social:hover { transform: translateY(-2px); text-decoration: none; color: var(--ink-2); border-color: var(--blue); box-shadow: var(--shadow-sm); }
.social svg { width: 19px; height: 19px; }

/* ---------------------------------- Split (tekst + panel) --------------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.split--rev { grid-template-columns: .85fr 1.15fr; }
.split--even { grid-template-columns: 1fr 1fr; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.panel--dark { background: var(--ink-2); border-color: var(--ink-3); color: #ced7e1; }
.panel--dark h3 { color: #fff; }
.panel--accent { background: var(--blue-soft); border-color: rgba(72, 120, 156, .28); }
.panel--sticky { position: sticky; top: calc(var(--nav-h) + 22px); }

/* ---------------------------------- CTA pas ----------------------------- */
.ctabar {
  background:
    radial-gradient(760px 360px at 12% 0%, rgba(72, 120, 156, .45), transparent 64%),
    linear-gradient(135deg, var(--ink-2), var(--ink));
  color: #fff; border-radius: var(--radius); padding: clamp(34px, 5vw, 54px);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.ctabar h2 { color: #fff; margin-bottom: .4em; }
.ctabar p { color: #ced7e1; margin: 0; max-width: 58ch; }
.ctabar p a { color: var(--blue-bright); font-weight: 700; }
.ctabar__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------- Kontakt ----------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-deep);
}
.contact-row__ico svg { width: 20px; height: 20px; }
.contact-row__k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-row__v { font-size: 1.08rem; font-weight: 700; color: var(--ink-2); }
.contact-row__v a { color: var(--ink-2); }
.contact-row__v a:hover { color: var(--blue-deep); }
.contact-row small { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }

/* ---------------------------------- Formularz --------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: grid; gap: 7px; }
.field > label { font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: .85rem; color: var(--muted); }

.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink-2);
  min-height: var(--tap); padding: 12px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9fabb8; }
.field input:hover, .field textarea:hover { border-color: #bfcad5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72, 120, 156, .22);
}

/* Błąd — komunikat przy polu, kolor + ikona (nie sam kolor) */
.field .err { display: none; font-size: .87rem; font-weight: 650; color: var(--danger); align-items: center; gap: 6px; }
.field .err::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.is-invalid .err { display: flex; }
.field.is-invalid input, .field.is-invalid textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
}

.form__status { font-size: .95rem; font-weight: 650; }
.form__status:empty { display: none; }

/* ---------------------------------- Lista wpisów ------------------------ */
.wpisy-lista { display: grid; gap: 26px; }

.wpis-karta {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.wpis-karta:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c8d3dd; }
.wpis-karta--bez-foto { grid-template-columns: 1fr; }

.wpis-karta__foto { display: block; background: var(--paper-2); overflow: hidden; }
.wpis-karta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.wpis-karta:hover .wpis-karta__foto img { transform: scale(1.04); }

.wpis-karta__tresc { padding: 28px 30px; display: flex; flex-direction: column; }

.wpis-karta__kategoria {
  align-self: flex-start; margin-bottom: 12px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em;
}
.wpis-karta__tytul { font-size: clamp(1.2rem, 2.1vw, 1.5rem); margin-bottom: .3em; }
.wpis-karta__tytul a { color: var(--ink-2); text-decoration: none; }
.wpis-karta__tytul a:hover { color: var(--blue-deep); text-decoration: none; }

.wpis-karta__data { font-size: .87rem; color: var(--muted); font-weight: 600; margin-bottom: .8em; }
.wpis-karta__zajawka { color: var(--graphite); margin-bottom: 1.2em; }

.wpis-karta__wiecej {
  align-self: flex-start; margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap);
  font-weight: 750; color: var(--blue-dark); text-decoration: none;
}
.wpis-karta__wiecej svg { width: 16px; height: 16px; transition: transform .15s; }
.wpis-karta__wiecej:hover { color: var(--blue-deep); text-decoration: none; }
.wpis-karta__wiecej:hover svg { transform: translateX(3px); }

/* ---------------------------------- Strona artykułu --------------------- */
.wrap--waski { max-width: 820px; }

.pagehead .artykul__data { color: var(--blue-bright); font-weight: 650; margin-top: 6px; }

.artykul__foto {
  margin: 0 0 36px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.artykul__foto img { width: 100%; height: auto; }

/* Treść pisana w panelu — style dla znaczników wychodzących z edytora */
.artykul__tresc { font-size: 1.06rem; }
.artykul__tresc > *:first-child { margin-top: 0; }
.artykul__tresc h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 1.8em; }
.artykul__tresc h4 { font-size: 1.1rem; margin-top: 1.6em; }
.artykul__tresc p { margin-bottom: 1.2em; }
.artykul__tresc ul, .artykul__tresc ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.artykul__tresc li { margin-bottom: .5em; }
.artykul__tresc blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px;
  border-left: 4px solid var(--blue); color: var(--graphite); font-style: italic;
}
.artykul__tresc figure { margin: 2em 0; }
.artykul__tresc img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.artykul__tresc figcaption {
  margin-top: 10px; font-size: .89rem; color: var(--muted); text-align: center;
}

/* Sąsiednie wpisy */
.artykul__sasiednie {
  margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.artykul__sasiad {
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.artykul__sasiad:hover {
  text-decoration: none; border-color: var(--blue);
  box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.artykul__sasiad span {
  font-size: .78rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.artykul__sasiad strong { color: var(--ink-2); font-weight: 700; line-height: 1.35; }
.artykul__sasiad--starszy { text-align: right; }

.artykul__powrot {
  grid-column: 1 / -1; justify-self: center; margin-top: 8px;
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-weight: 700; color: var(--blue-dark);
}

/* ---------------------------------- Aktualności ------------------------- */
.empty-state {
  text-align: center; padding: clamp(48px, 8vw, 86px) 26px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.empty-state__ico {
  width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.empty-state__ico svg { width: 30px; height: 30px; }
.empty-state p { color: var(--muted); max-width: 54ch; margin-inline: auto; }

/* ---------------------------------- Stopka ------------------------------ */
.footer { background: var(--ink); color: #a2aebb; font-size: .95rem; }
.footer a { color: #d8e0e8; }
.footer a:hover { color: var(--blue-bright); text-decoration: none; }

.footer__top { padding-block: clamp(44px, 6vw, 66px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 44px; }

.footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 20px; font-weight: 750;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* Linki nawigacyjne w stopce — wygodny obszar kliknięcia */
.footer__list a { display: inline-flex; align-items: center; min-height: 34px; padding-block: 4px; }

/* Logo ma białe tło, więc na ciemnej stopce siada na jasnym kaflu */
.footer__brand {
  display: inline-block; background: #fff; padding: 12px 16px;
  border-radius: 12px; line-height: 0;
}
.footer__logo { height: 42px; width: auto; }
.footer__about { margin-top: 20px; max-width: 38ch; line-height: 1.65; }

.footer__contact { display: grid; gap: 15px; }
.footer__item { display: flex; gap: 12px; align-items: flex-start; }
.footer__item svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue-bright); }
.footer__item strong { display: block; color: #fff; font-size: 1.02rem; font-weight: 700; }
.footer__item span { display: block; line-height: 1.5; }
.footer__item a:not(.footer__phone) { display: inline-flex; align-items: center; min-height: 32px; }

.footer__phone {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
  min-height: var(--tap); padding: 12px 22px; border-radius: 999px;
  background: var(--blue); color: #fff !important;
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  transition: background .15s, transform .12s;
}
.footer__phone:hover { background: var(--blue-dark); color: #fff !important; transform: translateY(-1px); }
.footer__phone svg { width: 17px; height: 17px; color: #fff; }

.footer__hours {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(143, 194, 232, .14); border: 1px solid rgba(143, 194, 232, .36);
  color: var(--blue-bright); font-size: .86rem; font-weight: 700;
}
.footer__hours::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(143, 194, 232, .2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .87rem; color: #7f8d9b;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------------------------------- Pływający telefon (mobile) ---------- */
.callfab {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-fab); display: none;
  align-items: center; gap: 10px; min-height: var(--tap); padding: 14px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 24px rgba(15, 21, 28, .4);
}
.callfab svg { width: 18px; height: 18px; }

/* ---------------------------------- Utils ------------------------------- */
/* Treść tylko dla czytników ekranu */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 36px; }
.mb-3 { margin-bottom: 26px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }

.note {
  padding: 17px 22px; border-radius: var(--radius-sm);
  background: var(--blue-soft); border: 1px solid rgba(72, 120, 156, .3);
  font-size: .96rem; color: var(--ink-2);
}
.note strong { color: var(--ink-2); }

.divider { height: 1px; background: var(--line); border: 0; margin-block: 40px; }

/* ---------------------------------- Responsywność ----------------------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--rev, .split--even { grid-template-columns: 1fr; gap: 32px; }
  .panel--sticky { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .ctabar { grid-template-columns: 1fr; }
  .hero__bg { object-position: 68% 45%; }
  .wpis-karta { grid-template-columns: 1fr; }
  .wpis-karta__foto { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .burger { display: grid; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px 18px 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.02rem; border-radius: var(--radius-sm); }
  .nav__links .btn { display: inline-flex; margin-top: 12px; }

  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .callfab { display: inline-flex; }
  .hero__veil { background: linear-gradient(175deg, rgba(26, 35, 44, .93) 0%, rgba(26, 35, 44, .88) 60%, rgba(26, 35, 44, .8) 100%); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .checks--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__list { gap: 14px; font-size: .8rem; }
  .card, .panel { padding: 24px; }
  thead th, tbody td { padding: 12px 18px; }
  .hero__actions .btn, .ctabar__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .brand__logo { height: 40px; }
  .artykul__sasiednie { grid-template-columns: 1fr; }
  .artykul__sasiad--starszy { text-align: left; }

  /* Tabela wyliczeń zamienia się w karty — brak przewijania w bok */
  .tabela-karty thead { display: none; }
  .tabela-karty,
  .tabela-karty tbody,
  .tabela-karty tr,
  .tabela-karty td { display: block; width: 100%; }
  .tabela-karty tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .tabela-karty tr:last-child { border-bottom: 0; }
  .tabela-karty tr:hover { background: none; }
  .tabela-karty td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 7px 20px; border: 0; text-align: right;
  }
  .tabela-karty td::before {
    content: attr(data-label);
    font-size: .82rem; font-weight: 650; color: var(--muted); text-align: left;
  }
  .tabela-karty td:first-child { font-weight: 750; color: var(--ink-2); }
  .tabela-karty td.t-total { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .shot:hover img { transform: none; }
}

@media print {
  .nav, .topbar, .callfab, .ctabar, .hero__actions { display: none !important; }
  body { font-size: 12pt; }
}
