/* Acheron — style strony głównej
   Grafit, złoto i krem; Cormorant Garamond do nagłówków, Manrope do tekstu.
   Ruch przy przewijaniu: assets/js/fx.js (klasa .fx na <html>, tylko z JS i bez „ogranicz ruch”). */

:root {
  --night: #0D1113;
  --night-2: #12171A;
  --night-3: #090C0E;
  --bone: #ECE7DF;
  --mist: #ABB2B4;
  --mist-2: #C6CCCD;
  --gold: #C8B88B;
  --gold-hi: #E9D6AE;
  --gold-dim: rgba(200, 184, 139, .38);
  --cream: #EEE9E1;
  --cream-2: #E3DDD2;
  --ink-dark: #15191B;
  --brown: #74470F;

  /* tokeny dla warstwy ruchu (assets/motion) i oferty (assets/moments) */
  --bg: var(--night);
  --ink: var(--bone);
  --muted: var(--mist);
  --accent: var(--gold);
  --action: var(--gold);
  --action-ink: #1A1208;
  --line: rgba(236, 231, 223, .12);
  --line-strong: rgba(236, 231, 223, .28);
  --card: var(--night-2);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-text: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.005em;
  --t-lead: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --gutter: 28px;
  --gut: clamp(20px, 5vw, 72px);
  --nav: 84px;
  --r: 6px;
  --r-btn: 999px;
  --r-md: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); scrollbar-color: #3A4245 var(--night); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
/* ziarno: bardzo delikatna faktura papieru na całej stronie */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
b { font-weight: 600; }
::selection { background: var(--gold); color: var(--ink-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1280px, calc(100% - 2 * var(--gut))); margin: 0 auto; }

h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: var(--display-tracking); text-wrap: balance; }
h1 { font-size: clamp(52px, 6.4vw, 92px); line-height: .96; letter-spacing: -.012em; }
h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.03; }
.sub { font-size: 17px; line-height: 1.65; color: var(--mist-2); max-width: 54ch; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.65; color: var(--mist-2); max-width: 50ch; text-wrap: pretty; }

.skip { position: absolute; left: 12px; top: 12px; z-index: 70; padding: 10px 16px; background: var(--gold); color: var(--ink-dark); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- przyciski i linki ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  min-height: 56px; padding: 0 30px; border-radius: var(--r-btn);
  font: 600 16px/1 var(--font-text); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--action); color: var(--action-ink); font-weight: 700; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
/* połysk przechodzący przez złoty przycisk po najechaniu */
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 248, 230, .55) 50%, transparent 70%);
  translate: -120% 0; transition: translate .9s var(--slow);
}
@media (hover: hover) { .btn--primary:hover::after { translate: 120% 0; } }
.btn--secondary:hover { border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
  justify-self: start; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .45s var(--slow);
}
.more .ic { color: var(--accent); width: 16px; height: 16px; transition: transform .3s var(--slow); }
.more:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); }
.more:hover .ic { transform: translateX(4px); }

/* ornament: dwie linie i romb */
.orn { display: flex; align-items: center; gap: 18px; color: var(--gold); margin-bottom: 56px; }
.orn span { flex: 1; height: 1px; background: var(--gold-dim); transform-origin: right; }
.orn span:last-child { transform-origin: left; }
.orn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--nav);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), translate .5s var(--slow);
}
.nav.is-solid, .nav.is-open { background: rgba(13, 17, 19, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.is-hidden:not(.is-open):not(:focus-within) { translate: 0 -101%; }
.nav__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav__logo img { height: 56px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; text-decoration: none; color: var(--mist-2); transition: color .2s;
}
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--slow); }
.nav__links a:hover, .nav__links a.is-here { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scaleX(1); transform-origin: left; }
.nav__tel {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding-left: 28px; border-left: 1px solid var(--line-strong);
  font-weight: 600; font-size: 17px; letter-spacing: .03em; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nav__tel span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--gold); }
.nav__tel:hover { color: var(--gold-hi); }
.nav__toggle { display: none; width: 46px; height: 46px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.nav__toggle .ic { width: 20px; height: 20px; }
.fx-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.nav.is-solid .fx-progress { opacity: .9; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: -4% -3%; z-index: -3; background: var(--night); }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%;
  filter: blur(5px) saturate(.8) brightness(.62); transform: scale(1.08);
}
.hero::before { /* przyciemnienie od lewej i od dołu */
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,17,19,.95) 0%, rgba(13,17,19,.8) 34%, rgba(13,17,19,.34) 70%, rgba(13,17,19,.22) 100%),
    linear-gradient(180deg, rgba(13,17,19,.75) 0%, rgba(13,17,19,0) 24%, rgba(13,17,19,0) 55%, rgba(13,17,19,.9) 100%);
}
.hero__glow { /* ciepłe światło, które powoli podąża za kursorem */
  position: absolute; z-index: -1; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none;
  translate: var(--gx, 70vw) var(--gy, 40vh);
  background: radial-gradient(closest-side, rgba(233, 196, 128, .16), rgba(233, 196, 128, .05) 55%, transparent);
  mix-blend-mode: screen;
}
.hero__motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding: calc(var(--nav) + 32px) 0 clamp(32px, 4.5vh, 72px); }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { max-width: 15.5ch; }
.hero__brand { display: flex; align-items: center; gap: 24px; }
.hero__brand img { height: 104px; width: auto; flex: none; }
.hero__brand span { padding-left: 24px; border-left: 1px solid var(--gold-dim); font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--mist-2); }
.hero__brand b { display: block; font-weight: 500; font-size: 1.3em; letter-spacing: .04em; color: var(--gold); }
.hero__side {
  writing-mode: vertical-rl; transform: rotate(180deg); align-self: end;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}
