/* =====================================================================
   ANDBUD — arkusz stylów strony
   Koncepcja: „rysunek wykonawczy” — 12-kolumnowa siatka z widocznymi
   osiami, opisy techniczne w kroju mono (jak na tabliczce rysunkowej),
   duża fotografia w czerni i bieli, linie wymiarowe jako detal marki.
   ===================================================================== */

/* ---------- Fonty (hostowane lokalnie — szybciej i zgodnie z RODO) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  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";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.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;
}

/* ---------- Tokeny ---------- */
:root {
  /* Kolor — paleta marki */
  --ink: #111111;        /* czerń */
  --graphite: #292929;   /* grafit */
  --white: #ffffff;      /* biel */
  --line: #e7e7e7;       /* jasna szarość — linie, podziały */
  --paper: #f7f7f5;      /* złamana biel — tło */
  --mute: #646462;       /* tekst pomocniczy na jasnym tle (kontrast AA) */
  --mute-inv: #a7a7a4;   /* tekst pomocniczy na ciemnym tle */
  --line-inv: #333333;   /* linie na ciemnym tle */

  /* Typografia */
  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-s: 0.875rem;
  --fs-b: 1.0625rem;
  --fs-l: clamp(1.15rem, 1.4vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 1.9rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 4.4rem);
  --fs-h1: clamp(1.75rem, 8vw, 8.6rem);
  --fs-num: clamp(2.8rem, 5.8vw, 5.8rem);

  /* Układ */
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(88px, 12vw, 176px);
  --header-h: 76px;

  /* Ruch */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t: 0.6s;

  color-scheme: light;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-b);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; font-family: var(--f-mono); font-size: var(--fs-s);
}
.skip:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Etykiety techniczne (krój mono) */
.mono, .label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Pola do uzupełnienia — widoczne w wersji demonstracyjnej */
.todo {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78em;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--mute);
  border: 1px dashed currentColor;
  padding: 0.1em 0.5em;
  line-height: 1.5;
  vertical-align: baseline;
}
.on-dark .todo, .todo--inv { color: var(--mute-inv); }

