/* ============================================================================
   DSBest — "Engineered Terrain"
   Industrialno-geodezyjny język wizualny: grafit + hi-vis bursztyn,
   warstwice topograficzne, znaczniki pomiarowe, typografia techniczna.
   Fonty: Saira (display), Hanken Grotesk (body), Space Mono (etykiety/współrzędne).
   ========================================================================== */

:root {
  /* paleta */
  --graphite:      #181d24;
  --graphite-2:    #20262f;
  --graphite-3:    #2b323d;
  --ink:           #11151a;
  --concrete:      #f4f2ed;   /* ciepła betonowa biel */
  --concrete-2:    #eae6dd;
  --paper:         #ffffff;
  --muted:         #5d6675;
  --muted-light:   #9aa3b0;
  --line:          #e1ddd3;
  --line-dark:     #333b46;
  --amber:         #ff7a1a;   /* hi-vis, robocza energia */
  --amber-2:       #ff9442;
  --amber-deep:    #d9590a;
  --blueprint:     #5b8aa6;   /* chłodny akcent geodezyjny */
  --bp-ink:        #2e527e;   /* granat rysunku technicznego */
  --bp-paper:      #eef1f6;   /* papier milimetrowy */
  --bp-line:       rgba(46,82,126,.11);

  --container: 1200px;
  --radius: 4px;              /* ostre, techniczne narożniki */
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(17,21,26,.05), 0 12px 30px rgba(17,21,26,.08);
  --shadow-lg: 0 30px 70px -20px rgba(17,21,26,.35);

  --display: "Saira", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--graphite);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); margin: 0 0 .35em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); margin: 1.6em 0 .55em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* etykieta techniczna / "eyebrow" — Space Mono z kreską pomiarową */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink);
  padding: .6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,237,.85);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; color: var(--graphite); }
.brand-mark {
  background: var(--graphite); color: var(--amber); font-family: var(--display); font-weight: 800;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius);
  letter-spacing: -.04em; font-size: 1.05rem;
  position: relative;
}
.brand-mark::after {     /* znacznik narożny — surveyor tick */
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,122,26,.35);
  border-radius: 2px; pointer-events: none;
}
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.01em; }

.nav-menu { margin-left: auto; }
.nav-menu ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--graphite); text-decoration: none; font-weight: 600; font-size: .95rem;
  position: relative; padding: .3rem 0;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--amber); transition: width .25s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--amber-deep); }

.header-cta {
  display: flex; flex-direction: column; line-height: 1.1; text-decoration: none;
  padding: .5rem 1rem; border-radius: var(--radius); background: var(--graphite); color: #fff;
  transition: background .2s;
}
.header-cta:hover { background: var(--amber); color: var(--ink); }
.header-cta-label { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.header-cta-phone { font-weight: 700; font-size: 1rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--graphite); margin: 6px 0; transition: .2s; }

/* --- Topo / warstwice — tło dla ciemnych sekcji -------------------------- */
.topo-bg { position: relative; isolation: isolate; }
.topo-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    radial-gradient(120% 90% at 80% -10%, rgba(255,122,26,.10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.2'%3E%3Cpath d='M-50 350C100 300 180 420 300 380 440 335 520 430 660 380'/%3E%3Cpath d='M-50 300C100 250 180 370 300 330 440 285 520 380 660 330'/%3E%3Cpath d='M-50 250C100 200 180 320 300 280 440 235 520 330 660 280'/%3E%3Cpath d='M-50 200C100 150 180 270 300 230 440 185 520 280 660 230'/%3E%3Cpath d='M-50 400C100 360 200 470 320 430 460 385 540 470 660 430'/%3E%3Cpath d='M-50 450C110 415 210 520 330 485 470 445 560 520 660 485'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(580px, 88vh, 860px);
  display: flex; align-items: stretch;
  color: #fff; background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(17,21,26,.92) 0%, rgba(17,21,26,.72) 34%, rgba(17,21,26,.28) 62%, rgba(17,21,26,.10) 100%),
    linear-gradient(0deg, rgba(17,21,26,.88) 0%, rgba(17,21,26,.15) 32%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) 0 0;
}
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lead {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: #dde2e8; max-width: 50ch;
  margin: 0 0 2rem; line-height: 1.55; text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero .eyebrow { color: var(--amber-2); }

/* pasek współrzędnych — geodezyjny akcent na dole hero */
.hero-readout {
  margin-top: auto; margin-bottom: clamp(1.4rem, 4vh, 2.6rem);
  padding-top: clamp(1.8rem, 5vh, 3rem);
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(4, 1fr);
  font-family: var(--mono);
}
.hero-readout div { padding: 1.1rem 1.2rem 1.4rem; border-right: 1px solid rgba(255,255,255,.16); }
.hero-readout div:first-child { padding-left: 0; }
.hero-readout div:last-child { border-right: 0; }
.hero-readout dt { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: .4rem; }
.hero-readout dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--amber-2); }
.hero-readout dd small { color: #fff; font-weight: 400; font-family: var(--body); font-size: .8rem; display:block; letter-spacing: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
  font-family: var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s, color .2s; border: 0;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(255,122,26,.7); }
