/* =========================================================
   GALVAFLOC: system projektowy, wersja B ("po potrzebie")
   Szare tło, białe panele, grafitowy nagłówek z żółtą szyną,
   zwykłe pismo (bez kursywy i wersalików), menu boczne na podstronach.
   Dokumentacja: ../DESIGN-SYSTEM.md
   ========================================================= */

/* ---------- 1. Tokeny ---------- */
:root {
  --yellow: #fdb814;
  --yellow-deep: #e5a200;
  --yellow-soft: #fff4cc;
  --ink: #1c1c1a;

  --steel-900: #222629;
  --steel-800: #2d3236;
  --steel-600: #4f565c;
  --steel-500: #6c747a;
  --steel-300: #b8bec3;
  --steel-200: #d9dcdf;
  --steel-100: #eef0f2;
  --white: #ffffff;

  --water: #1f3c4f;
  --water-line: #5b9bc4;
  --overlay: rgb(28 28 26 / 0.82);
  --rule-on-yellow: rgb(28 28 26 / 0.25);

  --bg: var(--steel-100);
  --bg-alt: var(--white);
  --panel: var(--white);
  --text: #26272a;
  --text-muted: #565b61;
  --line: var(--steel-200);
  --focus: #0a66d6;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --fs-xs: 0.875rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.3vw, 1.2rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.6vw, 1.6rem);
  --fs-2xl: clamp(1.7rem, 1.4rem + 1vw, 2.1rem);
  --fs-3xl: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);

  --radius: 0;
  --border: 2px;
  --rail: 5px;
  /* znak firmowy: szyna jak linia technologiczna, wanny procesowe (żółte) i płukanie (niebieskie) */
  --line-rail: repeating-linear-gradient(90deg, var(--yellow) 0 5.5rem, transparent 5.5rem calc(5.5rem + 3px), var(--water-line) calc(5.5rem + 3px) calc(7.5rem + 3px), transparent calc(7.5rem + 3px) calc(7.5rem + 6px));

  --dur-fast: 120ms;
  --dur: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --container: 80rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 4rem;
}

/* ---------- 2. Podstawa ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-base)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1; display: flex; flex-direction: column; }
main > :last-child { flex-grow: 1; }
main > .section--yellow:last-child { display: flex; flex-direction: column; justify-content: center; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--ink); text-wrap: balance; }
h5 { margin: 0; font: 700 var(--fs-lg)/1.2 var(--font-display); }
p { margin: 0 0 var(--s-4); max-width: 70ch; text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li { margin-bottom: var(--s-1); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 600; }
::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: var(--steel-500) var(--steel-100); accent-color: var(--yellow); caret-color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--yellow); color: var(--ink); padding: var(--s-2) var(--s-4); font-weight: 600; }
.skip-link:focus { top: var(--s-4); }
.text-muted { color: var(--text-muted); }

/* ---------- 3. Komponenty ---------- */

/* 3.1 Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0 var(--s-5);
  font: 700 var(--fs-base)/1.1 var(--font-body);
  text-decoration: none; border: var(--border) solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #000; color: var(--yellow); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 3.2 Nagłówek strony */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--rail); background: var(--line-rail); pointer-events: none; }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 2.6rem; width: auto; }