/* ---------- Osie siatki (dekoracyjne) ---------- */
.guides {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.guides .wrap { height: 100%; }
.guides__cols {
  height: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(128, 128, 128, 0.12);
}
.guides__cols span { border-right: 1px solid rgba(128, 128, 128, 0.12); }
@media (max-width: 720px) { .guides__cols { grid-template-columns: repeat(2, 1fr); } .guides__cols span:nth-child(n+3) { display: none; } }

/* ---------- Nagłówek ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(247, 247, 245, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: var(--gap); }
.logo { display: inline-flex; align-items: center; color: inherit; flex: none; }
.logo__svg { width: 128px; height: auto; }
.nav { margin-left: auto; display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a {
  position: relative; font-size: var(--fs-s); font-weight: 500; letter-spacing: 0.01em; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header__tel { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.02em; white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding-inline: 2px;
  font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
}
.menu-btn__icon { position: relative; width: 26px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease), width 0.5s var(--ease);
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 8px; width: 62%; left: auto; }
.menu-btn:hover .menu-btn__icon::after { width: 100%; }
.is-menu-open .menu-btn__icon::before { top: 4px; transform: rotate(45deg); }
.is-menu-open .menu-btn__icon::after { top: 4px; width: 100%; transform: rotate(-45deg); }
.is-menu-open .header { color: var(--white); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1100px) { .nav { display: none; } .header__tel { margin-left: auto; } }
@media (max-width: 560px) { .header__tel { display: none; } .menu-btn { margin-left: auto; } .logo__svg { width: 112px; } }

/* ---------- Menu pełnoekranowe ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
  visibility: hidden;
  overflow-y: auto;
}
.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu__in {
  min-height: 100%;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 6vh, 72px));
  padding-bottom: clamp(32px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px;
  align-content: space-between;
}
.menu__list { grid-column: 1 / span 8; border-top: 1px solid var(--line-inv); }
.menu__list li { border-bottom: 1px solid var(--line-inv); overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); padding-block: clamp(10px, 1.6vh, 18px);
  font-size: clamp(2rem, 5.2vw, 4.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  transform: translateY(105%); transition: transform 0.8s var(--ease), color 0.3s;
}
.menu__list a .mono { color: var(--mute-inv); min-width: 2.5em; }
.menu__list a:hover { color: var(--mute-inv); }
.is-menu-open .menu__list a { transform: none; }
.is-menu-open .menu__list li:nth-child(1) a { transition-delay: 0.18s; }
.is-menu-open .menu__list li:nth-child(2) a { transition-delay: 0.23s; }
.is-menu-open .menu__list li:nth-child(3) a { transition-delay: 0.28s; }
.is-menu-open .menu__list li:nth-child(4) a { transition-delay: 0.33s; }
.is-menu-open .menu__list li:nth-child(5) a { transition-delay: 0.38s; }
.is-menu-open .menu__list li:nth-child(6) a { transition-delay: 0.43s; }
.menu__aside {
  grid-column: 10 / span 3; align-self: end; display: grid; gap: 28px; font-size: var(--fs-s);
  opacity: 0; transition: opacity 0.6s var(--ease) 0.45s;
}
.is-menu-open .menu__aside { opacity: 1; }
.menu__aside .label { color: var(--mute-inv); display: block; margin-bottom: 6px; }
.menu__aside a { border-bottom: 1px solid var(--line-inv); }
@media (max-width: 900px) {
  .menu__list, .menu__aside { grid-column: 1 / -1; }
}

/* ---------- Przyciski i linki ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  min-height: 52px; padding: 14px 22px 14px 24px;
  background: var(--bg); color: var(--fg);
  font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--bg);
  overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost-light::before { background: var(--white); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--ink); border-color: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--white); }
.arrow { width: 22px; height: 10px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover .arrow, .link:hover .arrow, a:hover > .arrow { transform: translateX(5px); }

.link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-s); font-weight: 600; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Nagłówek sekcji (tabliczka rysunkowa) ---------- */
.sh {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(40px, 6vw, 88px);
  border-bottom: 1px solid var(--ink);
}
.sh__no { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; }
.sh__name { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.sh__sheet { margin-left: auto; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }
.on-dark .sh { border-bottom-color: var(--line-inv); }
.on-dark .sh__sheet { color: var(--mute-inv); }

.on-dark { background: var(--ink); color: var(--white); }
.on-dark .mute { color: var(--mute-inv); }
.mute { color: var(--mute); }

section { position: relative; z-index: 2; }
.sec { padding-block: var(--sec); }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: max(640px, min(100svh, 1000px));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
  filter: grayscale(1) contrast(1.08) brightness(0.86);
  transform: scale(1.12);
  animation: heroZoom 2.8s var(--ease) 0.1s forwards;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,.62) 0%, rgba(17,17,17,0) 26%),
    linear-gradient(0deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.38) 46%, rgba(17,17,17,.08) 72%);
}
.hero__body { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero__eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: clamp(20px, 3vw, 36px); color: rgba(255,255,255,.82); }
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 {
  font-size: var(--fs-h1); font-weight: 750; letter-spacing: -0.035em; line-height: 0.92;
  text-transform: uppercase;
}
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.12s; }
.hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  align-items: end; margin-top: clamp(28px, 4vw, 56px);
}
.hero__lead { grid-column: 1 / span 5; font-size: var(--fs-l); line-height: 1.45; color: rgba(255,255,255,.9); max-width: 34ch; }
.hero__cta { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero__meta {
  position: relative; border-top: 1px solid rgba(255,255,255,.22);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px));
  color: rgba(255,255,255,.72);
}
.hero__meta > :nth-child(1) { grid-column: 1 / span 3; }
.hero__meta > :nth-child(2) { grid-column: 4 / span 4; }
.hero__meta > :nth-child(3) { grid-column: 8 / span 5; text-align: right; }
.fade-in { opacity: 0; animation: fadeIn 1s var(--ease) 0.55s forwards; }
.fade-in.d2 { animation-delay: 0.75s; }
@media (max-width: 900px) {
  .hero__lead, .hero__cta { grid-column: 1 / -1; justify-content: flex-start; }
  .hero__meta > :nth-child(1) { grid-column: 1 / span 6; }
  .hero__meta > :nth-child(2) { display: none; }
  .hero__meta > :nth-child(3) { grid-column: 7 / span 6; }
}
@media (max-width: 480px) {
  .hero__cta .btn { flex: 1 1 100%; justify-content: space-between; }
}
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- 01 FIRMA + LICZBY ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 24px) clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: grid; gap: clamp(28px, 4vw, 64px); align-content: space-between; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__label { color: var(--mute); }
.stat__num {
  font-size: var(--fs-num); font-weight: 650; letter-spacing: -0.045em; line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__num sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.12em; margin-left: 0.04em; font-weight: 500; letter-spacing: 0; }
