/* Alumex — site stylesheet. Production port of mockupy/04-linia-video/ (approved).

   The cross-section of an aluminium profile: one hairline separating inside from
   outside. It is the only drawn element on the page — section dividers, the frame
   around every photograph, the underline that grows on hover.

   Rhythm: one block per viewport, long pauses, very few words. The photographs carry
   the colour; the page is white, grey and one hairline. Brand blue: CTA only.

   Geometry and width rules: docs/DESIGN.md. Type rules: docs/FONTS.md.
   Sections: 1 fonts · 2 tokens · 3 base · 4 layout · 5 header · 6 components · 7 motion */


/* ── 1 · fonts — self-hosted Switzer, latin-ext ──────────────────────────────
   Paths are relative to this file, so they work in a subfolder without BASE_URL.
   All four are preloaded in head.php (same URL, no query string): 500 and 600 since 2026-12-01 —
   the header phone number (600) and labels (500) sit above the fold. */
@font-face{ font-family:'Switzer'; src:url('../fonts/switzer-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Switzer'; src:url('../fonts/switzer-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'Switzer'; src:url('../fonts/switzer-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face{ font-family:'Switzer'; src:url('../fonts/switzer-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }


/* ── 2 · tokens ──────────────────────────────────────────────────────────── */
:root{
  /* colour — anodised aluminium: white, cool greys, glass */
  --white:       #FFFFFF;   /* form fields, the lightbox, the header's glass */
  --bg:          #F5F6F7;   /* the page: light anodised aluminium (2026-10-29, DESIGN.md §8) */
  --paper:       #FAFAF9;
  --ink:         #141719;
  --ink-2:       #4A4F52;
  --grey:        #666B6E;   /* 4.99:1 on --bg, 5.39:1 on white (was #7A7F83, 3.74:1 on --bg) */
  --grey-2:      #6B7073;   /* fine print — 4.63:1 on --bg (was #9DA1A4, 2.41:1) */
  --line:        #141719;   /* the hairline is ink, never grey */
  --line-soft:   #D9DBDC;
  --placeholder: #E5E6E6;   /* behind an image until it loads */
  --night:       #1A1A1A;   /* behind the hero */
  --blue:        #0351A6;   /* CTA and small accents only */
  --blue-dark:   #023E82;
  --error:       #B42318;   /* form errors only — always with a text message, never colour alone */

  /* type — one family; hierarchy from weight and size */
  --font: 'Switzer', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-body:    clamp(17px, 1.15vw, 19px);
  /* Headings: ONE scale, three tokens, no exceptions (2026-10-31, DESIGN.md §12). Every h1, h2 and h3 on the site
     takes its size from the element rule in §3 base below; no component sets a heading size of its own. A text that
     should look like a heading but is not one in the outline takes the same token (.steps names, FAQ questions). */
  --fs-h1:      clamp(2.2rem, 6vw, 6rem);       /* 35 / 86 / 96 px at 390 / 1440 / 1920 */
  --fs-h2:      clamp(1.65rem, 3.6vw, 3.2rem);  /* 26 / 51 / 51 */
  --fs-h3:      clamp(1.2rem, 1.9vw, 1.75rem);  /* 19 / 27 / 28 */
  --fs-lede:    clamp(1.05rem, 1.5vw, 1.45rem);
  --fs-more:    clamp(1.05rem, 1.5vw, 1.4rem);
  --fs-sub:     clamp(1rem, 1.4vw, 1.2rem);
  --fs-small:   clamp(15px, 1.05vw, 17px);
  --fs-nav:     clamp(.9rem, 1.05vw, 1.15rem);
  --fs-label:   12.5px;
  /* heading line-height (2026-10-29, DESIGN.md §9): two-line headings must not touch — Polish
     descenders (ą ę j y) clear the next line's ascenders and accents (Ż Ś Ć Ł) at every size */
  --lh-h1: 1.15;   /* the smallest values that keep ≥1–2px between "j/ę" and "Ż/Ś" in the */
  --lh-h2: 1.18;   /* worst case at every size used (18–112px); 1.08/1.12 let them touch */
  --lh-h3: 1.22;
  --track-h:       -0.025em;
  --track-display: -0.03em;
  --track-hero:    -0.035em;

  /* space */
  /* Side margin of the content = --gutter + --edge (DESIGN.md §2): 16px on a phone, ~24 at 768, ~32–38 at
     1024–1200, until the 1400px column caps it. */
  --edge: clamp(10px, 2.5vw - 4.5px, 56px);
  /* Proximity (2026-10-31, DESIGN.md §12): a heading belongs to what follows it. Three vertical units, nothing else:
       --space-h      heading → its content (lede, list, grid, photo); also between the parts of one section
       --pause        previous content → the next heading = 3 × --space-h. A section pads half of it on each side,
                      so the hairline between two sections sits in the middle of the pause.
       --space-tight  an h3 in a card or list item → its one line of text */
  --space-h:     clamp(22px, 1.4vw + 16px, 46px);        /* 22 / 36 / 43 px at 390 / 1440 / 1920 */
  --pause:       calc(var(--space-h) * 3);               /* 66 / 108 / 129 */
  --pause-half:  calc(var(--pause) / 2);
  --space-tight: calc(var(--space-h) * .4);              /* 9 / 14 / 17 — card or list h3 → its text */
  --space-item:  calc(var(--space-tight) * 1.25);        /* 11 / 18 / 21 — padding of a list item, so an h3 in a
                                                            list has 2 × this above it: 2.5 × --space-tight */

  /* Three widths. The alternation between them is the effect. */
  --w-wide: 1600px;   /* realisation and image grids */
  --w-main: 1400px;   /* content sections, and the floating header */
  --w-text: 70ch;     /* running body text */

  /* One grid (DESIGN.md §10): every multi-column block sits on 12 columns of its content box with this one
     column gap — the photo strip's. Span 4 = a third (strip photo), span 3 = a quarter, span 6 = a half. */
  --grid-gap: clamp(12px, 1.6vw, 24px);

  /* The header scales with the page like everything else. */
  --header-h:     clamp(68px, 5.2vw, 96px);
  --header-inset: clamp(14px, 1.6vw, 26px);
  /* The content column takes the same outer gap as the floating pane, so the
     two boxes stay identical and the logo sits on the headings' line. Its own
     scale since 2026-10-29: --header-inset now only sets the pane's top offset. */
  --gutter: clamp(6px, 0.8vw + 3px, 26px);
}
@media (max-width:860px){
  :root{ --header-inset:10px; }
}
/* What the fixed header takes from the top of the page: every top offset (intro, the /kontakt/ block, anchors,
   form fields) uses this. Floating: the pane plus its inset above and below. Phone: the flush bar plus the notch. */
:root{ --header-space: calc(var(--header-h) + var(--header-inset) * 2); }
@media (max-width:640px){
  :root{ --header-space: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
}


/* ── 3 · base ────────────────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:var(--fs-body);
  line-height:1.55;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; height:auto; }
h1,h2,h3{ font-weight:700; margin:0; text-wrap:balance; }
h1{ font-size:var(--fs-h1); letter-spacing:var(--track-hero);    line-height:var(--lh-h1); }
h2{ font-size:var(--fs-h2); letter-spacing:var(--track-display); line-height:var(--lh-h2); max-width:24ch; }   /* one measure for every h2 */
h3{ font-size:var(--fs-h3); letter-spacing:var(--track-h);       line-height:var(--lh-h3); }
p{ margin:0; }
ol,ul{ margin:0; padding:0; list-style:none; }
figure{ margin:0; }
address{ font-style:normal; }
a{ color:inherit; text-decoration:none; }
a[href^="tel:"]{ white-space:nowrap; }   /* a phone number never breaks across lines */

.skip{ position:absolute; left:-9999px; top:0; z-index:300; background:var(--ink); color:var(--white); padding:12px 20px; }
.skip:focus{ left:0; }
:focus-visible{ outline:1px solid var(--ink); outline-offset:4px; }

.u-sr{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}

/* the hairline, as a hover state */
.hair{
  background-image:linear-gradient(var(--ink), var(--ink));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0 1px;
  padding-bottom:2px;
  transition:background-size .2s linear;
}
.hair:hover,.hair:focus-visible{ background-size:100% 1px; }

/* small uppercase label */
.label{
  font-size:var(--fs-label); font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  color:var(--grey);
}


/* ── 4 · layout ──────────────────────────────────────────────────────────── */
/* Panel and content share one formula (DESIGN.md §1). */
.edge{
  width:min(100% - var(--gutter) * 2, var(--w-main));
  margin-inline:auto; padding-inline:var(--edge);
}
.edge--wide{ width:min(100% - var(--gutter) * 2, var(--w-wide)); }
.measure{ max-width:var(--w-text); }
/* The header floats over everything, so anchored sections need clearance. */
:target{ scroll-margin-top:var(--header-space); }


/* ── 5 · floating header — frosted glass, always ──────────────────────────────
   Fixed, inset from the top, capped to the content width and centred. The same glass on every page and
   over anything underneath (2026-10-29, DESIGN.md §8): no solid variant, no switching. */
.site-header{
  position:fixed; top:var(--header-inset); left:0; right:0; z-index:100;
  pointer-events:none;
}
.site-header__pane{
  pointer-events:auto;
  width:min(100% - var(--gutter) * 2, var(--w-main)); margin-inline:auto;
  height:var(--header-h);
  display:flex; align-items:center; gap:clamp(1.5rem, 3vw, 3rem);
  padding-inline:var(--edge);                 /* follows --edge, not the reference's own clamp */
  border-radius:2px;                          /* almost sharp: glass in an aluminium frame */
  background-color:rgba(255,255,255,.74);     /* fallback — see @supports below */
  /* inset shadow, not a border: a border would push the logo 1px off the headings' line */
  box-shadow:0 8px 32px rgba(10,12,16,.14), inset 0 0 0 1px rgba(255,255,255,.45);
}
/* Without backdrop-filter the nav would be unreadable against a photograph,
   so the fallback above stays more opaque. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .site-header__pane{
    background-color:rgba(255,255,255,.52);
    -webkit-backdrop-filter:blur(20px) saturate(140%);
    backdrop-filter:blur(20px) saturate(140%);
  }
}

.brand img{ height:clamp(26px, 2.4vw, 40px); width:auto; }   /* a real cut-out (tools/make_images.py, logo_cutout) — no blend mode needed */
.site-nav{ display:flex; gap:clamp(14px, 1.8vw, 34px); margin-left:auto; }
.site-nav a{
  font-size:var(--fs-nav); font-weight:500; color:var(--ink); padding-bottom:3px;
  background-image:linear-gradient(var(--ink), var(--ink));
  background-repeat:no-repeat; background-position:0 100%; background-size:0 1px;
  transition:background-size .2s linear;
}
.site-nav a:hover,.site-nav a[aria-current]{ background-size:100% 1px; }
.site-tel{ font-size:var(--fs-nav); font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.site-cta{
  background:var(--blue); color:var(--white);
  font-size:clamp(.85rem, 1vw, 1.1rem); font-weight:600;
  padding:clamp(.7rem,.9vw,1rem) clamp(1.35rem,1.8vw,2rem); white-space:nowrap;
  transition:background-color .18s linear;
}
.site-cta:hover{ background:var(--blue-dark); }

/* ---- mobile header (DESIGN.md §5) ------------------------------------------
   Under 860px: logo left, phone, hamburger right. The phone never hides and is always the full
   +48 22 669 15 15 (client, 2026-10-29) — below ~430px with a phone icon, at a smaller size.
   The quote CTA moves into the panel. */
.mtel,.mburger{ display:none; }

@media (max-width:860px){
  .site-nav,.site-tel,.site-cta{ display:none; }

  .mtel{
    display:inline-flex; align-items:center; gap:7px;
    margin-left:auto;
    min-height:44px; padding-inline:2px;
    color:var(--ink); font-weight:600; font-size:15px;
    font-variant-numeric:tabular-nums; white-space:nowrap;
  }
  .mtel__icon{ display:none; flex:none; }

  .mburger{
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; margin-inline-start:6px; margin-inline-end:-8px;
    flex:none; background:none; border:0; cursor:pointer; color:var(--ink);
  }
  .mburger__box{ display:block; width:22px; }
  .mburger__box span{ display:block; height:1.5px; background:currentColor; border-radius:1px; }
  .mburger__box span + span{ margin-top:5px; }
}
@media (max-width:430px){
  .mtel{ gap:6px; font-size:14.5px; }
  .mtel__icon{ display:block; }
}
@media (max-width:359px){
  .mtel{ font-size:13.5px; }
  .mtel__icon{ display:none; }
}

/* the panel: the header's glass, expanded */
.mpanel{
  position:fixed; inset:0; z-index:200;
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.93);   /* fallback: without blur it must be opaque enough to read */
  opacity:0; transition:opacity .18s linear;
  overflow-y:auto; overscroll-behavior:contain;
}
.mpanel.is-open{ opacity:1; }
.mpanel[hidden]{ display:none; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .mpanel{
    background:rgba(255,255,255,.82);
    -webkit-backdrop-filter:blur(28px) saturate(140%);
    backdrop-filter:blur(28px) saturate(140%);
  }
}
.mpanel__in{
  display:flex; flex-direction:column; min-height:100%;
  padding:14px clamp(20px,5vw,40px) clamp(24px,5vh,40px);
}
.mpanel__bar{
  display:flex; align-items:center; justify-content:space-between;
  min-height:44px; margin-bottom:clamp(20px,5vh,44px);
}
.mpanel__label{
  font-size:11.5px; font-weight:600; letter-spacing:.16em;
  text-transform:uppercase; color:var(--grey);
}
.mclose{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin-inline-end:-10px;
  background:none; border:0; cursor:pointer;
  color:var(--ink); font-size:30px; line-height:1;
}
.mpanel__nav{ display:flex; flex-direction:column; }
.mpanel__nav a{
  display:flex; align-items:center; gap:14px;
  min-height:56px; padding-block:6px;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink); font-weight:600;
  font-size:clamp(1.5rem, 7vw, 2.1rem);
  letter-spacing:-0.025em;
}
.mpanel__foot{
  margin-top:auto; padding-top:clamp(28px,5vh,48px);
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
}
.mpanel__foot a{ min-height:44px; display:inline-flex; align-items:center; color:var(--ink); font-size:16px; font-weight:500; }
.mpanel__foot .mpanel__cta{
  margin-top:8px; padding:15px 26px;
  background:var(--blue); color:var(--white); font-weight:600; font-size:15px;
}
@media (min-width:861px){ .mpanel{ display:none !important; } }

/* ---- phone: the header is a flush bar, not a floating pane (2026-10-29, DESIGN.md §5) ----------
   Full width, flush to the top and both sides, under the notch; the same frosted glass, a hairline at the
   bottom instead of the frame and shadow. The content keeps the phone gutter, so the logo stays on the
   headings' line (16px). Tablet and desktop keep the floating pane. */
@media (max-width:640px){
  .site-header{ top:0; }
  .site-header__pane{
    width:100%; margin:0;
    height:calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top:env(safe-area-inset-top, 0px);
    padding-inline:max(calc(var(--gutter) + var(--edge)), env(safe-area-inset-left, 0px)) max(calc(var(--gutter) + var(--edge)), env(safe-area-inset-right, 0px));
    border-radius:0;
    box-shadow:none;
    border-bottom:1px solid rgba(20,23,25,.12);
  }
  .mpanel__in{ padding-top:max(14px, env(safe-area-inset-top, 0px)); }
}


/* ── 6 · components ──────────────────────────────────────────────────────── */

/* ---- hero — full bleed, full height ---------------------------------------- */
.hero{
  position:relative;
  height:100svh; min-height:600px;
  overflow:hidden;
  background:var(--night);
}
.hero__media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:50% 38%;
  display:block;
}
/* Required, not decorative: the h1 has to survive whatever passes behind it —
   more so once this becomes video. */
.hero::after{
  content:""; position:absolute; inset:auto 0 0 0; height:65%;
  background:linear-gradient(to top,
    rgba(10,12,16,.78) 0%,
    rgba(10,12,16,.38) 45%,
    rgba(10,12,16,0) 100%);
  pointer-events:none;
}
.hero__content{
  position:absolute; inset:calc(var(--header-space) + 12px) 0 0 0; z-index:2;   /* top edge clears the floating header: a long h1 (EN/DE) grows upward to it, never behind it */
  display:flex; flex-direction:column; justify-content:flex-end;
  padding-bottom:clamp(48px,7vh,88px);
}
.hero__title{ color:var(--white); max-width:16ch; }
.hero__sub{
  margin-top:clamp(16px,2vh,26px);
  color:rgba(255,255,255,.9);
  font-size:var(--fs-sub);
  line-height:1.5;
  max-width:46ch;
}
/* the credit rides the content column, so it lines up with the h1 above */
.hero__credit .edge{ display:block; }
.hero__credit{
  position:absolute; z-index:2;
  inset:auto 0 clamp(18px,3vh,30px) 0;
  text-align:right;
  color:rgba(255,255,255,.6);
  font-size:12.5px; letter-spacing:.02em;
}
/* pause control for the video loop (WCAG 2.2.2); only rendered with a video */
.hero__toggle{
  position:absolute; z-index:3; right:var(--edge); top:calc(var(--header-space) + 12px);
  min-width:44px; min-height:44px; padding:0 14px;
  background:rgba(10,12,16,.45); color:var(--white); border:0; cursor:pointer;
  font:500 13px/1 var(--font); letter-spacing:.04em;
}
@media (max-width:860px){
  .hero__credit{ display:none; }
  .hero__title{ max-width:none; }
}

/* ---- page intro — offer pages, no photo hero --------------------------------
   Clears the floating header, then the h1 at hero size: the ratio panel ÷ h1
   ≈ 0.75 from DESIGN.md §3 holds here too. */
.intro{ padding-top:calc(var(--header-space) + clamp(50px, 9vh, 126px)); padding-bottom:var(--pause-half); }
.intro__crumbs{ margin-bottom:calc(var(--space-h) * 2); }   /* the h1 belongs to its lede, not to the trail */
.intro__crumbs a{ color:var(--grey); }
.intro__title{ max-width:16ch; }
.intro__lede{
  margin-top:var(--space-h);
  font-size:var(--fs-lede);
  color:var(--ink-2);
  max-width:44ch;
}

/* ---- the spoken line: one sentence, one screen ----------------------------- */
.say{
  border-top:1px solid var(--line);
  padding-block:var(--pause-half) var(--space-h);   /* the h2 heads the block below it; that block drops its top
                                                       padding (end of §6) */
}

/* ---- realisation card: one object at a time --------------------------------- */
.object{ padding-block:var(--pause-half); }
.object .edge{ display:grid; gap:var(--space-h); }
/* framed by the line, not boxed in */
.object__fig{ border:1px solid var(--line); }
.object__fig img{ width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--placeholder); }

.object__name p{ margin-top:var(--space-tight); color:var(--grey); font-size:var(--fs-small); }
.object--portrait .object__fig img{ aspect-ratio:4/5; }
@media (min-width:1000px){
  .object .edge{ grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--grid-gap); align-items:end; }
  .object__fig{ grid-column:span 7; }
  .object__name{ grid-column:span 5; }
  .object__fig img{ aspect-ratio:3/2; }
  .object--portrait .object__fig{ grid-column:span 5; }
  .object--portrait .object__name{ grid-column:span 7; }
  .object--portrait .object__fig img{ aspect-ratio:4/5; }
}

/* ---- compact reference list: the register, set as one run of names ----------- */
.roster{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.roster__pre{ margin-bottom:var(--space-h); }
.roster__names{   /* a <ul> set as a hairline grid: one client per cell, the last cell is the note */
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line-soft); border-left:1px solid var(--line-soft);
}
.roster__names li{
  display:flex; align-items:center;   /* text centred vertically in the cell */
  padding:var(--space-item) var(--space-h);
  border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
  font-weight:500;
  font-size:var(--fs-small);
  line-height:1.35;
  letter-spacing:var(--track-h);
}
.roster__names .roster__note{ margin:0; font-size:var(--fs-small); font-weight:400; color:var(--grey); }
/* also under the older references on /realizacje/ */
.roster__note{ margin-top:var(--space-h); color:var(--grey); font-size:15px; }
@media (min-width:900px){ .roster__names{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* ---- offer group grid: image first, name underneath, one line ---------------- */
.range{ padding-block:var(--pause-half); }
.range__grid{ display:grid; gap:clamp(36px,4.5vw,79px) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
.thing figure{ margin:0 0 var(--space-h); border:1px solid var(--line); }
.thing img{ width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--placeholder); }
.thing h3{
  display:inline;
  background-image:linear-gradient(var(--ink), var(--ink));
  background-repeat:no-repeat; background-position:0 100%; background-size:0 1px;
  transition:background-size .2s linear;
  padding-bottom:4px;
}
.thing:hover h3,.thing:focus-visible h3{ background-size:100% 1px; }
.thing p{ margin-top:var(--space-tight); color:var(--grey); font-size:var(--fs-small); max-width:34ch; }
.range__more{
  margin-top:var(--pause-half);
  padding-top:var(--space-h);
  border-top:1px solid var(--line);
  font-size:var(--fs-more);
  color:var(--ink-2);
}
.range__more span{ display:block; max-width:40ch; }
@media (min-width:760px){ .range__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* home-page realisations: the same grid, every photograph cut to one ratio (3:2 — three of the four are 3:2 already) */
.range--objects .thing img{ aspect-ratio:3/2; }

/* ---- photo grid with captions (offer pages) ---------------------------------- */
.shots{ padding-block:var(--pause-half); }
.shots__pre{ margin-bottom:var(--space-h); }
.case-gallery{ padding-block:var(--pause-half); }   /* the rest of a case page's photographs: the hub's strip */
.shots__grid{ display:grid; gap:clamp(36px,4.5vw,79px) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
.shot img{ width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--placeholder); border:1px solid var(--line); }
.shot figcaption{ padding-top:12px; font-size:13px; color:var(--grey); }
.shot figcaption a{ color:var(--ink); font-size:var(--fs-small); font-weight:500; }   /* a caption that names a case page */
.shots__note{ margin-top:var(--space-h); max-width:var(--w-text); font-size:var(--fs-small); color:var(--ink-2); }
.shots__note a{ color:var(--ink); font-weight:500; }
/* a render is never presented as a photo of completed work */
.shot__tag{ color:var(--ink); font-weight:600; letter-spacing:.04em; }
@media (min-width:760px){ .shots__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* ---- capability list (offer pages) ------------------------------------------- */
.spec{ padding-block:var(--pause-half); }
.spec__list{ border-top:1px solid var(--line); }
.spec__item{ padding-block:var(--space-item); border-bottom:1px solid var(--line-soft); }
.spec__item p{ margin-top:var(--space-tight); color:var(--ink-2); font-size:var(--fs-small); max-width:52ch; }
.spec__item a{ display:inline-block; margin-top:12px; font-size:var(--fs-small); font-weight:500; }
.spec__note{ margin-top:var(--space-h); font-size:var(--fs-more); color:var(--ink-2); max-width:44ch; }
.spec__note a{ color:var(--ink); }
/* the systems line: one fixed place per offer page, small, after the note */
.spec__systems{ margin-top:var(--space-h); font-size:var(--fs-small); color:var(--grey); }
.spec__systems a{ color:var(--ink-2); font-weight:500; }
@media (min-width:860px){
  .spec__item{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--grid-gap); align-items:start; }
  .spec__item h3{ grid-column:span 4; }
  .spec__body{ grid-column:span 8; }
  .spec__item p{ margin-top:0; }
  .spec__body a{ margin-top:12px; }
}

/* ---- offer groups (the /oferta/ hub): one row per group — photo strip, heading, links (DESIGN.md §6) ---- */
.groups{ padding-bottom:0; }   /* the next block (USP, contact) opens with its own hairline and pause */
.group{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.group__in{ display:grid; gap:18px var(--grid-gap); grid-template-columns:minmax(0,1fr); }   /* minmax: DESIGN.md §4 */
.group__head p{ margin-top:var(--space-tight); color:var(--ink-2); font-size:var(--fs-small); max-width:44ch; }
.group__links{ display:flex; flex-direction:column; gap:2px; font-size:var(--fs-small); font-weight:500; }
.group__links li{ min-height:32px; display:flex; align-items:center; }   /* a tap target, not a run of text */
.group__soon{ font-weight:400; color:var(--ink-2); }   /* the page is not built yet: text, not a link */
@media (min-width:860px){
  .group__in{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
  .group__links{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px var(--grid-gap); }
}
/* With 3 photos per view the group sits on the strip's grid: heading under photo 1, the links in two lists whose
   left edges are photo 2's and photo 3's (DESIGN.md §10). Narrower, the layout above stays. */
@media (min-width:1024px){
  .group__in{ grid-template-columns:repeat(12,minmax(0,1fr)); }
  .group__head{ grid-column:span 4; }
  .group__links{ grid-column:span 8; display:block; columns:2; column-gap:var(--grid-gap); }
  .group__links li{ break-inside:avoid; }
}

/* ---- photo strip: whole photos inside the content column (DESIGN.md §6) ----------------------
   1 per view on a phone, 2 on a tablet, 3 on a desktop, each exactly a column fraction wide, so a photo is
   never cut. More photos = the row scrolls, snapping per photo. The chevrons (js/main.js) are the only hint;
   the scrollbar is hidden. Never moves by itself. */
.group__in > .strip{ grid-column:1 / -1; margin-bottom:clamp(4px,1.2vw,16px); }   /* + the row gap */
.strip{ --n:1; --gap:var(--grid-gap); position:relative; }
@media (min-width:640px){ .strip{ --n:2; } }
@media (min-width:1024px){ .strip{ --n:3; } }
.strip__track{
  display:flex; gap:var(--gap);
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.strip__track::-webkit-scrollbar{ display:none; }
.strip__track.is-dragging{ scroll-snap-type:none; cursor:grabbing; user-select:none; }
.strip__item{ flex:0 0 calc((100% - var(--gap) * (var(--n) - 1)) / var(--n)); min-width:0; scroll-snap-align:start; }
.strip__open{ display:block; cursor:zoom-in; }
.strip__frame{ display:block; aspect-ratio:3/2; overflow:hidden; border:1px solid var(--line); background:var(--placeholder); }
.strip__frame img{ width:100%; height:100%; object-fit:cover; -webkit-user-drag:none; }   /* the frame sets the ratio */
.strip figcaption{ padding-top:10px; font-size:13px; color:var(--grey); }
/* the only motion on the hub: a slow sideways pan of the photo under the pointer */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .strip__frame img{ width:106%; max-width:none; transition:transform 1.6s cubic-bezier(.2,.6,.2,1); }
  .strip__open:hover .strip__frame img{ transform:translateX(-5.6%); }
}

/* Chevrons: a box exactly as tall as the photos (padding-top % is of the strip's width), so the discs sit at the
   photos' vertical centre whatever the column count. The disc is the site's only round element. */
.strip__navs{
  position:absolute; inset:0 0 auto 0; height:0; pointer-events:none;
  padding-top:calc((100% - var(--gap) * (var(--n) - 1)) / var(--n) * 2 / 3);
}
.strip__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; padding:0; border:0; border-radius:50%;
  display:grid; place-items:center; pointer-events:auto; cursor:pointer;
  background:rgba(255,255,255,.74); color:var(--ink); opacity:.88;
  box-shadow:0 1px 10px rgba(10,12,16,.14);
  transition:opacity .15s linear;
}
.strip__nav:hover{ opacity:1; }
.strip__nav[hidden]{ display:none; }
.strip__nav--prev{ left:10px; }
.strip__nav--next{ right:10px; }
.strip__nav.is-pulse{ animation:strip-pulse 1.4s ease-in-out 1; }   /* once, when the strip first comes into view */
@keyframes strip-pulse{ 0%,100%{ opacity:.88; } 50%{ opacity:.3; } }

/* ---- lightbox (hub strips): paper, ink, one hairline — the page's own surface, not a dark theatre ---- */
.lb{
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none;
  margin:0; padding:0; border:0;
  background:rgba(255,255,255,.985); color:var(--ink);
  opacity:0; transition:opacity .18s linear;
  touch-action:pan-y;   /* horizontal swipes reach the script */
}
.lb.is-open{ opacity:1; }
.lb::backdrop{ background:transparent; }
.lb__in{
  position:relative; height:100%;
  display:flex; align-items:center; justify-content:center;
  padding:64px 16px 24px;
}
@media (min-width:760px){ .lb__in{ padding:72px 88px 40px; } }
.lb__fig{ display:flex; flex-direction:column; max-width:min(100%, 1400px); min-width:0; }
.lb__img{
  display:block; margin-inline:auto;
  width:auto; height:auto; max-width:100%; max-height:calc(100svh - 200px);
  border:1px solid var(--line); background:var(--placeholder);
  touch-action:pan-y;
}
.lb__cap{ margin-top:14px; display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 22px; font-size:15px; color:var(--ink-2); }
.lb__link{ color:var(--ink); font-weight:500; }
.lb__count{ margin-left:auto; font-size:13px; color:var(--grey); font-variant-numeric:tabular-nums; }
.lb__btn{
  position:absolute; width:44px; height:44px; padding:0; border:0; cursor:pointer;
  display:grid; place-items:center; background:none; color:var(--ink);
}
.lb__close{ top:12px; right:12px; }
.lb__nav{
  top:50%; transform:translateY(-50%); border-radius:50%;
  background:rgba(255,255,255,.74); box-shadow:0 1px 10px rgba(10,12,16,.14);
}
.lb__nav[hidden]{ display:none; }
.lb__nav--prev{ left:max(10px, env(safe-area-inset-left, 0px)); }
.lb__nav--next{ right:max(10px, env(safe-area-inset-right, 0px)); }
.lb__btn:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
html.lb-open{ overflow:hidden; }

/* ---- client reviews (reviews_block): text only, one hairline frame each, no stars ------------ */
.reviews{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.reviews__summary{ margin-top:var(--space-h); font-size:var(--fs-small); font-weight:500; font-variant-numeric:tabular-nums; }
.reviews__list{ margin-top:var(--space-h); display:grid; gap:clamp(16px,2vw,28px) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
@media (min-width:900px){ .reviews__list{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.review{ height:100%; display:flex; flex-direction:column; justify-content:space-between; gap:20px;
  padding:clamp(20px,2.4vw,32px); border:1px solid var(--line); background:var(--white); }
.review blockquote{ margin:0; }
.review p{ font-size:var(--fs-lede); line-height:1.45; color:var(--ink); }
.review figcaption{ font-size:var(--fs-small); color:var(--grey); }

/* ---- what we provide (usp_block): eight short facts, hairline grid ---------------------- */
.usp{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.usp__list{
  margin-top:var(--space-h);
  display:grid; grid-template-columns:minmax(0,1fr);
  border-top:1px solid var(--line);
}
.usp__list li{ padding-block:var(--space-item); border-bottom:1px solid var(--line-soft); }
.usp__more{ margin-top:var(--space-h); font-size:var(--fs-small); font-weight:500; }
.usp__list p{ margin-top:var(--space-tight); color:var(--grey); font-size:15px; max-width:34ch; }
@media (min-width:640px){
  .usp__list{ grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--grid-gap); }
}
@media (min-width:1100px){
  .usp__list{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .usp__list li{ padding-inline:0; position:relative; }
  .usp__list li:not(:nth-child(4n+1))::before{ content:""; position:absolute; top:0; bottom:0; left:calc(var(--grid-gap) / -2); border-left:1px solid var(--line-soft); }
}

/* ---- /realizacje/: named projects without a photo, the older references, the case page ---------------------- */
/* named projects continue the realisation section above them (their own list opens with the hairline) */
.named{ padding-block:var(--pause-half); }
.named__pre{ margin-bottom:var(--space-h); }
.named__list{ display:grid; grid-template-columns:minmax(0,1fr); border-top:1px solid var(--line); }
.named__list li{ padding-block:var(--space-item); border-bottom:1px solid var(--line-soft); }
.named__list p{ margin-top:var(--space-tight); color:var(--grey); font-size:var(--fs-small); }
@media (min-width:860px){
  .named__list{ grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:var(--grid-gap); border-bottom:1px solid var(--line-soft); }
  .named__list li{ border-bottom:0; padding-inline:0; position:relative; }
  .named__list li:not(:nth-child(3n+1))::before{ content:""; position:absolute; top:0; bottom:0; left:calc(var(--grid-gap) / -2); border-left:1px solid var(--line-soft); }
}

.refs{ padding-block:var(--pause-half); }
.refs__group{ padding-block:var(--space-item); border-top:1px solid var(--line-soft); display:grid; gap:var(--space-tight); grid-template-columns:minmax(0,1fr); }
.refs__group:first-child{ border-top:1px solid var(--line); }
.refs__list{ columns:1; column-gap:clamp(24px,3vw,56px); }
.refs__list li{ break-inside:avoid; padding-block:4px; color:var(--ink-2); font-size:var(--fs-small); }
.refs__list span{ color:var(--grey); }
.refs__list span::before{ content:'· '; }
@media (min-width:860px){
  .refs__group{ grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--grid-gap); }
  .refs__group h3{ grid-column:span 4; }
  .refs__list{ grid-column:span 8; columns:2; column-gap:var(--grid-gap); }
}

.case{ padding-block:var(--pause-half); }
.case .edge{ display:grid; gap:clamp(28px,3.4vw,52px); grid-template-columns:minmax(0,1fr); align-items:start; }
.case__fig{ border:1px solid var(--line); }
.case__fig img{ width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--placeholder); }
.case__fig--portrait img{ aspect-ratio:4/5; }
.case__fig figcaption{ padding:12px 14px; font-size:13px; color:var(--grey); border-top:1px solid var(--line-soft); }
.case__facts{ margin:0; border-top:1px solid var(--line); }
.case__facts div{ display:grid; grid-template-columns:8.5em minmax(0,1fr); gap:12px; padding-block:14px; border-bottom:1px solid var(--line-soft); }
.case__facts dt{ font-size:var(--fs-label); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--grey); padding-top:.3em; }
.case__facts dd{ margin:0; font-weight:500; }
.case__text{ margin-top:clamp(18px,1.9vw,26px); color:var(--ink-2); max-width:52ch; }
.case__facts + .case__text{ margin-top:clamp(24px,2.6vw,38px); }
.case__links{ margin-top:clamp(24px,2.6vw,38px); display:grid; gap:10px; font-size:var(--fs-small); font-weight:500; }
@media (min-width:1000px){
  .case .edge{ grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(36px,4.4vw,72px) var(--grid-gap); }
  .case__fig{ grid-column:span 7; }
  .case__side{ grid-column:span 5; }
  .case .edge:has(.case__fig--portrait) > *{ grid-column:span 6; }
}

/* ---- brand pages (components/systems.php): series sections on the case layout, system illustrations shown whole ---- */
.brand-fig{ padding-block:var(--pause-half); }
.intro + .brand-fig{ padding-top:0; }
.brand-fig .case__fig img{ aspect-ratio:auto; height:auto; }
.case__fig--whole img{ aspect-ratio:auto; height:auto; object-fit:contain; }   /* a cross-section is never cropped */
.series__figs .case__fig img{ max-height:min(85vh, 880px); background:#fff; }   /* portrait cross-sections: whole, not page-tall */
.series__figs{ display:grid; gap:clamp(18px,1.9vw,26px); }
.series .case__facts dd{ font-weight:400; }
.series .case__facts div{ grid-template-columns:9.5em minmax(0,1fr); }
@media (min-width:1000px){
  .series__figs{ grid-column:span 7; }
  .series .case__side{ grid-column:span 5; }
  .series .edge:not(:has(.series__figs)) .case__side{ grid-column:span 8; }   /* illustration still to come */
}
.series-table{ padding-block:var(--pause-half); }
/* the same table in an article (.prose .marks): one look for every data table on the site */
.series-table table,.marks{ width:100%; border-collapse:collapse; border-top:1px solid var(--line); font-size:var(--fs-small); }
.series-table caption,.marks caption{ text-align:left; margin-bottom:var(--space-h); }
.series-table th,.series-table td,.marks th,.marks td{ text-align:left; vertical-align:top; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.series-table thead th,.marks thead th{ font-size:var(--fs-label); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--grey); }
.series-table tbody th,.marks tbody th{ font-weight:600; white-space:nowrap; padding-right:var(--grid-gap); width:1%; }
.marks th:first-child{ padding-right:var(--grid-gap); }
.series-table td,.marks td{ color:var(--ink-2); }
.maker-line{ padding-block:var(--pause-half); }
.maker-line p{ font-size:var(--fs-small); color:var(--ink-2); }
.maker-line a{ color:var(--ink); font-weight:500; }
.thing figcaption{ padding:10px 14px; font-size:13px; color:var(--grey); border-top:1px solid var(--line-soft); }

/* ---- "Poradnik: …" — one line under the FAQ of a page an article belongs to (components/guides.php) ---------- */
.guide-line{ padding-block:var(--pause-half); }
.faq + .guide-line{ padding-top:0; margin-top:calc(-1 * var(--pause-half) + var(--space-tight)); }
.guide-line p{ max-width:var(--w-text); font-size:var(--fs-small); color:var(--ink-2); }
.guide-line a{ color:var(--ink); }

/* ---- questions (faq_block): native <details>, ink hairline above, soft lines between ---------------------- */
.faq{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.faq__list{ margin-top:var(--space-h); border-top:1px solid var(--line); }
.faq__item{ border-bottom:1px solid var(--line-soft); }
.faq__item summary{
  --faq-pad:clamp(18px,1.9vw,26px);
  position:relative;
  padding:var(--faq-pad-top, var(--faq-pad)) 44px var(--faq-pad-bottom, var(--faq-pad)) 0;
  cursor:pointer;
  list-style:none;
  font-size:var(--fs-h3);   /* a question, not an outline heading — but on the heading scale */
  font-weight:600;
  letter-spacing:var(--track-h);
  line-height:var(--lh-h3);
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::marker{ content:''; }
/* the plus is two 1px ink lines; open, the vertical one goes and it reads as a minus */
.faq__item summary::after{
  content:'';
  position:absolute; right:2px; top:calc(var(--faq-pad-top, var(--faq-pad)) + .62em);
  width:14px; height:14px; transform:translateY(-50%);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
}
.faq__item[open] summary::after{ background-size:100% 1px, 1px 0; }
.faq__item p{
  margin:-4px 44px clamp(18px,1.9vw,26px) 0;
  color:var(--ink-2);
  font-size:var(--fs-small);
  max-width:60ch;
}

/* ---- own production: the plant band and who makes it ------------------------- */
.plant{ position:relative; border-top:1px solid var(--line); }
.plant__img{
  width:100%;
  height:clamp(320px, 74svh, 860px);
  object-fit:cover;
  object-position:50% 60%;
  background:var(--placeholder);
}
.plant__credit{
  position:absolute; left:var(--edge); bottom:clamp(20px,3vh,36px);
  color:rgba(255,255,255,.86); font-size:13px;
  text-shadow:0 1px 12px rgba(0,0,0,.5);
}
.who{ padding-block:var(--pause-half); }
.who--flush{ border-top:1px solid var(--line); }
.who__lede{
  margin-top:var(--space-h);
  font-size:var(--fs-lede);
  color:var(--ink-2);
  max-width:40ch;
}
.steps{
  margin-top:var(--space-h);
  display:grid; grid-template-columns:minmax(0,1fr);
  border-top:1px solid var(--line);
}
.steps li{ padding-block:var(--space-item); border-bottom:1px solid var(--line-soft); }
.steps span{ display:block; font-weight:700; font-size:var(--fs-h3); letter-spacing:var(--track-h); line-height:var(--lh-h3); }
/* the long form (/dla-architektow-i-wykonawcow/): "Od ciebie" / "Od nas" — a small label over each line */
.steps .steps__io{ color:var(--ink-2); }
.steps__io b{ display:block; margin-bottom:2px; font-size:var(--fs-label); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--grey); }
.steps__io + .steps__io{ margin-top:var(--space-tight); }
.steps p{ margin-top:var(--space-tight); color:var(--grey); font-size:15px; }
@media (min-width:860px){
  .steps{ grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:var(--grid-gap); border-bottom:1px solid var(--line-soft); }
  .steps li{ border-bottom:0; padding-inline:0; position:relative; }
  .steps li:not(:first-child)::before{ content:""; position:absolute; top:0; bottom:0; left:calc(var(--grid-gap) / -2); border-left:1px solid var(--line-soft); }
}
.who__fig{ margin:var(--space-h) 0 0; }
.who__fig img{ width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--placeholder); border:1px solid var(--line); }
.who__fig figcaption{ padding-top:12px; font-size:13px; color:var(--grey); }
.who__shots{ margin-top:var(--space-h); }   /* plant photos under the process steps, same section */

/* ---- contact block and CTA block --------------------------------------------- */
.contact{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.contact__lede{ margin-top:var(--space-h); font-size:var(--fs-lede); color:var(--ink-2); max-width:44ch; }
.contact__lines{
  margin-top:var(--space-h);
  display:flex; flex-direction:column; align-items:flex-start; gap:4px;
  font-size:var(--fs-body); font-weight:400;                              /* body size, never display size */
}
.contact__lines strong{ font-weight:600; }                                 /* the name */
.contact__lines a{ font-weight:500; }                                      /* phone and e-mail: scanable */
.cta{
  display:inline-flex; align-items:center;
  margin-top:var(--space-h);
  padding:18px 34px;
  background:var(--blue); color:var(--white);
  font-size:16px; font-weight:600;
  transition:background-color .16s linear;
}
.cta:hover{ background:var(--blue-dark); }

/* NAP lines and, when the form is configured, the form beside them from 900px. Without the form
   the block is the mockup's: lines, then the button. */
.contact__grid{ margin-top:var(--space-h); }
.contact__grid .contact__lines{ margin-top:0; }
.contact__grid--form{ display:grid; gap:clamp(43px,4.5vw,72px); }
@media (min-width:900px){
  .contact__grid--form{ grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--grid-gap); align-items:start; }
  .contact__grid--form > .contact__lines{ grid-column:span 4; }
  .contact__grid--form > .form{ grid-column:span 8; }
}
/* the block as a page of its own (www/zapytanie/): clears the floating header like .intro */
.contact--page{ border-top:0; padding-top:calc(var(--header-space) + clamp(36px, 6.3vh, 86px)); }
.back{ padding-bottom:var(--pause-half); font-size:var(--fs-small); font-weight:500; }

/* ---- enquiry form --------------------------------------------------------------
   Hard corners, a grey 1px border (≥ 3:1 against white), blue only on focus and the button.
   16px+ in every control so phones do not zoom in. */
.form__grid{ display:grid; gap:22px var(--grid-gap); }
@media (min-width:640px){
  .form__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .field--full{ grid-column:1 / -1; }
}
.field label{ display:block; margin-bottom:8px; font-size:15px; font-weight:500; }
.field__opt{ font-weight:400; color:var(--grey); }
.field__hint{ margin:-2px 0 10px; font-size:14px; color:var(--grey); }
.field__hint--after{ margin:8px 0 0; }
.form__pair{ margin:4px 0 -10px; }   /* "e-mail or phone": one line over the pair */
/* attachments: the native control, at form size and with the form's border */
.field input[type="file"]{ min-height:0; padding:11px 12px; font-size:15px; cursor:pointer; }
.field input[type="file"]::file-selector-button{
  margin-right:14px; padding:8px 14px; border:1px solid var(--ink); border-radius:0;
  background:var(--white); color:var(--ink); font:inherit; font-weight:500; cursor:pointer;
}
.field__kept{ margin-bottom:10px; display:flex; flex-direction:column; gap:4px; }
/* checkbox: 22px box, hard corners, the label a 44px-high target */
.check{ display:flex; align-items:flex-start; gap:12px; min-height:44px; padding-top:10px; font-size:16px; cursor:pointer; }
.field label.check{ display:flex; margin-bottom:0; font-size:16px; font-weight:400; }
.check input{
  flex:none; width:22px; height:22px; min-height:0; margin:0; padding:0;
  border:1px solid var(--grey); background:var(--white); -webkit-appearance:none; appearance:none; cursor:pointer;
}
.check input:checked{
  border-color:var(--ink);
  background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 5 5 9 13 1' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center;
}
.check input:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.check a{ font-weight:500; }
.field input:not([type="checkbox"]),.field select,.field textarea{
  display:block; width:100%; min-height:52px; padding:13px 14px;
  font:inherit; font-size:17px; line-height:1.4; color:var(--ink);
  background:var(--white); border:1px solid var(--grey); border-radius:0;
  -webkit-appearance:none; appearance:none;
}
.field textarea{ min-height:190px; resize:vertical; }
/* autofocus on the first invalid field must not park it under the floating header */
.field input,.field select,.field textarea{ scroll-margin-top:calc(var(--header-space) + 48px); }
.field select{
  padding-right:44px; cursor:pointer;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23141719' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{
  outline:2px solid var(--blue); outline-offset:0; border-color:var(--blue);
}
.field [aria-invalid="true"]{ border-color:var(--error); box-shadow:inset 0 0 0 1px var(--error); }
.field__error{ margin-top:8px; font-size:14px; font-weight:500; color:var(--error); }
.form__summary{ margin-bottom:28px; padding:16px 20px; border:1px solid var(--error); border-left-width:4px; font-size:var(--fs-small); }
.form__summary p{ font-weight:600; }
.form__summary ul{ margin-top:8px; padding-left:1.1em; list-style:disc; }
.form__summary a{ font-weight:500; }
/* the honeypot: off-screen, not display:none (bots skip hidden fields) */
.form__hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.form__note{ margin-top:22px; font-size:14px; color:var(--grey); max-width:60ch; }
.form__note a{ color:var(--ink-2); }
.form__submit{ margin-top:28px; border:0; cursor:pointer; font-family:inherit; }

/* ---- where we are (/kontakt/): building photo beside a click-to-load map (DESIGN.md §8) ---- */
.visit{ border-top:1px solid var(--line); padding-block:var(--pause-half); }
.visit__lede{ margin-top:var(--space-h); font-size:var(--fs-lede); color:var(--ink-2); max-width:40ch; }
.visit__grid{ margin-top:var(--space-h); display:grid; gap:clamp(28px,3vw,48px) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
@media (min-width:860px){ .visit__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
/* both frames share the photo's proportion, so the two columns end on one line */
.visit__fig img,.map img{ width:100%; aspect-ratio:1278 / 1086; object-fit:cover; border:1px solid var(--line); background:var(--placeholder); }
.visit__fig figcaption,.map figcaption{ padding-top:12px; font-size:13px; color:var(--grey); }
.map img{ object-position:0 50%; }   /* the pin sits near the left edge: crop from the right */
.map a{ display:block; }
.map a:focus-visible{ outline-offset:4px; }
@media (max-width:859px){ .map img{ aspect-ratio:4 / 3; } }
.visit__route{ margin-top:12px; font-size:var(--fs-small); font-weight:500; }

/* ---- language switcher: "PL · EN · DE", small; a language without pages is text ----------- */
.lang{ display:flex; align-items:center; gap:5px; font-size:13px; font-weight:500; letter-spacing:.04em; white-space:nowrap; }
.lang a{ color:var(--ink-2); padding:6px 1px; }
.lang a:hover{ color:var(--ink); }
.lang [aria-current]{ color:var(--ink); }
.lang__off{ color:var(--grey); cursor:default; }   /* listed, pages not built yet: text, not a link */
.lang__sep{ color:var(--grey); }
.mpanel__lang{ margin-top:8px; font-size:16px; }
.mpanel__lang a{ min-height:44px; display:inline-flex; align-items:center; padding:0 6px; }
@media (max-width:860px){ .site-lang{ display:none; } }

/* ---- running text: privacy policy ---------------------------------------------- */
.prose{ padding-block:var(--pause-half); }
.intro + .prose{ padding-top:0; }   /* the article's hairline is its own, right under the intro's half pause */
.prose__body{ max-width:var(--w-text); border-top:1px solid var(--line); padding-top:var(--pause-half); }
.prose h2{ margin-top:var(--pause); }
.prose__body > h2:first-child{ margin-top:0; }
.prose p,.prose ul{ margin-top:14px; color:var(--ink-2); }
.prose ul{ padding-left:1.2em; list-style:disc; }
.prose li + li{ margin-top:4px; }
.prose h2 + :is(p,ul){ margin-top:var(--space-h); }   /* after .prose p: the heading's gap wins */
.prose a{ color:var(--ink); }
.prose__shots{ margin-top:var(--pause-half); }   /* photographs inside an article: the offer grid's figures */
.prose .shot figcaption{ margin:0; }
.prose__date{ margin-top:40px; font-size:14px; color:var(--grey); }

/* ---- /poradnik/ (components/guides.php): hub cards, the article head, figures in the text, the close ------------- */
.range--guides{ border-top:1px solid var(--line); }   /* the hub: intro → hairline → cards, one pause */
/* the first card spans the row: photograph on the left half, text on the right half, on the same two columns as the
   cards below it, bottom-aligned as the realisation card (DESIGN.md §13) */
@media (min-width:760px){
  .thing--wide{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--grid-gap); align-items:end; }
  .thing--wide figure{ margin-bottom:0; }
}
/* "Nasze realizacje" over the article's two cards: a label, as on the brand pages, and the block's own hairline */
.range--pre{ border-top:1px solid var(--line); }
.range__pre{ margin-bottom:var(--space-h); }
/* "W skrócie" beside the main photograph, --space-h under the lede (DESIGN.md §12: lede → content) */
.intro:has(+ .guide-head){ padding-bottom:var(--space-h); }
.guide-head{ padding-bottom:var(--pause-half); }
.guide-head .edge{ display:grid; gap:var(--space-h) var(--grid-gap); grid-template-columns:minmax(0,1fr); align-items:start; }
.brief{ padding:clamp(20px,2.4vw,32px); border:1px solid var(--line); background:var(--white); }
.brief__list{ margin-top:var(--space-tight); }
.brief__list li{ padding-block:var(--space-item); border-bottom:1px solid var(--line-soft); }
.brief__list li:last-child{ padding-bottom:0; border-bottom:0; }
.guide-head__fig img{ width:100%; aspect-ratio:3/2; object-fit:cover; border:1px solid var(--line); background:var(--placeholder); }
.guide-head__fig figcaption{ padding-top:12px; font-size:13px; color:var(--grey); }
@media (min-width:1000px){
  .guide-head .edge{ grid-template-columns:repeat(12,minmax(0,1fr)); }
  .brief{ grid-column:span 5; }
  .guide-head__fig{ grid-column:span 7; }
  .guide-head--portrait .brief{ grid-column:span 7; }
  .guide-head--portrait .guide-head__fig{ grid-column:span 5; }
  .guide-head--portrait .guide-head__fig img{ aspect-ratio:4/5; }   /* narrower, a portrait photo is cut to 3:2: it would fill the phone screen */
}
/* a data table inside the text */
.prose .marks{ margin-top:var(--space-h); }
.prose .marks caption{ margin-bottom:var(--space-tight); }
/* two products side by side (fasady, drzwi): the row label wraps, the two columns share the rest */
.marks--compare tbody th{ white-space:normal; width:24%; }
.marks--compare td{ padding-right:var(--grid-gap); }
.marks--compare td:last-child{ padding-right:0; }
.marks--compare thead th{ padding-right:var(--grid-gap); }
/* a phone has no room for three columns: each row becomes the row label over the two values, each value under its
   own small label (data-label); the header row stays for screen readers only */
@media (max-width:639px){
  .marks--compare thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .marks--compare tr{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--grid-gap); border-bottom:1px solid var(--line-soft); padding-block:12px; }
  .marks--compare tbody th,.marks--compare td{ width:auto; padding:0; border-bottom:0; }
  .marks--compare tbody th{ grid-column:1 / -1; margin-bottom:6px; }
  .marks--compare td[colspan]{ grid-column:1 / -1; }
  .marks--compare td[data-label]::before{ content:attr(data-label); display:block; margin-bottom:2px; font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--grey); }
}
/* simplified cross-sections (fasady): inline SVG in the page's colours — ink lines, aluminium grey, glass, white */
.xsec{ margin-top:var(--space-h); }
.xsec__pair{ display:grid; gap:var(--space-h) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
@media (min-width:640px){ .xsec__pair{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.xsec svg{ display:block; width:100%; height:auto; background:var(--white); border:1px solid var(--line); }
.xsec .alu{ fill:#C9CDD0; stroke:var(--ink); stroke-width:1; }
.xsec .hollow{ fill:var(--white); stroke:var(--ink); stroke-width:1; }
.xsec .glass{ fill:#E3EAEF; stroke:var(--ink); stroke-width:1; }
.xsec .seal{ fill:var(--ink); }
.xsec .screw{ stroke:var(--ink); stroke-width:2; }
.xsec .lead{ fill:none; stroke:var(--ink-2); stroke-width:.75; }
.xsec text{ font-family:var(--font); font-size:13px; fill:var(--ink-2); }
.xsec .side{ font-size:10px; font-weight:500; letter-spacing:.16em; fill:var(--grey); }
.xsec__item figcaption{ padding-top:10px; font-size:var(--fs-small); font-weight:600; color:var(--ink); }
.prose .xsec > figcaption{ margin-top:14px; font-size:13px; color:var(--grey); }
/* the checklist (wycena): a hairline box, empty squares to tick on a printout; groups in two columns */
.checklist{ margin-top:var(--space-h); padding:clamp(20px,2.4vw,32px); border:1px solid var(--line); background:var(--white); }
.checklist__groups{ margin-top:var(--space-tight); display:grid; gap:var(--space-h) var(--grid-gap); grid-template-columns:minmax(0,1fr); }
@media (min-width:640px){ .checklist__groups{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.prose .checklist__name{ margin-top:0; font-weight:600; color:var(--ink); }
.prose .checklist ul{ margin-top:8px; padding-left:0; list-style:none; }
.checklist li{ position:relative; padding-left:28px; font-size:var(--fs-small); }
.prose .checklist li + li{ margin-top:6px; }
.checklist li::before{ content:""; position:absolute; left:0; top:.2em; width:16px; height:16px; border:1px solid var(--ink); background:var(--white); }
/* the time axis (EI30 / EI60): one row per class, a bar per criterion. E solid ink, I outlined: told apart by fill
   and letter, never by colour alone. The axis runs to 70 min so a 60-minute bar does not end on the frame. */
.timeline{ margin-top:var(--space-h); }
.timeline__chart{ --max:70; display:grid; gap:14px; }
.timeline__row,.timeline__axis{ display:grid; grid-template-columns:6.5em minmax(0,1fr); column-gap:var(--grid-gap); align-items:center; }
.timeline__name{ margin:0; font-size:var(--fs-small); font-weight:600; color:var(--ink); }
.prose .timeline__name{ margin-top:0; color:var(--ink); }
.timeline__track{
  display:grid; gap:4px; padding-block:2px;
  background:   /* soft gridlines at 30 and 60 min */
    linear-gradient(var(--line-soft),var(--line-soft)) calc(30 / var(--max) * 100%) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-soft),var(--line-soft)) calc(60 / var(--max) * 100%) 0 / 1px 100% no-repeat;
  border-left:1px solid var(--line);
}
.timeline__bar{
  width:calc(var(--to) / var(--max) * 100%); height:22px; padding-left:8px;
  display:flex; align-items:center;
  background:var(--ink); color:var(--white); border:1px solid var(--ink);
  font-size:12.5px; font-weight:600; line-height:1;
}
.timeline__bar--i{ background:var(--white); color:var(--ink); }
.timeline__axis span{ grid-column:2; grid-row:1; justify-self:start; margin-left:calc(var(--at) / var(--max) * 100%); transform:translateX(-50%); font-size:13px; color:var(--grey); font-variant-numeric:tabular-nums; white-space:nowrap; }
.timeline__axis span:first-child{ transform:none; }
.prose .timeline figcaption{ margin-top:14px; font-size:13px; color:var(--grey); }
/* the article's close: the offer page under the two realisations */
.guide-offer{ padding-block:0 var(--pause-half); }
.guide-offer p{ padding-top:var(--space-h); border-top:1px solid var(--line-soft); font-size:var(--fs-more); color:var(--ink-2); }
.guide-offer a{ color:var(--ink); font-weight:500; }

/* drafts only — deploy/check-launch.sh fails while either is in www/ */
.draft-note{ display:inline-block; padding:8px 14px; border:1px solid var(--error); color:var(--error); font-size:14px; font-weight:600; }
mark.todo{ background:#FFF1C2; color:var(--ink); padding:0 3px; }

/* ---- thank-you page --------------------------------------------------------------- */
.intro__lede + .intro__lede{ margin-top:14px; }
.intro__back{ margin-top:var(--space-h); font-size:var(--fs-small); font-weight:500; }

/* ---- footer (DESIGN.md §9): three equal columns, one size, one grey; centred base ------------ */
.foot{ border-top:1px solid var(--line); padding-block:clamp(36px,4vw,56px) clamp(28px,3vw,40px); font-size:14px; line-height:1.7; color:var(--grey); }
.foot a{ color:inherit; }
.foot a:hover{ color:var(--ink); }
.foot__cols{ display:grid; gap:28px var(--grid-gap); grid-template-columns:minmax(0,1fr); }
@media (min-width:760px){ .foot__cols{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.foot__col{ display:flex; flex-direction:column; align-items:flex-start; }
.foot__social a{ display:inline-flex; align-items:center; gap:8px; }
.foot__social svg{ flex:none; }
.foot__base{
  margin-top:clamp(32px,3.6vw,48px); padding-top:clamp(20px,2.2vw,28px); border-top:1px solid var(--line);
  text-align:center; text-wrap:balance;
}
.foot__base p + p{ margin-top:1.7em; }   /* one blank line between the two */
.foot__credit{ font-style:italic; color:var(--grey-2); }

/* ---- back to top: the strip chevrons' soft white disc, bottom right, inside the safe area -------- */
.totop{
  position:fixed; z-index:150;   /* under the mobile menu (200); the lightbox is in the top layer */
  right:max(16px, env(safe-area-inset-right, 0px));
  bottom:max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  width:44px; height:44px; padding:0; border:0; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  background:rgba(255,255,255,.74); color:var(--ink); opacity:.92;
  box-shadow:0 1px 10px rgba(10,12,16,.14);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:opacity .15s linear;
}
.totop:hover{ opacity:1; }
.totop:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }
.totop[hidden], html.lb-open .totop, html.menu-open .totop{ display:none; }

/* ---- proximity: the joins between sections (DESIGN.md §12) --------------------------------------------------
   Every section pads half a pause above and below, so any two blocks are one pause apart and a hairline sits in the
   middle. A section heading on its own (.say) keeps only --space-h below, so the block it heads drops its top
   padding. After the full-bleed hero and the plant band (no padding of their own) the next heading gets the whole
   pause. Last in §6, so these win over the component rules above by source order. */
.say + *{ padding-top:0; }
:is(.hero, .plant) + section{ padding-top:var(--pause); }

/* A list right under its heading starts at the heading's gap: the hairline above the heading is the block's line, so
   the list draws no second one and its first row has no top padding. A list that ends its block ends on its last
   line of text: no bottom padding, no closing line. Otherwise the gap under a heading was --space-h + an item's
   padding (68 px under "Co wykonujemy." at 1440) and the gap above the next one a pause + an item's padding. */
.say + .spec .spec__list,
.usp__list, .faq__list, .named__pre + .named__list,
.who__title + .steps,
.say + .refs .refs__group:first-child{ border-top:0; }
.say + .spec .spec__item:first-child,
.say + .refs .refs__group:first-child,
.who__title + .steps li:first-child{ padding-top:0; }
.named__pre + .named__list li:first-child{ padding-top:0; }
@media (min-width:860px){ .named__pre + .named__list li{ padding-top:0; } }
.faq__item:first-child summary{ --faq-pad-top:0px; }
.spec__item:last-child,
.refs__group:last-child,
.named__list li:last-child{ padding-bottom:0; border-bottom:0; }
.faq__item:last-child{ border-bottom:0; }
.faq__item:last-child:not([open]) summary{ --faq-pad-bottom:0px; }
.faq__item:last-child p{ margin-bottom:0; }
.usp__list li:first-child{ padding-top:0; }
.usp__list li:last-child{ padding-bottom:0; border-bottom:0; }
@media (min-width:640px){
  .usp__list li:nth-child(-n+2){ padding-top:0; }
  .usp__list li:nth-last-child(-n+2){ padding-bottom:0; border-bottom:0; }
}
@media (min-width:1100px){
  .usp__list li:nth-child(-n+4){ padding-top:0; }
  .usp__list li:nth-last-child(-n+4){ padding-bottom:0; border-bottom:0; }
}
@media (min-width:860px){
  .who__title + .steps li{ padding-top:0; }
  .named__list{ border-bottom:0; }
  .named__list li{ padding-bottom:0; }
  .steps{ border-bottom:0; }
  .steps li{ padding-bottom:0; }
}
.steps li:last-child{ border-bottom:0; padding-bottom:0; }

/* ── 7 · motion ──────────────────────────────────────────────────────────────
   Nothing animates on scroll or on load. Only a hairline under a hovered link. */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}