.nav { margin-left: auto; align-self: stretch; }
.nav > ul { display: flex; height: 100%; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav > ul > li { position: relative; display: flex; align-items: center; height: 100%; }
.nav a { display: block; padding: 0.55rem 0.85rem; font: 600 var(--fs-base)/1.2 var(--font-body); text-decoration: none; color: var(--white); white-space: nowrap; transition: background var(--dur-fast) var(--ease); }
.nav a:hover { background: var(--steel-800); }
.nav > ul > li > a[aria-current] { background: var(--yellow); color: var(--ink); }
.nav__sub { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 17rem; list-style: none; margin: 0; padding: var(--s-2) 0; background: var(--ink); border-top: var(--rail) solid var(--yellow); }
.nav__has-sub:hover > .nav__sub, .nav__has-sub:focus-within > .nav__sub { display: block; }
.nav__sub a { padding: var(--s-3) var(--s-4); font-weight: 500; }
.nav__sub a[aria-current] { background: var(--steel-800); color: var(--yellow); }
.nav-toggle { display: none; }
.site-header__lang { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 var(--s-3); border: var(--border) solid var(--steel-600); color: var(--white); font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: .06em; text-decoration: none; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.site-header__lang:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

@media (max-width: 62rem) {
  .site-header__lang { margin-left: auto; width: 3rem; height: 3rem; padding: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: none; border: var(--border) solid var(--steel-600); color: var(--white); cursor: pointer; }
  .nav-toggle svg { width: 1.5rem; height: 1.5rem; }
  .nav { position: absolute; inset: calc(var(--header-h) + var(--rail)) 0 auto 0; max-height: calc(100dvh - var(--header-h) - var(--rail)); overflow-y: auto; background: var(--ink); border-bottom: var(--rail) solid var(--yellow); display: none; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; height: auto; padding: var(--s-2) var(--gutter) var(--s-5); }
  .nav > ul > li { display: block; height: auto; }
  .nav a { padding: var(--s-4) 0.5rem; font-size: var(--fs-lg); border-bottom: 1px solid var(--steel-800); }
  .nav__sub { display: block; position: static; min-width: 0; padding: 0 0 var(--s-2) var(--s-6); border-top: 0; background: none; }
  .nav__sub a { padding: var(--s-3) 0.5rem; font-size: var(--fs-base); border-bottom-color: var(--steel-900); }
}

/* 3.3 Strona główna: pytanie, zdjęcie linii i trzy wejścia */
.hero-q { padding-block: var(--s-8) var(--s-7); }
.hero-q__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero-q__title { font-size: var(--fs-3xl); line-height: 1.05; margin-bottom: var(--s-3); }
.hero-q__lead { font-size: var(--fs-lg); color: var(--text-muted); margin-bottom: var(--s-5); }
.hero-q__proof { margin: var(--s-5) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.hero-q__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--rail) solid var(--yellow); }
@media (max-width: 52rem) {
  .hero-q { padding-block: var(--s-6) var(--s-5); }
  .hero-q__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-q__media img { aspect-ratio: 16 / 10; }
}
.section--flush { padding-top: 0; }
.need { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.need > li { display: flex; flex-direction: column; margin: 0; padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.need h2 { font-size: var(--fs-xl); line-height: 1.15; }
.need h2 a { text-decoration: none; }
.need h2 a:hover { text-decoration: underline; }
.need p { margin: var(--s-2) 0 var(--s-4); color: var(--text-muted); font-size: var(--fs-sm); }
.need ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.need ul li { margin: 0; border-bottom: 1px solid var(--line); }
.need ul a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 2.75rem; padding: var(--s-2) 0; font-weight: 600; text-decoration: none; transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease); }
.need ul a:hover { background: var(--yellow-soft); padding-inline: var(--s-2); }
.forsale { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--yellow-soft); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow-deep); text-decoration: none; }
.forsale strong { font: 700 var(--fs-lg)/1.2 var(--font-display); color: var(--ink); }
.forsale span { color: var(--text-muted); margin-right: auto; }
.forsale:hover { border-color: var(--ink); border-top-color: var(--yellow-deep); }
@media (max-width: 62rem) { .need { grid-template-columns: 1fr; } }

/* 3.4 Sekcje */
.section { padding-block: var(--s-9); }
.section--alt { position: relative; background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--alt::before, .section--ink::before, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-rail); }
.section--ink { position: relative; }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink .text-muted, .section--ink .section-head__intro { color: var(--steel-300); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 52rem; }
.section-head__title { font-size: var(--fs-2xl); line-height: 1.1; }
.section-head__intro { font-size: var(--fs-lg); color: var(--text-muted); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kv { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: var(--s-4); margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.kv li span:first-child { color: var(--text-muted); }
.kv li span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: var(--s-5); } }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.how > div { background: var(--bg); padding: var(--s-5); border-top: var(--rail) solid var(--yellow); }
.how h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.how p { margin: 0; color: var(--text-muted); }
@media (max-width: 52rem) { .how { grid-template-columns: 1fr; } }