.stat__note { font-size: var(--fs-s); color: var(--mute); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.intro { margin-top: clamp(72px, 10vw, 152px); row-gap: 48px; }
.intro__text { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.intro__text h2 { font-size: var(--fs-h2); }
.intro__text .lead { font-size: var(--fs-l); line-height: 1.5; max-width: 40ch; }
.intro__text p { max-width: 58ch; }
.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.facts div { display: grid; grid-template-columns: minmax(120px, 0.42fr) 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.facts dt { color: var(--mute); }
.intro__fig { grid-column: 8 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) {
  .intro__text, .intro__fig { grid-column: 1 / -1; position: static; }
}

/* Figura (fotografia z podpisem) */
.fig { margin: 0; }
.fig__frame { position: relative; overflow: hidden; background: var(--line); }
.fig__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.9s var(--ease); }
.fig--bw .fig__frame img { filter: grayscale(1) contrast(1.04); }
.fig figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--mute); }
.on-dark .fig figcaption { color: var(--mute-inv); }

/* Znaczniki narożne — jak na rysunku */
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--white); opacity: 0.85;
}
.ticks::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.ticks::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* ---------- 02 REALIZACJE ---------- */
.sec--white { background: var(--white); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row h2 { font-size: var(--fs-h2); max-width: 14ch; }
.head-row p { max-width: 44ch; }

.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(56px, 7vw, 112px); }
.project { position: relative; display: grid; gap: 18px; align-content: start; }
.project a.project__hit { position: absolute; inset: 0; z-index: 3; }
.project__media { position: relative; overflow: hidden; background: var(--line); }
.project__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 1.2s var(--ease), filter 0.9s var(--ease); }
.project:hover .project__media img, .project:focus-within .project__media img { transform: scale(1.035); filter: grayscale(0) contrast(1); }
.project__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.project__title h3 { font-size: var(--fs-h3); }
.project__title .arrow { transform: translateX(-6px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.project:hover .project__title .arrow, .project:focus-within .project__title .arrow { transform: none; opacity: 1; }
.spec { display: grid; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); padding-top: 2px; }

.project--lead { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.project--lead .project__gallery { grid-column: 1 / span 8; display: grid; grid-template-columns: 1fr; }
.project--lead .project__media--main { aspect-ratio: 4 / 3; }
.project--lead .project__info { grid-column: 9 / span 4; display: grid; gap: 24px; align-content: start; }
.project--lead .project__media--side { aspect-ratio: 4 / 3; }
.project__idx { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mute); letter-spacing: 0.06em; }
.project--half { grid-column: span 6; }
.project--half .project__media { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .project--lead .project__gallery, .project--lead .project__info { grid-column: 1 / -1; }
  .project--lead .project__info { margin-top: 8px; }
  .project--half { grid-column: 1 / -1; }
}

/* Plansza zastępcza (brak fotografii) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    var(--paper);
  color: var(--mute);
}
.ph::before {
  content: ""; position: absolute; inset: 18px; border: 1px dashed #c9c9c6;
}
.ph span { position: relative; background: var(--paper); padding: 10px 14px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; }
.on-dark .ph { background:
    linear-gradient(var(--line-inv), var(--line-inv)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-inv), var(--line-inv)) 0 50% / 100% 1px no-repeat,
    var(--graphite); color: var(--mute-inv); }
.on-dark .ph::before { border-color: #4a4a4a; }
.on-dark .ph span { background: var(--graphite); }

/* ---------- 03 USŁUGI ---------- */
.services__intro { margin-bottom: clamp(40px, 5vw, 72px); row-gap: 24px; }
.services__intro h2 { grid-column: 1 / span 7; font-size: var(--fs-h2); }
.services__intro p { grid-column: 9 / span 4; align-self: end; }
@media (max-width: 900px) { .services__intro h2, .services__intro p { grid-column: 1 / -1; } }

.svc-list { border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); position: relative; }
.svc__head { width: 100%; text-align: left; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(20px, 2.6vw, 36px); position: relative; }
.svc__head::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease);
}
.svc { isolation: isolate; }
.svc__no { grid-column: 1 / span 1; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mute); transition: color 0.4s; }
.svc__name { grid-column: 2 / span 6; font-size: clamp(1.6rem, 3.4vw, 3.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; transition: color 0.4s, transform 0.55s var(--ease); }
.svc__short { grid-column: 8 / span 4; font-size: var(--fs-s); color: var(--mute); transition: color 0.4s; align-self: center; }
.svc__toggle { grid-column: 12 / span 1; justify-self: end; align-self: center; width: 22px; height: 22px; position: relative; transition: color 0.4s; }
.svc__toggle::before, .svc__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.svc__toggle::after { transform: rotate(90deg); }
.svc.is-open .svc__toggle::after { transform: rotate(0); }
@media (hover: hover) {
  .svc__head:hover::before { transform: scaleY(1); }
  .svc__head:hover { color: var(--white); }
  .svc__head:hover .svc__no, .svc__head:hover .svc__short { color: var(--mute-inv); }
  .svc__head:hover .svc__name { transform: translateX(10px); }
}
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; min-height: 0; }
.svc__content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; padding-bottom: clamp(28px, 3.4vw, 48px); }
.svc__content p { grid-column: 2 / span 6; max-width: 56ch; }
.svc__content ul { grid-column: 8 / span 4; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.svc__content li { padding-block: 9px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.svc__content li::before { content: "—"; color: var(--mute); }
.svc__content .svc__cta { grid-column: 2 / span 10; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
@media (max-width: 760px) {
  .svc__no { grid-column: 1 / span 2; }
  .svc__name { grid-column: 3 / span 9; }
  .svc__short { grid-column: 3 / span 9; margin-top: 8px; }
  .svc__toggle { grid-column: 12 / span 1; grid-row: 1; }
  .svc__content p, .svc__content ul, .svc__content .svc__cta { grid-column: 3 / -1; }
}
.svc-also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-s); color: var(--mute); }
.svc-also strong { color: var(--ink); font-weight: 600; }

/* ---------- 04 PARK MASZYN ---------- */
.fleet__top { row-gap: 32px; margin-bottom: clamp(48px, 6vw, 96px); }
.fleet__top h2 { grid-column: 1 / span 6; font-size: var(--fs-h2); }
.fleet__top .fleet__desc { grid-column: 8 / span 5; display: grid; gap: 24px; align-content: end; }
@media (max-width: 900px) { .fleet__top h2, .fleet__top .fleet__desc { grid-column: 1 / -1; } }

.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1000px) { .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fleet { grid-template-columns: 1fr; } }
.machine { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line-inv); background: var(--ink); transition: border-color 0.5s var(--ease); }
.machine:hover { border-color: #5a5a5a; }
.machine__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite); }
.machine__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 1.1s var(--ease), filter 0.8s var(--ease); }
.machine:hover .machine__media img { transform: scale(1.04); filter: grayscale(0); }
.machine__body { display: grid; gap: 18px; padding: 20px 20px 22px; align-content: start; }
.machine__top { display: flex; justify-content: space-between; gap: 12px; color: var(--mute-inv); }
.machine h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.machine__params { border-top: 1px solid var(--line-inv); font-size: var(--fs-s); }
.machine__params div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--line-inv); }
.machine__params dt { color: var(--mute-inv); }
.machine__params dd { text-align: right; font-variant-numeric: tabular-nums; }
.machine__cta { margin-top: 4px; }
.machine__cta .btn { width: 100%; justify-content: space-between; }
.fleet__note { margin-top: 28px; color: var(--mute-inv); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- 05 HISTORIA ---------- */
.history__top { row-gap: 32px; margin-bottom: clamp(56px, 7vw, 104px); }
.history__top h2 { grid-column: 1 / span 6; font-size: var(--fs-h2); }
.history__top p { grid-column: 8 / span 5; align-self: end; max-width: 52ch; }
@media (max-width: 900px) { .history__top h2, .history__top p { grid-column: 1 / -1; } }

/* Linia wymiarowa 1999 ——— dziś */
.dim { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; margin-bottom: clamp(40px, 5vw, 64px); }
.dim__end { font-size: clamp(2.6rem, 7vw, 7.2rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.dim__line { position: relative; height: 40px; margin-inline: clamp(12px, 2vw, 32px); }
.dim__line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform 1.6s var(--ease-io);
}
.dim__line i { position: absolute; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--ink); transform: rotate(45deg); }
.dim__line i:first-child { left: 0; }
.dim__line i:last-child { right: 0; }
.dim__label { position: absolute; left: 50%; bottom: 50%; transform: translate(-50%, -6px); background: var(--paper); padding-inline: 12px; white-space: nowrap; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); }
.tl { padding-top: 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.tl::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink); }
.tl__year { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 500; }
.tl h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.tl p { font-size: var(--fs-s); color: var(--mute); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

.owner { margin-top: clamp(72px, 9vw, 136px); row-gap: 28px; padding-top: 28px; border-top: 1px solid var(--ink); }
.owner__label { grid-column: 1 / span 3; }
.owner blockquote { grid-column: 4 / span 8; margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.owner__who { grid-column: 4 / span 8; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.owner__who strong { font-weight: 600; }
@media (max-width: 900px) { .owner__label, .owner blockquote, .owner__who { grid-column: 1 / -1; } }

/* ---------- 06 KONTAKT ---------- */
.contact__grid { row-gap: 64px; }
.contact__left { grid-column: 1 / span 5; display: grid; gap: 40px; align-content: start; }
.contact__left h2 { font-size: var(--fs-h2); }
.contact__data { border-top: 1px solid var(--line-inv); }
.contact__data div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line-inv); }
.contact__data dt { color: var(--mute-inv); padding-top: 3px; }
.contact__data dd { font-size: 1.05rem; }
.contact__data a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.contact__data a:hover { background-size: 100% 1px; }
.big-tel { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__right { grid-column: 7 / span 6; }
@media (max-width: 960px) { .contact__left, .contact__right { grid-column: 1 / -1; } }

/* Formularz */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.field { position: relative; grid-column: span 1; display: grid; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .field { grid-column: 1 / -1; } }
.field label { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute-inv); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid #4a4a4a; border-radius: 0;
  padding: 10px 0 12px; outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--mute-inv) 50%), linear-gradient(135deg, var(--mute-inv) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #6f6f6c; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #d9d9d6; border-bottom-style: dashed; }
.field__err { font-size: var(--fs-xs); font-family: var(--f-mono); color: var(--white); min-height: 1.5em; padding-top: 6px; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-top: 26px; font-size: var(--fs-s); color: var(--mute-inv); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--white); }
.consent.is-invalid { color: var(--white); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 32px; }
.form__status { font-size: var(--fs-s); color: var(--mute-inv); max-width: 40ch; }
.form__status.is-ok { color: var(--white); }

