/* CORE — Rdzeń inwestycji. Kolory warstw z przekroju geologicznego, matowe, bez gradientów i cieni. */
:root {
  /* pola (rozdziały) — warstwy gruntu */
  --humus: #1f1a16;      --humus-ink: #e6e5e2;
  --marl: #dcd6ca;       --marl-ink: #1b1814;
  --graphite: #131518;   --graphite-ink: #e6e5e1;
  --slate: #26313a;      --slate-ink: #ebeeec;
  --loess: #b6a07a;      --loess-ink: #15120d;
  --clay: #4f3f33;       --clay-ink: #ebe9e5;
  --ochre-ink: #cfae72;  /* druga farba na ciemnych polach */
  --umber-ink: #6a4a33;  /* druga farba na jasnych polach */
  --accent: #b9c79a;     --accent-ink: #131518; /* porost — działanie */

  /* warstwy rdzenia (od powierzchni w dół) */
  --l1: #2c241d; --l2: #4b3b2d; --l3: #6f5a44; --l4: #9c8562; --l5: #c0ad86; --l6: #7d807b; --l7: #3b434a;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --step-display: clamp(4rem, 0.5rem + 12.5vw, 14rem);

  --margin: clamp(16px, 2.8vw, 40px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --pad: clamp(96px, 10vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 260ms; --t-reveal: 800ms; --t-open: 1200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--humus); color: var(--humus-ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; left: var(--margin); top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; text-decoration: none; }

.display { font-family: var(--font-display); font-weight: 300; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.045em; font-optical-sizing: auto; }
.head { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.015em; }
.lead { font-size: var(--step-lead); line-height: 1.38; }
.small { font-size: var(--step-small); line-height: 1.45; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.field { position: relative; min-height: 90svh; padding-block: var(--pad); }
.f-humus { background: var(--humus); color: var(--humus-ink); --ink: var(--humus-ink); --ink2: var(--ochre-ink); }
.f-marl { background: var(--marl); color: var(--marl-ink); --ink: var(--marl-ink); --ink2: var(--umber-ink); }
.f-graphite { background: var(--graphite); color: var(--graphite-ink); --ink: var(--graphite-ink); --ink2: var(--ochre-ink); }
.f-slate { background: var(--slate); color: var(--slate-ink); --ink: var(--slate-ink); --ink2: var(--ochre-ink); }
.f-loess { background: var(--loess); color: var(--loess-ink); --ink: var(--loess-ink); --ink2: #4a3523; }
.f-clay { background: var(--clay); color: var(--clay-ink); --ink: var(--clay-ink); --ink2: var(--ochre-ink); }

/* przyciski i linki */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.4em; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--step-body);
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:hover { background: var(--ink, #fff); color: var(--accent-ink); }
.button:active { transform: scale(0.97); }
.button .arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.button:hover .arrow { transform: translateX(4px); }
.link {
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ───────── nagłówek + hero ───────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--margin);
}
.wordmark { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; letter-spacing: 0.02em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); font-size: 15px; }
.nav a:not(.button) { text-decoration: none; transition: opacity var(--t-hover) ease; }
.nav a:not(.button):hover { opacity: 0.7; }
.nav .button { min-height: 44px; font-size: 15px; }

.hero { min-height: 100svh; padding: 0; display: grid; grid-template-rows: 1fr auto; }
.hero h1 { padding: 14svh var(--margin) 0; align-self: start; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 [data-line] { display: block; }
.hero h1 .l1 { color: var(--ink); }
.hero h1 .l2 { color: var(--ink2); padding-left: 0.62em; }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin) 40px; align-items: end; }
.hero__facts { grid-column: 1 / span 5; display: flex; gap: clamp(24px, 3vw, 48px); font-size: var(--step-small); }
.hero__facts dt { opacity: 0.72; }
.hero__facts dd { font-size: var(--step-body); }
.hero__text { grid-column: 8 / span 5; justify-self: end; max-width: 36ch; text-align: left; }
.hero__text p { font-size: var(--step-lead); line-height: 1.38; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }

/* ───────── wskaźnik rdzenia (sygnatura) ───────── */
.gauge { display: none; }
@media (min-width: 1200px) {
  .gauge {
    display: block; position: fixed; z-index: 20; right: 12px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 56vh;
  }
  .gauge__track { position: absolute; inset: 0; display: flex; flex-direction: column; background: color-mix(in srgb, #808080 22%, transparent); }
  .gauge__seg { display: block; position: relative; flex: 1 1 0; background: var(--c); }
  .gauge__seg::after {
    content: attr(data-label); position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); white-space: nowrap;
    background: var(--graphite); color: var(--graphite-ink); font-size: var(--step-small); padding: 6px 10px;
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--t-hover) ease, transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-hover);
  }
  .gauge__seg:hover::after, .gauge__seg:focus-visible::after { visibility: visible; opacity: 1; transform: translate(0, -50%); transition-delay: 0s; }
  .gauge__cover { position: absolute; inset: 0; background: #2a2a2a; transform-origin: bottom; transform: scaleY(1); pointer-events: none; mix-blend-mode: normal; }
  .gauge__bit { position: absolute; left: -5px; right: -5px; height: 6px; top: 0; background: var(--accent); pointer-events: none; }
}

/* ───────── intro: schodkowe zdanie ───────── */
.intro { min-height: 100svh; display: grid; align-content: center; }
.intro .stairs { grid-column: 1 / span 8; font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.18; letter-spacing: -0.01em; }
.stairs span { display: block; }
.stairs span:nth-child(1) { padding-left: 0; }
.stairs span:nth-child(2) { padding-left: 9vw; color: var(--ink2); }
.stairs span:nth-child(3) { padding-left: 18vw; }
.intro__pics { grid-column: 9 / span 4; grid-row: 1 / span 2; display: grid; gap: 16px; align-self: start; }
.intro__pics figure { overflow: hidden; }
.intro__pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro__pics figcaption { font-size: var(--step-small); margin-top: 8px; }
.intro__note { grid-column: 1 / span 5; margin-top: clamp(56px, 8vw, 120px); }
.intro__note h2 { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.intro__note p { margin-top: 10px; max-width: 46ch; }

/* ───────── ścieżka: scena wiercenia ───────── */
.path { background: var(--graphite); color: var(--graphite-ink); --ink: var(--graphite-ink); --ink2: var(--ochre-ink); }
.path .scene-stage { padding: var(--pad) var(--margin); }
.path__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.path__head { grid-column: 1 / span 5; }
.path__head h2 { font-size: var(--step-display); }
.path__count { margin-top: 18px; font-size: var(--step-small); opacity: 0.8; }
.path__core { grid-column: 1 / span 4; margin-top: 48px; position: relative; }
.path__core .core-pic { position: relative; overflow: hidden; background: #0d0e10; aspect-ratio: 764 / 1580; max-height: 78svh; }
.path__core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.path__core .ghost { opacity: 0.22; filter: grayscale(1); }
.path__core figcaption { margin-top: 10px; font-size: var(--step-small); opacity: 0.85; }
.path__steps { grid-column: 6 / span 7; margin-top: 48px; display: grid; gap: clamp(40px, 6vw, 88px); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.015em; }
.step p { margin-top: 12px; max-width: 54ch; }
.step .result { font-weight: 500; color: var(--ochre-ink); }
.path__names { display: none; }
.bit { display: none; }

@media (min-width: 900px) {
  .path:not(.is-live) .path__core { position: sticky; top: 8svh; align-self: start; }
  .path:not(.is-live) .path__core .core-pic { max-height: 84svh; }
  .path:not(.is-live) .ghost { display: none; }
}

/* scena aktywna (desktop, z ruchem) */
.path.is-live .scene-stage { padding-block: 9svh 7svh; height: 100svh; }
.path.is-live .path__grid { height: 100%; grid-template-rows: auto 1fr; }
.path.is-live .path__head { grid-column: 1 / span 5; grid-row: 1; }
.path.is-live .path__head h2 { font-size: var(--step-head); }
.path.is-live .path__core { grid-column: 6 / span 3; grid-row: 1 / span 2; margin: 0; align-self: center; width: 100%; }
.path.is-live .path__core .core-pic { max-height: 80svh; margin-inline: auto; }
.path.is-live .path__core .top-pic { clip-path: inset(0 0 100% 0); }
.path.is-live .bit { display: block; position: absolute; left: -10px; right: -10px; top: 0; height: 6px; background: var(--accent); }
.path.is-live .path__steps { grid-column: 1 / span 5; grid-row: 2; margin: 0; position: relative; align-self: center; display: block; min-height: 300px; }
.path.is-live .step { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 420ms ease, transform 600ms var(--ease-out), visibility 0s linear 420ms; }
.path.is-live .step h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.015em; }
.path.is-live .path__names { display: block; grid-column: 10 / span 3; grid-row: 1 / span 2; align-self: center; }
.path__names li { font-size: var(--step-lead); line-height: 1.3; padding-block: 7px; opacity: 0.45; transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); display: flex; gap: 12px; align-items: baseline; }
.path__names li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); opacity: 0; transform: scale(0.96); transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.path__names button { all: unset; cursor: pointer; }
.path__names button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.path__names li:hover { opacity: 0.8; }
.path[data-beat="0"] .step:nth-child(1), .path[data-beat="1"] .step:nth-child(2), .path[data-beat="2"] .step:nth-child(3),
.path[data-beat="3"] .step:nth-child(4), .path[data-beat="4"] .step:nth-child(5), .path[data-beat="5"] .step:nth-child(6),
.path[data-beat="6"] .step:nth-child(7) { opacity: 1; visibility: visible; transform: none; transition-delay: 120ms, 120ms, 0s; }
.path[data-beat="0"] .path__names li:nth-child(1), .path[data-beat="1"] .path__names li:nth-child(2), .path[data-beat="2"] .path__names li:nth-child(3),
.path[data-beat="3"] .path__names li:nth-child(4), .path[data-beat="4"] .path__names li:nth-child(5), .path[data-beat="5"] .path__names li:nth-child(6),
.path[data-beat="6"] .path__names li:nth-child(7) { opacity: 1; }
.path[data-beat="0"] .path__names li:nth-child(1)::before, .path[data-beat="1"] .path__names li:nth-child(2)::before, .path[data-beat="2"] .path__names li:nth-child(3)::before,
.path[data-beat="3"] .path__names li:nth-child(4)::before, .path[data-beat="4"] .path__names li:nth-child(5)::before, .path[data-beat="5"] .path__names li:nth-child(6)::before,
.path[data-beat="6"] .path__names li:nth-child(7)::before { transform: none; opacity: 1; }

/* ───────── zakres: mozaika ───────── */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; }
.tile { padding: 24px; overflow: hidden; position: relative; }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.015em; }
.tile p { margin-top: 12px; }
.t-head { grid-column: 1 / span 6; grid-row: 1 / span 6; background: #a89068; display: flex; flex-direction: column; justify-content: space-between; }
.t-head h2 { font-size: var(--step-display); }
.t-head p { font-size: var(--step-lead); max-width: 32ch; }
.t-photo { grid-column: 7 / span 6; grid-row: 1 / span 6; padding: 0; background: #2a2620; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--graphite); color: var(--graphite-ink); font-size: var(--step-small); padding: 8px 12px; }
.t-a { grid-column: 1 / span 3; grid-row: 7 / span 3; background: var(--humus); color: var(--humus-ink); }
.t-b { grid-column: 4 / span 3; grid-row: 7 / span 3; background: var(--slate); color: var(--slate-ink); }
.t-fig { grid-column: 7 / span 3; grid-row: 7 / span 3; background: #a89068; display: flex; flex-direction: column; justify-content: space-between; }
.t-fig .display { line-height: 0.8; }
.t-list { grid-column: 10 / span 3; grid-row: 7 / span 3; background: var(--humus); color: var(--humus-ink); }
.t-list ul { margin-top: 14px; display: grid; gap: 6px; }
.t-list li { font-size: var(--step-body); }
.t-c { grid-column: 1 / span 6; grid-row: 10 / span 3; background: #a89068; }
.t-d { grid-column: 7 / span 6; grid-row: 10 / span 3; background: var(--slate); color: var(--slate-ink); }
.t-c p, .t-d p { max-width: 52ch; }

/* ───────── branże: plakat ───────── */
.trades { min-height: 100svh; padding-top: clamp(72px, 7vw, 112px); }
#zakres { padding-bottom: clamp(72px, 7vw, 112px); }
.trades__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: clamp(40px, 5vw, 72px); }
.trades__intro h2 { grid-column: 1 / span 4; font-size: var(--step-head); }
.trades__intro p { grid-column: 7 / span 6; font-size: var(--step-lead); }
.index { position: relative; }
.index__row { display: flex; justify-content: space-between; align-items: baseline; gap: 0 var(--gutter); text-decoration: none; padding-block: 0.06em; transition: color var(--t-hover) ease, opacity var(--t-hover) ease; }
.index__name { font-family: var(--font-display); font-weight: 300; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.045em; }
.index__name .w { display: inline-block; }
.index__detail { font-size: var(--step-lead); text-align: right; max-width: 24ch; flex: none; }
.index__thumb { display: none; }
.index__frame { display: none; }
.index__row:hover, .index__row:focus-visible { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.45; }
  .index__frame { display: block; position: absolute; top: 0; left: 46%; width: 26%; aspect-ratio: 4 / 3; z-index: 2; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path 360ms var(--ease-out), transform 420ms var(--ease-out); background: var(--graphite); }
  .index__frame.is-open { clip-path: inset(0); }
  .index__frame img { width: 100%; height: 100%; object-fit: cover; }
}

/* ───────── przekrój: interaktywny rdzeń ───────── */
.log__head { font-size: var(--step-display); }
.log__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.log__panel { grid-column: 1 / span 4; }
.log__panel > p { max-width: 40ch; }
.picker { margin: 32px 0 0; border: 0; padding: 0; min-inline-size: 0; display: grid; gap: 6px; }
.picker legend { font-weight: 500; margin-bottom: 12px; }
.picker label { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; background: #cdc6b8; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.picker label:hover { background: #c3bbab; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker label:has(input:checked) { background: var(--graphite); color: var(--graphite-ink); }
.picker label:has(input:focus-visible) { outline: 3px solid var(--umber-ink); outline-offset: 2px; }
.picker .mark { width: 12px; height: 12px; background: currentColor; opacity: 0; transform: scale(0.96); transition: transform var(--t-ui) var(--ease-out); }
.picker label:has(input:checked) .mark { opacity: 1; transform: none; background: var(--accent); }
.decisions { margin-top: 36px; }
.decisions h3 { font-weight: 500; font-size: var(--step-body); }
.decisions ul { margin-top: 10px; display: grid; gap: 8px; }
.decisions li { padding-left: 20px; position: relative; }
.decisions li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; background: var(--umber-ink); }
.log__note { margin-top: 28px; font-size: var(--step-small); max-width: 44ch; }

.borehole { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(0, 1fr); }
.bh { display: flex; flex-direction: column; height: min(78svh, 760px); min-height: 520px; }
.bh__row { display: grid; grid-template-columns: clamp(96px, 12vw, 180px) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 36px); flex: var(--g, 1) 1 0; min-height: 34px; }
.bh__seg { background-color: var(--c); background-image: var(--pat); background-size: 18px 18px; transition: background-color 400ms ease; }
.bh__lab { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 4px; }
.bh__name { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.15; }
.bh__time { white-space: nowrap; font-weight: 500; }
.bh__total { display: grid; grid-template-columns: clamp(96px, 12vw, 180px) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 36px); margin-top: 22px; }
.bh__total p { grid-column: 2; font-size: var(--step-lead); }
.bh__row.is-op .bh__time { font-weight: 400; }