.hero__side::after { content: ''; width: 1px; height: 96px; background: linear-gradient(var(--gold), transparent); }

/* dyżur: pas na dole hero */
.duty { position: relative; border-top: 1px solid var(--gold-dim); background: rgba(9, 12, 14, .62); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }
.duty__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.duty__in > * { padding: 22px 28px; border-left: 1px solid var(--line); }
.duty__in > :first-child { padding-left: 0; border-left: 0; }
.duty__head { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 14px; color: var(--mist); }
.duty__head b { color: var(--gold); font-weight: 600; font-size: 15px; }
.duty__row { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-decoration: none; transition: background-color .35s var(--ease); }
.duty__row::after { content: ''; position: absolute; left: 28px; right: 28px; bottom: 14px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--slow); }
.duty__row:hover { background: rgba(200, 184, 139, .07); }
.duty__row:hover::after { transform: scaleX(1); }
.duty__where { font-size: 14px; color: var(--mist); }
.duty__where b { color: var(--bone); margin-right: 6px; }
.duty__num { font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; letter-spacing: .025em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duty__land { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 14px; color: var(--mist); }
.duty__land a { color: var(--mist-2); text-decoration: none; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duty__land a:hover { color: var(--bone); text-decoration: underline; }

/* ---------- sekcje ---------- */
.sec { position: relative; padding: clamp(96px, 13vh, 150px) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; margin-bottom: 64px; }
.sec__head h2 { grid-row: 1 / span 2; }

/* przewodnik */
.guide { background: var(--night-2); border-bottom: 1px solid var(--line); }
.guide__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.guide__side { position: sticky; top: calc(var(--nav) + 40px); display: flex; flex-direction: column; gap: 24px; }
.seg { display: inline-flex; align-self: flex-start; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.seg__btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--mist-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg__btn:hover { color: var(--bone); }
.seg__btn.is-active { background: var(--bone); color: var(--ink-dark); }
.guide__note { font-size: 15px; color: var(--mist); max-width: 46ch; padding-top: 24px; border-top: 1px solid var(--line); }
.guide__note a { color: var(--bone); font-weight: 600; white-space: nowrap; }
.guide__steps { position: relative; }
.guide__rail { position: absolute; left: 35px; top: 34px; bottom: 34px; width: 1px; background: var(--line); }
.guide__fill { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold)); transform-origin: top; transform: scaleY(var(--g, 1)); }
.steps li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding: 30px 0 38px; }
.steps__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--night-2);
  font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--mist);
  transition: color .6s var(--ease), border-color .6s var(--ease), background-color .6s var(--ease), box-shadow .8s var(--ease);
}
.steps li.is-us .steps__n { color: var(--gold); border-color: var(--gold-dim); }
.steps li.is-lit .steps__n { color: var(--ink-dark); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(200, 184, 139, .08), 0 12px 28px -10px rgba(0, 0, 0, .7); }
.steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.12; margin: 14px 0 10px; }
.steps p { font-size: 16.5px; color: var(--mist-2); max-width: 54ch; }

/* nekrologi: najbliższa uroczystość i lista kolejnych */
.obit {
  position: relative; display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5fr); gap: 72px; align-items: center;
  padding: 40px; border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(700px circle at var(--mx, 75%) var(--my, 0%), rgba(200, 184, 139, .08), transparent 60%), var(--night-2);
}
.obit::before { /* cienka wewnętrzna linia, jak w passe-partout */
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(200, 184, 139, .12); border-radius: 3px; pointer-events: none;
}
.obit__kl { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.obit__mat { display: block; padding: 22px; background: var(--cream); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(116, 71, 15, .28), 0 40px 70px -40px rgba(0, 0, 0, .9); }
.obit__mat img { width: 100%; aspect-ratio: 1600 / 1117; object-fit: cover; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .55); transition: transform 1s var(--slow); }
.obit__kl:hover .obit__mat img { transform: scale(1.02); }
.obit__c { position: absolute; z-index: 1; width: 22px; height: 22px; fill: var(--brown); stroke: var(--brown); stroke-width: 1; pointer-events: none; opacity: .7; transition: translate .6s var(--slow); }
.obit__c path { fill: none; }
.obit__c circle { stroke: none; }
.obit__c--tl { left: 6px; top: 6px; }
.obit__c--tr { right: 6px; top: 6px; transform: scaleX(-1); }
.obit__c--bl { left: 6px; bottom: 6px; transform: scaleY(-1); }
.obit__c--br { right: 6px; bottom: 6px; transform: scale(-1); }
.obit__kl:hover .obit__c--tl { translate: 3px 3px; }
.obit__kl:hover .obit__c--tr { translate: -3px 3px; }
.obit__kl:hover .obit__c--bl { translate: 3px -3px; }
.obit__kl:hover .obit__c--br { translate: -3px -3px; }
.obit__zoom {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--night); border: 1px solid var(--gold-dim); font-size: 13px; font-weight: 600; color: var(--bone);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.obit__zoom .ic { width: 15px; height: 15px; color: var(--gold); }
.obit__kl:hover .obit__zoom { background: var(--gold); color: var(--ink-dark); border-color: var(--gold); }
.obit__kl:hover .obit__zoom .ic { color: var(--ink-dark); }