/* Mapa (ładowana na żądanie) */
.map { margin-top: clamp(72px, 9vw, 128px); }
.map__box { position: relative; aspect-ratio: 21 / 8; min-height: 300px; background: var(--graphite); overflow: hidden; border: 1px solid var(--line-inv); }
.map__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
}
.map__ph > div { display: grid; gap: 14px; justify-items: center; background: var(--ink); padding: 28px 32px; border: 1px solid var(--line-inv); max-width: 460px; }
.map__pin { width: 14px; height: 14px; background: var(--white); outline: 1px solid var(--white); outline-offset: 6px; }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map__actions .btn { min-height: 44px; padding-block: 10px; }
@media (max-width: 620px) { .map__box { aspect-ratio: auto; min-height: 380px; } }

/* ---------- Stopka ---------- */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--white); border-top: 1px solid var(--line-inv); padding-top: clamp(64px, 8vw, 112px); }
.footer__logo { color: var(--white); width: min(100%, 980px); margin-bottom: clamp(48px, 6vw, 88px); }
.footer__logo svg { width: 100%; height: auto; }
.footer__cols { row-gap: 40px; padding-bottom: 48px; }
.footer__col { grid-column: span 3; display: grid; gap: 10px; align-content: start; font-size: var(--fs-s); }
.footer__col .label { color: var(--mute-inv); margin-bottom: 8px; }
.footer__col a:hover { color: var(--mute-inv); }
@media (max-width: 900px) { .footer__col { grid-column: span 6; } }
@media (max-width: 520px) { .footer__col { grid-column: 1 / -1; } }
/* Tabliczka rysunkowa */
.titleblock {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-inv);
  font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--mute-inv);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.titleblock > div { padding: 14px 14px 18px 0; border-right: 1px solid var(--line-inv); display: grid; gap: 4px; }