/* ───────── dla kogo: panel ───────── */
.who { padding: 20px; min-height: auto; }
.panel { position: relative; overflow: hidden; background: var(--slate); color: var(--slate-ink); min-height: 110svh; padding: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.panel h2 { grid-column: 1 / -1; grid-row: 1; font-size: var(--step-display); }
.panel__blocks { grid-column: 8 / span 5; grid-row: 2; display: grid; gap: 48px; align-content: start; margin-top: 56px; max-width: 440px; padding-bottom: 8svh; }
.panel__blocks h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); }
.panel__blocks p { margin-top: 12px; }
.panel__shape { position: absolute; left: 56px; bottom: -9vw; width: 38vw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1a2026; }
.panel__shape img, .panel__shape video { width: 100%; height: 100%; object-fit: cover; }
.panel__cap { position: absolute; left: calc(56px + 38vw + 24px); bottom: 56px; max-width: 26ch; font-size: var(--step-small); }

/* ───────── FAQ ───────── */
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq__head { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; }
.faq__head h2 { font-size: var(--step-head); }
.faq__head p { margin-top: 16px; max-width: 30ch; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.qa { background: #a89068; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.qa summary { list-style: none; cursor: pointer; min-height: 72px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa .plus { position: relative; flex: none; width: 16px; height: 16px; }
.qa .plus::before, .qa .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.qa .plus::after { transform: rotate(90deg); }
.qa[open] { background: var(--humus); color: var(--humus-ink); }
.qa[open] .plus::after { transform: rotate(0deg); }
.qa .answer { padding: 0 24px 26px; max-width: 60ch; }
.qa summary:hover { background: color-mix(in srgb, #000 6%, transparent); }

/* ───────── kontakt ───────── */
.contact { min-height: 80svh; padding-top: 48px; overflow: hidden; }
.strip { display: flex; gap: 8px; width: max-content; }
.strip img { height: 150px; width: auto; flex: none; }
.strip-wrap { overflow: hidden; margin-inline: calc(var(--margin) * -1); }
.contact h2 { margin-top: 72px; font-size: var(--step-display); }
.contact__lead { margin-top: 20px; font-size: var(--step-lead); max-width: 46ch; }
.form { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.form label { display: block; }
.form input, .form button { width: 100%; height: 96px; border: 0; border-radius: 0; background: #5d4c3e; color: var(--clay-ink); text-align: center; font-size: var(--step-lead); padding: 0 16px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.form input::placeholder { color: color-mix(in srgb, var(--clay-ink) 78%, transparent); }
.form input:focus { background: var(--marl); color: var(--marl-ink); outline: none; }
.form input:focus::placeholder { color: #5a5248; }
.form button { background: var(--accent); color: var(--accent-ink); font-weight: 500; cursor: pointer; }
.form button:hover { background: var(--clay-ink); }
.form button:active { transform: scale(0.98); }
.form__print { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: var(--step-small); }
.form__print p:last-child { grid-column: 3; }
.where { margin-top: clamp(72px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
.where__addr { grid-column: 1 / span 4; }
.where__addr h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); }
.where__addr p { margin-top: 14px; }
.where__addr .person { font-size: var(--step-lead); margin-top: 22px; }
.where__map { grid-column: 5 / span 4; background: var(--marl); color: var(--marl-ink); }
.where__map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.where__map figcaption, .where__fort figcaption { font-size: var(--step-small); padding: 10px 12px; }
.where__fort { grid-column: 9 / span 4; background: #3e3128; }
.where__fort img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ───────── stopka ───────── */
.foot { background: var(--graphite); color: var(--graphite-ink); padding: clamp(80px, 9vw, 140px) var(--margin) 0; overflow: hidden; }
.foot__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.foot__reach { grid-column: 1 / span 5; display: grid; gap: 6px; }
.foot__reach a { font-family: var(--font-display); font-size: var(--step-head); color: var(--accent); text-decoration: none; line-height: 1.2; }
.foot__reach a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
.foot__reach p { margin-top: 14px; }
.foot__cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.foot__cols h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.foot__cols li { margin-bottom: 6px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
.foot__group { margin-top: 56px; font-size: var(--step-small); max-width: 75ch; }
.credits { margin-top: 18px; font-size: var(--step-small); max-width: 75ch; }
.credits a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.foot__legal { margin-top: 56px; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.foot__mark { margin-top: 40px; margin-inline: calc(var(--margin) * -0.2); height: 23vw; overflow: hidden; }
.foot__mark svg { width: 100%; height: auto; fill: var(--graphite-ink); }

/* ───────── ruch ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js [data-reveal] { opacity: 0.45; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-mask] > img, .js [data-mask] > video { clip-path: inset(0 0 58% 0); transform: scale(1.12); transition: clip-path 1200ms var(--ease-in-out), transform 1500ms var(--ease-soft); transition-delay: var(--d, 0ms); }
  .js [data-mask].is-in > img, .js [data-mask].is-in > video { clip-path: inset(0); transform: none; }
  .js .index__name .w { transform: translateY(102%); transition: transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js .index__row .clip { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: bottom; }
  .js .index.is-in .index__name .w { transform: none; }
  .js .index__detail { opacity: 0; transition: opacity 700ms ease; transition-delay: calc(var(--d, 0ms) + 250ms); }
  .js .index.is-in .index__detail { opacity: 1; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .path .step, .index__frame, .qa, .bh__seg { transition: none; }
}

/* ───────── tablet ───────── */
@media (max-width: 1100px) {
  .nav .hide-md { display: none; }
  .hero__facts { grid-column: 1 / span 12; margin-bottom: 32px; }
  .hero__foot { row-gap: 0; }
  .hero__text { grid-column: 1 / span 12; justify-self: start; }
  .intro .stairs { grid-column: 1 / span 12; }
  .intro__pics { grid-column: 1 / span 12; grid-row: auto; grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .intro__note { grid-column: 1 / span 12; }
  .path__head { grid-column: 1 / span 12; }
  .path__core { grid-column: 1 / span 5; }
  .path__steps { grid-column: 7 / span 6; }
  .mosaic { grid-auto-rows: auto; }
  .t-head { grid-column: 1 / span 12; grid-row: auto; min-height: 380px; gap: 40px; }
  .t-photo { grid-column: 1 / span 12; grid-row: auto; aspect-ratio: 16 / 9; }
  .t-a, .t-b, .t-fig, .t-list { grid-column: span 6; grid-row: auto; min-height: 280px; }
  .t-c, .t-d { grid-column: 1 / span 12; grid-row: auto; }
  .trades__intro h2, .trades__intro p { grid-column: 1 / span 12; }
  .trades__intro p { margin-top: 16px; }
  .index__row { flex-direction: column; align-items: flex-start; padding-block: 10px; }
  .index__detail { text-align: left; margin-top: 4px; max-width: none; }
  .index__frame { display: none !important; }
  .log__grid { display: flex; flex-direction: column; }
  .log__panel { display: contents; }
  .log__panel > p:not(.log__note) { order: 1; }
  .picker, .borehole, .decisions { width: 100%; }
  .picker { order: 2; }
  .borehole { order: 3; margin-top: 40px; }
  .decisions { order: 4; }
  .log__note { order: 5; }
  .panel { padding: 40px; }
  .panel h2 { grid-column: 1 / span 12; }
  .panel__blocks { grid-column: 1 / span 12; grid-row: auto; max-width: none; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .panel__shape { position: relative; left: auto; bottom: auto; grid-column: 2 / span 10; width: 100%; margin-top: 56px; margin-bottom: -18%; }
  .panel__cap { display: none; }
  .faq__head { grid-column: 1 / span 12; position: static; margin-bottom: 40px; }
  .faq__list { grid-column: 1 / span 12; }
  .where__addr { grid-column: 1 / span 12; }
  .where__map, .where__fort { grid-column: span 6; }
  .foot__reach, .foot__cols { grid-column: 1 / span 12; }
}

/* ───────── telefon ───────── */
@media (max-width: 767px) {
  .field { min-height: auto; }
  .top { padding: 18px var(--margin); }
  .nav a:not(.button) { display: none; }
  .nav .button { min-height: 44px; padding: 0 1em; }
  .hero h1 { padding-top: 16svh; }
  .hero__foot { margin-top: 48px; }
  .hero h1 .l2 { padding-left: 0; }
  .hero__foot { padding-bottom: 28px; }
  .hero__facts { flex-wrap: wrap; gap: 16px 28px; }
  .hero__text p { font-size: var(--step-lead); }
  .intro { min-height: auto; }
  .intro .stairs { font-size: var(--step-lead); }
  .stairs span:nth-child(2) { padding-left: 5vw; }
  .stairs span:nth-child(3) { padding-left: 10vw; }
  .path__core { grid-column: 1 / span 12; }
  .path__core .core-pic { aspect-ratio: 3 / 2; }
  .path__core .core-pic img { object-position: 50% 40%; }
  .path__steps { grid-column: 1 / span 12; }
  .t-a, .t-b, .t-fig, .t-list { grid-column: 1 / span 12; min-height: 0; }
  .t-fig, .t-list { grid-column: span 6; }
  .t-head { min-height: 300px; }
  .tile { padding: 20px; }
  .t-fig .display { font-size: 4.5rem; }
  .index__row { flex-direction: column; align-items: flex-start; padding-block: 10px; }
  .index__name { font-size: 15vw; }
  .index__detail { text-align: left; font-size: 15px; margin-top: 6px; max-width: none; }
  .index__thumb { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 6px 0 4px; }
  .bh { height: 820px; min-height: 0; }
  .bh__row { min-height: 58px; }
  .bh__row, .bh__total { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
  .bh__lab { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .bh__name { font-size: var(--step-body); }
  .bh__time { font-size: 15px; }
  .who { padding: 10px; }
  .panel { padding: 28px 20px; min-height: auto; }
  .panel__blocks { grid-template-columns: 1fr; gap: 36px; }
  .panel__shape { grid-column: 1 / span 12; width: 86vw; justify-self: center; margin-bottom: -22%; }
  .qa summary { font-size: var(--step-body); min-height: 64px; padding: 18px 20px; }
  .qa .answer { padding: 0 20px 20px; font-size: 16px; }
  .strip img { height: 110px; }
  .form { grid-template-columns: 1fr; }
  .form input, .form button { height: 60px; font-size: var(--step-body); }
  .form__print { grid-template-columns: 1fr; }
  .form__print p:last-child { grid-column: auto; }
  .where__map, .where__fort { grid-column: 1 / span 12; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: row; font-size: 13px; }
}

/* sygnatury litologiczne jak w legendzie przekroju geologicznego */
.pat-humus { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M2 5h5M11 13h5' stroke='%23ffffff' stroke-opacity='.13' stroke-width='2'/%3E%3C/svg%3E"); }
.pat-clay { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M1 4h7M10 4h7M5 13h8' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E"); }
.pat-sand { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='4' cy='4' r='1.3' fill='%23000' fill-opacity='.2'/%3E%3Ccircle cx='13' cy='12' r='1.3' fill='%23000' fill-opacity='.2'/%3E%3C/svg%3E"); }
.pat-gravel { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='5' cy='5' r='3' fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='1.6'/%3E%3Ccircle cx='13.5' cy='13' r='2.2' fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='1.6'/%3E%3C/svg%3E"); }
.pat-rock { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M0 6h18M0 15h18M6 6v9M15 0v6' stroke='%23ffffff' stroke-opacity='.1' stroke-width='1.6'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-mask] > img[data-drift] { transition: clip-path 1200ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
}

/* ───────── hero: rdzeń z obrazem terenu ───────── */
.hero { position: relative; }
.hero__core { position: absolute; top: 112px; bottom: 40px; right: var(--margin); width: clamp(280px, 25vw, 400px); display: grid; grid-template-rows: 1fr auto; gap: 14px; margin: 0; }
.hero__core-frame { position: relative; overflow: hidden; background: #15110e; }
.hero__core-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__core figcaption { font-size: var(--step-small); opacity: 0.72; }
.hero__text { grid-column: 5 / span 4; justify-self: start; }
@media (min-width: 1200px) { .hero__core { right: calc(var(--margin) + 30px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__core-frame { clip-path: inset(0 0 100% 0); animation: drill 1600ms var(--ease-expo) 260ms forwards; }
  .js .hero__core-frame video { transform: scale(1.18); animation: settle 2600ms var(--ease-out) 260ms forwards; }
  .js .hero__core figcaption { opacity: 0; animation: rise 600ms var(--ease-out) 1400ms forwards; }
}
@keyframes drill { to { clip-path: inset(0); } }
@keyframes settle { to { transform: scale(1.04); } }
@media (max-width: 1100px) {
  .hero__core { position: relative; inset: auto; width: auto; height: 52svh; margin: 48px var(--margin) 0; }
  .hero__text { grid-column: 1 / span 12; }
}
@media (max-width: 640px) {
  .hero__core { height: 44svh; margin-top: 36px; }
}
@media (min-width: 1101px) { .hero__facts { grid-column: 1 / span 4; } }
.hero__facts dt, .hero__facts dd { white-space: nowrap; }
@media (max-width: 1100px) {
  .hero { display: flex; flex-direction: column; }
  .hero__foot { order: 2; margin-top: 32px; padding-bottom: 0; }
  .hero__core { order: 3; margin-bottom: 40px; }
}