.obit__body { display: flex; flex-direction: column; }
.obit__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 3.6vw, 54px); line-height: 1.02; }
.obit__name span, .orow__who h3 span { font-style: italic; font-weight: 400; font-size: max(14px, .62em); color: var(--gold); margin-right: 4px; }
.obit__meta { margin-top: 10px; font-size: 15px; color: var(--mist); }
.obit__day { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; margin-top: 32px; padding: 28px 0; border-block: 1px solid var(--line); }
.obit__date { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding-right: 32px; border-right: 1px solid var(--gold-dim); text-align: center; }
.obit__date b { font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: .9; color: var(--gold-hi); }
.obit__date span { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bone); white-space: nowrap; }
.obit__date small { font-size: 13px; color: var(--mist); }
.obit__plan { position: relative; display: flex; flex-direction: column; gap: 16px; }
.obit__plan::before { content: ''; position: absolute; left: 72px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.obit__plan li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: baseline; }
.obit__plan li::before { content: ''; position: absolute; left: 69px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--night-2); border: 1px solid var(--gold); }
.obit__plan li:nth-child(2)::before { background: var(--gold); }
.obit__plan time { font-size: 15px; font-weight: 700; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.obit__plan div { display: flex; flex-direction: column; }
.obit__plan b { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.obit__plan span { font-size: 14.5px; color: var(--mist-2); }
.obit__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.obit__act .candle { margin: 0; }
.obit__ics {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.obit__ics .ic { width: 16px; height: 16px; color: var(--gold); }
.obit__ics:hover { border-color: var(--gold); background: rgba(200, 184, 139, .06); }
.obit__ics.is-done { border-color: var(--gold); color: var(--gold-hi); }

.orows { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.rites__empty { max-width: 60ch; padding: 32px 0; border-top: 1px solid var(--line-strong); color: var(--mist-2); font-size: var(--t-lead); text-wrap: pretty; }
.orow {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 4fr) minmax(0, 5fr) auto; gap: 32px; align-items: center;
  padding: 26px 20px; border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease);
}
.orow::before { content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 1px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--slow); }
@media (hover: hover) { .orow:hover { background: rgba(200, 184, 139, .035); } .orow:hover::before { transform: none; } }
.orow__date { display: flex; flex-direction: column; align-items: center; padding-right: 28px; border-right: 1px solid var(--line); text-align: center; line-height: 1.1; }
.orow__date b { font-family: var(--font-display); font-weight: 500; font-size: 46px; line-height: .95; color: var(--gold-hi); }
.orow__date span { font-size: 13px; font-weight: 600; color: var(--bone); }
.orow__date small { font-size: 12px; color: var(--mist); }
.orow__who h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.1; }
.orow__who p { margin-top: 4px; font-size: 14px; color: var(--mist); }
.orow__where { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.orow__where div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
.orow__where dt { color: var(--mist); font-variant-numeric: tabular-nums; }
.orow__where div:first-child dt { color: var(--bone); font-weight: 700; }
.orow__act { display: flex; align-items: center; gap: 12px; }
.orow__act .candle { margin: 0; }
.candle--sm { padding: 0 16px; }
.orow__kl {
  position: relative; width: 86px; height: 60px; padding: 4px; border: 0; border-radius: 3px; background: var(--cream); cursor: zoom-in; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(116, 71, 15, .3);
}
.orow__kl img { width: 100%; height: 100%; object-fit: cover; }
.orow__kl .ic { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(13, 17, 19, .85); color: var(--bone); opacity: 0; scale: .8; transition: opacity .3s var(--ease), scale .4s var(--slow); }
.orow__kl:hover .ic, .orow__kl:focus-visible .ic { opacity: 1; scale: 1; }

.candle {
  position: relative; align-self: flex-start; margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(200, 184, 139, .4); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .8s var(--ease);
}
.candle:hover { border-color: var(--gold); }
.candle__svg { width: 12px; height: 18px; overflow: visible; }
.candle__svg path { fill: var(--mist); transition: fill .4s; }
.candle__svg .flame__core { fill: transparent; }
.candle__svg rect { fill: var(--bone); opacity: .3; }
.candle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: rgba(200, 184, 139, .08); box-shadow: 0 0 34px -6px rgba(233, 196, 128, .45); }
.candle[aria-pressed="true"] .candle__svg path { fill: var(--gold); }
.candle[aria-pressed="true"] .flame__core { fill: #FFF1D6; }
.candle[aria-pressed="true"] .flame { transform-origin: 50% 90%; animation: flick 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 214, 150, .9)); }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-1deg); } 30% { transform: scale(1.04, .96) rotate(1.4deg); } 60% { transform: scale(.97, 1.05) rotate(-.6deg); } }

