/* ==========================================================================
   Zakład Pogrzebowy Węgrzyk — arkusz główny
   Kierunek: cyprys, kamień, mosiądz.
   ========================================================================== */

/* --- 1. Tokeny ---------------------------------------------------------- */

:root {
  /* Zieleń cyprysowa — od najgłębszej do lamperii */
  --ink:        #0C1310;
  --forest:     #142019;
  --forest-2:   #1B2A22;
  --moss:       #2C3C33;
  --moss-soft:  rgba(190, 154, 92, .18);

  /* Mosiądz */
  --brass:      #BE9A5C;
  --brass-lit:  #E2C692;
  --brass-deep: #8C6E3A;

  /* Kamień */
  --bone:       #EDEBE3;
  --bone-2:     #E2DFD4;
  --bone-3:     #D6D2C4;

  /* Tekst */
  --on-light:   #18211C;
  --on-light-2: #55625A;
  --on-dark:    #E7E4DA;
  --on-dark-2:  #A3AEA5;

  /* Typografia */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:    "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rytm */
  --shell:   1320px;
  --gutter:  clamp(1.25rem, 4vw, 4.5rem);
  --band:    clamp(4.5rem, 10vw, 9.5rem);
  --hair:    1px solid rgba(190, 154, 92, .28);
  --hair-l:  1px solid rgba(24, 33, 28, .14);

  --ease:    cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--ink); }

/* Ziarno — wyłącznie warstwa fixed, poza przepływem i poza repaintem scrolla */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .026;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 1rem; top: -6rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- 3. Skala typograficzna --------------------------------------------- */

.t-hero {
  font-size: clamp(2.5rem, 1.5rem + 4.1vw, 4.7rem);
  line-height: 1.02;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  letter-spacing: -.028em;
}

.t-section {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  line-height: 1.04;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 0;
  letter-spacing: -.024em;
}

.t-sub {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  line-height: 1.25;
  font-variation-settings: "opsz" 48;
  letter-spacing: -.015em;
}

.t-lead {
  font-family: var(--sans);
  font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--on-light-2);
}
.on-dark .t-lead,
.band-dark .t-lead,
.band-ink .t-lead { color: var(--on-dark-2); }

.t-note {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--on-light-2);
}

.serif-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-variant-numeric: lining-nums;
}

/* --- 4. Powłoka i pasma ------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }
.band-tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.band-dark {
  background: var(--forest);
  color: var(--on-dark);
}
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-bone-2 { background: var(--bone-2); }

.rule-brass {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--brass) 0%, rgba(190,154,92,.35) 34%, transparent 100%);
}

/* --- 5. Nagłówek strony ------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 5.25rem;
}

.masthead.is-stuck {
  background: rgba(12, 19, 16, .88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: rgba(190, 154, 92, .22);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--on-dark);
  line-height: 1;
  flex: 0 0 auto;
}
.wordmark b {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: 1.55rem;
  letter-spacing: .01em;
}
.wordmark span {
  font-size: .63rem;
  letter-spacing: .28em;
  color: var(--brass);
  margin-top: .42rem;
  text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: .9rem;
  color: var(--on-dark);
  padding-block: .4rem;
  opacity: .82;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { opacity: 1; color: var(--brass-lit); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; color: var(--brass-lit); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.masthead-call {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--brass);
  padding: .72rem 1.35rem;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: background .3s var(--ease), transform .12s var(--ease);
}
.masthead-call:hover { background: var(--brass-lit); }
.masthead-call:active { transform: translateY(1px); }

.burger {
  display: none;
  margin-left: auto;
  width: 3rem; height: 3rem;
  background: transparent;
  border: 1px solid rgba(190,154,92,.35);
  color: var(--on-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.burger i {
  display: block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: background .2s var(--ease);
}
.burger i::before, .burger i::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease);
}
.burger i::before { top: -6px; }
.burger i::after  { top: 6px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i::after  { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  display: grid;
  align-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer nav ul { display: grid; gap: .35rem; }
.drawer nav a {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-variation-settings: "opsz" 96;
  color: var(--on-dark);
  text-decoration: none;
  padding-block: .5rem;
  border-bottom: 1px solid rgba(190,154,92,.14);
}
.drawer nav a:hover { color: var(--brass-lit); }
.drawer-foot { margin-top: 2.5rem; display: grid; gap: .75rem; }
.drawer-foot .btn { justify-content: center; }

/* --- 6. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  padding-block: clamp(7.5rem, 12vw, 9.5rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(12,19,16,.93) 0%, rgba(12,19,16,.84) 34%, rgba(12,19,16,.42) 58%, rgba(12,19,16,.06) 82%, rgba(12,19,16,.2) 100%),
    linear-gradient(to top, rgba(12,19,16,.92) 0%, rgba(12,19,16,.22) 42%, rgba(12,19,16,.5) 100%);
}

.hero-grid {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero-body {
  align-self: center;
  max-width: 41rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
  content: "";
  width: clamp(1.5rem, 5vw, 3.25rem);
  height: 1px;
  background: var(--brass);
}

.hero h1 { color: #F2EFE6; margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  color: var(--brass-lit);
}

.hero-lead {
  font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem);
  line-height: 1.6;
  color: #C6CDC4;
  max-width: 44ch;
}

.hero-call {
  border-top: var(--hair);
  padding-top: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 30rem;
}
.hero-call .t-note { color: var(--on-dark-2); }
.hero-phone {
  display: block;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #F2EFE6;
  text-decoration: none;
  margin-top: .5rem;
  transition: color .3s var(--ease);
  font-variant-numeric: lining-nums;
}
.hero-phone:hover { color: var(--brass-lit); }
.hero-phone-2 {
  display: inline-block;
  margin-top: .75rem;
  font-size: 1.05rem;
  color: var(--on-dark-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(190,154,92,.4);
  padding-bottom: 2px;
}
.hero-phone-2:hover { color: var(--brass-lit); }

.hero-foot {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(190,154,92,.18);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: baseline;
  font-size: .88rem;
  color: var(--on-dark-2);
}
.hero-foot strong { color: var(--brass); font-weight: 500; }

/* Wejście — jedyny nie wywołany przez użytkownika ruch na stronie */
.rise { opacity: 0; transform: translateY(1.25rem); animation: rise .95s var(--ease) forwards; }
.rise-1 { animation-delay: .12s; }
.rise-2 { animation-delay: .26s; }
.rise-3 { animation-delay: .4s; }
.rise-4 { animation-delay: .54s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- 7. Układy sekcji --------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.split-head { position: sticky; top: 8rem; }
.split-head h2 { margin-bottom: 1.25rem; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
.feature-flip .feature-media { order: 2; }

.feature-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(21rem, 40vw, 34rem);
  align-self: stretch;
}
.feature-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px 14px rgba(12,19,16,.5);
  background: linear-gradient(200deg, rgba(20,32,25,.16) 0%, rgba(20,32,25,0) 55%);
  pointer-events: none;
}
.feature-body { align-self: center; }
.feature-body h2 { margin-bottom: 1.35rem; }
.feature-body .t-lead { margin-bottom: 1.75rem; }