.btn-primary:hover { background: var(--amber-2); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255,122,26,.75); }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.btn-arrow::after { content: "→"; font-weight: 700; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* --- Page heads / sections ------------------------------------------------ */
.page-head { padding: clamp(2.6rem, 6vw, 4.2rem) 0 1.2rem; border-bottom: 1px solid var(--line); background: var(--concrete); }
.page-head .lead { font-size: 1.25rem; color: var(--muted); max-width: 62ch; }
.page-head .meta { color: var(--muted); display: flex; gap: 1rem; font-size: .95rem; font-family: var(--mono); }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-soft { background: var(--concrete); }
.section-cta { background: var(--graphite); color: #fff; text-align: center; border-top: 3px solid var(--amber); }
.section-cta h2 { color: #fff; max-width: 24ch; margin: 0 auto 1.4rem; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* --- HOME: siatka usług --------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  background: var(--paper); padding: 2rem 1.7rem 2.2rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .6rem; position: relative; transition: background .25s, transform .25s var(--ease);
  min-height: 200px;
}
.svc-card:hover { background: var(--graphite); color: #fff; }
.svc-card:hover .svc-title, .svc-card:hover .svc-num { color: #fff; }
.svc-card:hover .svc-desc { color: #c4ccd6; }
.svc-card:hover .svc-go { color: var(--amber-2); }
/* wariant nieklikalny (np. usługi geodezyjne, brak podstron docelowych).
   Hover jak na kartach usług (spójność, ładny feedback), ale cursor zostaje
   domyślny, bo to nie linki. */
.svc-card--static { cursor: default; }
.svc-card--static .svc-num { color: var(--amber-deep); }
.svc-card--static:hover { background: var(--graphite); color: #fff; }
.svc-card--static:hover .svc-title { color: #fff; }
.svc-card--static:hover .svc-num { color: var(--amber-2); }
.svc-card--static:hover .svc-desc { color: #c4ccd6; }
.svc-num { font-family: var(--mono); font-size: .72rem; color: var(--amber-deep); letter-spacing: .1em; }
.svc-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; margin: 0; color: var(--graphite); }
.svc-desc { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.svc-go { font-family: var(--mono); font-size: .75rem; color: var(--graphite); letter-spacing: .08em; margin-top: .6rem; }
.svc-go::after { content: " →"; }

/* --- HOME: pasmo geodezji (wyróżnione) ----------------------------------- */
.geo-band { background: var(--graphite); color: #fff; }
.geo-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.geo-band h2 { color: #fff; }
.geo-band .eyebrow { color: var(--blueprint); }
.geo-band .eyebrow::before { background: var(--blueprint); }
.geo-lead { color: #c4ccd6; font-size: 1.12rem; max-width: 46ch; }
.geo-phone {
  display: inline-flex; flex-direction: column; margin: 1.6rem 0; text-decoration: none;
  font-family: var(--mono); color: #fff; border-left: 3px solid var(--blueprint); padding-left: 1rem;
}
.geo-phone span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.geo-phone strong { font-size: 1.5rem; color: #fff; font-weight: 700; }
.geo-phone:hover strong { color: var(--blueprint); }
.geo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.geo-list li { border-bottom: 1px solid var(--line-dark); padding: 1rem .2rem; display: flex; gap: 1rem; align-items: baseline; }
.geo-list .gi-num { font-family: var(--mono); font-size: .72rem; color: var(--blueprint); flex-shrink: 0; }
.geo-list .gi-txt strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.geo-list .gi-txt span { color: var(--muted-light); font-size: .9rem; }

/* --- HOME: dlaczego / Rożnów --------------------------------------------- */
.why-head { max-width: 64ch; margin: 0 auto clamp(2.4rem, 5vw, 3.4rem); text-align: center; }
.why-head .eyebrow { justify-content: center; }
.why-head p.big {
  font-family: var(--display); font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.3rem);
  color: var(--graphite); line-height: 1.22; font-weight: 700; margin: .2rem 0 .9rem; max-width: 22ch; margin-inline: auto;
}
.why-sub { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin-inline: auto; }

/* --- Panel blueprintowy (karty deska kreślarska) ------------------------- */
.blueprint-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.bp-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 158px; padding: 1.6rem 1.6rem 1.6rem 1.5rem;
  color: var(--bp-ink);
  background-color: var(--bp-paper);
  background-image:   /* papier milimetrowy */
    repeating-linear-gradient(0deg, transparent 0 15px, var(--bp-line) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, var(--bp-line) 15px 16px);
  border: 1.5px solid var(--bp-ink);
  box-shadow: inset 0 0 0 4px var(--bp-paper), inset 0 0 0 5px rgba(46,82,126,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bp-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 4px var(--bp-paper), inset 0 0 0 5px rgba(46,82,126,.4), 0 16px 30px -16px rgba(46,82,126,.55); }

.bp-num {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 24px; height: 24px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .72rem; color: var(--bp-ink);
  border: 1.2px solid var(--bp-ink); background: var(--bp-paper);
}
.bp-dim {   /* znacznik wymiarowy (strzałka) w prawym górnym rogu */
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 16px; opacity: .65;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='16' fill='none' stroke='%232e527e' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M2 3v10M36 3v10M2 8h34M5 5 2 8l3 3M33 5l3 3-3 3'/%3E%3C/svg%3E") no-repeat;
}
.bp-icon { flex-shrink: 0; width: 52px; height: 52px; color: var(--bp-ink); }
.bp-icon svg { width: 100%; height: 100%; }
.bp-text {
  margin: 0; font-family: var(--display); font-weight: 700; color: var(--bp-ink);
  font-size: clamp(1.15rem, .85rem + 1.1vw, 1.5rem); line-height: 1.18;
}
.bp-text .count { font-size: 1.25em; }
.bp-text strong { font-weight: 800; }

/* --- HOME: finalne CTA ---------------------------------------------------- */
.cta-band { background: var(--amber); color: var(--ink); text-align: center; }
.cta-band h2 { color: var(--ink); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(17,21,26,.78); font-size: 1.15rem; max-width: 48ch; margin: 0 auto 2rem; }
.cta-band .btn-dark:hover { background: var(--ink); color: #fff; }

/* --- Prose (treść z markdown) -------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { padding-top: .3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  border-left: 3px solid var(--amber); margin: 1.4em 0; padding: .4em 0 .4em 1.3em;
  color: var(--muted); font-style: italic; background: var(--concrete);
}
.prose img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; display: block; }
.prose figcaption {
  margin-top: .6em; font-family: var(--mono); font-size: .82rem; color: var(--muted);
  border-left: 2px solid var(--amber); padding-left: .7em; line-height: 1.5;
}

/* --- Strona usługi: hero -------------------------------------------------- */
.svc-hero { position: relative; isolation: isolate; background: var(--graphite); color: #fff; padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(2.6rem, 6vw, 4rem); }
.svc-hero--img { padding: 0; min-height: 70vh; display: flex; align-items: flex-end; }
.svc-hero--img .svc-hero-inner { padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.svc-hero--img .breadcrumb-light { padding-top: clamp(1.6rem, 4vw, 2.4rem); }
.svc-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.svc-hero .hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,21,26,.35) 0%, rgba(17,21,26,.15) 35%, rgba(17,21,26,.85) 100%),
              linear-gradient(90deg, rgba(17,21,26,.55) 0%, rgba(17,21,26,0) 60%);
}
.svc-hero h1 { color: #fff; max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.svc-hero .eyebrow { color: var(--amber-2); }
.svc-hero .lead { color: #c4ccd6; font-size: 1.2rem; max-width: 54ch; margin: .8rem 0 1.6rem; }
.svc-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.svc-spec { margin: 0; border-top: 1px solid var(--line-dark); }
.svc-spec div { border-bottom: 1px solid var(--line-dark); padding: .85rem .2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.svc-spec dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); margin: 0; }
.svc-spec dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--amber-2); text-align: right; }
/* spec nad zdjęciem — ciemny panel + mocniejszy kontrast etykiet */
.svc-hero--img .svc-spec {
  background: rgba(17,21,26,.55); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--amber);
  padding: .4rem 1.2rem;
}
.svc-hero--img .svc-spec div { border-bottom-color: rgba(255,255,255,.14); }
.svc-hero--img .svc-spec div:last-child { border-bottom: 0; }
.svc-hero--img .svc-spec dt { color: rgba(255,255,255,.78); }
.svc-hero--img .svc-spec dd { color: var(--amber-2); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* --- Strona usługi: gdzie działamy (miasta) ------------------------------- */
.area-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-chip {
  font-family: var(--mono); font-size: .85rem; color: var(--graphite);
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem .95rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: .5rem; transition: border-color .2s, color .2s;
}
.area-chip::before { content: "▸"; color: var(--amber-deep); font-size: .7em; }
.area-chip:hover { border-color: var(--amber); color: var(--amber-deep); }

/* --- Strona usługi: intro ------------------------------------------------- */
.svc-intro .prose { max-width: 70ch; font-size: 1.08rem; }
.svc-intro .prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.svc-intro .prose h2:first-child { margin-top: 0; }

/* --- Strona usługi: karty "co robimy" ------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat-card { background: var(--paper); padding: 1.8rem 1.7rem 2rem; display: flex; flex-direction: column; gap: .55rem; position: relative; }
.feat-card .feat-num { font-family: var(--mono); font-size: .72rem; color: var(--amber-deep); letter-spacing: .1em; }
.feat-card h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--graphite); line-height: 1.12; }
.feat-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* --- Strona usługi: pasek procesu (ciemny) -------------------------------- */
.process-band { background: var(--graphite); color: #fff; }
.process-band h2 { color: #fff; }
.process-band .section-head p { color: #c4ccd6; }
.process-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: none; }
.process-step { position: relative; padding-top: 1.3rem; border-top: 2px solid var(--line-dark); }
.process-step .ps-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--amber); display: block; margin-bottom: .5rem; }
.process-step h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.process-step p { color: var(--muted-light); font-size: .92rem; margin: 0; }

/* --- Strona usługi: FAQ (akordeon) ---------------------------------------- */
.faq-wrap { max-width: 76ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.2rem 1.2rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--graphite);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.5rem; color: var(--amber-deep); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--amber-deep); }
.faq-a { padding: 0 2.2rem 1.3rem 0; }
.faq-a p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* --- Hub usług: dwukolumnowy nagłówek (tytuł | wstęp) --------------------- */
.hub-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.hub-head-l h2 { margin: 0; max-width: 16ch; }
.hub-intro p { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.hub-intro p + p { margin-top: .9rem; }
@media (max-width: 760px) { .hub-head { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; } }

/* --- Listing realizacji (karty ze zdjęciem) ------------------------------- */
.rcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rcard {
  display: flex; flex-direction: column; background: var(--paper); text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rcard-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--concrete-2); }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.rcard:hover .rcard-img img { transform: scale(1.05); }
.rcard-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.rcard-loc { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); }
.rcard-body h3 { font-family: var(--display); font-size: 1.18rem; font-weight: 700; line-height: 1.15; margin: 0; color: var(--graphite); }
.rcard-body p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .rcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rcard-grid { grid-template-columns: 1fr; } }

/* --- Kontakt -------------------------------------------------------------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.kontakt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kontakt-card {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: border-color .2s, transform .2s var(--ease);
}
a.kontakt-card:hover { transform: translateY(-3px); border-color: var(--amber); border-left-color: var(--amber); }
.kontakt-card--geo { border-left-color: var(--blueprint); }
a.kontakt-card--geo:hover { border-color: var(--blueprint); border-left-color: var(--blueprint); }
.kontakt-card--static { border-left-color: var(--muted-light); }
.kk-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kk-val { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--graphite); line-height: 1.1; word-break: break-word; }
.kk-sub { color: var(--muted); font-size: .9rem; }
.kontakt-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; }
.kontakt-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } .kontakt-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kontakt-cards { grid-template-columns: 1fr; } }

/* --- Galeria realizacji --------------------------------------------------- */
.rg-head { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 1.6rem; }
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rg-item { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); aspect-ratio: 4 / 3; }
.rg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.rg-item:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .rg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rg-grid { grid-template-columns: 1fr; } }

/* --- Breadcrumb / cover --------------------------------------------------- */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: var(--muted); font-family: var(--mono); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb-light { color: var(--muted-light); padding-top: 0; }
.breadcrumb-light a { color: var(--muted-light); }
.breadcrumb-light a:hover { color: var(--amber-2); }
.breadcrumb-light span[aria-hidden] { opacity: .5; }
.cover { margin: 1.5rem 0; }
.cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #aeb6c2; margin-top: 0; padding: clamp(3rem,6vw,4.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-col h2 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber-2); margin: 0 0 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: .55rem; }
.footer-col a { color: #aeb6c2; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-family: var(--display); font-size: 1.4rem; }
.footer-brand p { color: #7e8794; font-size: .92rem; max-width: 34ch; margin-top: .8rem; }
.site-footer address { font-style: normal; line-height: 1.95; }
.areas { font-size: .92rem; color: #7e8794; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.3rem; color: #6b7585; font-family: var(--mono); font-size: .78rem; }

/* --- Mobilny FAB (telefon) ------------------------------------------------ */
.fab-call {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: none;
  align-items: center; justify-content: center;
  background: var(--amber); color: var(--ink);
  box-shadow: 0 10px 24px -6px rgba(255,122,26,.7), 0 2px 6px rgba(17,21,26,.3);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.fab-call::before {   /* delikatny pierścień pulsujący */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--amber); animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.fab-call.is-hidden { transform: translateY(120%); opacity: 0; }
@media (max-width: 860px) {
  .fab-call { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-call::before { animation: none; }
}

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-inner, .why-grid, .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-spec { margin-top: 1.4rem; }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .svc-hero--img { min-height: 60vh; }
  .hero { min-height: 88vh; }
  .hero-bg { object-position: center 42%; }
  .hero-readout { grid-template-columns: repeat(2, 1fr); }
  .hero-readout div:nth-child(2) { border-right: 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; background: var(--concrete);
    border-bottom: 1px solid var(--line); margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-menu.is-open { max-height: 80vh; }
  .nav-menu ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a { display: block; padding: .9rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blueprint-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid, .feat-grid, .process-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-readout { grid-template-columns: 1fr 1fr; }
}


/* ===== Galeria + lightbox ================================================ */
/* Galeria = ciemna "wystawa". Solidny grafit (#181d24) wypycha szare kadry
   budowlane do przodu — kontrast robi wrażenie. Reszta strony jest jasna,
   więc galeria czyta się jak osobny pokój na scrollu. */
.gallery-stage {
  background: var(--graphite);
  color: var(--concrete);
  padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(3rem, 7vw, 5rem);
  border-top: 3px solid var(--amber);
}
.gallery-stage .breadcrumb-light { margin-bottom: 1.4rem; }

/* Masonry przez CSS columns — kafelki o naturalnych proporcjach układają się
   w kolumny, łamiąc monotonię równego gridu. break-inside:avoid trzyma zdjęcie
   w jednej kolumnie. */
.gallery-grid {
  column-count: 3;
  column-gap: 12px;
}
@media (max-width: 1000px) { .gallery-grid { column-count: 2; } }

/* Nagłówek-kafel: rozpięty na całą szerokość siatki (column-span:all),
   blueprint w tle przyciemniony tak, by tytuł był czytelny bez ciężkiego scrima. */
.gallery-head {
  column-span: all;
  margin: 0 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 242, 237, .14);
  background:
    linear-gradient(90deg, rgba(17,21,26,.94) 0%, rgba(17,21,26,.72) 55%, rgba(17,21,26,.35) 100%),
    url('/img/bg/galeria-blueprint.webp') center right / cover no-repeat,
    var(--ink);
}
.gallery-head-inner { padding: clamp(1.8rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 3rem); max-width: 40rem; }
.gallery-head .eyebrow { color: var(--amber-2); }
.gallery-head h1 { color: var(--concrete); margin: .2rem 0 .5rem; }
.gallery-head .lead { color: rgba(244, 242, 237, .82); margin: 0 0 1.1rem; }
.gallery-count {
  display: flex; align-items: baseline; gap: .5rem;
  margin: 0; font-family: var(--mono);
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(244, 242, 237, .6);
}
.gallery-count-num {
  font-family: var(--display); font-weight: 800;
  font-size: 1.9rem; color: var(--amber); letter-spacing: 0;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0 0 12px;
  cursor: zoom-in;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  break-inside: avoid;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
/* Na ciemnym tle ciemne brzegi zdjęć (cień, asfalt, wnętrza) wytapiają się w
   grafit — cienka jasna linia bazowa zawsze utrzymuje krawędź kafla. */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 237, .12);
  transition: box-shadow .25s var(--ease);
  pointer-events: none;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { box-shadow: inset 0 0 0 3px var(--amber); }
.gallery-item:focus-visible { outline: none; }

/* Kafel-kotwica: stała bursztynowa ramka — jedno mocne zdjęcie (mur oporowy)
   robi za punkt zaczepienia oka tuż pod nagłówkiem. */
.gallery-item--anchor::after { box-shadow: inset 0 0 0 3px var(--amber); }

/* CTA wpleciony w siatkę — kafel-konwersja w toku przeglądania. */
.gallery-cta {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 1.8rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 122, 26, .5);
  background:
    linear-gradient(160deg, rgba(24,29,36,.92), rgba(17,21,26,.96)),
    url('/img/bg/galeria-pattern.webp') center / cover no-repeat,
    var(--ink);
  text-align: center;
}
.gallery-cta .eyebrow { color: var(--amber-2); justify-content: center; }
.gallery-cta h2 { color: var(--concrete); font-size: 1.5rem; margin: .3rem 0 .5rem; }
.gallery-cta p { color: rgba(244, 242, 237, .8); margin: 0 0 1.2rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 21, 26, .92);
  backdrop-filter: blur(4px);
  padding: 4vmin;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(244, 242, 237, .1);
  color: var(--concrete);
  border: 1px solid rgba(244, 242, 237, .25);
  cursor: pointer;
  font-family: var(--display);
  line-height: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.lightbox-close {
  top: 3vmin;
  right: 3vmin;
  width: 48px;
  height: 48px;
  font-size: 30px;
  border-radius: 50%;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 38px;
  border-radius: var(--radius);
}
.lightbox-prev { left: 3vmin; }
.lightbox-next { right: 3vmin; }

@media (max-width: 600px) {
  /* Telefon: jedna kolumna, zdjęcia na pełną szerokość ekranu (full-bleed).
     Lightbox wyłączony (patrz main.js) — na mobile przeglądanie scrollem. */
  .gallery-grid {
    column-count: 1;
    margin-inline: calc(50% - 50vw);   /* wyjście poza padding kontenera */
    width: 100vw;
  }
  .gallery-item {
    margin-bottom: 4px;
    border-radius: 0;
    cursor: default;
  }
  .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-close { width: 42px; height: 42px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
}
