/*
Theme Name:   Astra Child
Theme URI:    https://na102.3dhouse.app/astra-child/
Description:  Motyw potomny dla Astra
Author:       Ela
Author URI:   http://example.com
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/
/*

/* ==========================================================================
   JURA NIERUCHOMOŚCI — system designu
   --------------------------------------------------------------------------
   Spis treści
   01. Fonty (self-hosted, bez CDN — RODO)
   02. Tokeny projektowe
   03. Reset i podstawy
   04. Typografia
   05. Układ: kontener, sekcja, siatka
   06. Przyciski i linki
   07. Nagłówek i nawigacja
   08. Hero
   09. Wstęgi treści (cytat, split, statystyki)
   10. Karty inwestycji i realizacji
   11. Proces (sygnaturowy komponent „Warstwy")
   12. Galeria i lightbox
   13. Formularz
   14. Stopka
   15. Elementy pomocnicze
   16. Animacje i prefers-reduced-motion
   17. Druk
   ========================================================================== */

/* ==========================================================================
   01. FONTY
   ========================================================================== */

/* Self-hosted variable fonts (RODO: bez zapytan do CDN Google) */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/Inter-latin-ext-var.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/Inter-latin-var.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Cormorant Garamond';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/CormorantGaramond-latin-ext-var.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Cormorant Garamond';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/CormorantGaramond-latin-var.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Teko';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/Teko-latin-ext-var.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Teko';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/Teko-latin-var.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Archivo Narrow';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/ArchivoNarrow-latin-ext-var.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Archivo Narrow';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('assets/fonts/ArchivoNarrow-latin-var.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   02. TOKENY PROJEKTOWE
   Kontrast każdej pary tekst/tło zweryfikowany wg WCAG 2.1 (min. AA).
   ========================================================================== */

:root{
  /* --- Kolory: powierzchnie --- */
  --paper:        #F6F6F3;   /* tło strony */
  --band:         #EDEDE8;   /* naprzemienna wstęga sekcji */
  --card:         #FFFFFF;
  --graphite:     #2A2F28;   /* ciemne sekcje i stopka */
  --graphite-2:   #212520;   /* głębsza warstwa stopki */

  /* --- Kolory: treść --- */
  --ink:          #191C17;   /* 15.90:1 na --paper  (AAA) */
  --muted:        #5E645B;   /* 5.62:1  na --paper  (AA)  */
  --on-dark:      #FFFFFF;   /* 13.67:1 na --graphite (AAA) */
  --on-dark-mut:  #C3C9BE;   /* 8.09:1  na --graphite (AAA) */

  /* --- Kolory: marka --- */
  --olive:        #5F7C3A;   /* zieleń z logo — powierzchnie i grafika */
  --olive-btn:    #55702F;   /* tło przycisku, biały tekst 5.61:1 (AA) */
  --olive-ink:    #4F6A2F;   /* zieleń jako TEKST na jasnym 5.65:1 (AA) */
  --olive-deep:   #3E5426;   /* stan :active */
  --lime:         #A5CD71;   /* akcent na ciemnym 7.53:1 (AAA) */
  --sand:         #D9CDBA;   /* wapień jurajski — akcent na ciemnym 8.72:1 */
  --sand-soft:    #E8E1D5;   /* wyłącznie powierzchnia, nigdy tekst */

  /* --- Linie --- */
  --line:         rgba(25, 28, 23, .14);
  --line-soft:    rgba(25, 28, 23, .08);
  --line-dark:    rgba(255, 255, 255, .16);
  --line-dark-soft: rgba(255, 255, 255, .08);

  /* --- Typografia --- */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-eyebrow:   .75rem;
  --fs-small:     .875rem;
  --fs-body:      1.0625rem;                                   /* 17px — czytelność */
  --fs-lead:      clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  --fs-h4:        clamp(1.0625rem, 1rem + .3vw,  1.25rem);
  --fs-h3:        clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --fs-h2:        clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h1:        clamp(2.5rem,  1.55rem + 4.2vw, 4.75rem);
  --fs-hero:      clamp(2.75rem, 1.5rem + 5.4vw, 5.5rem);

  --lh-tight:     1.06;
  --lh-heading:   1.15;
  --lh-body:      1.7;

  --measure:      68ch;      /* optymalna długość wiersza */
  --measure-tight:56ch;

  /* --- Przestrzeń --- */
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: 5rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --gutter:    clamp(1.25rem, .65rem + 2.2vw, 2.5rem);

  /* --- Wymiary --- */
  --container:      1240px;
  --container-wide: 1480px;
  --container-text: 760px;
  --header-h:       76px;
  --radius:         4px;
  --radius-lg:      8px;

  /* --- Cienie --- */
  --shadow-s: 0 1px 2px rgba(25,28,23,.06), 0 2px 8px rgba(25,28,23,.05);
  --shadow-m: 0 2px 6px rgba(25,28,23,.07), 0 12px 32px rgba(25,28,23,.09);
  --shadow-l: 0 4px 12px rgba(25,28,23,.08), 0 24px 60px rgba(25,28,23,.14);

  /* --- Ruch --- */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur-fast:  .18s;
  --dur:       .32s;
  --dur-slow:  .6s;
}

@media (min-width: 900px){
  :root{ --header-h: 88px; }
}

/* --------------------------------------------------------------------------
   WARIANTY TYPOGRAFII
   Krój nagłówków zmienia atrybut data-typo na <html>. Reszta systemu
   (kolory, siatka, komponenty) pozostaje bez zmian.

     brak / "serif"  → Cormorant Garamond  — kierunek premium
     "condensed"     → Archivo Narrow      — sylwetka jak Teko, ale czytelna
     "teko"          → Teko                — 1:1 jak na starej stronie
   -------------------------------------------------------------------------- */

:root{
  --display-weight:   600;
  --display-tracking: -0.005em;
  --display-case:     none;
  --display-lh:       1.15;
  --display-lh-tight: 1.06;
  --display-optical:  0;    /* korekta wysokości linii bazowej dla wąskich krojów */
}

:root[data-typo="condensed"]{
  --font-display: 'Archivo Narrow', 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
  --display-weight:   700;
  --display-tracking: -0.012em;
  --display-lh:       1.1;
  --display-lh-tight: 1.02;
  /* Archivo Narrow jest węższy — te same rozmiary czyta się mniejsze,
     więc lekko je podbijamy, żeby hierarchia została taka sama. */
  --fs-h3:   clamp(1.4rem,  1.15rem + 1.1vw, 2.1rem);
  --fs-h2:   clamp(1.95rem, 1.35rem + 2.8vw, 3.5rem);
  --fs-h1:   clamp(2.6rem,  1.6rem  + 4.4vw, 5rem);
  --fs-hero: clamp(2.85rem, 1.55rem + 5.6vw, 5.75rem);
}

:root[data-typo="teko"]{
  --font-display: 'Teko', 'Archivo Narrow', 'Arial Narrow', system-ui, sans-serif;
  --display-weight:   600;
  --display-tracking: 0.004em;
  --display-lh:       1.04;
  --display-lh-tight: 0.98;
  /* Teko ma bardzo małe oczko i duży prześwit u góry — bez podbicia
     rozmiaru i korekty odstępu nagłówki wyglądają na mniejsze. */
  --fs-h3:   clamp(1.6rem,  1.25rem + 1.5vw, 2.5rem);
  --fs-h2:   clamp(2.3rem,  1.5rem  + 3.4vw, 4.1rem);
  --fs-h1:   clamp(3.1rem,  1.8rem  + 5.4vw, 6rem);
  --fs-hero: clamp(3.4rem,  1.7rem  + 6.8vw, 6.8rem);
  --display-optical: 0.06em;
}

/* ==========================================================================
   03. RESET I PODSTAWY
   ========================================================================== */

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

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked{ overflow: hidden; }

img, picture, video, canvas, svg{ display: block; max-width: 100%; }
img{ height: auto; }

/* <picture> jest domyślnie elementem liniowym o wysokości auto, więc
   `height:100%` na leżącym w środku <img> nie miało do czego się odnieść
   i zdjęcia nie wypełniały kadru. Wszędzie, gdzie obraz ma kryć całe pole,
   picture musi być blokiem o wymiarach rodzica. */
.hero__media picture,
.cta__media picture,
.card__media picture,
.tile__media picture,
.gallery__item picture,
.person picture,
.ratio > picture{
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media picture > img,
.cta__media picture > img,
.card__media picture > img,
.tile__media picture > img,
.gallery__item picture > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

input, button, textarea, select{ font: inherit; color: inherit; }

button{ background: none; border: 0; padding: 0; cursor: pointer; }

ul, ol{ margin: 0; padding: 0; }
li{ list-style: none; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd{ margin: 0; }

address{ font-style: normal; }

hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-l) 0;
}

::selection{ background: var(--olive); color: #fff; }

:focus-visible{
  outline: 2px solid var(--olive-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.footer :focus-visible,
.header--solid .nav :focus-visible{ outline-color: var(--lime); }

/* ==========================================================================
   04. TYPOGRAFIA
   ========================================================================== */

.display,
h1, h2, h3,
.card__title, .tile__title, .registry__name, .pager__name,
.hero__title, .stat__value, .process__num, .hero__fact dd,
.manifesto__quote, .drawer__nav a{
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
}

.display,
h1, h2, h3{
  line-height: var(--display-lh);
  text-wrap: balance;
}

h1{ font-size: var(--fs-h1); line-height: var(--display-lh-tight); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }

h4, h5, h6{
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p{ text-wrap: pretty; }
p + p{ margin-top: 1.1em; }

strong, b{ font-weight: 600; }

a{ color: var(--olive-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover{ color: var(--olive-deep); }

.prose{ max-width: var(--measure); }
.prose p + p{ margin-top: 1.15em; }
.prose ul{ margin-top: 1em; display: grid; gap: .55em; }
.prose ul li{
  position: relative;
  padding-left: 1.5em;
}
.prose ul li::before{
  content: "";
  position: absolute;
  left: .1em;
  top: .72em;
  width: .55em;
  height: 1px;
  background: var(--olive);
}

/* Nadlinia — mała etykieta strukturalna nad nagłówkiem */
.eyebrow{
  display: flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--olive-ink);
  margin-bottom: var(--space-s);
}
.eyebrow::after{
  content: "";
  flex: 0 0 auto;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--center{ justify-content: center; }
.eyebrow--center::before{
  content: "";
  width: 2.5rem; height: 1px;
  background: currentColor; opacity: .5;
  order: -1;
}
.on-dark .eyebrow{ color: var(--lime); }

.lead{
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}
.on-dark .lead{ color: var(--on-dark-mut); }

.meta{
  font-size: var(--fs-small);
  color: var(--muted);
  letter-spacing: .01em;
}
.on-dark .meta{ color: var(--on-dark-mut); }

/* Rząd danych: „26 mieszkań · Modlnica · 2021" — zamiast oryginalnych pipe'ów */
.factline{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.factline > * + *::before{
  content: "·";
  margin-right: .9rem;
  color: var(--olive);
  font-weight: 700;
}
.on-dark .factline{ color: var(--on-dark-mut); }
.on-dark .factline > * + *::before{ color: var(--lime); }

/* ==========================================================================
   05. UKŁAD
   ========================================================================== */

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

.section{ padding-block: var(--section-y); }
.section--tight{ padding-block: calc(var(--section-y) * .62); }
.section--flush-top{ padding-top: 0; }
.section--flush-bottom{ padding-bottom: 0; }

.section--band{ background: var(--band); }
.section--sand{ background: var(--sand-soft); }
.section--dark{ background: var(--graphite); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: var(--on-dark); }

.section__head{ margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head--center{ text-align: center; }
.section__head--center .lead{ margin-inline: auto; }
.section__head p{ margin-top: var(--space-s); }

/* Nagłówek sekcji z akcją po prawej */
.section__head--split{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
}
.section__head--split > div{ min-width: 0; }

.stack{ display: grid; gap: var(--space-m); }
.stack--s{ gap: var(--space-s); }
.stack--l{ gap: var(--space-l); }

.grid{ display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
.grid--2{ grid-template-columns: 1fr; }
.grid--3{ grid-template-columns: 1fr; }
.grid--4{ grid-template-columns: 1fr; }

@media (min-width: 640px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

/* Układ dwukolumnowy: obraz + tekst */
.split{
  display: grid;
  gap: clamp(1.75rem, 1rem + 3.5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px){
  .split{ grid-template-columns: 1fr 1fr; }
  .split--wide-media{ grid-template-columns: 1.15fr 1fr; }
  .split--wide-text{ grid-template-columns: 1fr 1.15fr; }
  .split--reverse > .split__media{ order: 2; }
}
.split__media{ position: relative; }
.split__body{ min-width: 0; }
.split__body > * + *{ margin-top: var(--space-m); }

/* Obraz z cienką ramką offsetową — motyw „warstwy" */
.framed{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
}
.framed img{ width: 100%; }
.framed--offset{ overflow: visible; }
.framed--offset::before{
  content: "";
  position: absolute;
  inset: auto -0.75rem -0.75rem auto;
  width: 55%;
  height: 55%;
  border-right: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
  opacity: .55;
  pointer-events: none;
  border-radius: 0 0 var(--radius) 0;
}
.framed--offset img{ border-radius: var(--radius); }

.ratio{ position: relative; overflow: hidden; background: var(--band); border-radius: var(--radius); }
.ratio > img, .ratio > picture > img, .ratio > iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ratio--16x9{ aspect-ratio: 16 / 9; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x2 { aspect-ratio: 3 / 2; }
.ratio--1x1 { aspect-ratio: 1 / 1; }
.ratio--4x5 { aspect-ratio: 4 / 5; }

/* ==========================================================================
   06. PRZYCISKI I LINKI
   ========================================================================== */

.btn{
  --btn-bg: var(--olive-btn);
  --btn-fg: #fff;
  --btn-bd: var(--olive-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;                 /* cel dotykowy ≥ 48px */
  padding: .8rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover{ --btn-bg: var(--olive-deep); --btn-bd: var(--olive-deep); color: #fff; }
.btn:active{ transform: translateY(1px); }

.btn--ghost{ --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover{ --btn-bg: transparent; --btn-bd: var(--ink); color: var(--ink); }

.btn--light{ --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover{ --btn-bg: var(--sand-soft); --btn-bd: var(--sand-soft); color: var(--ink); }

.btn--outline-light{ --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover{ --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; color: #fff; }

.btn--block{ width: 100%; }
.btn .icon{ width: 1em; height: 1em; flex: 0 0 auto; }

.btn-row{ display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.btn-row--center{ justify-content: center; }

/* Link ze strzałką — używany zamiast pełnego przycisku w kartach */
.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--olive-ink);
  text-decoration: none;
  padding-block: .35rem;
}
.link-arrow::after{
  content: "";
  width: .9em; height: .9em;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / contain no-repeat;
          mask: var(--arrow-mask) center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
:root{
  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.link-arrow:hover{ color: var(--olive-deep); }
.link-arrow:hover::after{ transform: translateX(.25em); }
.on-dark .link-arrow{ color: var(--lime); }
.on-dark .link-arrow:hover{ color: #fff; }

/* ==========================================================================
   07. NAGŁÓWEK I NAWIGACJA
   ========================================================================== */

.skip-link{
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 200;
  padding: .85rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus{ top: .75rem; color: #fff; }

.header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner{
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

/* Wariant przezroczysty leży na zdjęciu hero */
.header--over{ color: #fff; }
.header--over .header__logo-dark{ display: none; }
.header--over .header__logo-light{ display: block; }

/* Po przewinięciu (i na podstronach bez hero-obrazu) */
.header--solid,
.header--static{
  background: rgba(246,246,243,.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
          backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}
.header--solid .header__logo-light,
.header--static .header__logo-light{ display: none; }
.header--solid .header__logo-dark,
.header--static .header__logo-dark{ display: block; }

.header__brand{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  padding-block: .25rem;
}
.header__brand img{ height: clamp(30px, 4.2vw, 40px); width: auto; }

.header__spacer{ flex: 1 1 auto; }

/* — Nawigacja desktop — */
.nav{ display: none; }
@media (min-width: 1080px){
  .nav{ display: block; }
}
.nav__list{ display: flex; align-items: center; gap: .35rem; }
.nav__item{ position: relative; }

.nav__link{
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .7rem .9rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .005em;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover{ color: inherit; background: rgba(127,127,127,.12); }
.nav__link[aria-current="page"]{ font-weight: 600; }
.nav__link[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem;
  height: 1.5px;
  background: currentColor;
  opacity: .85;
}
.nav__caret{
  width: .6em; height: .6em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret{ transform: translateY(.05em) rotate(225deg); }

.nav__menu{
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  min-width: 250px;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              visibility var(--dur-fast);
}
.nav__item--has-menu:hover > .nav__menu,
.nav__item--has-menu:focus-within > .nav__menu{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a{
  display: block;
  padding: .6rem .75rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__menu a small{
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-top: .1rem;
}
.nav__menu a:hover{ background: var(--band); color: var(--olive-ink); }

/* — Telefon w nagłówku — */
.header__phone{
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .95rem .55rem .7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (min-width: 860px){ .header__phone{ display: inline-flex; } }
.header__phone .icon{ width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.header--solid .header__phone:hover,
.header--static .header__phone:hover{ background: var(--ink); color: #fff; }
.header--over .header__phone:hover{ background: #fff; color: var(--ink); }

/* — Przycisk hamburgera — */
.burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -.6rem;
  color: inherit;
  border-radius: var(--radius);
  flex: 0 0 auto;
}
@media (min-width: 1080px){ .burger{ display: none; } }
.burger__box{ position: relative; width: 22px; height: 14px; }
.burger__box span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur) var(--ease);
}
.burger__box span:nth-child(1){ top: 0; }
.burger__box span:nth-child(2){ top: 6.1px; }
.burger__box span:nth-child(3){ top: 12.25px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1){ top: 6.1px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3){ top: 6.1px; transform: rotate(-45deg); }

/* — Szuflada mobilna — */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open{ visibility: visible; pointer-events: auto; }

.drawer__scrim{
  position: absolute;
  inset: 0;
  background: rgba(25,28,23,.5);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim{ opacity: 1; }

.drawer__panel{
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow-l);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel{ transform: translateX(0); }

.drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  flex: 0 0 auto;
}
.drawer__head img{ height: 32px; width: auto; }
.drawer__close{
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -.75rem;
  border-radius: var(--radius);
}
.drawer__close svg{ width: 20px; height: 20px; }

.drawer__body{ padding: var(--space-s) var(--gutter) var(--space-l); flex: 1 1 auto; }

.drawer__nav > li{ border-bottom: 1px solid var(--line-soft); }
.drawer__nav a{
  display: block;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.drawer__nav a[aria-current="page"]{ color: var(--olive-ink); }

.drawer__sub{
  display: grid;
  gap: .1rem;
  padding: 0 0 .9rem .1rem;
}
.drawer__sub a{
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: .55rem 0 .55rem 1.1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.drawer__sub a:hover{ color: var(--olive-ink); border-left-color: var(--olive); }

.drawer__foot{
  margin-top: var(--space-l);
  display: grid;
  gap: var(--space-s);
}
.drawer__contact{
  display: grid;
  gap: .35rem;
  font-size: .9375rem;
  color: var(--muted);
}
.drawer__contact a{ color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.0625rem; }

/* ==========================================================================
   08. HERO
   ========================================================================== */

.hero{
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
  background: var(--graphite);
  color: #fff;
}
.hero--compact{
  min-height: min(72svh, 660px);
  align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--space-2xl));
}
.hero--compact .hero__title{ max-width: 20ch; }
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13,16,12,.92) 0%, rgba(13,16,12,.72) 30%, rgba(13,16,12,.42) 58%, rgba(13,16,12,.30) 78%, rgba(13,16,12,.55) 100%);
}
.hero__inner{ position: relative; z-index: 1; width: 100%; }
.hero__eyebrow{ color: var(--sand); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero__eyebrow::after, .hero__eyebrow::before{ background: var(--sand); }

.hero__title{
  font-size: var(--fs-hero);
  line-height: var(--display-lh-tight);
  max-width: 17ch;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
.hero__title em{
  font-style: normal;
  color: var(--sand);
}
.hero__lead{
  margin-top: var(--space-m);
  max-width: 46ch;
  color: rgba(255,255,255,.9);
  font-size: var(--fs-lead);
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.hero__actions{ margin-top: var(--space-l); }

/* Pasek faktów pod hero — zamiast rozjeżdżających się pipe'ów z oryginału */
.hero__facts{
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255,255,255,.22);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m) var(--space-s);
}
@media (min-width: 780px){
  .hero__facts{ grid-template-columns: repeat(4, 1fr); }
}
.hero__fact dt{
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  line-height: 1.2;
}
.hero__fact dd{
  margin: .3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

/* Wskaźnik przewijania */
.hero__scroll{
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (min-width: 900px) and (min-height: 700px){ .hero__scroll{ display: inline-flex; } }
.hero__scroll:hover{ background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.hero__scroll svg{ width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }

@keyframes nudge{
  0%, 62%, 100%{ transform: translateY(0); }
  30%{ transform: translateY(4px); }
}

/* Nagłówek podstrony — bez zdjęcia, na papierze */
.pagehead{
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead__title{ margin-top: .2rem; }
.pagehead .lead{ margin-top: var(--space-m); }

/* Okruszki */
.crumbs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: var(--space-s);
}
.crumbs a{ color: inherit; text-decoration: none; }
.crumbs a:hover{ color: var(--olive-ink); text-decoration: underline; }
.crumbs li + li::before{ content: "/"; margin-right: .55rem; opacity: .55; }
.crumbs li{ display: inline-flex; align-items: center; }
.crumbs [aria-current="page"]{ color: var(--ink); }
.hero .crumbs{
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-m);
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero .crumbs [aria-current="page"]{ color: #fff; }
.hero .crumbs a:hover{ color: #fff; }

/* ==========================================================================
   09. WSTĘGI TREŚCI
   ========================================================================== */

/* Cytat / manifest */
.manifesto{ text-align: center; }
.manifesto__quote{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.008em;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.manifesto__quote::before{ content: "„"; }
.manifesto__quote::after{ content: "”"; }
.manifesto__by{
  margin-top: var(--space-m);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

/* Pasek statystyk — przewijana wstęga */
.ticker{
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: 1.15rem;
  overflow: hidden;
  position: relative;
}
.ticker__track{
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track{ animation-play-state: paused; }
.ticker__group{
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ticker__item{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-inline: 1.5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-dark-mut);
}
.ticker__item strong{ color: #fff; font-weight: 700; }
.ticker__item::after{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin-left: 1.5rem;
  flex: 0 0 auto;
}
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Wykaz liczb — statyczna wersja statystyk */
.stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l) var(--space-m);
}
@media (min-width: 900px){ .stats{ grid-template-columns: repeat(4, 1fr); } }
.stat{ border-top: 1px solid var(--line); padding-top: var(--space-s); }
.on-dark .stat{ border-top-color: var(--line-dark); }
.stat__value{
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label{
  margin-top: .5rem;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.45;
}
.on-dark .stat__label{ color: var(--on-dark-mut); }

/* Wezwanie do działania na końcu strony */
.cta{
  position: relative;
  background: var(--graphite);
  color: var(--on-dark);
  overflow: hidden;
}
.cta__media{ position: absolute; inset: 0; }
.cta__media img{ width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta__media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(28,32,26,.94) 20%, rgba(28,32,26,.7) 100%);
}
.cta__inner{ position: relative; z-index: 1; text-align: center; }
.cta__title{ max-width: 20ch; margin-inline: auto; }
.cta .lead{ margin-inline: auto; margin-top: var(--space-m); }
.cta .btn-row{ margin-top: var(--space-l); }

/* ==========================================================================
   10. KARTY
   ========================================================================== */

/* Karta inwestycji — zdjęcie, logo, dane, CTA */
.card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line); }
.card:focus-within{ box-shadow: var(--shadow-m); }

.card__media{ position: relative; overflow: hidden; background: var(--band); }
.card__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card__media img{ transform: scale(1.045); }

.card__badge{
  position: absolute;
  top: .85rem; left: .85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  background: rgba(246,246,243,.94);
  color: var(--ink);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card__badge--live{ background: var(--olive-btn); color: #fff; }
.card__badge--live::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.card__body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--space-xs);
  padding: clamp(1.15rem, .9rem + .8vw, 1.65rem);
}
.card__title{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
}
.card__title a{
  color: inherit;
  text-decoration: none;
}
/* Cała karta klikalna, ale tekst pozostaje zaznaczalny */
.card__title a::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__text{
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot{
  margin-top: auto;
  padding-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

/* Karta z sygnetem inwestycji na zdjęciu */
.card--sigil .card__media{ aspect-ratio: 4 / 5; }
.card--sigil .card__media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,21,17,.82) 6%, rgba(18,21,17,.28) 48%, rgba(18,21,17,.18) 100%);
}
.card--sigil .card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1.1rem, .8rem + 1vw, 1.75rem);
  color: #fff;
}
.card--sigil .card__sigil{
  /* Znaki inwestycji mają różne proporcje, więc równamy je wysokością,
     nie szerokością — inaczej jeden wygląda dwa razy większy od drugiego. */
  height: clamp(34px, 4.4vw, 46px);
  width: auto;
  max-width: 70%;
  margin-bottom: var(--space-s);
  filter: brightness(0) invert(1);
  opacity: .95;
}
.card--sigil .card__title{ color: #fff; }
.card--sigil .factline{ color: rgba(255,255,255,.85); margin-top: .5rem; }
.card--sigil .factline > * + *::before{ color: var(--lime); }
.card--sigil .link-arrow{ color: #fff; margin-top: .75rem; }

/* Kafel realizacji — poziomy na desktopie */
.tile{
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.tile:hover{ box-shadow: var(--shadow-m); border-color: var(--line); }
@media (min-width: 860px){
  .tile{ grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .tile--reverse .tile__media{ order: 2; }
}
.tile__media{ position: relative; overflow: hidden; background: var(--band); min-height: 240px; }
.tile__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tile:hover .tile__media img{ transform: scale(1.035); }
.tile__body{
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: clamp(1.4rem, 1rem + 2vw, 2.75rem);
  justify-content: center;
}
.tile__title{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
}
.tile__title a{ color: inherit; text-decoration: none; }
.tile__title a::after{ content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__text{
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rejestr realizacji — tabela zamiast luźnych wierszy */
.registry{ border-top: 1px solid var(--line); }
.registry__row{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem var(--space-m);
  align-items: baseline;
  padding: clamp(1.1rem, .9rem + .8vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease);
}
.registry__row:hover{ background: rgba(95,124,58,.05); }
@media (min-width: 860px){
  .registry__row{
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-m);
  }
}
.registry__name{
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  grid-column: 1 / -1;
}
@media (min-width: 860px){ .registry__name{ grid-column: auto; } }
.registry__name a{ color: inherit; text-decoration: none; }
.registry__name a::after{ content: ""; position: absolute; inset: 0; z-index: 1; }
.registry__name a:hover{ color: var(--olive-ink); }
.registry__cell{
  font-size: var(--fs-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.registry__cell strong{ color: var(--ink); font-weight: 600; }
.registry__go{
  display: none;
  color: var(--olive-ink);
  transition: transform var(--dur) var(--ease-out);
}
@media (min-width: 860px){ .registry__go{ display: block; } }
.registry__go svg{ width: 20px; height: 20px; }
.registry__row:hover .registry__go{ transform: translateX(4px); }

/* Kolumna z małą etykietą nad wartością (mobile-first opis danych) */
.datum dt{
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.datum dd{
  margin: .25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
}
.datum-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-block: 1px solid var(--line);
}
.on-dark .datum-grid{ border-color: var(--line-dark); }
.on-dark .datum dt{ color: var(--on-dark-mut); }

/* ==========================================================================
   11. PROCES — komponent sygnaturowy „Warstwy"
   Sześć etapów to realna sekwencja, więc numeracja niesie informację.
   ========================================================================== */

.process{
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 1000px){
  .process{ grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: start; }
}

.process__rail{ display: none; }
@media (min-width: 1000px){
  .process__rail{
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}
.process__rail-list{ display: grid; }
.process__rail-item{
  position: relative;
  padding: .85rem 0 .85rem 3.25rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  background: none;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}
.process__rail-item::before{
  content: attr(data-num);
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  opacity: .65;
}
.process__rail-item::after{
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--olive);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease-out);
}
.process__rail-item:hover{ color: var(--ink); }
.process__rail-item[aria-selected="true"]{ color: var(--ink); font-weight: 600; }
.process__rail-item[aria-selected="true"]::after{ transform: scaleY(1); }
.process__rail-item[aria-selected="true"]::before{ opacity: 1; color: var(--olive-ink); }

.process__panels{ min-width: 0; }
.process__panel{ display: none; }
.process__panel.is-active{ display: block; }
@media (min-width: 1000px){
  .process__panel{ min-height: 22rem; }
}
.process__num{
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 600;
  line-height: .9;
  color: var(--olive);
  opacity: .22;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.process__title{ margin-top: -.35em; position: relative; }
.process__text{ margin-top: var(--space-m); color: var(--muted); max-width: var(--measure); }

/* Wariant mobilny: akordeon */
.process__accordion{ display: grid; }
@media (min-width: 1000px){ .process__accordion{ display: none; } }
.process__acc-item{ border-bottom: 1px solid var(--line); }
.process__acc-item:first-child{ border-top: 1px solid var(--line); }
.process__acc-btn{
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  min-height: 56px;
}
.process__acc-num{
  font-size: .8125rem;
  font-weight: 600;
  color: var(--olive-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.process__acc-icon{
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 auto;
}
.process__acc-icon::before,
.process__acc-icon::after{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.process__acc-icon::before{ width: 14px; height: 1.5px; }
.process__acc-icon::after{ width: 1.5px; height: 14px; }
.process__acc-btn[aria-expanded="true"] .process__acc-icon::after{ transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.process__acc-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}
.process__acc-panel[data-open="true"]{ grid-template-rows: 1fr; }
.process__acc-panel > div{ overflow: hidden; }
.process__acc-panel p{
  padding: 0 0 1.3rem 3.5rem;
  color: var(--muted);
  font-size: 1rem;
}
@media (max-width: 420px){
  .process__acc-panel p{ padding-left: 0; }
}

/* ==========================================================================
   12. GALERIA I LIGHTBOX
   ========================================================================== */

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.6rem, .4rem + .8vw, 1rem);
}
.gallery__item{
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
}
.gallery__item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease);
}
.gallery__item:hover img{ transform: scale(1.05); }
.gallery__item::after{
  content: "";
  position: absolute; inset: 0;
  background: rgba(25,28,23,0);
  transition: background var(--dur) var(--ease);
}
.gallery__item:hover::after{ background: rgba(25,28,23,.12); }
.gallery__item--wide{ grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 639px){ .gallery__item--wide{ grid-column: span 1; aspect-ratio: 3 / 2; } }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12,14,11,.94);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open{ display: flex; }
.lightbox__figure{
  position: relative;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}
.lightbox__img{
  max-width: 100%;
  max-height: calc(100svh - 6rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption{
  display: none;
}
.lightbox__btn{
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  transition: background var(--dur-fast) var(--ease);
}
.lightbox__btn:hover{ background: rgba(255,255,255,.24); }
.lightbox__btn svg{ width: 20px; height: 20px; }
.lightbox__close{ top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.lightbox__prev{ left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__next{ right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   13. FORMULARZ
   ========================================================================== */

.form{ display: grid; gap: var(--space-m); }
.form__row{ display: grid; gap: var(--space-m); }
@media (min-width: 640px){ .form__row--2{ grid-template-columns: 1fr 1fr; } }

.field{ display: grid; gap: .4rem; }
.field__label{
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .01em;
}
.field__req{ color: var(--olive-ink); }
.field__hint{ font-size: .8125rem; color: var(--muted); }

.input,
.textarea,
.select{
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.textarea{ min-height: 140px; resize: vertical; }
.select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235E645B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 20px;
  padding-right: 2.6rem;
}
.input:focus, .textarea:focus, .select:focus{
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(95,124,58,.18);
}
.input::placeholder, .textarea::placeholder{ color: #8B9187; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"]{
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179,38,30,.14);
}
.field__error{
  font-size: .8125rem;
  font-weight: 500;
  color: #B3261E;
  display: none;
}
.field__error.is-shown{ display: block; }

.checkbox{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input{
  width: 22px; height: 22px;
  margin: .15rem 0 0;
  accent-color: var(--olive-btn);
  flex: 0 0 auto;
  cursor: pointer;
}
.checkbox a{ color: var(--olive-ink); }

.form__note{ font-size: .8125rem; color: var(--muted); }

.form__status{
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  border-left: 3px solid var(--olive);
  background: rgba(95,124,58,.09);
  font-size: .9375rem;
  display: none;
}
.form__status.is-shown{ display: block; }
.form__status--error{ border-left-color: #B3261E; background: rgba(179,38,30,.08); }

/* Karta kontaktowa opiekuna */
.person{
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.person__avatar{
  width: 76px; height: 76px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--band);
}
.person__name{ font-weight: 600; font-size: 1.0625rem; }
.person__role{ font-size: var(--fs-small); color: var(--muted); }
.person__phone{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .4rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

/* Lista kontaktowa z ikonami */
.contact-list{ display: grid; gap: var(--space-s); }
.contact-list li{ display: grid; grid-template-columns: 1.4rem 1fr; gap: .85rem; align-items: start; }
.contact-list .icon{ width: 1.15rem; height: 1.15rem; color: var(--olive-ink); margin-top: .28rem; }
.contact-list a{ color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover{ color: var(--olive-ink); text-decoration: underline; }
.on-dark .contact-list .icon{ color: var(--lime); }
.on-dark .contact-list a{ color: #fff; }

.map-frame{
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--band);
}
.map-frame iframe{ display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   14. STOPKA
   ========================================================================== */

.footer{
  background: var(--graphite);
  color: var(--on-dark-mut);
  font-size: .9375rem;
}
.footer a{ color: var(--on-dark-mut); text-decoration: none; }
.footer a:hover{ color: #fff; text-decoration: underline; }

.footer__top{
  padding-block: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 780px){
  .footer__top{ grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--space-l); }
}
@media (min-width: 1080px){
  .footer__top{ grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
}
.footer__logo{ height: 46px; width: auto; margin-bottom: var(--space-m); }
.footer__about{ max-width: 34ch; line-height: 1.65; }

.footer__title{
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-s);
}
.footer__list{ display: grid; gap: .55rem; }
.footer__list a{ display: inline-block; padding-block: .1rem; }

.footer__legal{
  display: grid;
  gap: .4rem;
  font-variant-numeric: tabular-nums;
  font-size: .875rem;
}
.footer__legal dt{ display: inline; font-weight: 600; color: #fff; }
.footer__legal dd{ display: inline; margin: 0; }
.footer__legal div + div{ margin-top: .1rem; }

.footer__bottom{
  border-top: 1px solid var(--line-dark-soft);
  padding-block: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  font-size: .8125rem;
}
.footer__bottom-links{ display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Pływający pasek kontaktu na telefonie */
.callbar{
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--graphite);
  border-top: 1px solid var(--line-dark-soft);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar.is-shown{ transform: translateY(0); }
@media (min-width: 860px){ .callbar{ display: none; } }
.callbar a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 56px;
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.callbar a + a{ border-left: 1px solid var(--line-dark-soft); }
.callbar a:first-child{ background: var(--olive-btn); }
.callbar .icon{ width: 1.1em; height: 1.1em; }

body:has(.callbar.is-shown) .footer__bottom{ padding-bottom: calc(var(--space-m) + 56px); }

/* ==========================================================================
   15. ELEMENTY POMOCNICZE
   ========================================================================== */

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mt-s{ margin-top: var(--space-s); }
.mt-m{ margin-top: var(--space-m); }
.mt-l{ margin-top: var(--space-l); }
.mt-xl{ margin-top: var(--space-xl); }
.mb-0{ margin-bottom: 0; }

.icon{ width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rule{ height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule{ background: var(--line-dark); }

.note{
  padding: var(--space-m);
  background: var(--sand-soft);
  border-left: 3px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  line-height: 1.6;
}

/* Nawigacja prev/next między projektami */
.pager{
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 700px){ .pager{ grid-template-columns: 1fr 1fr; } }
.pager__link{
  display: grid;
  gap: .3rem;
  padding: var(--space-l) var(--space-m);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease);
}
.pager__link:hover{ background: var(--band); color: var(--ink); }
.pager__link--next{ text-align: right; }
.pager__dir{
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager__name{
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

/* ==========================================================================
   16. ANIMACJE
   ========================================================================== */

[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }

/* Bez JS wszystko musi być widoczne */
.no-js [data-reveal]{ opacity: 1; transform: none; }
.no-js .process__panel{ display: block; }
.no-js .process__acc-panel{ grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal]{ opacity: 1; transform: none; }
  .ticker__track{ animation: none; transform: none; }
  .ticker{ overflow-x: auto; }
  .hero__scroll svg{ animation: none; }
}

/* ==========================================================================
   17. DRUK
   ========================================================================== */

@media print{
  .header, .drawer, .callbar, .hero__scroll, .ticker, .lightbox, .btn, .pager{ display: none !important; }
  body{ background: #fff; color: #000; font-size: 11pt; }
  .hero{ min-height: auto; padding: 0; color: #000; background: none; }
  .hero__media{ display: none; }
  .section{ padding-block: 1rem; break-inside: avoid; }
  a[href^="http"]::after{ content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   18. TYMCZASOWY PRZEŁĄCZNIK KROJU (podgląd)
   Usuwany razem ze znacznikiem: preview.typo_switcher = false w data.json.
   ========================================================================== */

.typoswitch{
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: .5rem;
  padding: .8rem .9rem;
  background: rgba(25,28,23,.94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-l);
  max-width: calc(100vw - 2rem);
}
@media (max-width: 859px){
  .typoswitch{ bottom: calc(56px + 1rem); }
}
.typoswitch.is-hidden{ display: none; }

.typoswitch__label{
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  line-height: 1;
}
.typoswitch__row{ display: flex; flex-wrap: wrap; gap: .35rem; }
.typoswitch__row button{
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  padding: .5rem .75rem;
  min-height: 38px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.typoswitch__row button:hover{ background: rgba(255,255,255,.14); }
.typoswitch__row button[aria-pressed="true"]{
  background: var(--olive-btn);
  border-color: var(--olive-btn);
}
.typoswitch__hide{
  justify-self: start;
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  padding: .25rem 0;
  min-height: 32px;
}
.typoswitch__hide:hover{ color: #fff; }

/* ==========================================================================
   ZMIANY v3 — 2026-09
   1) Sekcja "Jak pracujemy" na tle szałwiowym
   2) Oferta: większe karty przewijane; sigil NA zdjęciu (jak w oryginale),
      tekst pod zdjęciem
   3) Rejestr realizacji: po najechaniu rozwija się pełnowymiarowy kafel
      (taki jak Warszawska); po zjechaniu wraca do tabeli
   ========================================================================== */

/* --- 1) Sekcja szałwiowa ------------------------------------------------- */
:root{
  --sage:      #96A87E;             /* tło szałwiowe */
  --sage-ink:  #2E3527;             /* tekst pomocniczy na szałwii */
  --sage-line: rgba(25, 28, 23, .22);
}
.section--sage{ background: var(--sage); }
.section--sage .eyebrow{ color: #35431B; }
.section--sage .lead,
.section--sage .process__text,
.section--sage .process__acc-panel p{ color: var(--sage-ink); }
.section--sage .process__rail-item{ color: #39402F; border-left-color: var(--sage-line); }
.section--sage .process__rail-item:hover,
.section--sage .process__rail-item[aria-selected="true"]{ color: var(--ink); }
.section--sage .process__rail-item[aria-selected="true"]::before{ color: var(--olive-deep); }
.section--sage .process__rail-item::after{ background: var(--olive-deep); }
.section--sage .process__num{ color: var(--olive-deep); opacity: .38; }
.section--sage .process__acc-item,
.section--sage .process__acc-item:first-child{ border-color: var(--sage-line); }

/* --- 2) Oferta: przewijane karty, sigil na zdjęciu ------------------------ */
.offer{ position: relative; }
.offer__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 540px);
  gap: clamp(.4rem, .2rem + .6vw, .75rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: .25rem max(.25rem, calc(50% - min(43vw, 270px))) .5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.offer__track::-webkit-scrollbar{ display: none; }
.offer__track > *{
  will-change: transform;
  transform-origin: center center;
  position: relative;
}
.offer__track:focus-visible{ outline-offset: 4px; }

/* Strzałki na bokach karuzeli + kropki pod spodem */
.offer__nav{
  display: flex;
  justify-content: center;
  margin-top: var(--space-s);
}
.offer__arrow{
  position: absolute;
  top: calc(50% - 2rem);
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--graphite);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: background var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}
@media (min-width: 760px){
  .offer__arrow{ display: inline-flex; }
}
.offer__arrow[data-carousel-prev]{ left: .25rem; }
.offer__arrow[data-carousel-next]{ right: .25rem; }
.offer__arrow svg{ width: 20px; height: 20px; }
.offer__arrow:hover:not(:disabled){ background: var(--olive-btn); }

.offer__dots{ display: flex; gap: .55rem; }
.offer__dot{
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  opacity: .22;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.offer__dot.is-active{
  opacity: 1;
  background: var(--olive-btn);
  transform: scale(1.3);
}
.offer__dot:focus-visible{ outline: 2px solid var(--olive-ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  .offer__track > *{ transform: none !important; opacity: 1 !important; }
}

.card--offer{ display: flex; flex-direction: column; position: relative; }
.card--offer .card__media{ aspect-ratio: 3 / 2; }
/* delikatny gradient tylko na dole — pod białym sigilem, jak w oryginale */
.card--offer .card__media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,21,17,.62) 4%, rgba(18,21,17,.12) 42%, rgba(18,21,17,0) 65%);
}
.card--offer .card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1.1rem, .8rem + 1vw, 1.75rem);
}
.card--offer .card__sigil{
  height: clamp(38px, 4.4vw, 50px);
  width: auto;
  max-width: 70%;
  filter: brightness(0) invert(1);
  opacity: .95;
  display: block;
}
.card--offer .card__title{ font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.card--offer .card__title a{ color: inherit; text-decoration: none; }
.card--offer .card__title a::after{ content: ""; position: absolute; inset: 0; z-index: 3; }
.card--offer .card__title a:hover{ color: var(--olive-ink); }
.card--offer .factline{ font-size: var(--fs-body); }
.card--offer .link-arrow{ margin-top: .35rem; }

/* --- 3) Rejestr: rozwijany kafel realizacji ------------------------------- */
.registry__preview{
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .55s var(--ease), opacity .35s var(--ease);
}
.registry__row:hover .registry__preview,
.registry__row:focus-within .registry__preview{
  max-height: 900px;
  opacity: 1;
}
.registry__preview-clip{
  padding: clamp(1rem, .8rem + .8vw, 1.5rem) 0 .5rem;
}

/* Na ekranach dotykowych nie ma hovera — dotknięcie od razu otwiera stronę
   realizacji, więc podgląd chowamy na stałe. */
@media (hover: none){
  .registry__preview{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  .registry__preview{ transition: none; }
}

/* --- Aktualna oferta: większe kafelki, reszta sekcji bez zmian ----------- */
/* Wyższy kadr zdjęcia (było 4/5) — karty rosną w pionie */
#inwestycje .card--sigil .card__media{ aspect-ratio: 3 / 4; }

/* Minimalnie mniejsze przerwy między kartami — każda zyskuje trochę szerokości */
#inwestycje .grid--3{ gap: clamp(1rem, .6rem + 1vw, 1.4rem); }

/* --- #inwestycje: całość (nagłówek → karuzela → kropki) na jeden ekran --- */
#inwestycje{
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
#inwestycje .section__head{
  margin-bottom: clamp(1.25rem, .75rem + 1.5vw, 2rem);
}

/* mniejsze karty — mniej wysokości */
#inwestycje .offer__track{
  grid-auto-columns: min(80vw, 460px);
  /* wybieg boczny dopasowany do nowej szerokości karty:
     min(40vw, 230px) = jej połowa */
  padding: .25rem max(.25rem, calc(50% - min(40vw, 230px))) .5rem;
}

/* niższy kadr zdjęcia (było 3/2) */
#inwestycje .card--offer .card__media{ aspect-ratio: 16 / 10; }

/* kropki bliżej karuzeli */
#inwestycje .offer__nav{ margin-top: var(--space-s); }

.plan-zoom {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in; overflow: hidden;
}
.plan-zoom img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.plan-zoom:hover img { transform: scale(1.02); }
.plan-zoom:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.plan-lightbox {
  width: 100vw; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 1rem; border: 0;
  background: rgba(20, 22, 19, .92);
  cursor: zoom-out;
}
.plan-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.plan-lightbox::backdrop { background: transparent; }
.plan-lightbox img {
  max-width: min(96vw, 1800px); max-height: 92vh;
  width: auto; height: auto; background: #fff;
}
.plan-lightbox__close {
  position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem;
  width: 44px; height: 44px; padding: 10px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer;
}
.plan-lightbox__close svg { width: 100%; height: 100%; }
html.plan-open { overflow: hidden; }

/* Galeria — ukryte zdjęcia i przycisk „Pokaż więcej” */
.gallery__item[hidden] { display: none !important; }

.gallery__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

img.person__avatar {
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

/* Kontakt — pole opiekuna */
.person {
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.875rem 2.125rem;
  gap: 1.75rem;
  align-items: center;
}

.person__avatar,
img.person__avatar {
  width: 116px;
  height: 116px;
  flex: none;
}

.person__name  { font-size: 1.25rem; }
.person__role  { font-size: 1rem; }
.person__phone { font-size: 1.375rem; }

.person__phone .icon {
  width: 1em;
  height: 1em;
}

@media (max-width: 600px) {
  .person { padding: 1.5rem; gap: 1.25rem; }
  .person__avatar,
  img.person__avatar { width: 96px; height: 96px; }
}

/* Kontakt — mniejsze odstępy między danymi, kartą i formularzem */
#dane {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

#biuro {
  padding-top: 0 !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
  margin-block: 0 !important;
}

#biuro .person {
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.875rem 2.125rem;
  gap: 1.75rem;
  align-items: center;
}

#biuro .person__avatar,
#biuro img.person__avatar {
  width: 116px;
  height: 116px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
}

#biuro .person__name  { font-size: 1.25rem; }
#biuro .person__role  { font-size: 1rem; }
#biuro .person__phone { font-size: 1.375rem; }
#biuro .person__phone .icon { width: 1em; height: 1em; }

@media (max-width: 600px) {
  #biuro .person { padding: 1.5rem; gap: 1.25rem; }
  #biuro .person__avatar,
  #biuro img.person__avatar { width: 96px; height: 96px; }
}

.screen-reader-text{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* Logo w stopce — wygrywa z .elementor img { height: auto } */
.footer img.footer__logo{
  height: 46px;
  width: auto;
}