/* --- 8. Kroki (sekwencja) ----------------------------------------------- */

.steps { border-top: var(--hair-l); }
.band-dark .steps, .band-ink .steps { border-top-color: rgba(190,154,92,.22); }

.step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: var(--hair-l);
  align-items: start;
}
.band-dark .step, .band-ink .step { border-bottom-color: rgba(190,154,92,.22); }

.step-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brass-deep);
  font-variant-numeric: lining-nums;
}
.band-dark .step-num,
.band-ink .step-num { color: var(--brass); }
.step h3 { font-size: 1.5rem; margin-bottom: .55rem; font-variation-settings: "opsz" 48; }
.step p { color: var(--on-light-2); max-width: 62ch; }
.band-dark .step p, .band-ink .step p { color: var(--on-dark-2); }

/* --- 9. Lista zakresu opieki -------------------------------------------- */

.scope { border-top: 1px solid rgba(190,154,92,.22); }
.scope li { border-bottom: 1px solid rgba(190,154,92,.22); }

.scope a, .scope .scope-row {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(.75rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.15rem, 2.4vw, 1.7rem);
  padding-inline: 0;
  text-decoration: none;
  color: inherit;
  transition: padding-inline-start .45s var(--ease), color .3s var(--ease);
}
.scope li:hover a, .scope a:focus-visible { padding-inline-start: 1.1rem; color: var(--brass-lit); }

.scope h3 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  font-variation-settings: "opsz" 72;
  position: relative;
}
.scope p { color: var(--on-dark-2); font-size: .98rem; max-width: 58ch; }

/* --- 10. Cytat ---------------------------------------------------------- */

.epigraph { text-align: left; }
.epigraph blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.7rem, 1rem + 3.1vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #F0ECE1;
  max-width: 22ch;
}
.epigraph .attrib { margin-top: 2rem; color: var(--brass); font-size: .82rem; letter-spacing: .16em; }

/* --- 11. Zasięg --------------------------------------------------------- */

.reach {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  align-items: baseline;
}
.reach li {
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.25rem, .9rem + 1.5vw, 2.1rem);
  color: var(--on-dark);
  line-height: 1.25;
}
.reach li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 1.5rem;
  vertical-align: middle;
  background: var(--brass);
  transform: rotate(45deg);
}
.reach li.is-soft { color: var(--on-dark-2); }