.kl { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 64px var(--gut); border: 0; background: rgba(8, 10, 12, .96); color: var(--bone); overflow: auto; }
.kl[open] { animation: kl-in .5s var(--slow); }
.kl[open] img { animation: kl-img .7s var(--slow); }
@keyframes kl-in { from { opacity: 0; } }
@keyframes kl-img { from { opacity: 0; scale: .96; translate: 0 16px; } }
.kl::backdrop { background: rgba(8, 10, 12, .6); }
.kl__in { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.kl__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kl__title { font-family: var(--font-display); font-size: 26px; }
.kl__close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.kl__close:hover { background: var(--bone); color: var(--ink-dark); }
.kl img { border-radius: 3px; }

/* oferta: krem, przypięty kadr i cztery rozdziały */
.offer {
  --bg: var(--cream); --ink: var(--ink-dark); --muted: #4E4A43; --accent: var(--brown);
  --line: rgba(21, 25, 27, .14); --line-strong: rgba(21, 25, 27, .3);
  background: var(--cream); color: var(--ink-dark); overflow: clip;
}
.offer::before { /* ciepłe światło w rogu i złota krawędź */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 92% 4%, rgba(200, 184, 139, .28), transparent 62%),
    radial-gradient(900px 600px at 0% 100%, rgba(116, 71, 15, .07), transparent 60%),
    linear-gradient(90deg, var(--gold-dim), var(--gold-dim)) top / 100% 1px no-repeat;
}
.offer .wrap { position: relative; }
.offer__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 96px; align-items: end; }
.offer__head h2 { font-size: clamp(46px, 5.4vw, 84px); line-height: .98; max-width: 14ch; }
.offer__intro { display: flex; flex-direction: column; gap: 22px; padding-left: 28px; border-left: 1px solid rgba(116, 71, 15, .3); }
.offer__intro p { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.35; color: #3A3732; }
.offer__orn { color: var(--brown); margin: 64px 0 72px; }
.offer__orn span { background: rgba(116, 71, 15, .25); }
.ic-loz { width: 11px; height: 11px; fill: none; stroke: var(--brown); stroke-width: 1.4; flex: none; }

.svc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; align-items: start; }
.svc__stage { position: sticky; top: calc(var(--nav) + 40px); }
.svc__frame {
  position: relative; aspect-ratio: 4 / 4.2; max-height: calc(100vh - var(--nav) - 150px); width: 100%;
  border-radius: var(--r); background: var(--cream-2);
  box-shadow: 0 50px 90px -50px rgba(40, 30, 10, .6), 0 0 0 1px rgba(116, 71, 15, .12);
}
.svc__frame::after { /* złota ramka odsunięta od zdjęcia */
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid rgba(116, 71, 15, .35); border-radius: calc(var(--r) + 2px);
}
.svc__pic { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--r); clip-path: inset(0 0 100% 0 round var(--r)); transition: clip-path 1.1s var(--slow); }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: scale 1.8s var(--slow); }
.svc__pic.is-on { clip-path: inset(0 0 0 0 round var(--r)); z-index: 1; }
.svc__pic.is-on img { scale: 1; }
.svc__pic.is-off { clip-path: inset(0 0 0 0 round var(--r)); z-index: 0; }
.svc__pic--paper { background: var(--cream-2); }
.svc__pic--paper img { object-fit: contain; padding: 9%; filter: drop-shadow(0 18px 30px rgba(40, 30, 10, .25)); }
.svc__big {
  position: absolute; z-index: 3; right: -34px; bottom: -46px; overflow: hidden; pointer-events: none;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(120px, 12vw, 190px); line-height: .8;
}
.svc__big-in { display: block; color: var(--cream); -webkit-text-stroke: 1.25px var(--brown); text-shadow: 0 10px 30px rgba(40, 30, 10, .25); padding-bottom: .1em; transition: translate .7s var(--slow), opacity .4s var(--ease); }
.svc__big-in.is-swap { translate: 0 60%; opacity: 0; transition-duration: .25s, .2s; }
.svc__meter { display: flex; align-items: center; gap: 24px; margin-top: 44px; max-width: 78%; }
.svc__count { font-size: 14px; letter-spacing: .08em; color: #5A554C; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc__count b { color: var(--ink-dark); font-weight: 700; }
.svc__bars { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.svc__bars i { height: 2px; background: rgba(21, 25, 27, .14); position: relative; overflow: hidden; }
.svc__bars i::after { content: ''; position: absolute; inset: 0; background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--slow); }
.svc__bars i.is-done::after { transform: none; }

.svc__list { display: flex; flex-direction: column; }
.svc__ch { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: min(78vh, 680px); padding: 48px 0; border-top: 1px solid var(--line); transition: opacity .6s var(--ease); }
.svc__ch:first-child { border-top: 0; min-height: min(62vh, 560px); justify-content: flex-start; padding-top: 8px; }
.svc__ch:last-child { min-height: min(70vh, 620px); }
.svc__inline { display: none; }
.svc__n { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1; color: var(--brown); display: flex; align-items: center; gap: 16px; }
.svc__n::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .5; transform-origin: left; transition: transform .8s var(--slow); }
.svc__ch h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.06; max-width: 15ch; }
.svc__txt { font-size: 17px; line-height: 1.72; color: #3A3732; max-width: 46ch; }
.svc__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 46ch; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #4E4A43; }
.js-svc .svc__ch:not(.is-on) { opacity: .32; }
.js-svc .svc__ch:not(.is-on) .svc__n::after { transform: scaleX(.3); }

/* obietnica: zdjęcie rozszerza się z ramki */
.vow { position: relative; background: var(--night); }
.vow__pin { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.vow__media { position: absolute; inset: 0; z-index: -1; clip-path: inset(calc(var(--vp-i, 0) * 1%) calc(var(--vp-j, 0) * 1%) round calc(var(--vp-r, 0) * 1px)); }
.vow__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; scale: var(--vp-s, 1); filter: saturate(.8) brightness(.55); }
.vow__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,17,19,.35), rgba(13,17,19,.85)); }
.vow__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 140px 0; opacity: var(--vp-o, 1); translate: 0 calc(var(--vp-t, 0) * 1px); }
.vow h2 { font-size: clamp(36px, 4.4vw, 66px); line-height: 1.1; max-width: 26ch; }
.vow__in > p { color: var(--mist-2); max-width: 46ch; }
.vow .btn-row { justify-content: center; }
.vow__loz { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1; }

