/* Obiektywnie Nieruchomości — system V1+
   Layout: jasny „papier” + ciemne rozdziały (hero, obsługa inwestycji, kontakt);
   kadr fotograficzny (znaczniki wizjera) jako jedyny powtarzalny motyw.
   Marka świadomie w jednym, jasnym wyglądzie (bez trybu ciemnego). */
:root {
  color-scheme: light;
  --ink: #1d2223;
  --slate: #313a3d;
  --paper: #fafbfa;
  --mist: #eceeea;
  --line: #d9ddd9;
  --muted: #4a5356;
  --gold: #bc9b53;
  --gold-light: #d4b66f;
  --gold-text: #7a5f27;
  --on-dark: #fafbfa;
  --on-dark-muted: #c9cdcb;
  --error: #a3322a;

  --f-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --f-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.7rem, 1.6rem + 4.4vw, 5.6rem);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em.acc, .acc {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--gold-text);
}
.on-dark .acc { color: var(--gold-light); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-light); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 34em; }
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-muted); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-3); max-width: 14em; }
.section-head p { max-width: 26em; color: var(--muted); }
.on-dark .section-head p { color: var(--on-dark-muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.25 var(--f-body); text-align: left; padding-block: 12px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .4s var(--ease-out), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover { color: var(--fg); }
.btn:hover::before { transform: translateX(120%); }
.btn .arr { transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--ink { --bg: var(--ink); --fg: var(--on-dark); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(250,251,250,.45); }
.btn--ghost::before { background: linear-gradient(110deg, transparent 20%, rgba(212,182,111,.25) 45%, transparent 70%); }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: inherit; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link:hover { color: inherit; background-size: 0 1px; background-position: 100% calc(100% - 8px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250,251,250,.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(29,34,35,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; position: relative; padding-block: 6px; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: 0.9rem; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid #c9cecb; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; width: 12px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); width: 20px; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); font-size: 1.6rem; letter-spacing: -0.02em;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease-out), visibility 0s .5s;
  }
  .nav a:not(.btn) { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; min-height: 56px; font-size: 1rem; }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out); }
  .menu-open { overflow: hidden; }
}

/* ---------- Viewfinder frame (brand motif) ---------- */
.frame { position: absolute; inset: clamp(16px, 3vw, 40px); pointer-events: none; z-index: 2; }
.frame i { position: absolute; width: 36px; height: 36px; border: 0 solid var(--gold); }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; view-transition-name: hero-3d; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 18% 62%, rgba(188,155,83,.22), transparent 60%),
    linear-gradient(90deg, rgba(29,34,35,.92) 0%, rgba(29,34,35,.62) 42%, rgba(29,34,35,.08) 78%),
    linear-gradient(0deg, rgba(29,34,35,.75) 0%, transparent 35%);
}
.hero-inner { position: relative; min-height: min(720px, 86vh); padding-block: clamp(96px, 12vw, 140px) clamp(56px, 7vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.hero h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -0.04em; max-width: 9.5em; }
.hero h1 .ln { display: block; }
.hero h1 .acc { color: var(--gold-light); }
.hero .lead { color: #e2e5e3; max-width: 30em; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.hero-eyebrow { color: #e6dcc4; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: #d0d4d2; }
.tag-demo { padding: 6px 10px; border: 1px solid rgba(250,251,250,.35); }
.focus-mark { display: inline-flex; align-items: center; gap: 10px; }
.focus-mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(212,182,111,.25); }

/* Page-level hero (subpages) */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.nowrap { white-space: nowrap; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.shot { position: relative; margin: 0; }
.shot .shot-img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; }
.shot .shot-img img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 12px; font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.shot .frame { inset: 16px; }
.shot .frame i { border-color: var(--paper); width: 26px; height: 26px; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 14px; font-size: var(--step-1); letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.marquee-track .acc { font-size: 1.1em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Path cards ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-direction: column; gap: 22px; color: var(--ink); text-decoration: none; }
.path:hover { color: var(--ink); }
.path-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--mist); }
.path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.path:hover .path-media img { transform: scale(1.05); }
.path-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,240,205,.32), transparent 70%);
}
.path:hover .path-media::after { opacity: 1; }
.path .frame { inset: 16px; opacity: 0; transform: scale(1.06); transition: opacity .5s, transform .6s var(--ease-out); }
.path .frame i { border-color: var(--paper); width: 24px; height: 24px; }
.path:hover .frame { opacity: 1; transform: none; }
.badge { position: absolute; z-index: 3; padding: 6px 10px; font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; }
.badge--demo { left: 16px; bottom: 16px; background: rgba(250,251,250,.92); color: var(--slate); }
.badge--prio { left: 16px; top: 16px; background: var(--ink); color: #e6dcc4; font-weight: 600; font-size: 0.74rem; }
.path h3 { font-size: var(--step-2); }
.path p { color: var(--muted); max-width: 30em; }
.kicker { font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- Before / after ---------- */
.compare-sec { background: var(--mist); }
.compare { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--paper); --pos: 50%; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; pointer-events: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(29,34,35,.12); }
.compare-knob {
  position: absolute; top: 50%; left: 0; width: 56px; height: 56px; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(29,34,35,.5);
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.compare input[type="range"]:focus-visible + .compare-handle .compare-knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare-label { position: absolute; z-index: 2; top: 16px; padding: 6px 10px; font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; }
.compare-label.l { left: 16px; background: var(--paper); color: var(--slate); }
.compare-label.r { right: 16px; background: var(--ink); color: #e6dcc4; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }
.note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Timeline ---------- */
.investment { background: var(--slate); color: var(--on-dark); }
.investment p, .investment .section-head p { color: var(--on-dark-muted); }
.investment .eyebrow, .investment .acc { color: var(--gold-light); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 48px; }
.timeline-rail { position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: rgba(188,155,83,.28); }
.timeline-rail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.stage { position: relative; display: flex; flex-direction: column; gap: 16px; }
.stage-dot { position: absolute; top: -48px; left: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); background: var(--slate); box-shadow: 0 0 0 6px var(--slate); transition: background .5s; }
.stage-dot { transition: background .4s, transform .4s var(--ease-out); }
.stage.is-lit .stage-dot { background: var(--gold); transform: scale(1.12); }
.stage-num { font-size: 0.8rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-light); }
.stage h3 { font-size: var(--step-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid rgba(250,251,250,.3); font-size: 0.82rem; color: var(--on-dark); }
.chip--soon { border-style: dashed; border-color: rgba(212,182,111,.7); color: #e6dcc4; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 40px; }
  .timeline-rail { left: 10px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline-rail::after { transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .stage-dot { top: 2px; left: -40px; }
}
.investment-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(250,251,250,.15); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.investment-foot p { max-width: 40em; font-size: 0.9rem; }

/* ---------- Work placeholders ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .works { grid-template-columns: 1fr; } }
.work { display: flex; flex-direction: column; gap: 14px; }
.work-ph {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%;
  border: 1px dashed #9aa19f; background: #f1f3f1; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase;
}
.work-ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(188,155,83,.12) 50%, transparent 65%);
  transform: translateX(-100%); animation: sheen 3.6s var(--ease-out) infinite;
}
.work-ph img { width: 48px; height: 48px; opacity: .55; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.work h3 { font-size: 1.35rem; }
.work p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Author / process / FAQ ---------- */
.author { background: var(--mist); }
.author-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .author-grid { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed #9aa19f; background: #dfe2df; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote { font-family: var(--f-accent); font-style: italic; font-weight: 300; font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid #b9bfbc; font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--f-accent); font-style: italic; font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--gold-text); }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out); }
.steps li:hover::after, .steps li.is-in::after { transform: scaleX(1); }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq h2 { font-size: var(--step-3); }
.faq-list { border-top: 1px solid #b9bfbc; }
.faq details { border-bottom: 1px solid #b9bfbc; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; font-size: 1.15rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-text); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 40em; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Content blocks (subpages) ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-text); }
.toc strong { color: var(--gold-text); }
.prose { max-width: 800px; }
.block { padding-block: clamp(56px, 7vw, 88px) 0; display: flex; flex-direction: column; gap: 20px; }
.block h2 { font-size: var(--step-3); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; background: var(--gold); }
.panel { background: var(--slate); color: var(--on-dark); padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; width: 480px; height: 480px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(212,182,111,.18), transparent 65%); pointer-events: none; }
.panel h2 { font-size: var(--step-3); }
.panel p { color: var(--on-dark-muted); }
.panel .ticks li { border-color: rgba(250,251,250,.14); }
.panel .eyebrow { color: var(--gold-light); }
.callout { padding-left: 20px; border-left: 2px solid var(--gold); font-weight: 500; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pricing--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pricing--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pricing, .pricing--4 { grid-template-columns: 1fr; } }
.price { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); transition: border-color .3s, transform .4s var(--ease-out); }
.price:hover { border-color: var(--gold); transform: translateY(-4px); }
.price .amount { font-size: var(--step-3); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.price ul strong { color: var(--ink); }
.price .price-for { margin: 0; font-size: 0.95rem; color: var(--slate); }
.price .price-term { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; }
.price--featured { border-color: var(--gold); }
.price-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.addons { list-style: none; margin: 0; padding: 0; max-width: 40em; border-top: 1px solid var(--line); }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.addons strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(35% 45% at 70% 40%, rgba(188,155,83,.24), transparent 70%),
    radial-gradient(30% 40% at 20% 80%, rgba(122,95,39,.25), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.cta-mark { position: absolute; right: -60px; top: 50%; width: min(520px, 70vw); transform: translateY(-50%); opacity: .07; z-index: -1; }
@keyframes drift { to { transform: translate(-6%, 4%) rotate(8deg); } }
.cta-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 48px; padding-block: clamp(88px, 11vw, 140px); }
.cta h2 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.04em; max-width: 8em; }
.cta-side { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 40px 28px; border-bottom: 1px solid var(--line); }
.site-footer img { height: 48px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-text); }
.site-footer .bottom { padding-block: 20px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250,251,250,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease-out);
  }
  .action-bar.is-on { transform: none; }
  .action-bar a { flex: 1; min-height: 48px; padding: 0 12px; font-size: 0.9rem; }
  .site-footer .bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 80px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.hint-box { background: var(--slate); color: var(--on-dark); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hint-box span { font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.hint-box p { white-space: pre-line; transition: opacity .25s; }
.contact-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 0.95rem; }
.contact-dl dt { color: var(--muted); }
.contact-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.copy-btn { border: 1px solid var(--line); background: transparent; font: 500 0.78rem var(--f-body); padding: 4px 10px; cursor: pointer; color: var(--muted); }
.copy-btn:hover { border-color: var(--gold); color: var(--ink); }
form.inquiry { display: flex; flex-direction: column; gap: 26px; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid #9aa19f; font-size: 0.95rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.choice input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice input:hover + span { border-color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; display: flex; gap: 8px; align-items: baseline; }
.field label small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field textarea {
  min-height: 52px; padding: 12px 16px; border: 1px solid #9aa19f; background: #fff;
  font: 400 1rem/1.5 var(--f-body); color: var(--ink); border-radius: 0; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(188,155,83,.35); }
.field textarea { resize: vertical; min-height: 170px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field .err { color: var(--error); font-size: 0.88rem; font-weight: 500; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--slate); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.error-summary { border: 1px solid var(--error); background: #fbf1ef; padding: 16px 20px; color: var(--ink); }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.form-status { padding: 20px 24px; background: #f4efe3; border: 1px solid #d9c9a1; display: flex; flex-direction: column; gap: 8px; }
.form-status strong { font-size: 1.05rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot small { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal */
.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); letter-spacing: -0.01em; margin-top: 16px; }
.legal p, .legal li { color: var(--slate); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: kenburns 14s var(--ease-out) both; }
  @keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
  .hero .ln { animation: rise 1s var(--ease-out) both; }
  .hero .ln:nth-child(2) { animation-delay: .12s; }
  .hero-copy > :not(h1) { animation: rise 1s var(--ease-out) .3s both; }
  .hero .frame i { animation: frame-in 1.2s var(--ease-out) .2s both; }
  .hero .frame i:nth-child(1) { --fx: -24px; --fy: -24px; }
  .hero .frame i:nth-child(2) { --fx: 24px; --fy: -24px; }
  .hero .frame i:nth-child(3) { --fx: -24px; --fy: 24px; }
  .hero .frame i:nth-child(4) { --fx: 24px; --fy: 24px; }
  @keyframes rise { from { transform: translateY(28px); opacity: 0; } }
  @keyframes frame-in { from { transform: translate(var(--fx), var(--fy)); opacity: 0; } }
  .focus-mark::before { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(212,182,111,0); } }

  /* Scroll reveals: native scroll-driven where supported, JS fallback otherwise */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .hero-media img.parallax { animation: kenburns 14s var(--ease-out) both, drift-y linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
  }
  @keyframes reveal { from { transform: translateY(56px) scale(.985); } }
  @keyframes drift-y { to { translate: 0 8%; } }
  html.no-sda .reveal.pending { transform: translateY(56px) scale(.985); }
  html.no-sda .reveal { transition: transform 1s var(--ease-out); }

  ::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) .14s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
  ::view-transition-group(hero-3d) { animation-duration: .6s; animation-timing-function: var(--ease-out); overflow: hidden; }
  ::view-transition-old(hero-3d), ::view-transition-new(hero-3d) {
    height: 100%; width: 100%; object-fit: cover; object-position: 60% center;
    animation-duration: .6s; animation-timing-function: var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Poprawki po przeglądzie */
.investment .section-head { margin-bottom: clamp(56px, 7vw, 88px); }
@media (max-width: 760px) {
  .hero-media::after {
    background:
      radial-gradient(80% 50% at 20% 70%, rgba(188,155,83,.2), transparent 60%),
      linear-gradient(180deg, rgba(29,34,35,.55) 0%, rgba(29,34,35,.78) 45%, rgba(29,34,35,.94) 100%);
  }
}

/* Krótkie zapewnienia pod przyciskiem w hero podstron */
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before {
  content: ""; flex: none; width: 18px; height: 18px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 520px) { .facts { flex-direction: column; } }

/* Hero podstron — uproszczony */
.page-hero .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }
.page-hero .stack { gap: 24px; }
.page-hero .lead { max-width: 28em; }

.foot-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-contact a { color: var(--muted); text-decoration: none; }
.foot-contact a:hover { color: var(--gold-text); }