.titleblock > div + div { padding-left: 14px; }
.titleblock > div:last-child { border-right: 0; }
.titleblock b { color: var(--white); font-weight: 400; }
@media (max-width: 900px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-bottom: 1px solid var(--line-inv); }
  .titleblock > div:nth-child(odd) { padding-left: 0; }
  .titleblock > div:nth-child(even) { border-right: 0; }
}

/* ---------- Przycisk telefonu (mobile) ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: none; gap: 8px; grid-template-columns: 1fr auto;
  transform: translateY(160%); transition: transform 0.6s var(--ease);
}
.callbar.is-on { transform: none; }
.callbar a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: var(--white); font-weight: 600; font-size: var(--fs-s); border: 1px solid var(--line-inv); }
.callbar a:last-child { padding-inline: 18px; background: var(--white); color: var(--ink); border-color: var(--line); }
@media (max-width: 760px) { .callbar { display: grid; } }
.is-menu-open .callbar { transform: translateY(160%); }

/* ---------- Komunikat (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--ink); color: var(--white); border: 1px solid var(--line-inv);
  padding: 14px 20px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast { transition: transform 0.5s var(--ease), visibility 0s linear 0.5s; }
.toast.is-on { transition: transform 0.5s var(--ease), visibility 0s; }

/* ---------- Przejście między stronami ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--ink); pointer-events: none; transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-io); }
.curtain.is-on { transform: scaleY(1); }

/* ---------- Animacje wejścia (aktywne tylko z JS) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: 0.08s; }
.js .rv-d2 { transition-delay: 0.16s; }
.js .rv-d3 { transition-delay: 0.24s; }
.js .rv-img .fig__frame, .js .rv-img.project__media > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io), transform 1.2s var(--ease), filter 0.9s var(--ease); }
.js .rv-img.is-in .fig__frame, .js .rv-img.is-in.project__media > * { clip-path: inset(0 0 0 0); }
.js .dim:not(.is-in) .dim__line { --draw: 0; }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .rv-img .fig__frame, .js .rv-img.project__media > * { clip-path: none; }
}

/* ---------- Druk ---------- */
@media print {
  .header, .menu, .guides, .callbar, .toast, .curtain, .map { display: none !important; }
  .hero { min-height: 0; }
}