/* galeria: pas poziomy */
.gallery { position: relative; background: var(--night); border-top: 1px solid var(--line); }
.gallery__pin { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; padding: clamp(96px, 13vh, 140px) 0 0; }
.gallery__pin::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; align-items: center; gap: 22px; width: max-content; padding: 0 var(--gut) 0 max(var(--gut), calc((100vw - 1280px) / 2)); }
.gallery__head { flex: none; width: min(420px, 78vw); display: flex; flex-direction: column; gap: 22px; padding-right: 40px; scroll-snap-align: start; }
.gallery__head h2 { font-size: clamp(64px, 8vw, 128px); line-height: .9; }
.tile { position: relative; flex: none; display: block; overflow: hidden; border-radius: var(--r); background: var(--night-2); text-decoration: none; isolation: isolate; scroll-snap-align: center; }
.tile--wide { height: min(66vh, 600px); aspect-ratio: 4 / 3.4; }
.tile--tall { height: min(58vh, 520px); aspect-ratio: 3 / 4; }
.tile img {
  position: absolute; inset: 0 -8%; width: 116%; height: 100%; max-width: none; object-fit: cover;
  translate: var(--tx, 0) 0;
  filter: saturate(.86) brightness(.9);
  transition: transform 1.4s var(--slow), filter .7s var(--ease);
}
.tile::before { content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(9, 12, 14, .72), rgba(9, 12, 14, 0)); }
.tile::after { /* złota ramka wchodząca do środka */
  content: ''; position: absolute; inset: 18px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(233, 214, 174, .7); border-radius: 3px;
  opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .7s var(--slow);
}
.tile__label { position: absolute; left: 28px; bottom: 24px; z-index: 3; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--bone); transition: transform .5s var(--slow); }
.tile__label::after { content: ''; display: block; height: 1px; margin-top: 8px; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--slow) .05s; }
.tile--wide .tile__label { font-size: 36px; left: 36px; bottom: 32px; }
@media (hover: hover) and (pointer: fine) {
  .gallery__track:has(.tile:hover) .tile:not(:hover) img { filter: saturate(.55) brightness(.58); }
  .tile:hover img { transform: scale(1.045); filter: saturate(1) brightness(1); }
  .tile:hover::after { opacity: 1; transform: none; }
  .tile:hover .tile__label { transform: translateY(-6px); }
  .tile:hover .tile__label::after { transform: scaleX(1); }
}
.tile:focus-visible::after { opacity: 1; transform: none; }
.gallery__end {
  flex: none; display: grid; place-items: center; align-content: center; gap: 18px; width: 260px; height: min(58vh, 520px); scroll-snap-align: end;
  border: 1px solid var(--line-strong); border-radius: var(--r); text-decoration: none;
  font-family: var(--font-display); font-size: 34px; transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.gallery__end .ic { width: 28px; height: 28px; color: var(--gold); transition: transform .4s var(--slow); }
.gallery__end:hover { border-color: var(--gold); background: rgba(200, 184, 139, .05); }
.gallery__end:hover .ic { transform: translateX(6px); }
.gallery__bar { position: sticky; left: 0; width: 100vw; padding: 36px var(--gut) clamp(72px, 10vh, 110px); }
.gallery__progress { display: block; height: 1px; background: var(--line); }
.gallery__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--gp, 0)); }

/* o firmie */
.about { overflow: hidden; }
.about__year {
  position: absolute; left: -1.5vw; bottom: 2%; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(180px, 26vw, 420px); line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 184, 139, .26);
}
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 104px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__text > p:not(.about__sign) { color: var(--mist-2); max-width: 52ch; }
.about__sign { display: flex; flex-direction: column; gap: 2px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1.1; color: var(--gold-hi); }
.about__sign span { font-family: var(--font-text); font-style: normal; font-size: 13px; letter-spacing: .02em; color: var(--mist); }
.about__pics { position: relative; padding: 0 64px 88px 0; }
.about__a { position: relative; isolation: isolate; }
.about__a img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 60% 50%; border-radius: var(--r); }
.about__frame { position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold-dim); border-radius: calc(var(--r) + 2px); pointer-events: none; z-index: -1; clip-path: inset(0 calc(var(--fd, 0) * 100%) calc(var(--fd, 0) * 100%) 0); }
.about__b { position: absolute; right: 0; bottom: 0; width: 46%; }
.about__b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 62%; border-radius: var(--r); outline: 10px solid var(--night); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }

/* pytania */
.faq { background: var(--night-2); border-block: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.faq__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav) + 40px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--slow), content-visibility .55s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 80px; padding: 18px 0;
  font-family: var(--font-display); font-size: 27px; line-height: 1.2; cursor: pointer; list-style: none;
  transition: color .25s, padding .5s var(--slow);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); padding-left: 10px; }
.faq summary .ic { width: 22px; height: 22px; padding: 0; color: var(--gold); transition: transform .5s var(--slow); }
.faq details[open] summary .ic { transform: rotate(135deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--mist-2); max-width: 62ch; }
.faq details p a { color: var(--bone); font-weight: 600; white-space: nowrap; }

/* kontakt */
.contact { position: relative; padding: clamp(100px, 14vh, 150px) 0 clamp(80px, 11vh, 120px); background: var(--night); }
.contact__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 96px; align-items: end; margin-bottom: 80px; }
.contact__head h2 { font-size: clamp(48px, 6vw, 92px); line-height: .98; }
.contact__head p { color: var(--mist-2); }
.locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 96px; }
.loc { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px; padding-top: 30px; }
.loc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-dim); transform-origin: left; }
.loc h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 5vw, 76px); line-height: 1; }
.loc__sub { font-size: 13px; color: var(--mist); }
.loc address { grid-column: 1 / -1; margin: 14px 0 18px; font-style: normal; font-size: 17px; color: var(--mist-2); }
.loc__tel {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none;
  font-size: 30px; font-weight: 600; letter-spacing: .025em; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .25s var(--ease), padding .5s var(--slow);
}
.loc__tel span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--mist); }
.loc__tel--land { font-size: 23px; font-weight: 500; color: var(--mist-2); border-bottom: 1px solid var(--line); }
.loc__tel:hover { color: var(--gold-hi); padding-inline: 8px; }
.loc .more { grid-column: 1 / -1; margin-top: 18px; }
/* mapa: osadzona mapa Google, przyciemniona i przybarwiona na złoto; złota pinezka w miejscu adresu */
.loc__map {
  --crop: 150px; /* przycięcie białej karty adresu w lewym górnym rogu mapy Google */
  grid-column: 1 / -1; position: relative; display: block; overflow: hidden; isolation: isolate;
  height: clamp(260px, 26vw, 340px); margin-top: 26px; border-radius: var(--r); background: #1A2023;
  border: 1px solid var(--gold-dim); text-decoration: none;
}
.loc__map iframe {
  position: absolute; left: 0; top: calc(var(--crop) * -1); width: 100%; height: calc(100% + var(--crop)); border: 0;
  pointer-events: none;
  filter: invert(.9) grayscale(1) contrast(1.1) brightness(.92);
  transition: filter .8s var(--ease), scale 1.4s var(--slow);
}
.loc__map::before { /* złoty odcień i ciemne brzegi */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--gold); mix-blend-mode: color; opacity: .42; transition: opacity .8s var(--ease);
}
.loc__map::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(13, 17, 19, .55));
}
.loc__pin { /* czubek pinezki w środku widocznej mapy, przesunięty o połowę przycięcia */
  position: absolute; z-index: 2; left: 50%; top: calc(50% - var(--crop) / 2); width: 34px; height: 46px; translate: -50% -100%;
}
.loc__pin svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.loc__pin path { fill: var(--gold); stroke: #1A1208; stroke-width: 1.2; }
.loc__pin circle { fill: var(--night); }
.loc__pin::before { /* pulsujący krąg u podstawy */
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  border: 1px solid var(--gold); animation: pin-pulse 2.8s var(--ease) infinite;
}
@keyframes pin-pulse { 0% { scale: .4; opacity: .9; } 100% { scale: 3.2; opacity: 0; } }
.loc__open {
  position: absolute; z-index: 2; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: rgba(13, 17, 19, .82); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.loc__open .ic { width: 14px; height: 14px; color: var(--gold); transition: transform .3s var(--slow); }
.loc__map:hover iframe { filter: invert(.9) grayscale(1) contrast(1.15) brightness(1.02); scale: 1.03; }
.loc__map:hover::before { opacity: .32; }
.loc__map:hover .loc__open { background: var(--gold); color: var(--ink-dark); border-color: var(--gold); }
.loc__map:hover .loc__open .ic { color: var(--ink-dark); transform: translateX(3px); }
/* mapa przed zgodą: podgląd bez łączenia z Google */
.mapa:not(.is-on) {
  background-color: #161C1F;
  background-image:
    linear-gradient(118deg, transparent 46.6%, rgba(200, 184, 139, .2) 47%, rgba(200, 184, 139, .2) 48.4%, transparent 48.8%),
    linear-gradient(24deg, transparent 58.6%, rgba(236, 231, 223, .08) 59%, rgba(236, 231, 223, .08) 60.4%, transparent 60.8%),
    linear-gradient(-62deg, transparent 30.5%, rgba(236, 231, 223, .06) 30.8%, rgba(236, 231, 223, .06) 31.6%, transparent 31.9%),
    repeating-linear-gradient(0deg, rgba(236, 231, 223, .035) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(236, 231, 223, .035) 0 1px, transparent 1px 38px);
}
.mapa:not(.is-on)::before { opacity: .18; }
.mapa:not(.is-on) .loc__pin { top: 40%; }
.mapa__zgoda {
  position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; text-align: center;
}
.mapa__btn {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--action); color: var(--action-ink);
  font: 600 14px/1 var(--font-text); cursor: pointer; transition: background-color .25s var(--ease);
}
.mapa__btn:hover { background: var(--gold-hi); }
.mapa__btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.mapa__info { margin: 0; max-width: 42ch; font-size: 12.5px; line-height: 1.45; color: var(--mist); }
.mapa__info a { color: var(--bone); text-decoration-color: var(--gold); }
.mapa__link { position: absolute; inset: 0; z-index: 2; }
.mapa__link:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -4px; border-radius: inherit; }
.mapy-zgoda { margin: 18px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--night-2); }
.mapy-zgoda__stan { margin: 0; }
.mapy-zgoda .btn { margin-top: 14px; }