/* 3.5 Fakty */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s-4); }
.fact { padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.fact__value { display: block; font: 700 var(--fs-2xl)/1.05 var(--font-display); color: var(--ink); }
.fact__label { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* 3.6 Typy zakładów / szyna jako kafelki */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stations, 3), minmax(0, 1fr)); gap: var(--s-4); }
.rail__station { margin: 0; padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.rail__num { display: none; }
.rail__label { display: block; font: 700 var(--fs-xl)/1.15 var(--font-display); color: var(--ink); }
.rail__desc { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 62rem) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .rail { grid-template-columns: 1fr; } }

.sectors { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.sectors li { margin: 0; }
.sectors a, .sectors span { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: var(--s-2) var(--s-4); background: var(--panel); border: 1px solid var(--line); font-weight: 600; text-decoration: none; color: var(--ink); }
.sectors a:hover { border-color: var(--ink); }

/* 3.7 Układ podstrony z menu bocznym */
.layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--s-7); align-items: start; padding-block: var(--s-5) var(--s-9); }
.side { position: sticky; top: calc(var(--header-h) + var(--s-5)); background: var(--panel); border: 1px solid var(--line); }
.side__title { margin: 0; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--white); font: 700 var(--fs-sm)/1.2 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; }
.side__title a { color: var(--white); text-decoration: none; }
.side ul + .side__title { border-top: 1px solid var(--steel-800); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 0; }
.side li a { display: block; padding: var(--s-3) var(--s-4); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.side li a:hover { background: var(--bg); }
.side li a[aria-current="page"] { background: var(--yellow-soft); font-weight: 700; box-shadow: inset var(--rail) 0 0 var(--yellow); padding-left: calc(var(--s-4) + 2px); }
.layout__main { min-width: 0; }
.layout__main .container { width: auto; margin: 0; }
.layout__main > .section:first-of-type, .layout__main > .page-head + .section { padding-top: var(--s-5); }
.layout__main .section { padding-block: var(--s-7); }
.layout__main .section--ink { padding-inline: var(--s-6); }
.layout__main .section--ink .container { width: auto; }
@media (max-width: 62rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  /* telefon i tablet: menu działu jako poziomy rząd przycisków nad treścią, bez drugiej grupy (jest w menu głównym) */
  .side { position: static; min-width: 0; background: none; border: 0; }
  .side__title, .side ul + .side__title, .side ul + .side__title + ul { display: none; }
  .side ul { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); scrollbar-width: thin; }
  .side li { flex: none; }
  .side li a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4); white-space: nowrap; background: var(--panel); border: 1px solid var(--line); }
  .side li a[aria-current="page"] { padding-left: var(--s-4); border-color: var(--yellow-deep); box-shadow: inset 0 calc(-1 * var(--rail)) 0 var(--yellow); }
}

/* 3.8 Nagłówek podstrony i okruszki */
.page-head { padding-block: var(--s-7) var(--s-5); }
.page-head__inner { display: grid; row-gap: var(--s-3); }
.page-head__title { font-size: var(--fs-3xl); line-height: 1.05; }
.page-head__intro { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; margin: 0; }
.page-head__intro a { color: var(--ink); }
.layout__main .page-head { padding-top: var(--s-3); }
.layout__main .page-head__inner { width: auto; margin: 0; }

.crumbs { padding-top: var(--s-4); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; margin: 0; padding: 0; font: 500 var(--fs-xs)/1.4 var(--font-body); color: var(--text-muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--steel-300); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--yellow-deep); }

