/* NextHome Kovalevych · design system
   Layout concept: light-grey canvas with white rounded content cards (elgroup / FMI),
   a hairline construction grid for headers, heroes and facts (Sincro),
   brand-accent square blocks for every call to action and real project photography. No gradients, no cut-outs. */

:root {
  /* colour */
  --canvas: #F0F2EF;        /* page ground */
  --paper: #FFFFFF;         /* cards, header */
  --ink: #1D2520;           /* headings, body */
  --ink-soft: #56605A;      /* secondary text */
  --mute: #8D9790;          /* big numerals, hints */
  --line: #D5DBD6;          /* hairlines on light */
  --slate: #83978B;         /* menu panel, about band */
  --red: #2A5A44;           /* brand accent: pine green (Tony, 2026-11-14) */
  --red-deep: #1C4031;      /* hover, pressed */
  --err: #C4352B;           /* form errors: a real red, so a missed field or consent is seen at once (2026-11-24) */
  --night: #131915;         /* dark panels, footer */
  --mist: #E4EAE5;          /* tiles on light */
  --on-dark: #F4F5F5;
  --on-dark-soft: rgba(244, 245, 245, .72);
  --line-dark: rgba(244, 245, 245, .18);

  /* type */
  --f-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-display: clamp(2.75rem, 5.6vw, 6.5rem);
  --t-h1: clamp(2.75rem, 6.6vw, 6.5rem);
  --t-h2: clamp(2.25rem, 4.6vw, 4.5rem);
  --t-h3: clamp(1.375rem, 2vw, 1.875rem);
  --t-lead: clamp(1.25rem, 2.1vw, 2.125rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;
  --t-mono: .75rem;

  /* layout */
  --gut: clamp(16px, 4.8vw, 70px);
  --max: 1580px;
  --hdr-h: 96px;
  --side-w: clamp(370px, 28vw, 460px);   /* right column shared by header and page hero, so their dividers form one line */
  --r-card: 24px;
  --r-media: 0 0 120px 0;
  --sec: clamp(88px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }   /* Lenis (assets/vendor) scrolls instead */
html { scroll-padding-top: calc(var(--hdr-h) + 1px); }   /* anchors land just below the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec + .sec { padding-top: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--t-small); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .22em; text-transform: uppercase;
  color: #4A5B51; display: inline-flex; gap: .8em; align-items: center;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--on-dark-soft); }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.12; }
.lead { font-size: var(--t-lead); line-height: 1.22; letter-spacing: -.02em; }
.body-l { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.grad { color: var(--ink); }
.soft { color: var(--mute); }
.ttl-rule { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.ttl-rule::after { content: ""; flex: 1; height: 1px; background: var(--ink); }

/* ---------- buttons ---------- */
/* main button: static rounded rectangle, label first, arrow after it (nothing that looks draggable) */
.btn-pill {
  --pill-bg: var(--ink); --pill-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 58px; padding: 0 22px 0 26px;
  border-radius: 8px; border: 0; background: var(--pill-bg); color: var(--pill-fg);
  font-size: 1rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; text-align: left;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn-pill .i { width: 18px; height: 18px; stroke-width: 1.8; }
.btn-pill:hover { --pill-bg: #000; }
.btn-pill--red { --pill-bg: var(--red); }
.btn-pill--red:hover { --pill-bg: var(--red-deep); }
.btn-pill--light { --pill-bg: var(--paper); --pill-fg: var(--ink); }
.btn-pill--light:hover { --pill-bg: var(--mist); }
.btn-pill--sm { min-height: 48px; padding: 0 18px 0 20px; gap: 22px; font-size: .9375rem; }

/* FMI rectangle with mono label */
.btn-mono {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px;
  border: 1px solid currentColor; border-radius: 4px; background: transparent;
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-mono::after { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-block: 4px solid transparent; }
.btn-mono:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-mono--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-mono--solid:hover { background: var(--red); border-color: var(--red); }
.btn-mono--white { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-mono--white:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.on-dark .btn-mono:not(.btn-mono--white):hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Sincro square tile with a corner mark */
.tile {
  --tile-bg: var(--mist); --tile-fg: var(--ink);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 96px; padding: 16px 44px 16px 16px; background: var(--tile-bg); color: var(--tile-fg);
  font-size: .9375rem; line-height: 1.25; border: 0; text-align: left;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tile::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transition: transform .3s var(--ease);
}
.tile:hover::after { transform: translate(3px, -3px); }
.tile:hover { --tile-bg: var(--ink); --tile-fg: var(--paper); }
.tile--red { --tile-bg: var(--red); --tile-fg: var(--paper); }
.tile--red:hover { --tile-bg: var(--red-deep); }
.tile--ink { --tile-bg: var(--night); --tile-fg: var(--paper); }
.tile--ink:hover { --tile-bg: var(--red); }
.tile small { display: block; opacity: .7; font-size: .8125rem; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo__svg { height: 38px; width: auto; flex: none; display: block; }

/* ---------- header (Sincro grid) ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) var(--side-w); align-items: stretch; gap: 0;
  height: var(--hdr-h); max-width: none;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: env(safe-area-inset-right, 0px);
}
.hdr__logo { display: flex; align-items: center; padding-right: clamp(20px, 2.4vw, 36px); }
.sw { display: flex; align-items: center; gap: 4px; padding: 0 clamp(14px, 1.8vw, 26px); border-left: 1px solid var(--line); }
.sw a { padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; font-size: .875rem; color: var(--ink-soft); white-space: nowrap; transition: border-color .2s, color .2s; }
.sw a:hover { color: var(--ink); border-color: var(--line); }
.sw a.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hdr__nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); padding: 0 clamp(14px, 1.8vw, 26px); border-left: 1px solid var(--line); min-width: 0; }
.hdr__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-left: 1px solid var(--line); min-width: 0; }
.navlink { font-size: .9375rem; white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }
.navlink .plus { width: 11px; height: 11px; position: relative; }
.navlink .plus::before, .navlink .plus::after { content: ""; position: absolute; background: currentColor; left: 0; right: 0; top: 5px; height: 1.2px; transition: transform .3s var(--ease); }
.navlink .plus::after { transform: rotate(90deg); }
.navlink[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.hdr__tel { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 16px 0 clamp(20px, 2.2vw, 30px); font-size: .8125rem; line-height: 1.25; white-space: nowrap; min-width: 0; overflow: hidden; }
.hdr__tel a { overflow: hidden; text-overflow: ellipsis; }
.hdr__tel b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hdr__tel span { color: var(--ink-soft); }
.hdr__cta { margin: 0; width: clamp(150px, 11vw, 176px); height: 100%; min-height: 0; font-size: .9375rem; }
.nav-toggle { display: none; }

/* mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(19, 25, 21, .35);
}
.mega__in { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: 36px 44px; }
.mega__intro p { color: var(--ink-soft); font-size: .9375rem; margin-top: 14px; max-width: 34ch; }
.numlist { border-top: 1px solid var(--line); }
.numlist li { border-bottom: 1px solid var(--line); }
.numlist a { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: baseline; padding: 11px 0; font-size: .9375rem; transition: color .2s, padding .3s var(--ease); }
.numlist a:hover { color: var(--red); padding-left: 6px; }
.numlist .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.numlist .tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.mega .tile { min-height: 150px; }

/* side menu (elgroup slide-in) */
.menu {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr minmax(320px, 520px);
  visibility: hidden; pointer-events: none; overflow: hidden;
}
.menu__scrim { background: rgba(19, 25, 21, .45); opacity: 0; transition: opacity .45s var(--ease); border: 0; }
.menu__panel {
  background: var(--slate); color: var(--paper); transform: translateX(100%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) max(28px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) 40px;
}
body.nav-open .menu { visibility: visible; pointer-events: auto; }
body.nav-open .menu__scrim { opacity: 1; }
body.nav-open .menu__panel { transform: none; }
body.nav-open { overflow: hidden; }
.menu__close { align-self: flex-end; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--paper); }
.menu__close .i { width: 30px; height: 30px; stroke-width: 1.2; }
.menu__k { margin-top: clamp(16px, 4vh, 40px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.menu__big { margin-top: 18px; display: grid; gap: 2px; }
.menu__big a { font-size: clamp(2.25rem, 4.2vw, 3.5rem); letter-spacing: -.035em; line-height: 1.12; color: #F4F5F5; transition: color .25s, transform .35s var(--ease); display: inline-block; }
.menu__big a:hover { color: var(--night); transform: translateX(8px); }
.menu__sub { margin-top: 28px; display: grid; gap: 6px 24px; font-size: 1rem; }
.menu__sub a { opacity: .85; } .menu__sub a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.menu__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 10px; font-size: .875rem; }
.menu__foot b { font-weight: 500; font-variant-numeric: tabular-nums; }
.menu__cta { margin-top: 22px; }

/* ---------- page hero (Sincro split) ---------- */
.phero { background: var(--paper); border-bottom: 1px solid var(--line); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); }
.phero__main { padding: clamp(28px, 3.2vw, 44px) clamp(20px, 3vw, 40px) clamp(28px, 3.2vw, 48px) 0; min-width: 0; }
.phero__side { border-left: 1px solid var(--line); padding: clamp(24px, 2.4vw, 32px) max(clamp(20px, 2.2vw, 30px), env(safe-area-inset-right, 0px)) clamp(24px, 2.4vw, 32px) clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; }
.phero__copy { display: grid; gap: 16px; }
.geo-list { display: grid; border-top: 1px solid var(--line); }
.geo-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.4; color: var(--ink-soft); }
.geo-list b { color: var(--ink); font-weight: 500; }
.phero__side .lead { font-size: clamp(1.25rem, 1.75vw, 1.625rem); line-height: 1.22; letter-spacing: -.015em; }
.phero__meta { font-size: .875rem; color: var(--ink); line-height: 1.35; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.phero h1 { font-size: var(--t-display); letter-spacing: -.045em; line-height: .9; }
.phero h1 .soft { color: var(--mute); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-soft); margin-bottom: clamp(18px, 2.4vw, 32px); }
.crumbs a:hover { color: var(--red); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }

/* full-bleed media under a hero; .media frames smaller photos inside the page width */
.media { padding-top: clamp(16px, 2vw, 28px); }
.bleed--framed { border-radius: 0 0 clamp(60px, 8vw, 120px) 0; }
.bleed--framed img { height: clamp(300px, 44vw, 640px); }
.bleed--framed.bleed--short img { height: clamp(260px, 34vw, 520px); }
.bleed--framed .bleed__credit { left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 5px 9px; }
.bleed--framed .bleed__card { right: 16px; bottom: 16px; }
.bleed { position: relative; background: var(--night); overflow: hidden; }
.bleed img { width: 100%; height: clamp(360px, 62vw, 820px); object-fit: cover; }
.bleed__card {
  position: absolute; right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: clamp(20px, 3vw, 44px);
  width: min(460px, calc(100% - 2 * var(--gut))); background: var(--mist); display: grid; grid-template-columns: 128px 1fr; gap: 0; padding: 14px;
}
.bleed__card .tile { min-height: 100%; }
.bleed__card .copy { padding: 4px 4px 4px 18px; display: flex; flex-direction: column; gap: 14px; }
.bleed__card p { font-size: .9375rem; line-height: 1.35; }
.quick { display: grid; border-top: 1px solid var(--line); }
.quick button { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: .875rem; text-align: left; }
.quick button:hover { color: var(--red); }
.quick .i { width: 14px; height: 14px; }
.bleed__credit { position: absolute; left: max(var(--gut), env(safe-area-inset-left, 0px)); bottom: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* ---------- statement (elgroup) ---------- */
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 4vw, 60px); }
.statement__aside { font-size: 1.0625rem; line-height: 1.5; max-width: 22ch; padding-top: .55em; }
.statement__text { font-size: clamp(1.75rem, 3.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.js-reveal .statement__text .w { color: #A6AEA8; transition: color .5s var(--ease); }
.js-reveal .statement__text .w.on { color: var(--ink); }

/* ---------- services (elgroup cards) ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .body-l { max-width: 46ch; }
.svc { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.card { background: var(--paper); border-radius: var(--r-card); position: relative; overflow: hidden; }
.svc__card { padding: clamp(36px, 4vw, 60px) clamp(24px, 3vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 260px; transition: transform .5s var(--ease); }
.svc__card h3 { font-size: clamp(1.625rem, 2.2vw, 2.125rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.svc__card p { color: var(--ink-soft); max-width: 34ch; font-size: 1rem; }
.svc__card .btn-pill { margin-top: 10px; }
.svc__card .geo { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.svc__img { max-width: none; width: calc(100% + 2 * clamp(24px, 3vw, 40px)); margin: 6px calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(36px, 4vw, 60px)); height: clamp(240px, 22vw, 320px); object-fit: cover; }

/* ---------- FMI accordion card ---------- */
.fcard { background: var(--paper); border-radius: 16px; padding: clamp(28px, 4.4vw, 70px) clamp(20px, 4vw, 54px); box-shadow: 0 40px 80px -60px rgba(29, 37, 32, .35); }
.fcard__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); }
.center-head { text-align: center; display: grid; justify-items: center; gap: 22px; margin-bottom: clamp(40px, 6vw, 96px); }
.center-head h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -.04em; line-height: 1.02; font-weight: 400; max-width: 21ch; }
.acc { border-top: 0; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border: 0; background: none; text-align: left;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem); letter-spacing: -.015em; line-height: 1.2;
}
.acc__btn[aria-expanded="true"] { font-weight: 600; }
/* the question keeps the room its bold (open) form needs, so opening never re-wraps the line */
.acc__q { display: grid; }
.acc__q > span { grid-area: 1 / 1; }
.acc__ghost { font-weight: 600; visibility: hidden; pointer-events: none; user-select: none; }
.acc__item:has(.acc__btn[aria-expanded="true"]) { border-bottom-color: var(--ink-soft); }
.circ { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #A9B5AD; display: grid; place-items: center; flex: none; position: relative; transition: transform .4s var(--ease), border-color .3s; }
.circ::before, .circ::after { content: ""; position: absolute; width: 11px; height: 1.2px; background: #6F8076; }
.circ::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc__btn[aria-expanded="true"] .circ { transform: rotate(45deg); border-color: #3C4A41; }
.acc__btn[aria-expanded="true"] .circ::after { transform: rotate(90deg); }
.acc__panel { color: var(--ink-soft); max-width: 62ch; }
.acc__in { padding: 0 0 22px; }
.acc__panel p + p { margin-top: 10px; }
.acc__panel .btn-row { margin-top: 18px; }
.ticks { display: grid; gap: 26px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 6px 14px; }
.ticks li::before { content: ""; width: 9px; height: 9px; background: #83978B; transform: rotate(45deg); margin-top: .55em; }
.ticks b { font-weight: 600; display: block; margin-bottom: 4px; letter-spacing: -.01em; }
.ticks span { color: var(--ink-soft); }
.svc-detail[hidden] { display: none; }
.fcard__foot { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 44px; }

/* ---------- facts (Sincro numerals) ---------- */

/* ---------- values (Sincro brand-colour sequence) ---------- */

/* ---------- doubts (elgroup core-values table) ---------- */
.dtable { margin-top: clamp(48px, 7vw, 110px); border-top: 1px solid var(--ink); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px clamp(24px, 5vw, 96px); padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom-color: var(--ink); }
.drow__q small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.drow__q p, .drow__a h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 500; }
.drow__q p { color: var(--ink-soft); }
.drow__a { padding-top: 21px; }
.drow__a h3 { color: var(--ink); }
.drow__a p { margin-top: 10px; color: var(--ink-soft); line-height: 1.6; max-width: 56ch; }

/* ---------- process (FMI dark media card) ---------- */
.mcard { position: relative; border-radius: 16px; overflow: hidden; background: var(--night); color: var(--on-dark); }
.mcard__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: clamp(36px, 6vw, 84px) clamp(22px, 6vw, 80px); }
.mcard h2 { font-size: var(--t-h2); font-weight: 400; letter-spacing: -.035em; line-height: .92; }
.mcard .intro { margin-top: 22px; color: var(--on-dark-soft); max-width: 40ch; }
.steps .acc__item { border-bottom-color: var(--line-dark); }
.steps .acc__btn { color: var(--on-dark); padding: 18px 0; }
.steps .acc__btn .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--on-dark-soft); margin-right: 16px; }
.steps .acc__btn > span:first-child { display: flex; align-items: baseline; }
.steps .circ { border-color: rgba(244, 245, 245, .6); }
.steps .circ::before, .steps .circ::after { background: var(--on-dark); }
.steps .acc__panel { color: var(--on-dark-soft); padding-left: 44px; }

/* ---------- projects (elgroup) ---------- */
.giant { font-size: clamp(4rem, 9vw, 8.75rem); letter-spacing: -.045em; line-height: .9; font-weight: 500; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 5vw, 100px) clamp(20px, 6vw, 180px); }
.proj { display: grid; gap: 16px; align-content: start; }
.proj__img { aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; border-radius: var(--r-media); background: var(--mist); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.05); }
.proj h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 500; }
.proj p { font-size: .9375rem; color: var(--ink-soft); }
.proj .meta { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.ph-tag { justify-self: start; display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: var(--paper); color: var(--ink-soft); border: 1px dashed #B8BFBA; padding: 4px 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 10px 18px; font-size: .9375rem; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- reviews ---------- */
.revs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.rev { background: var(--paper); display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; min-height: 300px; }
.rev__nav { background: var(--mist); display: grid; place-items: center; border: 0; }
.rev__slides { display: grid; min-width: 0; }
.rev__slides > .rev__slide { grid-area: 1 / 1; }
.rev__slides > .rev__slide[hidden] { display: flex !important; visibility: hidden; }
.rev__q.rev__q--real { color: var(--ink); font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.38; }
.rev__stars { display: flex; gap: 3px; color: var(--red); margin-bottom: -12px; }
.rev__stars svg { width: 16px; height: 16px; fill: currentColor; }
.rev__meta { display: flex; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; }
.rev__score { font-size: .9375rem; color: var(--ink-soft); }
.rev__score b { font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.rev__nav .i { width: 22px; height: 22px; }
.rev__body { padding: 28px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.rev__q { font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -.02em; line-height: 1.3; color: var(--mute); }
.rev__who { display: flex; justify-content: space-between; align-items: end; gap: 16px; font-size: .875rem; }
.rev__who span { display: block; color: var(--ink-soft); }
.social { background: var(--night); color: var(--on-dark); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.social p { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
.social .tile { min-height: 84px; }
.social__grid { display: grid; gap: 10px; }
.tile--muted { --tile-bg: rgba(244,245,245,.08); --tile-fg: var(--on-dark-soft); pointer-events: none; }
.tile--muted::after { display: none; }

/* ---------- about band (elgroup) ---------- */

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); }
.faq-grid h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -.04em; line-height: 1.02; font-weight: 400; }
.faq-grid .aside { display: grid; gap: 24px; align-content: start; }

/* ---------- generic content blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.stack { display: grid; gap: 22px; align-content: start; }
.prose { display: grid; gap: 16px; color: var(--ink-soft); max-width: 62ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.icard { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.icard h3 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.icard p, .icard li { color: var(--ink-soft); font-size: 1rem; }
.icard .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.icard .btn-pill { margin-top: auto; align-self: flex-start; }
.icard--img { padding: 0; overflow: hidden; }
.icard--img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.icard--img .in { padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 12px; }
.dash { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dash li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.dash li::before { content: ""; width: 12px; height: 7px; border-left: 1.6px solid var(--red); border-bottom: 1.6px solid var(--red); transform: rotate(-45deg); margin-top: .45em; }

/* house stages diagram (budowa-domow) */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stage { padding: 22px clamp(12px, 1.6vw, 24px) 28px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.stage:first-child { border-left: 0; padding-left: 0; }
.stage svg { width: 100%; max-width: 170px; height: auto; color: var(--ink); }
.stage .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--mute); }
.stage h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; font-weight: 500; }
.stage p { font-size: .9375rem; color: var(--ink-soft); }
.stage--key svg .fill { fill: var(--red); }

/* spec table */
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-soft); width: 40%; padding-right: 16px; }

