@charset "UTF-8";
/* ==========================================================================
   HONOR Usługi Stolarskie — arkusz stylów
   Motyw: elewacja zabudowy. Fronty (moduły) oddzielone równą fugą,
   całość osadzona na grafitowym cokole — jak w logo firmy.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-pl.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}

:root {
  /* kolory */
  --white: #ffffff;
  --fuga: #d9dad6;          /* szczelina między frontami */
  --mist: #eff0ed;          /* jasne tło sekcji */
  --ink: #231f20;           /* czerń z logo */
  --ink-2: #565a57;         /* tekst drugorzędny */
  --green: #3a3a3a;         /* zieleń frontów z realizacji gabinetu */
  --green-dark: #3a3a3a;
  --on-green: #d3ded9;
  --line: #cfd1cc;
  --ok: #2d6a4f;
  --err: #9b3b30;

  /* typografia */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 116%;

  /* układ */
  --gap: 5px;
  --max: 1280px;
  --pad: clamp(20px, 4.5vw, 56px);
  --header-h: 76px;
  --radius: 2px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 620;
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
::selection { background: var(--green); color: var(--white); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible, .plinth :focus-visible, .band :focus-visible { outline-color: var(--white); }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- typografia pomocnicza ---------- */
.h1 { font-size: clamp(2.05rem, 1.25rem + 2.9vw, 3.5rem); text-transform: uppercase; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.55rem); text-transform: uppercase;}
.h3 { font-size: 1.3rem; font-weight: 600; font-stretch: 110%; letter-spacing: 0; line-height: 1.25; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.1rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: currentColor;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-stretch: 108%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-transform: uppercase;
}
.btn svg { flex: none; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--line-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--line-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #211c22;
  border-bottom: 1px solid var(--fuga);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; flex: none; }
.brand img { width: 200px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 6px 0;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  color: #fff;
}
.nav__links a:hover { border-bottom-color: var(--fuga); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--green); }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-stretch: 108%; text-decoration: none; white-space: nowrap;
  color: #fff;
}
.nav__phone svg { color: #fff; }
.nav .btn { min-height: 44px; padding: 0 18px; }

.menu-toggle, .header-call { display: none; }

@media (max-width: 1060px) {
  .nav__links { gap: 20px; }
  .nav { gap: 22px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
  .header-tools { display: flex; align-items: center; gap: 8px; }
  .menu-toggle, .header-call {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 14px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
    font-weight: 600; font-size: .95rem; text-decoration: none;
    color: #fff;
  }
  .header-call { width: 44px; padding: 0; color: #fff;; }
  .menu-toggle__bars { width: 16px; height: 10px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .2s ease, top .2s ease;
  }
  .menu-toggle__bars::before { top: 0; }
  .menu-toggle__bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 24px;
    background: #211c22; border-bottom: 1px solid var(--fuga);
    box-shadow: 0 24px 40px -24px rgba(35,31,32,.25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--mist); }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--mist); color: var(--green); font-weight: 600; }
  .nav__phone { padding: 18px 0 14px; font-size: 1.15rem; }
  .nav .btn { min-height: 52px; }
}
@media (min-width: 961px) { .header-tools { display: none; } }

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 8.5vw, 124px); }
.section--mist { background: var(--mist); }
.section-intro { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 4.5vw, 56px); }

/* ==========================================================================
   HERO — elewacja
   ========================================================================== */
.elevation {
  display: grid;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--fuga);
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  grid-template-rows: minmax(max-content, 1.5fr) minmax(200px, 1fr);
  grid-template-areas:
    "panel panel tall top"
    "low-a low-b tall low-c";
  height: clamp(600px, calc(100svh - var(--header-h) - 60px), 880px);
}
.elevation__panel {
  grid-area: panel;
  background: var(--white);
  padding: clamp(28px, 3.4vw, 60px);
  /* lewa krawędź tekstu w linii z logo i treścią strony */
  padding-left: calc(max(var(--pad), (100vw - var(--max)) / 2) - var(--gap));
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
}
.elevation__panel .h1 { max-width: 14em; }
.elevation__panel .lead { max-width: 31em; }
.elevation__panel .actions { margin-top: 8px; }