/* Uzupełnienia */
.svc h3 { font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: inherit; }
.svc__short { font-weight: 400; letter-spacing: 0; line-height: 1.5; }

.owner blockquote .todo { font-size: var(--fs-b); line-height: 1.6; padding: 0.8em 1em; }
.machine h3 .todo { font-size: 0.7em; }

/* ===== Rewizja B: oryginalne logo, wyłącznie czerń i biel, mniej elementów ===== */
.logo__svg { width: auto; height: 54px; display: block; }
@media (max-width: 560px) { .logo__svg { width: auto; height: 46px; } }
.header__in { height: 84px; }
:root { --header-h: 84px; }
.footer__logo { width: min(100%, 420px); }

/* Wszystkie fotografie w czerni i bieli — także po najechaniu */
.hero__media img, .fig__frame img, .project__media img, .machine__media img { filter: grayscale(1) contrast(1.05); }
.project:hover .project__media img, .project:focus-within .project__media img,
.machine:hover .machine__media img { filter: grayscale(1) contrast(1.05); }
.hero__media img { filter: grayscale(1) contrast(1.08) brightness(0.86); }

/* Lista pozostałych realizacji */
.plist { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--ink); }
.plist__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 6px;
  align-items: baseline; padding-block: clamp(18px, 2.2vw, 28px); border-bottom: 1px solid var(--line);
}
.plist__no { grid-column: 1 / span 1; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mute); }
.plist__name { grid-column: 2 / span 5; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; }
.plist__scope { grid-column: 7 / span 4; font-size: var(--fs-s); }
.plist__place { grid-column: 11 / span 2; text-align: right; font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--mute); }
@media (max-width: 860px) {
  .plist__no { grid-column: 1 / span 2; }
  .plist__name, .plist__scope, .plist__place { grid-column: 3 / -1; text-align: left; }
}