/* 3.9 Karta producenta */
.group__items { display: grid; gap: var(--s-5); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: var(--s-5) var(--s-6); background: var(--panel); border: 1px solid var(--line); padding: var(--s-6); }
.product--no-media, .product--wide { grid-template-columns: minmax(0, 1fr); }
.product__body { min-width: 0; }
.product__maker { font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-1); }
.product__name { font-size: var(--fs-xl); line-height: 1.1; margin-bottom: var(--s-3); }
.product__badge { display: inline-block; margin-bottom: var(--s-3); padding: 0.2rem var(--s-2); background: var(--ink); color: var(--yellow); font: 600 var(--fs-xs)/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.product__media { margin: 0; align-self: start; }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-100); }
.product--wide .product__media { order: -1; margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) 0; }
.product--wide .product__media img { aspect-ratio: auto; object-fit: contain; }
.product__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.product__tags li { margin: 0; padding: 0.2rem var(--s-3); background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.product__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); }
.product__links--top { margin: 0 0 var(--s-4); }
@media (max-width: 40rem) {
  .product { grid-template-columns: 1fr; padding: var(--s-5); }
  .product__media { order: -1; }
  .product--wide .product__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; }
}

/* 3.10 Karty referencji i realizacje na stronie głównej */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s-4); }
.refs li { margin: 0; }
.refs__card { display: flex; flex-direction: column; gap: var(--s-1); height: 100%; padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.refs__card:hover { border-color: var(--ink); border-top-color: var(--yellow); transform: translateY(-2px); }
.refs__place { font: 600 var(--fs-xs)/1.4 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.refs__client { font: 700 var(--fs-xl)/1.1 var(--font-display); color: var(--ink); }
.refs__what { margin-bottom: var(--s-3); }
.refs .product__tags { margin: auto 0 0; }
.refs__img { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); }
.refs__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .refs__card:hover { transform: none; } }

/* 3.11 Link PDF i strzałka */
.pdf-link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; padding: 0.4rem 0.7rem; border: var(--border) solid var(--ink); }
.pdf-link::before { content: "PDF"; padding: 0.1rem 0.3rem; background: var(--ink); color: var(--yellow); font: 700 0.7rem/1.2 var(--font-body); letter-spacing: 0.06em; }
.pdf-link:hover { background: var(--ink); color: var(--white); }
.icon-arrow { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.link-go { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; text-decoration: none; border-bottom: var(--border) solid var(--yellow); padding-bottom: 1px; }
.link-go .icon-arrow { transition: transform var(--dur) var(--ease); }
.link-go:hover .icon-arrow { transform: translateX(4px); }
.section--ink .link-go { color: var(--yellow); }

/* 3.12 Tabele */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-base); margin-bottom: var(--s-4); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.spec th { width: 11rem; background: var(--bg); color: var(--ink); font-weight: 700; }
.spec--compare th { width: auto; }
.spec--compare td:first-child { font-weight: 600; white-space: nowrap; }
.spec--products thead th { background: var(--bg); font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); border-bottom: var(--border) solid var(--ink); width: auto; }
.spec--products td:first-child { width: 45%; }
.spec--products td:last-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible, .line-diagram:focus-visible { outline-offset: 4px; }
.note { font-size: var(--fs-sm); padding: var(--s-3) var(--s-4); background: var(--panel); border-left: var(--rail) solid var(--yellow); }