.front { margin: 0; position: relative; overflow: hidden; background: #c9cac6; }
.front img { width: 100%; height: 100%; object-fit: cover; }
.front--tall  { grid-area: tall; }
.front--top   { grid-area: top; }
.front--low-a { grid-area: low-a; }
.front--low-b { grid-area: low-b; }
.front--low-c { grid-area: low-c; }

.plinth { background: var(--ink); color: var(--white); }
.plinth__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; min-height: 60px; padding-block: 14px;
  font-size: .95rem;
}
.plinth__inner p { margin: 0; text-wrap: pretty; }
.plinth__inner p + p { margin: 0; color: #c9c6c4; }

/* jedno zaplanowane wejście: fronty „zamykają się” po załadowaniu */
@media (prefers-reduced-motion: no-preference) {
  .elevation > * { animation: front-in .7s cubic-bezier(.2,.7,.2,1) both; }
  .elevation > :nth-child(2) { animation-delay: .06s; }
  .elevation > :nth-child(3) { animation-delay: .12s; }
  .elevation > :nth-child(4) { animation-delay: .18s; }
  .elevation > :nth-child(5) { animation-delay: .24s; }
  .elevation > :nth-child(6) { animation-delay: .30s; }
  @keyframes front-in {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
}

@media (max-width: 1100px) {
  .elevation {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "panel panel panel panel"
      "tall top low-a low-b";
    height: auto;
  }
  .front { aspect-ratio: 3 / 4; }
  .front--low-c { display: none; }
}
@media (max-width: 620px) {
  :root { --gap: 4px; }
  .elevation {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "panel panel"
      "tall top"
      "low-a low-b";
  }
  .front { aspect-ratio: 4 / 5; }
  .elevation__panel { gap: 18px; padding: 28px 16px 30px; }
  .elevation__panel .actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Oferta — szuflady
   ========================================================================== */
.drawers {
  list-style: none; margin: 0; padding: var(--gap);
  display: grid; gap: var(--gap);
  background: var(--fuga);
}
.drawer {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 2fr) 9rem;
  align-items: center; gap: 0 clamp(20px, 3vw, 44px);
  padding: 12px clamp(16px, 2.2vw, 28px) 12px 12px;
  background: var(--white);
}
.drawer__img { width: 132px; height: 104px; object-fit: cover; }
.drawer__name a { text-decoration: none; }
.drawer__name a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.drawer__text { color: var(--ink-2); max-width: 44em; }
.drawer__link { white-space: nowrap; font-size: .95rem; justify-self: end; }

@media (max-width: 860px) {
  .drawer {
    grid-template-columns: 96px 1fr;
    grid-template-areas: "img name" "img text" "img link";
    align-items: start; gap: 4px 18px;
    padding: 10px 16px 14px 10px;
  }
  .drawer__img { grid-area: img; width: 96px; height: 120px; }
  .drawer__name { grid-area: name; padding-top: 4px; }
  .drawer__text { grid-area: text; font-size: .97rem; }
  .drawer__link { grid-area: link; margin-top: 6px; justify-self: start; }
}

/* ==========================================================================
   Sekcja dla firm
   ========================================================================== */
.on-dark { background: var(--green); color: var(--white); }
.on-dark .lead, .on-dark .muted { color: var(--on-green); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.feature__main { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature__main img { width: 100%; flex: 1 1 auto; min-height: 0; max-height: 760px; object-fit: cover; }
.feature__main figcaption, .feature__pair figcaption { font-size: .88rem; color: var(--on-green); line-height: 1.4; }
.feature__body { display: flex; flex-direction: column; gap: 22px; }
.feature__body .actions { margin-top: 6px; }
.feature__pair {
  margin-top: auto; padding-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
}
.feature__pair figure { margin: 0; }
.feature__pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.feature__pair figcaption { margin-top: 8px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__main img { aspect-ratio: 4 / 5; flex: none; height: auto; max-height: 640px; }
  .feature__body { order: -1; }
}

/* ==========================================================================
   Proces — miarka
   ========================================================================== */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 36px);
  position: relative; padding-top: 42px;
}
.steps::before {
  /* miarka: kreska co 8 px, dłuższa co 40 px */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  border-top: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) top left / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 8px) top left / 100% 7px no-repeat;
  opacity: .9;
}
.step__no {
  display: block; margin-bottom: 14px;
  font-size: 2.2rem; line-height: 1; font-weight: 500; font-stretch: 125%;
  color: var(--green);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: .98rem; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .steps::before { display: none; }
  .steps { padding-top: 0; }
  .step { border-top: 2px solid var(--ink); padding-top: 18px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
  .step__no { grid-row: span 2; font-size: 1.9rem; }
}

/* ==========================================================================
   Obszar + FAQ
   ========================================================================== */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.split > div { display: grid; gap: 20px; align-content: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.towns {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
.towns li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.towns li:first-child, .towns li:nth-child(2) { border-top: 1px solid var(--line); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 42em; }

/* ==========================================================================
   Pas CTA (cokół)
   ========================================================================== */
.band { background: var(--ink); color: var(--white); padding-block: clamp(52px, 7vw, 92px); }
.band__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 64px; align-items: end;
}
.band .lead { color: #c9c6c4; margin-top: 14px; }
@media (max-width: 860px) { .band__inner { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================================
   Podstrony
   ========================================================================== */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head .h1 { max-width: 16em; }
.page-head .lead { margin-top: 20px; }

/* nawigacja po ofercie */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--white); border-block: 1px solid var(--fuga);
}
.subnav ul {
  display: flex; gap: 6px 28px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 14px 0; white-space: nowrap;
  text-decoration: none; font-weight: 500; font-size: .98rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover, .subnav a.is-current { border-bottom-color: var(--green); }

/* usługa */
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  padding-block: clamp(56px, 7vw, 104px);
}
.service + .service { border-top: 1px solid var(--fuga); }
.service__body { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 80px); }
.service__body .lead { color: var(--ink); }
.service__spec { margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.service__spec dt { font-weight: 600; font-size: .95rem; }
.service__spec dd { margin: 2px 0 14px; color: var(--ink-2); }
.service__links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }

.wall {
  margin: 0; display: grid; gap: var(--gap); padding: var(--gap); background: var(--fuga);
  grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 6 / 5;
}
.wall figure { margin: 0; overflow: hidden; background: #c9cac6; }
.wall figure:first-child { grid-row: span 2; }
.wall img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
  .service__body { position: static; }
  .wall { aspect-ratio: 5 / 5; }
}

/* ==========================================================================
   Galeria
   ========================================================================== */
.filters {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--white); border-block: 1px solid var(--fuga);
}
.filters__list { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filters__list::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px;
  min-height: 42px; padding: 9px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; font-size: .96rem;
}
.filter span { color: var(--ink-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter[aria-pressed="true"] span { color: #bdbab8; }

.gallery {
  list-style: none; margin: 0; padding: var(--gap);
  display: grid; gap: var(--gap); background: var(--fuga);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gallery li[hidden] { display: none; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: #c9cac6;
  aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.gallery button:hover img { opacity: .88; }
.gallery button:focus-visible { outline-offset: -3px; outline: 3px solid var(--white); box-shadow: inset 0 0 0 5px var(--green); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery-wrap { padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 110px); }
.gallery-note { margin-top: 18px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(24, 22, 23, .96); color: var(--white);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(12px, 3vw, 28px);
}
.lightbox__count { font-variant-numeric: tabular-nums; color: #bdbab8; font-size: .95rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__caption { padding: 14px clamp(16px, 3vw, 28px) 22px; text-align: center; color: #e6e3e1; }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); color: var(--white);
}
.lb-btn:hover { border-color: var(--white); }
.lb-btn:focus-visible { outline-color: var(--white); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 600px) {
  .lightbox__stage { padding: 0; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; }
  .lightbox__caption { padding-inline: 72px; }
}

/* ==========================================================================
   Formularze
   ========================================================================== */
.form-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.form-layout--contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .form-layout, .form-layout--contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 40px; }
.form--panel { background: var(--mist); padding: clamp(24px, 3.5vw, 44px); gap: 22px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.fieldset legend {
  float: left; width: 100%; padding: 0 0 14px; margin-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-weight: 620; font-stretch: var(--wide); font-size: 1.3rem; line-height: 1.2;
}
.fieldset legend + * { clear: both; }
.fieldset legend .legend-no { color: var(--green); margin-right: .45em; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--green); }
.field .hint { font-size: .88rem; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 1px solid #b9bbb6; border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
}
.input:hover { border-color: #8f928d; }
.input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  background: var(--white); border: 1px solid #b9bbb6; border-radius: var(--radius);
  font-weight: 500; cursor: pointer;
}
.choice label::before {
  content: ""; flex: none; width: 18px; height: 18px;
  border: 1.5px solid #8f928d; border-radius: 1px; background: var(--white);
}
.choice input:hover + label { border-color: var(--ink); }
.choice input:checked + label { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:checked + label::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choice input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }

.file {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; background: var(--white); border: 1px dashed #8f928d; border-radius: var(--radius);
}
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  pointer-events: none;
}
.file__name { color: var(--ink-2); font-size: .95rem; pointer-events: none; overflow-wrap: anywhere; }
.file:hover { border-color: var(--ink); }
.file:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .93rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }

.form__submit { display: grid; gap: 12px; justify-items: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { display: none; padding: 14px 16px; border-left: 3px solid; font-weight: 500; }
.status.is-visible { display: block; }
.status.is-ok { border-color: var(--ok); background: #e5efe9; color: #1f4d39; }
.status.is-error { border-color: var(--err); background: #f6e7e4; color: #6f2a22; }

.aside { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 28px); }
.aside__block { padding-top: 18px; border-top: 2px solid var(--ink); display: grid; gap: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.big-phone {
  display: inline-block; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 600; font-stretch: 118%; letter-spacing: -0.01em; line-height: 1.1;
  text-decoration: none; color: var(--ink);
}
.big-phone:hover { color: var(--green); }
@media (max-width: 900px) { .aside { position: static; } }

/* dane kontaktowe */
.contact-card { display: grid; gap: 28px; align-content: start; }
.data { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; }
.data dt { color: var(--ink-2); }
.data dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .data { grid-template-columns: 1fr; gap: 2px; } .data dd { margin-bottom: 12px; } }

/* ---------- tekst prawny ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; }
.prose p, .prose li { color: #3b3839; }
.prose p + p { margin-top: .9em; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 22px; padding-block: 80px; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.footer { background: var(--fuga); color: var(--ink); padding: clamp(52px, 6vw, 80px) 0 28px; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 80px);
}
.footer__brand img { width: 186px; margin-bottom: 20px; }
.footer__brand p { max-width: 30em; color: #3f3c3d; }
.footer h2 { font-size: 1rem; font-stretch: 110%; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer address { font-style: normal; }
.footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #bfc1bc;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .88rem; color: #4a4748;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- pasek na telefonie ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--fuga); border-top: 1px solid var(--fuga);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 60px; font-weight: 600; text-decoration: none;
  }
  .callbar a:first-child { background: var(--white); color: var(--ink); }
  .callbar a:last-child { background: var(--green); color: var(--white); }
}

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

@media print {
  .site-header, .callbar, .subnav, .filters, .band, form { display: none !important; }
}