.fleet:empty { display: none; }
.fleet__top { margin-bottom: 0; }
.fleet:not(:empty) { margin-top: clamp(48px, 6vw, 96px); }

/* Karty maszyn bez zdjęć */
.machine { grid-template-rows: none; align-content: start; }
.machine__body { gap: 10px; padding: 22px 22px 24px; height: 100%; grid-template-rows: auto auto auto 1fr auto; }
.machine__type { color: var(--mute-inv); margin-top: 18px; }
.machine h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }
.machine__params { align-self: start; }
.machine__cta { margin-top: 18px; align-self: end; }
.machine { display: flex; flex-direction: column; }
.machine__body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.machine__cta { margin-top: auto; padding-top: 18px; }
.machine__params, .machine__cta { align-self: stretch; }

/* ===== Podstrony ===== */
.phero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(48px, 8vw, 120px)); }
.phero__crumb { display: flex; gap: 10px; color: var(--mute); margin-bottom: clamp(24px, 3vw, 40px); }
.phero__crumb a:hover { color: var(--ink); }
.phero h1 { font-size: clamp(2.4rem, 6.6vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 13ch; }
.phero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.phero__lead { font-size: var(--fs-l); line-height: 1.5; max-width: 46ch; }
.phero__meta { display: flex; gap: 24px; color: var(--mute); }
.phero__fig .fig__frame { aspect-ratio: 21 / 9; max-height: 78vh; }
.phero__fig .fig__frame img { object-position: 0% 55%; }
@media (max-width: 760px) { .phero__fig .fig__frame { aspect-ratio: 4 / 3; } }

.about { row-gap: 32px; }
.about__h { grid-column: 1 / span 5; font-size: var(--fs-h2); }
.about__text { grid-column: 7 / span 6; display: grid; gap: 22px; align-content: start; }
.about__text .lead { font-size: var(--fs-l); line-height: 1.5; }
.about__stats { margin-top: clamp(64px, 8vw, 120px); }
.about__h2 { font-size: var(--fs-h2); max-width: 16ch; margin-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 900px) { .about__h, .about__text { grid-column: 1 / -1; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--ink); }
.pillar { display: grid; gap: 14px; align-content: start; padding-top: 24px; }
.pillar__label { color: var(--mute); }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p:not(.pillar__label) { color: var(--graphite); max-width: 42ch; }
.pillar .link { justify-self: start; margin-top: 8px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; row-gap: 40px; } }

.doho { row-gap: 28px; }
.doho__h { grid-column: 1 / span 6; font-size: var(--fs-h2); }
.doho__text { grid-column: 8 / span 5; display: grid; gap: 18px; align-content: end; color: rgba(255,255,255,.88); }
@media (max-width: 900px) { .doho__h, .doho__text { grid-column: 1 / -1; } }