/* 3.13 Schemat linii i realizacje (ciemny panel) */
.line-diagram { padding-bottom: var(--s-3); margin-block: var(--s-5); }
.line-diagram ol { list-style: none; margin: 0; padding: var(--s-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr)); gap: var(--s-4) 3px; }
.tank { margin: 0; display: flex; flex-direction: column; }
.tank__num { font: 600 var(--fs-xs)/1 var(--font-body); color: var(--steel-300); padding: var(--s-2) 0; font-variant-numeric: tabular-nums; }
.tank__box { flex: 1; min-height: 5.5rem; padding: var(--s-2); background: var(--steel-800); border-top: 4px solid var(--steel-500); font: 600 var(--fs-xs)/1.25 var(--font-body); color: var(--steel-100); hyphens: manual; overflow-wrap: break-word; }
.tank--rinse .tank__box { background: var(--water); border-top-color: var(--water-line); }
.tank--dry .tank__box { background: var(--steel-600); border-top-color: var(--steel-300); }
.tank--load .tank__box { background: var(--yellow); color: var(--ink); border-top-color: var(--ink); }
.tank--process .tank__box { background: var(--steel-900); border-top-color: var(--yellow); }
.tank--unknown .tank__box { background: repeating-linear-gradient(135deg, var(--steel-800) 0 6px, var(--steel-900) 6px 12px); }
.line-diagram__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--steel-300); list-style: none; padding: 0; }
.line-diagram__legend li { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; }
.swatch { width: 0.9rem; height: 0.9rem; display: inline-block; }
.swatch--process { background: var(--steel-900); border-top: 3px solid var(--yellow); outline: 1px solid var(--steel-600); }
.swatch--rinse { background: var(--water); }
.swatch--dry { background: var(--steel-600); }
.swatch--load { background: var(--yellow); }
.swatch--unknown { background: repeating-linear-gradient(135deg, var(--steel-800) 0 3px, var(--steel-900) 3px 6px); outline: 1px solid var(--steel-600); }
.line-diagram__flow { font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--yellow); }

.project { display: grid; gap: var(--s-6); padding-block: var(--s-7); border-top: 1px solid var(--steel-800); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: end; }
.project__title { font-size: var(--fs-2xl); line-height: 1.08; color: var(--white); }
.project__place { font: 600 var(--fs-sm)/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); margin-bottom: var(--s-2); display: block; }
.project__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s-6); font-size: var(--fs-sm); }
.project__cols h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); color: var(--white); }
.project__cols ul { color: var(--steel-200); }
.project__gallery { display: grid; grid-template-columns: 1fr 1.6fr 1.6fr; gap: 3px; }
.project__gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; max-height: 24rem; }
.highlight { font: 700 var(--fs-xl)/1.1 var(--font-display); color: var(--yellow); margin: 0; }
@media (max-width: 40rem) {
  .project__head { grid-template-columns: 1fr; }
  .project__gallery { grid-template-columns: 1fr 1fr; }
  .project__gallery img:first-child { grid-row: span 2; }
}

/* 3.14 Partner, producenci, ogłoszenie */
.partner { padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.partner__name { font: 700 var(--fs-xl)/1.1 var(--font-display); margin-bottom: var(--s-2); color: var(--ink); }
.partner p { margin: 0; }
.makers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: var(--s-3); }
.makers li { margin: 0; }
.makers a { display: block; height: 100%; padding: var(--s-4) var(--s-5); background: var(--panel); border: 1px solid var(--line); border-left: var(--rail) solid var(--yellow); text-decoration: none; color: inherit; transition: border-left-color var(--dur) var(--ease); }
.makers a:hover { border-left-color: var(--ink); }
.makers__name { display: block; font: 700 var(--fs-lg)/1.2 var(--font-display); color: var(--ink); }
.makers__what { display: block; margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--text-muted); }
.listing { max-width: 52rem; padding: var(--s-6); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.listing__head { margin-bottom: var(--s-5); }
.listing__status { display: inline-block; margin-bottom: var(--s-3); padding: 0.25rem var(--s-2); background: var(--yellow); color: var(--ink); font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; }
.listing__title { font-size: var(--fs-2xl); line-height: 1.1; }

/* 3.15 Podstrona procesu */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: var(--s-6); align-items: start; }
.process__main { background: var(--panel); border: 1px solid var(--line); padding: var(--s-6); min-width: 0; }
.process__h { font-size: var(--fs-xl); line-height: 1.1; margin: var(--s-7) 0 var(--s-4); }
.process__main > .process__h:first-child, .process__main > .product__links--top + .process__h { margin-top: 0; }
.process__side { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: var(--s-4); }
.process__figure { margin: 0; }
.process__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-100); }
.process__card { padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.process__card p:last-child { margin-bottom: 0; }
.process__maker { font: 700 var(--fs-lg)/1.15 var(--font-display); margin-bottom: var(--s-3); color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.checklist li { position: relative; padding: var(--s-2) 0 var(--s-2) var(--s-5); border-bottom: 1px solid var(--line); margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1em; width: 0.6rem; height: 0.6rem; background: var(--yellow); }
.checklist--cols { columns: 2 18rem; column-gap: var(--s-6); }
.checklist--cols li { break-inside: avoid; }
.coat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: var(--s-2) var(--s-6); margin-bottom: var(--s-6); padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); }
.coat-grid .process__h { margin-top: var(--s-4); font-size: var(--fs-lg); }
.wide-figure { margin: 0 0 var(--s-5); }
.wide-figure img { width: 100%; height: auto; }
@media (max-width: 75rem) {
  .process { grid-template-columns: 1fr; }
  .process__side { position: static; }
}
@media (max-width: 40rem) { .process__main { padding: var(--s-5); } }