/* stopka (na dużych ekranach odsłania się spod strony) */
.foot { position: relative; background: var(--night-3); border-top: 1px solid var(--line); overflow: hidden; }
.foot__in { padding: 56px 0 32px; display: flex; flex-direction: column; gap: 28px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot__logo { height: 56px; width: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--mist); text-decoration: none; transition: color .2s; }
.foot__nav a:hover { color: var(--bone); }
.foot__tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.foot__tel span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--gold); }
.foot__tel:hover { color: var(--gold-hi); }
.foot__legal { padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mist); }
.foot__credit { display: inline-block; margin-top: 6px; font-size: 12px; opacity: .8; }
.foot__credit a { color: inherit; }
.has-reveal main { position: relative; z-index: 1; background: var(--night); margin-bottom: var(--foot-h, 0); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.has-reveal .foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }

.callbar { display: none; }

/* ---------- ruch przy przewijaniu (tylko z .fx) ---------- */
.fx .hero__bg { translate: calc(var(--mx, 0) * -14px) calc(var(--hp, 0) * 26% + var(--my, 0) * -10px); will-change: translate; }
.fx .hero__bg img { animation: fx-breathe 26s ease-in-out infinite alternate; }
@keyframes fx-breathe { from { scale: 1; } to { scale: 1.06; } }
.fx .hero__main { translate: 0 calc(var(--hp, 0) * -110px); opacity: calc(1 - var(--hp, 0) * 1.4); }

.fx-w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.fx-w__in { display: inline-block; translate: 0 105%; transition: translate 1.1s var(--slow); }
.fx-words.is-in .fx-w__in { translate: 0 0; }

.fx .fx-up { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease) var(--fx-d, 0ms), translate 1.2s var(--slow) var(--fx-d, 0ms); }
.fx .fx-up.is-in { opacity: 1; translate: 0 0; }

.fx .fx-curtain { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.4s var(--slow) var(--fx-d, 0ms); }
.fx .fx-curtain.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.fx .about__b.fx-curtain.is-in { clip-path: inset(-12px); }
.fx img.fx-curtain { scale: 1.1; transition: clip-path 1.4s var(--slow), scale 2s var(--slow); }
.fx img.fx-curtain.is-in { scale: 1; }
.fx .fx-curtain img { scale: 1.14; transition: scale 2s var(--slow) var(--fx-d, 0ms), transform 1.4s var(--slow), filter .7s var(--ease); }
.fx .fx-curtain.is-in img { scale: 1; }

.fx .orn span { transform: scaleX(0); transition: transform 1.4s var(--slow); }
.fx .orn.is-in span { transform: none; }
.fx .orn svg { opacity: 0; rotate: -90deg; transition: opacity .8s var(--ease) .3s, rotate 1.4s var(--slow) .3s; }
.fx .orn.is-in svg { opacity: 1; rotate: 0deg; }
.fx .loc::before { transform: scaleX(0); transition: transform 1.4s var(--slow) var(--fx-d, 0ms); }
.fx .loc.is-in::before { transform: none; }

.fx .vow { height: 210vh; }
.fx .vow__pin { position: sticky; top: 0; height: 100vh; min-height: 0; }

.fx-h .gallery__pin { position: sticky; top: 0; height: 100vh; overflow: clip; scroll-snap-type: none; display: flex; align-items: center; padding: var(--nav) 0 0; }
.fx-h .gallery__track { translate: var(--gx2, 0) 0; will-change: translate; }
.fx-h .gallery__bar { position: absolute; left: 0; right: 0; bottom: 0; width: auto; padding: 0 max(var(--gut), calc((100vw - 1280px) / 2)) 48px; }
.fx-h .gallery { border-top: 0; }

.fx .about__year, .fx .about__pics, .fx .about__b, .fx .loc h3 { will-change: translate; }