.cta__in { row-gap: 32px; align-items: end; }
.cta__h { grid-column: 1 / span 6; font-size: clamp(2.6rem, 6vw, 6rem); letter-spacing: -0.04em; }
.cta__side { grid-column: 8 / span 5; display: grid; gap: 22px; justify-items: start; }
@media (max-width: 900px) { .cta__h, .cta__side { grid-column: 1 / -1; } }

/* ===== Podstrony: wspólne ===== */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.phero--text { padding-bottom: 0; }
.phero--text .phero__foot { padding-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.phero--dark { background: var(--ink); color: var(--white); }
.phero--dark .phero__crumb, .phero--dark .phero__meta { color: var(--mute-inv); }
.phero--dark .phero__crumb a:hover { color: var(--white); }
.phero--dark .phero__foot { border-bottom-color: var(--line-inv); }
.phero--dark + .sec.on-dark { padding-top: clamp(56px, 7vw, 104px); }
.phero__toc { display: grid; gap: 0; min-width: min(100%, 360px); border-top: 1px solid currentColor; }
.phero__toc a { display: flex; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.phero__toc a span { color: var(--mute); }
.phero__toc a:hover { padding-left: 8px; }

/* Usługi */
.svc-page { padding-top: 0; }
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.svc-block__no { grid-column: 1 / span 1; color: var(--mute); padding-top: 0.6em; }
.svc-block__head { grid-column: 2 / span 5; display: grid; gap: 14px; align-content: start; }
.svc-block__head h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.svc-block__body { grid-column: 8 / span 5; display: grid; gap: 22px; align-content: start; }
.svc-block__body ul { border-top: 1px solid var(--line); font-size: var(--fs-s); }
.svc-block__body li { padding-block: 9px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.svc-block__body li::before { content: "—"; color: var(--mute); }
.svc-block .svc__cta { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
@media (max-width: 900px) {
  .svc-block__no { grid-column: 1 / -1; padding: 0; }
  .svc-block__head, .svc-block__body { grid-column: 1 / -1; }
}

/* Realizacje */
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; scroll-margin-top: var(--header-h); }
.case__info { grid-column: 1 / span 4; display: grid; gap: 28px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.case__info h2 { font-size: var(--fs-h2); }
.case__gallery { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.case__a { grid-column: 1 / -1; }
.case__a .fig__frame { aspect-ratio: 4 / 3; }
.case__b .fig__frame, .case__c .fig__frame { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .case__info, .case__gallery { grid-column: 1 / -1; position: static; } }
@media (max-width: 560px) { .case__gallery { grid-template-columns: 1fr; } }
#winnica-turnau { scroll-margin-top: var(--header-h); }
.plist--page { margin-top: 0; }
.plist__row { scroll-margin-top: calc(var(--header-h) + 16px); }
.plist__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.plist__name a:hover { background-size: 100% 1px; }
.plist__row:target { background: var(--white); }

/* Park maszyn */
.fleet-page { padding-top: 0; }
.machine__desc { color: var(--mute-inv); font-size: var(--fs-s); margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--ink); }
.step { display: grid; gap: 12px; padding-top: 22px; align-content: start; }
.step__no { color: var(--mute); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--graphite); max-width: 36ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; row-gap: 36px; } }

/* Kontakt (podstrona) */
.phero--dark + .sec.on-dark#kontakt, .phero--dark + section#kontakt { padding-top: clamp(56px, 7vw, 104px); }
#formularz { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Polityka prywatności */
.legal__body { max-width: 68ch; display: grid; gap: 16px; }
.legal__body h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 24px; }
.legal__body p { color: var(--graphite); }
.legal__date { color: var(--mute); margin-top: 24px; }

/* Logo: mniejsze, w stopce na końcu strony */
.logo__svg { height: 44px; }
@media (max-width: 560px) { .logo__svg { height: 38px; } }
.footer { padding-top: clamp(56px, 7vw, 96px); }
.footer__cols { padding-bottom: 56px; }
.footer__logo { width: 96px; margin: 0 0 28px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