/* 3.16 Lista działu */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.index-list li { margin: 0; }
.index-list__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5); background: var(--panel); border: 1px solid var(--line); border-left: var(--rail) solid var(--yellow); text-decoration: none; color: inherit; transition: border-left-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.index-list__row:hover { border-left-color: var(--ink); box-shadow: 0 6px 18px rgb(0 0 0 / 0.08); }
.index-list__title { display: block; font: 700 var(--fs-xl)/1.15 var(--font-display); color: var(--ink); }
.index-list__desc { display: block; margin-top: var(--s-1); color: var(--text-muted); max-width: 70ch; }
.index-list__row > .icon-arrow { width: 1.6rem; height: 1.6rem; transition: transform var(--dur) var(--ease); }
.index-list__row:hover > .icon-arrow { transform: translateX(6px); }

/* 3.17 Laboratorium (ciemny panel) */
.lab__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); gap: 0 var(--s-6); border-top: var(--border) solid var(--yellow); }
.lab__list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; padding: var(--s-3) 0; margin: 0; border-bottom: 1px solid var(--steel-800); }
.lab__list abbr { font: 700 var(--fs-lg)/1 var(--font-display); color: var(--yellow); text-decoration: none; }
.lab__list span { color: var(--steel-200); font-size: var(--fs-sm); }
.lab__plain { grid-template-columns: 1fr !important; }