/* ---------- responsywność ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__tel { padding-left: 20px; }
  .guide__grid, .faq__grid, .about__grid { gap: 64px; }
  .duty__in > * { padding: 20px 20px; }
  .duty__row::after { left: 20px; right: 20px; }
}
@media (max-width: 1023px) {
  :root { --nav: 72px; }
  .nav { background: rgba(13, 17, 19, .94); border-bottom-color: var(--line); }
  .nav__links {
    position: fixed; inset: var(--nav) 0 0; z-index: 29; flex-direction: column; gap: 0; margin: 0;
    padding: 24px var(--gut); background: var(--night); height: calc(100dvh - var(--nav));
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .35s var(--slow), visibility 0s .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { min-height: 64px; font-family: var(--font-display); font-size: 32px; color: var(--bone); border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__tel { margin-left: auto; }
  .nav__toggle { display: inline-flex; margin-left: 0; }

  .hero__side { display: none; }
  .hero__main { grid-template-columns: 1fr; }
  .duty__in { grid-template-columns: 1fr 1fr; }
  .duty__in > * { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .duty__in > :nth-child(-n+2) { border-top: 0; }
  .duty__row { padding-inline: 0 16px; }
  .duty__row::after { left: 0; right: 16px; }
  .duty__head { order: 3; }
  .duty__land { order: 4; }
  .sec__head { grid-template-columns: 1fr; }
  .sec__head h2 { grid-row: auto; }
  .guide__grid, .faq__grid, .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .guide__side, .faq__side { position: static; }
  .obit { grid-template-columns: 1fr; gap: 48px; padding: 28px; }
  .orow { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .orow__where { grid-column: 2 / 3; grid-row: 2; }
  .orow__act { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; }
  .contact__head, .offer__head { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc__stage { display: none; }
  .svc__inline { display: block; position: relative; margin: 0 0 12px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--cream-2); box-shadow: 0 30px 60px -40px rgba(40, 30, 10, .55); }
  .svc__inline img { width: 100%; height: 100%; object-fit: cover; }
  .svc__inline.svc__pic--paper img { object-fit: contain; padding: 7%; }
  .svc__ch, .svc__ch:first-child, .svc__ch:last-child { min-height: 0; padding: 40px 0 48px; justify-content: flex-start; }
  .svc__ch:first-child { padding-top: 0; }
  .js-svc .svc__ch:not(.is-on) { opacity: 1; }
  .offer__orn { margin: 48px 0; }
  .about__pics { padding: 18px 48px 72px 18px; }
}
@media (max-width: 639px) {
  :root { --nav: 64px; --gutter: 16px; }
  body { font-size: 16px; padding-bottom: 72px; }
  .nav__logo img { height: 42px; }
  .nav__tel { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero { min-height: 100svh; }
  .hero__main { padding: calc(var(--nav) + 32px) 0 104px; }
  .hero__text { gap: 22px; }
  .hero h1 { font-size: 48px; }
  .hero__brand { gap: 16px; }
  .hero__brand img { height: 76px; }
  .hero__brand span { padding-left: 16px; font-size: 18px; }
  .lead { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .hero .btn--secondary { display: none; }
  .duty { display: none; }
  .sec__head { margin-bottom: 40px; }
  .guide__rail { left: 23px; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0 28px; }
  .steps__n { width: 48px; height: 48px; font-size: 24px; }
  .steps h3 { font-size: 26px; margin-top: 6px; }
  .obit { padding: 16px 16px 24px; gap: 40px; }
  .obit__mat { padding: 12px; }
  .obit__day { grid-template-columns: 1fr; gap: 20px; }
  .obit__date { flex-direction: row; align-items: baseline; gap: 10px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--gold-dim); min-width: 0; }
  .obit__date b { font-size: 44px; }
  .obit__plan::before { left: 74px; }
  .obit__plan li { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .obit__plan li::before { left: 71px; }
  .obit__act > * { flex: 1 1 100%; justify-content: center; }
  .orow { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 18px; padding: 22px 0; }
  .orow__date { padding-right: 16px; }
  .orow__date b { font-size: 36px; }
  .orow__who h3 { font-size: 25px; }
  .orow__where { grid-column: 1 / -1; grid-row: auto; }
  .orow__where div { grid-template-columns: 74px minmax(0, 1fr); }
  .orow__act { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; }
  .orow__act .candle { flex: 1; justify-content: center; }
  .vow__in { padding: 110px 0; }
  .gallery__head h2 { font-size: 64px; }
  .tile--wide { height: 52vh; aspect-ratio: 4 / 4.6; }
  .tile--tall { height: 46vh; }
  .tile__label, .tile--wide .tile__label { left: 18px; bottom: 16px; font-size: 24px; }
  .gallery__end { width: 200px; height: 46vh; font-size: 28px; }
  .about__pics { padding: 14px 28px 56px 14px; }
  .about__frame { inset: -12px 12px 12px -12px; }
  .about__b img { outline-width: 6px; }
  .faq summary { font-size: 23px; }
  .faq details p { padding-right: 0; }
  .locs { grid-template-columns: 1fr; }
  .loc__tel { font-size: 26px; }
  .loc__tel--land { font-size: 21px; }
  .loc__map { height: 320px; --crop: 120px; }
  .loc__open { display: none; }
  .foot__tel { align-items: flex-start; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--night); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 0 18px; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
  .callbar a + a { border-left: 1px solid var(--line); }
  .callbar a:first-child { background: var(--gold); color: var(--action-ink); }
  .callbar small { font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .candle[aria-pressed="true"] .flame { animation: none; }
  .loc__pin::before { animation: none; }
  .orow::before, .obit__mat img, .svc__pic, .svc__pic img, .svc__big-in, .svc__ch, .tile img, .tile::after, .tile__label, .tile__label::after, .btn--primary::after, .faq details::details-content { transition: none; }
  .hero__motes { display: none; }
}