/* --- 12. Kontakt -------------------------------------------------------- */

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
  background: rgba(190,154,92,.25);
  border: 1px solid rgba(190,154,92,.25);
}
.office {
  background: var(--forest);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: .55rem;
  align-content: start;
}
.office h3 {
  font-size: 1.45rem;
  font-variation-settings: "opsz" 48;
  color: #F0ECE1;
  margin-bottom: .3rem;
}
.office p, .office address {
  font-style: normal;
  color: var(--on-dark-2);
  font-size: .98rem;
  line-height: 1.55;
}
.office .kicker {
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--brass);
  margin-bottom: .6rem;
}
.office a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(190,154,92,.4); }
.office a:hover { color: var(--brass-lit); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* --- 13. Przyciski ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.9rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-lit); }
.btn-ghost { border-color: rgba(190,154,92,.5); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--brass); background: rgba(190,154,92,.1); color: var(--brass-lit); }
.btn-ghost-light { border-color: rgba(190,154,92,.65); color: var(--on-light); }
.btn-ghost-light:hover { border-color: var(--brass); background: var(--brass); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-quiet {
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.link-quiet:hover { color: var(--brass-deep); }
.band-dark .link-quiet:hover, .band-ink .link-quiet:hover { color: var(--brass-lit); }

/* --- 14. Nagłówek podstrony --------------------------------------------- */

.pagehead {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  min-height: 62dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(7.5rem, 12vw, 9.5rem);
  overflow: hidden;
  isolation: isolate;
}

.pagehead-bg { position: absolute; inset: 0; z-index: -2; }
.pagehead-bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(12,19,16,.93) 0%, rgba(12,19,16,.82) 38%, rgba(12,19,16,.34) 68%, rgba(12,19,16,.12) 100%),
    linear-gradient(to top, rgba(12,19,16,.95) 0%, rgba(12,19,16,.3) 46%, rgba(12,19,16,.75) 100%);
}