/* 3.18 Kontakt i pasek kontaktu */
.section--yellow { background: var(--yellow); color: var(--ink); }
.section--yellow h1, .section--yellow h2 { color: var(--ink); }
.section--yellow .btn--outline:hover { background: var(--ink); color: var(--yellow); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: start; }
.contact__big { font-size: var(--fs-3xl); line-height: 1.05; }
.contact .section-head { margin-bottom: var(--s-6); }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; border-top: var(--border) solid var(--ink); }
.contact__list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; margin: 0; border-bottom: 1px solid var(--rule-on-yellow); align-items: baseline; }
.contact__key { font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; }
.contact__val { font: 700 var(--fs-xl)/1.15 var(--font-display); }
.contact__val a { text-decoration: none; }
.contact__val a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 30rem) { .contact__list li { grid-template-columns: 1fr; gap: var(--s-1); } }
.cta-band { padding-block: var(--s-7); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.cta-band__title { font-size: var(--fs-2xl); line-height: 1.1; }

/* 3.20 Formularz kontaktowy */
.contact-form { padding: var(--s-6); background: var(--panel); border: 1px solid var(--line); border-top: var(--rail) solid var(--yellow); }
.contact-form .section-head__title { margin-bottom: var(--s-2); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-5); }
.form__field { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.form__field--wide { grid-column: 1 / -1; }
.form label { font-weight: 600; }
.form__opt { font-weight: 400; color: var(--text-muted); }
.form input:not([type="hidden"]), .form textarea { width: 100%; min-height: 3rem; padding: var(--s-3) var(--s-4); font: inherit; color: var(--ink); background: var(--white); border: var(--border) solid var(--steel-500); border-radius: 0; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:not([type="hidden"]):hover, .form textarea:hover { border-color: var(--ink); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
.form__hint, .form__note { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.form__note { margin-top: var(--s-4); }
.form__actions { margin-top: var(--s-5); }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__status { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); background: var(--yellow-soft); border: var(--border) solid var(--ink); font-weight: 600; }
.form__status--error { background: #fdecea; border-color: #b3261e; color: #6b1410; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 40rem) {
  .contact-form { padding: var(--s-5) var(--s-4); }
  .form__grid { grid-template-columns: 1fr; }
}

/* 3.19 Stopka */
.site-footer { position: relative; background: var(--ink); color: var(--steel-300); padding-block: var(--s-6) var(--s-4); font-size: var(--fs-sm); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }
.site-footer__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4) var(--s-7); align-items: center; }
.site-footer__logo img { height: 2.25rem; width: auto; }
.site-footer__contact { text-align: right; line-height: 1.7; }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--steel-800); font-size: var(--fs-xs); }
.site-footer__bar a { color: var(--steel-200); }
.site-footer__credit { margin-left: auto !important; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer__nav a { font-weight: 600; text-decoration: none; color: var(--steel-200); }
.site-footer__nav a:hover { color: var(--yellow); }
@media (max-width: 62rem) {
  .site-footer__row { grid-template-columns: auto minmax(0, 1fr); }
  .site-footer__contact { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 40rem) {
  .site-footer__row { grid-template-columns: 1fr; }
  .site-footer__credit { margin-left: 0 !important; }
}
.prose { max-width: 72ch; }
.prose p { margin-bottom: var(--s-4); }

/* Pola dotyku min. 44 px (telefon, tablet, ekrany dotykowe); linki w biegnącym tekście są wyłączone z wymogu */
@media (pointer: coarse), (max-width: 62rem) {
  .site-header__logo { display: flex; align-items: center; min-height: 2.75rem; }
  .skip-link { padding-block: var(--s-3); }
  .need h2 a { display: inline-block; padding-block: 0.6rem; }
  .site-footer__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .pdf-link { min-height: 2.75rem; }
  .crumbs a, .link-go, .contact__val a, .site-footer__nav a, .site-footer__contact a, .site-footer__bar a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .crumbs ol { gap: 0 var(--s-2); }
  .crumbs li { display: flex; align-items: center; min-height: 2.75rem; }
  .site-footer__nav { gap: 0 var(--s-5); }
  .site-footer__bar { gap: 0 var(--s-5); }
}

/* ---------- 4. Ruch ---------- */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .reveal { transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
  .reveal.is-pending { opacity: 0; transform: translateY(8px); }
  .reveal.is-in { opacity: 1; transform: none; }
  .tank { animation: none; }
  .line-diagram.is-in .tank { animation: tank-in 420ms var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
  @keyframes tank-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 5. Druk ---------- */
@media print {
  .site-header, .nav-toggle, .side { display: none; }
  .section--ink, .site-footer { background: none; color: #000; }
}

/* Na sprzedaż: galeria zdjęć i podtytuły oferty */
.listing__photos { list-style: none; margin: var(--s-5) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--s-3); }
.listing__photos img { display: block; width: 100%; height: 14rem; object-fit: cover; border: 1px solid var(--line); }
.listing__sub { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-lg); }
.listing__note { color: var(--text-muted); font-size: var(--fs-sm); }
/* Rail w wąskiej kolumnie treści (strony procesowe): zawijaj stacje zamiast ściskać */
@media (min-width: 62.01rem) { .process__main .rail { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
.rail__label { overflow-wrap: anywhere; }