/* company data (kontakt / o firmie) */
.datablock { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 3vw, 44px); display: grid; gap: 20px; }
.dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; border-top: 1px solid var(--line); }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--ink-soft); font-size: .875rem; padding-right: 16px; }
.dl dd { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.copy-btn { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); background: var(--canvas); padding: 6px 10px; border-radius: 4px; }
.copy-btn:hover { border-color: var(--ink); }
.nip-badge { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.dept { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.dept__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.dept h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.dept .big { font-size: clamp(1.625rem, 2.6vw, 2.375rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dept .mail { font-size: 1.0625rem; word-break: break-all; }
.dept .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field > legend, .label { font-size: .875rem; color: var(--ink); padding: 0; }
.req { color: var(--red); }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 37, 32, .08); }
.input::placeholder { color: #A3ABA5; }
.is-invalid, .input.is-invalid { border-color: var(--err) !important; }
.field-error { display: block; color: var(--err); font-size: .8125rem; font-weight: 500; }
.hint { display: block; font-size: .8125rem; color: var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9375rem; transition: all .2s; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
fieldset.is-invalid { border: 0; }
fieldset.is-invalid .pill span { border-color: var(--err); }
.file-drop { position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px dashed #B5BDB7; border-radius: 12px; background: var(--canvas); transition: border-color .2s, background .2s; }
.file-drop .i { width: 24px; height: 24px; color: var(--ink-soft); }
.file-drop strong { display: block; font-weight: 500; font-size: .9375rem; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop.is-over { border-color: var(--ink); background: var(--paper); }
.file-list { display: grid; gap: 6px; font-size: .875rem; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--canvas); border-radius: 8px; }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; align-items: start; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.consent.is-invalid span, .consent input.is-invalid + span { color: var(--ink); }
/* missed consent (Tony, 2026-11-24): red box and one red line under the text, not a narrow column under the box */
.consent input.is-invalid { outline: 2px solid var(--err); outline-offset: 1px; border-radius: 3px; }
.consent > .field-error { grid-column: 2; margin-top: -4px; }
.route-note { font-size: .8125rem; color: var(--ink-soft); background: var(--canvas); border-left: 2px solid var(--red); padding: 10px 14px; }
.route-note strong { color: var(--ink); font-weight: 600; }
.form .btn-pill { justify-self: start; }
.formcard { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 52px); }
.success { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.success .ok { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--paper); display: grid; place-items: center; }
.success .ok .i { width: 26px; height: 26px; stroke-width: 2; }
.success .h3 { font-size: 1.75rem; }
/* sending a form: the button shows "Wysyłanie…" and waits; a failed send leaves the form filled in with a red note above the button */
.btn-pill[disabled], .btn[disabled] { opacity: .6; cursor: progress; }
.form-alert { margin: 4px 0 0; font-size: .875rem; }
.summary { display: grid; grid-template-columns: minmax(110px, auto) 1fr; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: .875rem; }
.summary dt, .summary dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-soft); padding-right: 16px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-scrim { position: absolute; inset: 0; background: rgba(19, 25, 21, .55); border: 0; }
.modal-box { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto auto 1fr auto; background: var(--paper); border-radius: 20px; overflow: hidden; animation: pop .4s var(--ease); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-box { animation: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 16px 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.modal-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.modal-x .i { width: 18px; height: 18px; }
.progress { height: 3px; background: var(--mist); }
.progress i { display: block; height: 100%; background: var(--red); width: 0; transition: width .4s var(--ease); }
.modal-body { overflow-y: auto; padding: 26px 28px 28px; display: grid; gap: 18px; align-content: start; }
.modal-foot { display: flex; gap: 12px; align-items: center; padding: 16px 28px 22px; border-top: 1px solid var(--line); }
.modal-foot .spacer { flex: 1; }
.q-title { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 500; outline: none; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: grid; gap: 4px; text-align: left; padding: 16px 18px; min-height: 76px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s, background .2s; }
.opt strong { font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.opt small { color: var(--ink-soft); font-size: .8125rem; }
.opt:hover { border-color: var(--ink); }
.opt[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt[aria-checked="true"] small { color: rgba(255, 255, 255, .75); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--paper); font-size: .9375rem; }
.btn .i { width: 16px; height: 16px; }
.btn--ink, #quiz-next { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--ink:hover, #quiz-next:hover { background: var(--red-deep); border-color: var(--red-deep); }
.cb-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-lines > div { background: var(--canvas); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; font-size: .8125rem; color: var(--ink-soft); }
.cb-lines b { font-size: 1.125rem; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
body.modal-open { overflow: hidden; }

/* ---------- CTA band + footer ---------- */
.cta {
  position: relative; color: var(--paper); text-align: center;
  background: var(--night);
  padding-top: clamp(96px, 10vw, 168px);
}
.cta { padding-bottom: clamp(80px, 9vw, 140px); }
.cta h2 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); letter-spacing: -.045em; font-weight: 400; line-height: 1; margin-inline: auto; }
.cta p.sub { margin: 22px auto 0; max-width: 46ch; color: var(--on-dark-soft); }
.cta .btn-row { justify-content: center; margin-top: 34px; }
.ftr { background: var(--night); color: var(--on-dark); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 48px); padding-bottom: clamp(36px, 4vw, 56px); }
.ftr__logo { display: block; width: clamp(170px, 14vw, 210px); height: auto; color: var(--on-dark); }
.ftr__brand p { margin-top: 18px; font-size: .9375rem; line-height: 1.45; color: var(--on-dark-soft); }
.ftr h4 { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--on-dark-soft); margin-bottom: 14px; }
.flist { display: grid; gap: 10px; font-size: .9375rem; }
.flist a:hover { color: #9FD0B5; }
.flist--c li { display: grid; gap: 2px; }
.flist--c li + li { margin-top: 8px; }
.flist .k { font-size: .75rem; color: var(--on-dark-soft); }
.flist--c a[href^="mailto"] { color: var(--on-dark-soft); overflow-wrap: anywhere; }
.flist .soc { display: flex; gap: 16px; flex-wrap: wrap; }
.flist .off { color: var(--on-dark-soft); }
.ftr__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding: 18px 0 22px; border-top: 1px solid var(--line-dark); font-size: .8125rem; color: var(--on-dark-soft); }
.ftr__bar a:hover { color: var(--on-dark); }

/* mobile action bar */
.mbar { display: none; }

/* ---------- motion ---------- */
.js-anim .rise { transform: translateY(32px); transition: transform 1.1s var(--ease); }
.js-anim .rise.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .rise { transform: none; transition: none; }
  .js-reveal .statement__text .w { color: var(--ink); }
  .proj__img img, .menu__panel, .tile::after, .pick__img img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  :root { --hdr-h: 72px; }
  .hdr__in { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sw, .hdr__nav, .hdr__tel, .mega { display: none; }
  .hdr__side { display: block; border-left: 0; }
  .hdr__cta { width: auto; min-width: 150px; padding: 14px 40px 14px 16px; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; width: var(--hdr-h); height: 100%; border: 0; background: var(--mist); }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink); margin-top: 6px; }
}
@media (max-width: 1180px) {
  .mcard__in, .faq-grid, .fcard__grid, .split, .split--wide { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --r-card: 20px; }
  .phero__grid { grid-template-columns: 1fr; }
  .phero__main { padding-right: 0; }
  .phero__side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .statement__grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .revs, .grid2 { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr; gap: 12px; }
  .drow__a { padding-top: 0; }
  .proj-grid, .grid3 { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stage { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stage:nth-child(-n+2) { border-top: 0; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(240, 242, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mbar button { min-height: 48px; border: 0; font-size: .9375rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .mbar .call { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
  .mbar .quote { background: var(--red); color: var(--paper); }
  .mbar .i { width: 18px; height: 18px; }
  .ftr { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  :root { --hdr-h: 64px; }
  .logo__svg { height: 30px; }
  .hdr__in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .hdr__cta { min-width: 0; padding: 10px 32px 10px 12px; font-size: .8125rem; }
  .hdr__cta::after { top: 10px; right: 10px; width: 7px; height: 7px; }
  .menu { grid-template-columns: 1fr; }
  .menu__scrim { display: none; }
  .menu__panel { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .menu__sub { grid-template-columns: 1fr; }
  .phero h1 { font-size: clamp(2.75rem, 13.4vw, 4.5rem); }
  .bleed img { height: 420px; }
  .bleed__card { position: relative; right: auto; bottom: auto; width: 100%; grid-template-columns: 1fr; gap: 14px; }
  .bleed__card .tile { min-height: 84px; }
  .bleed__card .copy { padding: 0; }
  .proj-grid, .grid3 { grid-template-columns: 1fr; }
  .opts, .form-row, .cb-lines { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-box { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .modal-body { padding: 22px 18px 24px; }
  .modal-head { padding: 14px 14px 12px 18px; }
  .modal-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .rev { grid-template-columns: 1fr 1fr; }
  .rev__slides { grid-column: 1 / -1; order: -1; }
  .rev__nav { height: 56px; }
  .rev__nav + .rev__nav, .rev__slides + .rev__nav { border-left: 1px solid var(--paper); }
  .stages { grid-template-columns: 1fr; }
  .stage { border-top: 1px solid var(--line) !important; display: grid; grid-template-columns: 96px 1fr; gap: 6px 16px; }
  .stage:first-child { border-top: 0 !important; }
  .stage svg { grid-row: span 3; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__top > div:last-child { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- v2: cleaner sections ---------- */
/* services: wide card with a real photo */
.svc__wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); min-height: clamp(420px, 38vw, 580px); }
.svc__wide .copy { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.svc__wide h3 { font-size: clamp(1.875rem, 2.8vw, 2.75rem); letter-spacing: -.03em; font-weight: 400; line-height: 1.04; }
.svc__wide .copy p { color: var(--ink-soft); max-width: 34ch; }
.svc__wide .copy .btn-pill { margin-top: auto; }
.svc__wide .geo { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.svc__ph { position: relative; min-height: 280px; }
.svc__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 5px 9px; }
.svc__card { position: relative; }
.svc__card .svc__img { margin-top: auto; }

/* numbers: hairline strip (Sincro) */
.stats-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px clamp(28px, 6vw, 110px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.stats-head .lead { max-width: 30ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stats > div { padding: 22px clamp(14px, 2vw, 28px) 8px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: clamp(2.5rem, 4.1vw, 4.5rem); line-height: .92; letter-spacing: -.05em; font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dt small { font-size: .42em; letter-spacing: -.02em; margin-left: .12em; }
.stats dd { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--ink-soft); max-width: 26ch; }

/* values: calm white band, red only in the icons */
.values { background: var(--paper); color: var(--ink); padding-block: clamp(64px, 8vw, 128px); }
.values__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(28px, 6vw, 110px); align-items: start; margin-bottom: clamp(36px, 5vw, 72px); }
.values__head h2 { font-size: var(--t-h2); font-weight: 400; }
.values__head p { font-size: 1.125rem; max-width: 50ch; color: var(--ink-soft); padding-top: .4em; }
.values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.v-card { background: var(--paper); padding: clamp(24px, 2.6vw, 40px) clamp(18px, 2.4vw, 36px) clamp(30px, 3vw, 44px); display: grid; gap: 14px; align-content: start; }
.v-card:nth-child(3n+1) { padding-left: 0; }
.v-card:last-child:nth-child(3n+2) { grid-column: span 2; }
.v-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(18px, 3vw, 44px); }
.v-card .n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--mute); }
.v-card .ic-m { width: clamp(44px, 4vw, 58px); height: auto; color: var(--red); }
.v-card h3 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.v-card p { font-size: 1rem; color: var(--ink-soft); max-width: 40ch; }

/* projects: real cases */
.proj .meta span + span::before { content: "·"; margin-right: 12px; }
.proj .loc { font-size: .875rem; color: var(--ink-soft); }

/* single case */
.case-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gal a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--mist); }
.gal a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gal a:hover img { transform: scale(1.04); }
.gal .cap { left: 10px; bottom: 10px; }
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(13, 19, 16, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lb img { max-height: calc(100dvh - 120px); width: auto; margin: auto; border-radius: 6px; }
.lb button { border: 0; background: transparent; color: #fff; width: 56px; height: 56px; display: grid; place-items: center; }
.lb button .i { width: 26px; height: 26px; }
.lb__x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }
.lb__n { position: absolute; top: calc(26px + env(safe-area-inset-top, 0px)); left: max(20px, env(safe-area-inset-left, 0px)); color: rgba(255, 255, 255, .7); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 900px) {
  .svc__wide, .case-top, .stats-head, .values__head { grid-template-columns: 1fr; }
  .svc__ph { min-height: 320px; order: -1; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .v-card:nth-child(3n+1) { padding-left: clamp(18px, 2.4vw, 36px); }
  .v-card:nth-child(2n+1) { padding-left: 0; }
  .v-card:last-child:nth-child(3n+2) { grid-column: auto; }
  .v-card:last-child:nth-child(odd) { grid-column: span 2; }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); margin-top: 0 !important; padding-bottom: 20px; }
  .stats > div:first-child { border-top: 0; }
  .values__grid { grid-template-columns: 1fr; }
  .v-card { padding-left: 0 !important; padding-right: 0; }
  .v-card:last-child:nth-child(odd) { grid-column: auto; }
  .v-card .top { margin-bottom: 8px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal a:first-child { grid-row: auto; aspect-ratio: 1 / 1; }
  .lb { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .lb button { width: 44px; }
}

/* ---------- v3 (2026-11): B2B / B2C split ---------- */
.grid1 { display: grid; gap: 20px; }
.cb-lines--one { grid-template-columns: 1fr; }
.tender { background: var(--night); color: var(--on-dark); border-radius: 16px; padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; }
.tender h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.tender p { color: var(--on-dark-soft); }

/* section home first screen: one photo, headline, one line, one button */
.hero { position: relative; overflow: hidden; display: grid; align-items: end; background: var(--night); color: #fff;
  height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); min-height: 520px; max-height: 920px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 19, 16, .84) 0%, rgba(13, 19, 16, .55) 32%, rgba(13, 19, 16, .12) 64%, rgba(13, 19, 16, 0) 100%),
              linear-gradient(to right, rgba(13, 19, 16, .34) 0%, rgba(13, 19, 16, 0) 62%); }
.hero__in { position: relative; z-index: 1; display: grid; justify-items: start; gap: 20px;
  padding: 40px max(var(--gut), env(safe-area-inset-right, 0px)) clamp(44px, 5.5vw, 84px) max(var(--gut), env(safe-area-inset-left, 0px)); }
.hero__h { font-size: clamp(2.75rem, 6.6vw, 6.75rem); letter-spacing: -.05em; line-height: 1; font-weight: 500; }
.hero__h .soft { color: rgba(255, 255, 255, .62); }
.hero__p { font-size: clamp(1.0625rem, 1.45vw, 1.375rem); line-height: 1.35; color: rgba(255, 255, 255, .88); max-width: 44ch; }
.hero__h, .hero__p { text-shadow: 0 1px 28px rgba(0, 0, 0, .22); }
.hero__act { margin-top: 6px; }
.hero__act .btn-pill { min-width: min(100%, 260px); }
.hero__credit { position: absolute; z-index: 1; right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) {
  /* the fixed bottom bar already carries the quote button: the hero drops its own and stays clear of the bar */
  .hero { height: calc(100vh - var(--hdr-h) - 65px); height: calc(100svh - var(--hdr-h) - 65px); }
  .hero__act { display: none; }
}
@media (max-width: 600px) {
  .hero { min-height: 480px; }
  .hero__in { gap: 14px; padding-bottom: 48px; }
  .hero__h { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero__credit { right: auto; left: max(var(--gut), env(safe-area-inset-left, 0px)); bottom: 14px; }
}

/* landing (client's sketch img00, 2026-11-23): logo, headline, one line, a question, two photo cards */
.land { min-height: 100vh; min-height: 100dvh; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.land__bar .wrap { display: flex; align-items: center; height: 84px; }
.land__main { padding-block: clamp(20px, 4vw, 56px) clamp(48px, 6vw, 96px); }
.land__intro { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.land__h { font-size: clamp(2.375rem, 4.6vw, 4.5rem); letter-spacing: -.045em; line-height: .98; font-weight: 500; text-wrap: balance; }
.land__p { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.4; color: var(--ink-soft); max-width: 60ch; }
.land__q { margin: clamp(36px, 5vw, 72px) 0 clamp(18px, 2vw, 28px); font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 500; }
.land__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pick { display: grid; gap: 18px; align-content: start; }
.pick__img { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r-card); background: var(--mist); }
.pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pick:hover .pick__img img { transform: scale(1.04); }
.pick__txt { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pick h3 { font-size: clamp(1.375rem, 2vw, 1.875rem); letter-spacing: -.025em; line-height: 1.1; font-weight: 500; }
.pick p { margin-top: 8px; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.125rem); }
.pick__go { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--paper); display: grid; place-items: center; transition: background-color .25s var(--ease), transform .35s var(--ease); }
.pick__go .i { width: 20px; height: 20px; stroke-width: 1.8; }
.pick:hover .pick__go { background: var(--red-deep); transform: translateX(4px); }
@media (max-width: 900px) {
  .land__bar .wrap { height: 64px; }
  .land__bar .logo__svg { height: 28px; }
}
@media (max-width: 600px) {
  .land__grid { grid-template-columns: 1fr; gap: 28px; }
  .pick { gap: 14px; }
  .pick__img { aspect-ratio: 4 / 3; }
  .pick__go { width: 44px; height: 44px; }
}

/* ---------- v4 (2026-11-23): client copy, new pieces only ---------- */
.btn-pill--ghost { --pill-bg: transparent; --pill-fg: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
.btn-pill--ghost:hover { --pill-bg: var(--ink); --pill-fg: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.tender .btn-pill--ghost, .on-dark .btn-pill--ghost { --pill-fg: var(--on-dark); }
.tender .btn-pill--ghost:hover, .on-dark .btn-pill--ghost:hover { --pill-bg: var(--paper); --pill-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }

/* hero: eyebrow, two buttons, also on phones */
.hero__ey { color: rgba(255, 255, 255, .8); }
.hero__h--long { font-size: clamp(2.5rem, 5.4vw, 5.75rem); max-width: 17ch; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; justify-self: stretch; }

/* page hero: eyebrow, longer text, buttons in the side column */
.phero__ey { display: flex; margin-bottom: clamp(16px, 2vw, 28px); }
.phero__p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.55; }
.phero__meta b { font-weight: 600; }
.phero__act { gap: 10px; }
.phero__act .btn-pill { flex: 1 1 210px; }

/* section heads with a lead and several paragraphs */
.sec-head__txt { display: grid; gap: 14px; max-width: 52ch; }
.sec-head__txt .lead { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.sec-title { margin-bottom: clamp(28px, 3.6vw, 52px); }

/* "Jak wygląda współpraca?" schema (client's sketch img05) */
.flow { background: var(--paper); border-radius: var(--r-card); padding: clamp(28px, 5vw, 80px) clamp(20px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.flow__head { display: grid; gap: 20px; align-content: start; }
.flow__head .h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 400; line-height: 1; }
.flow__list li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-bottom: clamp(26px, 3vw, 40px); }
.flow__list li:last-child { padding-bottom: 0; }
.flow__list li::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 1.5px; background: var(--line); }
.flow__list li:last-child::before { display: none; }
.flow__n { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: var(--red); background: var(--paper); }
.flow__list li:first-child .flow__n { background: var(--red); border-color: var(--red); color: var(--paper); }
.flow__list h3 { padding-top: 14px; font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.flow__list p { margin-top: 10px; color: var(--ink-soft); max-width: 58ch; }

/* dark call-to-action card between sections */
.band h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.band .stack p { font-size: 1.125rem; }
.band .stack p + p { margin-top: -8px; }

/* case cards in the client's style (img06): rounded photo, title, place and scope */
.proj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.proj--soft { gap: 10px; }
.proj--soft .proj__img { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.proj--soft h3 { margin-top: 8px; font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

/* phone box next to a form */
.telbox { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 14px; }
.telbox ul { display: grid; gap: 10px; }
.telbox li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.telbox li span { color: var(--ink-soft); font-size: .9375rem; }
.telbox li a { font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.telbox li a:hover { color: var(--red); }

/* forms */
.form__title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.form__lead { color: var(--ink-soft); margin-top: -6px; }
.form__one { margin-top: -6px; }
.form__note { font-size: .8125rem; color: var(--ink-soft); }

/* B2B numbers: three columns with a heading above */
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--3 dt small { font-size: .32em; letter-spacing: 0; margin-left: .3em; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* list of object types */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 1rem; }

/* contact cards (client's sketch img14) */
.grid1--narrow { max-width: 760px; }
.dept__ic { width: 40px; height: 40px; color: var(--red); }
.dept__rows { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.dept__rows > li { line-height: 1.45; }
.dept__rows b { font-weight: 600; }
.dept__rows a { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dept__rows a:hover { color: var(--red); }
.dept__area { display: grid; gap: 6px; margin-top: 8px; }
.dept__area li { position: relative; padding-left: 18px; color: var(--ink-soft); }
.dept__area li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--slate); transform: rotate(45deg); }
.dept .btn-row { margin-top: 6px; }
.firm .h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.firm__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(28px, 6vw, 110px); align-items: start; }
.firm__addr { display: grid; gap: 10px; font-size: 1.0625rem; }
.firm__map { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--red); }
.firm__map:hover { color: var(--red-deep); }

/* closing band of a service page: the phone number under the buttons */
.cta__tel { margin-top: 22px; font-size: .9375rem; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.cta__tel a:hover { color: var(--on-dark); }

/* mega menu: number, service, one line */
.numlist b { display: block; font-weight: 500; }
.numlist small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .8125rem; line-height: 1.35; }
.numlist a:hover small { color: var(--ink-soft); }

/* ---------- Poradnik ---------- */
html:not(.js-reveal) [data-filter-group] { display: none; }
.chips { margin-bottom: clamp(24px, 3vw, 40px); }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.art-card a { display: grid; gap: 10px; align-content: start; height: 100%; }
.art-card__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); background: var(--mist); margin-bottom: 8px; }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.art-card a:hover .art-card__img img { transform: scale(1.04); }
.art-card__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.art-card h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; }
.art-card p { color: var(--ink-soft); font-size: 1rem; }
.art-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 500; }
.art-card__more .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.art-card a:hover .art-card__more .i { transform: translateX(4px); }
.art-grid--feat .art-card:first-child:not([hidden]) { grid-column: span 2; }
.art-grid--feat .art-card:first-child:not([hidden]) .art-card__img { aspect-ratio: 16 / 9; }
.art-grid--feat .art-card:first-child:not([hidden]) h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -.03em; }

/* article */
.art-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.art-hero__in { padding-block: clamp(28px, 3.2vw, 44px) clamp(28px, 4vw, 56px); display: grid; justify-items: start; }
.art-hero .crumbs { margin-bottom: clamp(20px, 3vw, 40px); }
.art-hero__cat { color: var(--red); }
.art-hero h1 { margin-top: 18px; max-width: 22ch; font-size: clamp(2.25rem, 4.6vw, 4.25rem); letter-spacing: -.04em; line-height: 1.02; }
.art-cover { margin-top: clamp(28px, 4vw, 52px); width: 100%; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--mist); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { max-width: 760px; margin-inline: auto; padding-block: clamp(44px, 6vw, 96px) clamp(64px, 8vw, 128px); font-size: 1.125rem; line-height: 1.65; }
.art-body > * + * { margin-top: 1.1em; }
.art-body h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 2.8vw, 2.375rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 500; }
.art-body h3 { margin-top: 1.8em; font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 600; }
.art-body h2 + *, .art-body h3 + * { margin-top: .8em; }
.art-body p, .art-body li { color: #333C36; }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body a:not(.btn-pill) { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-body a:not(.btn-pill):hover { color: var(--red-deep); }
.art-body ul { display: grid; gap: .5em; }
.art-body ul li { position: relative; padding-left: 26px; }
.art-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; background: var(--slate); transform: rotate(45deg); }
.art-body ul.check li { padding-left: 34px; }
.art-body ul.check li::before { left: 0; top: .32em; width: 20px; height: 20px; transform: none; border-radius: 6px; background: var(--paper); border: 1.5px solid var(--red); }
.art-body ul.check li::after { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 4.5px; border-left: 1.8px solid var(--red); border-bottom: 1.8px solid var(--red); transform: rotate(-45deg); }
.note { border-radius: 16px; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: .7em; }
.note > * { margin: 0 !important; }
.note--tip { background: var(--paper); border-left: 3px solid var(--red); border-radius: 0 16px 16px 0; }
.note--case { background: var(--mist); }
.note--case h3, .note--ask h3 { font-size: 1.25rem; }
.note--ask { background: var(--paper); border: 1px solid var(--line); }
.note .btn-row { margin-top: .4em !important; }
.letter { margin-inline: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 36px); display: grid; gap: .8em; font-size: 1.0625rem; }
.letter p { color: var(--ink); }
.letter__subj { padding-bottom: .8em; border-bottom: 1px solid var(--line); }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.tbl table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--mist); font-weight: 600; color: var(--ink); }
.tbl tbody th { font-weight: 600; color: var(--ink); }
.tbl td { color: #333C36; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl:focus-visible { outline-offset: 2px; }
.art-faq { border-top: 1px solid var(--line); }
.art-faq .acc__btn { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.art-faq .acc__panel p { color: var(--ink-soft); }
.cta-box { margin-top: 2.6em !important; background: var(--night); color: var(--on-dark); border-radius: var(--r-card); padding: clamp(28px, 4vw, 52px); display: grid; gap: 1em; }
.cta-box h3 { margin: 0; color: var(--on-dark); font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.cta-box p { color: var(--on-dark-soft); }
.cta-box .cta-box__k strong { color: var(--on-dark); }
.cta-box a.cta-box__link { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 4px; }
.cta-box a.cta-box__link strong { color: var(--on-dark); font-weight: 500; }
.cta-box a.cta-box__link:hover { color: #9FD0B5; }
.cta-box a.cta-box__link .i { width: 16px; height: 16px; }
.cta-box .btn-row { margin-top: .4em; }

@media (max-width: 1180px) {
  .flow, .firm__in { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* hero keeps its buttons on phones: height follows the content */
  .hero { height: auto; min-height: max(480px, calc(100svh - var(--hdr-h) - 65px)); }
  .hero__act { display: flex; }
  .hero::after { background: linear-gradient(to top, rgba(13, 19, 16, .9) 0%, rgba(13, 19, 16, .72) 48%, rgba(13, 19, 16, .3) 100%); }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-cover { aspect-ratio: 16 / 9; }
  .stats--3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats--3 > div:nth-child(3) { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); border-top: 0; margin-top: 0; }
}
@media (max-width: 600px) {
  .hero__act { width: 100%; }
  .hero__act .btn-pill { width: 100%; }
  .proj-grid--2, .grid4, .art-grid { grid-template-columns: 1fr; }
  .art-grid--feat .art-card:first-child:not([hidden]) { grid-column: auto; }
  .art-grid--feat .art-card:first-child:not([hidden]) .art-card__img { aspect-ratio: 4 / 3; }
  .flow__list li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .flow__n { width: 44px; height: 44px; font-size: 12px; }
  .flow__list li::before { left: 21px; top: 48px; }
  .flow__list h3 { padding-top: 9px; }
  .stats--3 { grid-template-columns: 1fr; }
  .stats--3 > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .telbox li a { font-size: 1.25rem; }
  .art-body { font-size: 1.0625rem; }
  .phero__act .btn-pill { flex-basis: 100%; }
  .hdr__cta { max-width: 124px; line-height: 1.15; }
}

/* header: five links (Poradnik added) still fit from 1280 px up */
.hdr__nav { gap: clamp(14px, 1.5vw, 30px); padding: 0 clamp(12px, 1.2vw, 26px); }
.sw { padding: 0 clamp(12px, 1.4vw, 26px); }

/* ---------- Short form on /dla-domu (2026-11-23) ---------- */
.formcard--quick { box-shadow: 0 1px 2px rgba(19, 25, 21, .04), 0 18px 48px -24px rgba(19, 25, 21, .18); }
.qform { gap: 14px; }
.qform__head { display: grid; gap: 10px; margin-bottom: 8px; }
.qform__head .form__lead { margin: 0; }
.qform__k { font-size: .875rem; color: var(--ink-soft); padding: 0; margin-bottom: 10px; }
.qchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qchip { position: relative; }
.qchip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qchip span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--canvas); font-size: .9375rem; line-height: 1.25; text-align: center; transition: background .2s, color .2s, box-shadow .2s; }
.qchip:hover span { background: var(--mist); }
.qchip input:checked + span { background: var(--red); color: var(--paper); }
.qchip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
fieldset.is-invalid .qchip span { box-shadow: inset 0 0 0 1.5px var(--err); }
.qinput { background: var(--canvas); border-color: transparent; border-radius: 14px; padding: 15px 18px; }
textarea.qinput { min-height: 96px; }
.qinput:hover { background: var(--mist); }
.qinput:focus { background: var(--paper); border-color: var(--red); box-shadow: 0 0 0 3px rgba(42, 90, 68, .14); }
.qform__files { display: grid; gap: 8px; }
.qattach { display: inline-flex; width: max-content; max-width: 100%; gap: 10px; padding: 6px 2px; border: 0; background: none; border-radius: 8px; color: var(--red); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.qattach .i { width: 20px; height: 20px; color: currentColor; }
.qattach .muted { color: var(--ink-soft); font-weight: 400; }
.qattach:hover { color: var(--red-deep); }
.qattach.is-over { background: var(--canvas); }
.qattach:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.form .qform__send { justify-self: stretch; justify-content: center; gap: 14px; margin-top: 4px; }
.qform .form__note { text-align: center; }
@media (max-width: 380px) { .qchip span { font-size: .875rem; padding: 8px 10px; } }


/* Privacy policy links in form notes and consents (2026-11-23) */
.form__note a, .consent a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.form__note a:hover, .consent a:hover { color: var(--red); }
.art--legal .art-hero h1 { max-width: none; }

/* Oferteo link in the reviews header (2026-11-23) */
.rev__score a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rev__score a:hover { color: var(--red); }

/* Lenis smooth scroll (assets/vendor/lenis.min.js, MIT; rules from its lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis .modal, .lenis .menu, .lenis .lb { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