.pagehead-copy { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.pagehead h1 { color: #F2EFE6; max-width: 17ch; }
.pagehead .t-lead { margin-top: 1.35rem; color: #C6CDC4; max-width: 44ch; }

.pagehead-facts {
  border-top: 1px solid rgba(190,154,92,.3);
  background: rgba(12, 19, 16, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pagehead-facts ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.15rem;
  font-size: .9rem;
  color: var(--on-dark-2);
}
.pagehead-facts a {
  color: var(--brass-lit);
  text-decoration: none;
  border-bottom: 1px solid rgba(190,154,92,.45);
  padding-bottom: 2px;
}
.pagehead-facts a:hover { color: #F2EFE6; }
.pagehead-facts .fact-lead { color: var(--brass); }

.crumbs {
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.crumbs a { text-decoration: none; color: var(--on-dark-2); }
.crumbs a:hover { color: var(--brass-lit); }

/* --- 15. Treść tekstowa (podstrony) ------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem); margin-top: 3.25rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; font-variation-settings: "opsz" 48; margin-top: 2.25rem; margin-bottom: .6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--on-light-2); }
.prose p.intro { font-size: 1.2rem; color: var(--on-light); }
.prose ul.dashed { margin: 1rem 0 1.75rem; display: grid; gap: .6rem; }
.prose ul.dashed li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--on-light-2);
}
.prose ul.dashed li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: .7rem; height: 1px;
  background: var(--brass);
}
.prose strong { color: var(--on-light); font-weight: 600; }

.pricing-note {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bone-2);
  border-left: 2px solid var(--brass);
}
.pricing-note p { margin: 0; color: var(--on-light); }

.aside-card {
  background: var(--forest);
  color: var(--on-dark);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 8rem;
}
.aside-card h2 { font-size: 1.5rem; color: #F0ECE1; }
.aside-card p { color: var(--on-dark-2); font-size: .95rem; }
.aside-card .aside-phone {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: 1.9rem;
  color: #F2EFE6;
  text-decoration: none;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}
.aside-card .aside-phone:hover { color: var(--brass-lit); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* --- 16. Stopka --------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(190,154,92,.2);
}
.footer h4 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--brass);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer ul { display: grid; gap: .55rem; }
.footer a { text-decoration: none; transition: color .25s var(--ease); }
.footer a:hover { color: var(--brass-lit); }
.footer .wordmark { color: var(--on-dark); margin-bottom: 1.1rem; }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #808E84;
}

/* --- 17. Pasek pilnego kontaktu (mobile) -------------------------------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1rem;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 -12px 30px -12px rgba(12,19,16,.5);
}
.callbar:active { background: var(--brass-lit); }

/* --- 18. Responsywność --------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-body { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav, .masthead-call { display: none; }
  .burger { display: inline-flex; }
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature-flip .feature-media { order: 0; }
  .scope a, .scope .scope-row { grid-template-columns: 1fr; gap: .5rem; }
  .callbar { display: flex; }
  body { padding-bottom: 3.5rem; }
  .hero { min-height: auto; padding-block: 7.5rem 3rem; }
  /* Waski kadr: przesuwamy sie na swiece, zeby hero nie byl sama czernia,
     i dokladamy pionowy cien, bo tekst idzie wtedy przez srodek kadru. */
  .hero-media img { object-position: 76% 48%; }
  .hero-media::after {
    background:
      linear-gradient(to right, rgba(12,19,16,.86) 0%, rgba(12,19,16,.66) 55%, rgba(12,19,16,.5) 100%),
      linear-gradient(to top, rgba(12,19,16,.94) 8%, rgba(12,19,16,.6) 48%, rgba(12,19,16,.82) 100%);
  }
  .pagehead { min-height: auto; padding-top: 7.5rem; }
  .pagehead-copy { padding-bottom: 2.25rem; }
  .pagehead-bg img { object-position: 62% 50%; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .step-num { font-size: 1.9rem; }
  .offices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .masthead, .callbar, .drawer, .hero-media { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --- 19. Korekty rytmu -------------------------------------------------- */

.pagehead + .band,
.pagehead + .band-tight { padding-top: clamp(3rem, 6vw, 5rem); }

.band-bone-2 + .footer { margin-top: 0; }

/* Ostatnia sekcja przed stopką nie potrzebuje pełnego pasma na dole. */
.band:last-of-type { padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }

/* --- 20. Ciąg sekcji obrazowych ----------------------------------------- */

.band-feature { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }
.band-feature.pad-top-lg    { padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.band-feature.pad-bottom-lg { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }

/* --- 21. Kolumna boczna podstron ---------------------------------------- */

.aside-col {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  position: sticky;
  top: 8rem;
}
.aside-col .aside-card { position: static; top: auto; }

.aside-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.aside-media img { width: 100%; height: 100%; object-fit: cover; }
.aside-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px 8px rgba(12,19,16,.45);
  pointer-events: none;
}
.aside-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem .95rem;
  background: linear-gradient(to top, rgba(12,19,16,.9), transparent);
  color: var(--on-dark);
  font-size: .82rem;
  letter-spacing: .01em;
}

@media (max-width: 1080px) {
  .aside-col { position: static; }
  .aside-media { aspect-ratio: 16 / 10; }
}

/* --- 22. Galeria -------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-top: var(--hair-l);
  padding-top: 1.5rem;
}

.filters button {
  font: inherit;
  font-size: .9rem;
  color: var(--on-light-2);
  background: transparent;
  border: 1px solid rgba(24,33,28,.16);
  padding: .55rem 1.15rem;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filters button:hover { border-color: var(--brass); color: var(--on-light); }
.filters button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--bone);
}
.filters .count {
  margin-left: auto;
  align-self: center;
  font-size: .85rem;
  color: var(--on-light-2);
}

.gallery {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery figure {
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  break-inside: avoid;
  position: relative;
}
.gallery figure[hidden] { display: none; }

.gallery button.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background: var(--bone-2);
}
.gallery button.shot img {
  width: 100%;
  height: auto;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery button.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px 6px rgba(12,19,16,.28);
  pointer-events: none;
}
.gallery button.shot:hover img,
.gallery button.shot:focus-visible img { transform: scale(1.035); }

.gallery figcaption {
  padding: .85rem .1rem 0;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--on-light-2);
}
.gallery figcaption b {
  display: block;
  font-weight: 500;
  color: var(--on-light);
}

.gallery-empty {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: var(--hair-l);
  color: var(--on-light-2);
}
.gallery-empty[hidden] { display: none; }

/* Podgląd pełnoekranowy */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(9, 14, 12, .985);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--on-dark-2);
  font-size: .85rem;
}
.lightbox-bar .pos { letter-spacing: .1em; color: var(--brass); }

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-block: 1rem;
}
.lightbox-stage img {
  max-width: min(100%, 78rem);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  color: var(--on-dark-2);
  font-size: .92rem;
  border-top: 1px solid rgba(190,154,92,.25);
  padding-top: 1rem;
}
.lightbox-foot b { color: var(--on-dark); font-weight: 500; }

.lightbox button {
  font: inherit;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid rgba(190,154,92,.4);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.lightbox button:hover { border-color: var(--brass); background: rgba(190,154,92,.12); color: var(--brass-lit); }
.lightbox .nav-side { margin-left: auto; display: flex; gap: .5rem; }

@media (max-width: 1080px) { .gallery { columns: 2; } }
@media (max-width: 620px)  { .gallery { columns: 1; } .filters .count { margin-left: 0; width: 100%; } }
