/* AUTO-GENERATED by the hub from the Branding tab (branding → baza).
   Regenerowany przy każdym "Wygeneruj bazę (z brandingu)" — nie edytuj ręcznie. */
/* tokens-schema: v11 */
:root {
  /* — kolory z PLIKU logo (źródło prawdy) — */
  --logo-1: #eeeeee;
  /* — paleta z zakładki Branding — */
  --palette-1: #f0f0f0;
  --palette-2: #0a0a0a;
  --palette-3: #f9f9f9;
  --palette-4: #f3f3f3;
  --palette-5: #0d0d0d;
  --palette-6: #1a1a1a;
  --palette-7: #2a2a2a;
  --palette-8: #5a5a5a;
  --palette-9: #f0f0f0;
  --palette-10: #e0e0e0;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #eeeeee;
  --brand-2: #ababab;
  --black2: #0a0a0a;
  --white: #ffffff;
  --light2: #f9f9f9;
  --light3: #eaeaea;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Abril Fatface", sans-serif;
  --font-body: "Libre Franklin", sans-serif;
  /* — layout — */
  --padding-horizontal: 24px;
  --section-pad-block: 96px;
  --border-radius: 8px;
}
@media (max-width: 1023px) {
  :root { --section-pad-block: 72px; }
}
@media (max-width: 767px) {
  :root { --section-pad-block: 56px; --padding-horizontal: 16px; }
}

/* System tokenów z brandingu — ŹRÓDŁO PRAWDY. base.css tylko je referuje */
/* (nie redefiniuje), więc zmiana radius/border/palety wchodzi natychmiast. */
:root {
  --accent: #f0f0f0;
  --accent-2: #ababab;
  --accent-contrast: #222020;
  --accent-strong: #0a0a0a;
  --accent-soft: #dedede;
  --surface: #f9f9f9;
  --surface-2: #f3f3f3;
  --surface-dark: #0d0d0d;
  --surface-dark-2: #1a1a1a;
  --ink: #2a2a2a;
  --ink-soft: #5a5a5a;
  --on-dark: #f0f0f0;
  --border: #e0e0e0;
  --heading-accent: #f0f0f0;
  --heading-accent-on-dark: #f0f0f0;
  --heading-line-color: #f0f0f0;
  --heading-line-color-on-dark: #f0f0f0;
  --brand-el-watermark-color: #f0f0f0;
  --brand-el-watermark-color-on-dark: #f0f0f0;
  --brand-el-watermark-opacity: 0.08;
  --border-width: 1px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 13px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.13);
  --shadow-lg: 0 18px 46px rgba(0,0,0,0.16);
  /* — gradienty: brak — płaskie kolory. Kontrakt Picasso — ZAWSZE obecne; bez gradientów = płaski kolor, */
  /*   więc `background: var(--grad-accent)` jest zawsze poprawne. --grad-enabled mówi, czy aktywne. */
  --grad-enabled: 0;
  --grad-angle: 135deg;
  --grad-from: #f0f0f0;
  --grad-to: #f0f0f0;
  --grad-accent-contrast: #2a2a2a;
  --grad-accent: linear-gradient(var(--accent), var(--accent));
  --grad-accent-soft: linear-gradient(#dedede, #dedede);
  --grad-dark: linear-gradient(var(--surface-dark), var(--surface-dark));
}

/* Baza tekstu — jedyne miejsce, które konsumuje --ink i fonty marki.          */
/* :where() = specyficzność ZERO, więc base.css i sekcje nadpisują swobodnie   */
/* niezależnie od kolejności ładowania. Zmiana palety/fontów działa od razu.   */
:where(body) {
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
}
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading, var(--font-body, system-ui, sans-serif));
}

/* Elementy brandingu — widoczność i umiejscowienie (LIVE z zakładki Branding). */
/* Sekcje owijają każdy ozdobnik w .brand-el.brand-el--<technika>; linia #7 jest  */
/* renderowana w OBU slotach (.heading-line--above/--below) i tu wybieramy jeden. */
:root {
  --brand-el-photo-frame: block;
  --brand-el-shape-divider: block;
  --brand-el-section-bg: block;
  --brand-el-corner-decor: none;
  --brand-el-text-accent: none;
  --brand-el-watermark: none;
  --brand-el-text-divider: block;
  --brand-el-bg-photo: block;
  --brand-el-marquee-slogan: block;
  --heading-line-above: block;
  --heading-line-below: none;
  --heading-accent-mask: block;
  --heading-accent-img: none;
  --heading-line-mask: none;
  --heading-line-img: block;
}
/* Wyłączone elementy/warianty — twardo ukryte (reszta bez zmian): */
.brand-el--corner-decor { display: none !important; }
.brand-el--text-accent { display: none !important; }
.brand-el--watermark { display: none !important; }
.brand-el--mascot-signet { display: none !important; }
.brand-el--seam-decor { display: none !important; }
.heading-line--below { display: none !important; }
.heading-mark--img { display: none !important; }
.heading-line-mask { display: none !important; }
/* #7: linia pod/nad nagłówkiem nigdy szersza niż kontener (bez poziomego scrolla na telefonie): */
.heading-line, .heading-line-mask, .heading-line-img { max-width: 100%; }
/* #5 akcent nagłówka POMINIĘTY — żaden znak graficzny przy nagłówku nie ma prawa się pokazać: */
.eyebrow-mark, .heading-mark, .heading-mark--mask, .heading-mark--img { display: none !important; }
/* #7 NAD nagłówkiem — tekstowy nadtytuł przy linii schowany (linia go zastępuje): */
.heading-eyebrow--with-line { display: none !important; }
/* #1 Ramka zdjęcia — WYBRANY styl z Brandingu (LIVE). Sekcje: .brand-frame > .brand-frame__photo + .brand-frame__mark */
:where(.brand-frame) { position: relative; display: block; }
:where(.brand-frame__photo) { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.brand-frame__mark) { position: absolute; line-height: 0; pointer-events: none; }
:where(.brand-frame__mark img) { display: block; width: 100%; height: auto; object-fit: contain; }
:where(.brand-frame) { position:relative; }
:where(.brand-frame .brand-frame__photo) { border-radius:13px; overflow:hidden; }
:where(.brand-frame .brand-frame__mark) { position:absolute; right:5%; bottom:5%; width:16%; max-width:96px; min-width:42px; line-height:0; transform:translate(32%,32%); filter:drop-shadow(0 1px 3px rgba(0,0,0,.28)) drop-shadow(0 8px 26px rgba(0,0,0,.42)); }
:where(.brand-frame .brand-frame__mark svg), :where(.brand-frame .brand-frame__mark img) { width:100%; height:auto; display:block; }
:where(.brand-frame .brand-frame__mark img) { object-fit:contain; }
@media (max-width:640px) {
:where(.brand-frame .brand-frame__mark) { width:19%; min-width:34px; transform:translate(26%,26%); }
}
/* #4 Tło sekcji — CSS, LIVE z Brandingu. Sekcje: <div class="brand-el brand-el--section-bg brand-bg-layer" aria-hidden="true"> */
:root { --brand-bg-color: var(--accent); --brand-bg-opacity: 0.12; }
:where(.brand-bg-layer) { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.brand-bg-layer { opacity: var(--brand-bg-opacity); background-image: repeating-linear-gradient(45deg, var(--brand-bg-color, #f0f0f0) 0 4px, transparent 4px 23px); }

/* ═══ STYL INTERAKCJI (Branding → „Styl interakcji”) — generowany przez hub, nie edytuj. ═══ */
/* ── Styl interakcji: przycisk „Zakładka planu" — kształt tab, wypełnienie solid, hover darken — hub (interaction-style). */
/*    NADRZĘDNY nad .btn z base.css: wygląd, hover, focus i strzałka są TYLKO tutaj. */
:root:root {
  --btn-height: 46px;
  --btn-height-sm: 36px;
  --btn-pad-inline: 26px;
  --btn-radius: 10px;
  --btn-corners: 10px 10px 0 0;
  --btn-weight: 500;
  --btn-fill: var(--accent);
  --btn-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'M2%208h11M8.5%203.5%2013%208l-4.5%204.5'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
  --btn-line: clamp(1px, var(--border-width, 1px), 1.5px);
  --btn-ink: var(--ink, #111); --btn-paper: var(--surface, #fff); --btn-neutral: var(--surface-2, #f2f2f2);
}
/* ciemny pas: tusz ↔ papier się odwracają (sekcje oznaczają go data-tone="dark" albo .on-dark) */
:root:root :is([data-tone="dark"], .on-dark) { --btn-ink: var(--on-dark, #fff); --btn-paper: var(--surface-dark, #111); --btn-neutral: color-mix(in srgb, var(--on-dark, #fff) 14%, transparent); }
:root:root .btn {
  position: relative; isolation: isolate; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  --btn-block: var(--btn-height); --btn-px: var(--btn-pad-inline); --btn-pad-s: 0px; --btn-pad-e: 0px;
  min-height: var(--btn-height); padding-block: 0;
  padding-inline: calc(var(--btn-px) + var(--btn-pad-s)) calc(var(--btn-px) + var(--btn-pad-e));
  border: 0; border-radius: var(--btn-corners);
  font-family: var(--font-body, inherit); font-size: 1rem; font-weight: var(--btn-weight); line-height: 1.1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  --btn-focus: 0 0 #0000; --btn-overlay: 0 0 #0000; --btn-elev: 0 0 #0000;
  box-shadow: var(--btn-focus), var(--btn-overlay), var(--btn-elev);
  filter: none; clip-path: none; -webkit-mask: none; mask: none; transform: none;
  transition: background-color 180ms ease-out, background-size 220ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
:root:root .btn::before, :root:root .btn::after { content: none; }
:root:root .btn:focus-visible { outline: 2px solid var(--btn-ring, var(--accent)); outline-offset: 3px; }
:root:root .btn:is(:disabled, [aria-disabled="true"]) { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
:root:root .btn--sm { --btn-block: var(--btn-height-sm); --btn-px: calc(var(--btn-pad-inline) * 0.7); min-height: var(--btn-height-sm); font-size: 0.9375rem; }
:root:root .lead-form-submit { border-radius: var(--form-btn-radius, var(--btn-corners)); padding: var(--form-btn-padding, 0.5em var(--btn-pad-inline)); white-space: normal; text-align: center; }
:root:root .btn-primary { background: var(--btn-bg, var(--btn-fill)); color: var(--btn-fg, var(--accent-contrast, #fff)); --btn-elev: 0 0 #0000; }
:root:root .btn-secondary { background: var(--btn-neutral); color: var(--btn-fg, var(--btn-ink)); border: 0; }
:root:root .btn-ghost { background: transparent; color: var(--btn-fg, var(--btn-ink)); --btn-px: calc(var(--btn-pad-inline) * 0.45); }
:root:root .btn-ghost .btn__label { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat; padding-bottom: 2px; transition: background-size 220ms cubic-bezier(0.22, 1, 0.36, 1); }
/* strzałka CTA: ta sama maska wszędzie (Button.astro → .btn-arrow) + przesunięcie na hover */
:root:root .with-arrow .arrow { transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  :root:root .with-arrow:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); }
  :root:root .btn-ghost:hover .btn__label { background-size: 100% 1.5px; }
  :root:root .btn-primary:hover { --btn-overlay: inset 0 0 0 100px color-mix(in srgb, var(--ink, #000) 11%, transparent); }
  :root:root .btn-secondary:hover { --btn-overlay: inset 0 0 0 100px color-mix(in srgb, var(--ink, #000) 11%, transparent); }
}
:root:root .btn:active { transform: translateY(0); }
:root:root .btn-primary:active { --btn-overlay: inset 0 0 0 100px color-mix(in srgb, var(--ink, #000) 18%, transparent); }

/* strzałka marki przy linkach tekstowych (karty bloga/usług): ta sama maska co CTA */
:root:root .brand-arrow { display: inline-block; flex: none; inline-size: var(--brand-arrow-size, 0.8em); block-size: var(--brand-arrow-size, 0.8em); vertical-align: -0.08em; overflow: hidden; text-indent: 200%; white-space: nowrap; background-color: currentColor; -webkit-mask: var(--btn-arrow) center / contain no-repeat; mask: var(--btn-arrow) center / contain no-repeat; }
:root:root .brand-arrow > * { display: none; }

/* ── Styl interakcji: hover menu „Nawiasy" — linki .menu-link + trigger NavDropdown. */
:root:root :is(.menu-link, .nav-dropdown-trigger) { position: relative; text-decoration: none; transition: color 180ms ease-out, text-shadow 180ms ease-out; }
:root:root :is(.menu-link, .nav-dropdown-trigger)::before, :root:root :is(.menu-link, .nav-dropdown-trigger)::after { content: ""; position: absolute; inset: auto; width: auto; height: auto; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; translate: none; -webkit-mask: none; mask: none; z-index: auto; pointer-events: none; top: 50%; width: 0.3em; height: 1.3em; translate: 0 -50%; border: 2px solid var(--nav-accent, var(--accent)); opacity: 0; transition: opacity 180ms ease-out, transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
:root:root :is(.menu-link, .nav-dropdown-trigger)::before { left: -0.7em; border-right: 0; transform: translateX(4px); }
:root:root :is(.menu-link, .nav-dropdown-trigger)::after { right: -0.7em; border-left: 0; transform: translateX(-4px); }
:root:root :is(.menu-link, .nav-dropdown-trigger):focus-visible { outline: 2px solid var(--nav-accent, var(--accent)); outline-offset: 4px; }
@media (hover: hover) {
  :root:root :is(.menu-link, .nav-dropdown-trigger):is(:hover, :focus-visible)::before { opacity: 1; transform: none; }
  :root:root :is(.menu-link, .nav-dropdown-trigger):is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
}
:root:root :is(.menu-link, .nav-dropdown-trigger):focus-visible::before { opacity: 1; transform: none; }
:root:root :is(.menu-link, .nav-dropdown-trigger):focus-visible::after { opacity: 1; transform: none; }
:root:root :is(.menu-link, .nav-dropdown-trigger):is([aria-current="page"], .is-active)::before { opacity: 1; transform: none; }
:root:root :is(.menu-link, .nav-dropdown-trigger):is([aria-current="page"], .is-active)::after { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root:root :is(.btn, .menu-link, .nav-dropdown-trigger, .link-underline), :root:root :is(.btn, .menu-link, .nav-dropdown-trigger)::before, :root:root :is(.btn, .menu-link, .nav-dropdown-trigger)::after, :root:root .with-arrow .arrow { transition-duration: 0.01ms; }
}

/* UI signature — derived from the brand kit; every component honours these:
   1) The "Zakładka planu" tab silhouette (rounded top, flat base) chosen for the button repeats in
      the small controls: .field, .btn-icon, .step-badge and the .tab-label marker are rounded on top
      only and sit on a flat edge. Cards keep ONE radius (--radius-md) on all four corners.
   2) The logo's ground streak (the tapered shadow under the excavator: hair-thin point on the left,
      full weight on the right) is the ONE ornament. It is drawn as a 3-4px wedge and appears only as
      the .field focus line, the .card-index leader and the .rule divider. It never goes under a heading.
   3) Work-order index: cards are numbered 01/02/03 (.card-index) in the body face, 12px, tracking
      0.15em, --action at 60%, top-left of the card body, followed by the ground-streak leader.
      Hidden below 768px.
   4) Monochrome action colour: the logo is near-white (#eee) built for dark ground, so --accent fills
      only on dark bands. On light bands the same role is inked in --accent-strong through --action
      (CTA fill, focus rings, menu brackets, link lines, icons). No other hue exists.
   5) Flat catalogue depth: no gradients, no texture. Cards rest on a 1px --border hairline with zero
      shadow, and hover raises exactly one step (-4px + contact layer + --shadow-md). Dark bands
      separate by a surface step (--surface-dark-2), never by a shadow. Labels (eyebrow, tag, index,
      tab-label) are tracked uppercase body type, never the display serif. */

/* ── Aliases this base owns (tokens.css owns every colour/radius/shadow it points at) ── */
:root {
  --accent-2: var(--accent);   /* solid CTA, no gradient */
  --btn-shadow: none;          /* flat button, no resting shadow */
  /* trait 4: tone-aware action colour, resolved per band below */
  --action: var(--accent-strong);
  --action-fill: var(--accent-strong);
  --action-ink: var(--on-dark);
  --action-tint: var(--on-dark);
  --nav-accent: var(--accent-strong);
  --icon-color: var(--accent-strong);
  /* trait 5: the single raised elevation (contact layer + token ambient layer) */
  --elev-raise: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow-md);
  /* functional error state only, not a brand colour */
  --danger: #b3261e;
}
:is([data-tone="dark"], .on-dark) {
  --action: var(--accent);
  --action-fill: var(--accent);
  --action-ink: var(--accent-contrast);
  --action-tint: var(--ink);
  --nav-accent: var(--accent);
  --icon-color: var(--accent);
  color: var(--on-dark);
}
:is([data-tone="light"], .on-light) {
  --action: var(--accent-strong);
  --action-fill: var(--accent-strong);
  --action-ink: var(--on-dark);
  --action-tint: var(--on-dark);
  --nav-accent: var(--accent-strong);
  --icon-color: var(--accent-strong);
  color: var(--ink);
}

/* ── Type base (zero specificity: sections override freely) ── */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
:where(h1, h2) {
  line-height: 1;
  text-transform: var(--heading-transform, none);
  letter-spacing: var(--heading-tracking, -0.02em);
  font-variant-caps: var(--heading-caps, normal);
}
:where(h3, h4, h5, h6) {
  line-height: 1.15;
  text-transform: var(--subheading-transform, none);
  letter-spacing: var(--subheading-tracking, -0.005em);
  font-variant-caps: var(--subheading-caps, normal);
}
:where([data-tone="dark"], .on-dark) :where(h1, h2, h3, h4, h5, h6) { color: var(--on-dark); }

/* ── Eyebrow / nadtytuł: tracked uppercase body type (trait 5), colour from --heading-accent ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  /* --heading-accent is near-white: on light bands it is mixed into --ink so the label stays >= 4.5:1 */
  color: color-mix(in srgb, var(--heading-accent) 25%, var(--ink));
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, 0.12em);
  font-variant-caps: var(--eyebrow-caps, normal);
}
.eyebrow-mark {
  height: 25px;
  flex: none;
  --mark: none; /* empty shell: the motif comes ONLY from the section */
  background-color: color-mix(in srgb, var(--heading-accent) 25%, var(--ink));
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
img.eyebrow-mark {
  height: 25px;
  width: auto;
  object-fit: contain;
  background: none;
  -webkit-mask: none;
  mask: none;
}
:is([data-tone="dark"], .on-dark) .eyebrow { color: var(--heading-accent-on-dark); }
:is([data-tone="dark"], .on-dark) .eyebrow-mark:not(img) { background-color: var(--heading-accent-on-dark); }

/* ── Buttons: MINIMAL FALLBACK. The live look is the hub's "Zakładka planu" (tokens.css,
      :root:root) and wins. Here: structure, case, colour hooks. No decoration, no pseudo. ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 46px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 26px);
  border: 0;
  border-radius: var(--btn-corners, var(--radius-md) var(--radius-md) 0 0);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--btn-weight, 500);
  line-height: 1.1;
  text-transform: var(--btn-transform, none);
  letter-spacing: var(--btn-tracking, 0.01em);
  font-variant-caps: var(--btn-caps, normal);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}
/* trait 4: per-element colour hooks (zero specificity; inline style / section class still wins) */
:where(.btn) { --btn-ring: var(--action); }
:where(.btn-primary) { --btn-bg: var(--action-fill); --btn-fg: var(--action-ink); }
/* the hub's darken hover mixes --ink over the fill: on a black light-band CTA that is invisible,
   so inside the primary button only, the overlay ink flips to the light tone (scoped, not global) */
:where(.btn-primary) { --ink: var(--action-tint); }
.btn:focus-visible { outline: 2px solid var(--btn-ring, var(--action)); outline-offset: 3px; }
.btn:is(:disabled, [aria-disabled="true"]) { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: var(--btn-height-sm, 36px); padding-inline: calc(var(--btn-pad-inline, 26px) * 0.7); font-size: 0.9375rem; }
.btn-primary { background: var(--btn-bg, var(--accent)); color: var(--btn-fg, var(--accent-contrast)); }
.btn-secondary { background: var(--surface-2); color: var(--btn-fg, var(--ink)); }
.btn-ghost { background: transparent; color: var(--btn-fg, currentColor); padding-inline: calc(var(--btn-pad-inline, 26px) * 0.45); }
@media (hover: hover) {
  .btn-primary:hover { background: color-mix(in srgb, var(--btn-bg, var(--accent)) 90%, var(--ink)); }
  .btn-secondary:hover { background: color-mix(in srgb, var(--surface-2) 90%, var(--ink)); }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
}
/* CTA row: wraps on desktop, stacks full-width on phones */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 640px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn { width: 100%; }
}

/* ── Icon button: square, same tab silhouette as the CTA (trait 1) ── */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: var(--btn-height, 46px);
  height: var(--btn-height, 46px);
  padding: 0;
  border: 0;
  border-radius: var(--btn-corners, var(--radius-md) var(--radius-md) 0 0);
  background-color: var(--btn-bg, var(--action-fill));
  color: var(--btn-fg, var(--action-ink));
  cursor: pointer;
  transition: background-color 180ms ease-out, transform 160ms ease-out;
}
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }
@media (hover: hover) {
  .btn-icon:hover { background-color: color-mix(in srgb, var(--btn-bg, var(--action-fill)) 86%, var(--action-ink)); }
}
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.btn-icon:is(:disabled, [aria-disabled="true"]) { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Links ── */
/* Inline text link. Fallback only (zero specificity): a hub text-link style, if chosen, wins.
   Rest: a 35% hairline keeps it identifiable inside body copy; hover draws the full 1px line. */
:where(.link-underline) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 1px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat,
    linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent)) 0 100% / 100% 1px no-repeat;
  transition: background-size 200ms ease-out, color 160ms ease-out;
}
@media (hover: hover) {
  :where(.link-underline):hover { background-size: 100% 1px, 100% 1px; }
}
:where(.link-underline):active { color: var(--ink-soft); }
:where(.link-underline):focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 2px; }

/* "Read more" / inline CTA (Kernel move 4): text + brand arrow, no frame, 1px line on hover.
   Markup: <a class="link-more with-arrow">Label <span class="arrow brand-arrow" aria-hidden="true"></span></a> */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 200ms ease-out, color 160ms ease-out;
}
.link-more--cta { margin-top: 24px; }
@media (max-width: 767px) { .link-more--cta { margin-top: 16px; } }
@media (hover: hover) {
  .link-more:hover { background-size: 100% 1px; }
}
.link-more:active { color: var(--ink-soft); }
.link-more:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
:is([data-tone="dark"], .on-dark) :is(.link-more, .link-underline) { color: var(--on-dark); }
:is([data-tone="dark"], .on-dark) :is(.link-more, .link-underline):active { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }

/* ── Cards: one radius on all four corners, hairline at rest, one elevation step on hover ── */
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--white);
  color: var(--ink);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease-out;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  padding: 24px var(--padding-horizontal, 24px) 28px;
  color: var(--ink);
  font-family: var(--font-body);
}
.card-body > p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--ink);
  text-transform: var(--subheading-transform, none);
  letter-spacing: var(--subheading-tracking, -0.005em);
  font-variant-caps: var(--subheading-caps, normal);
}
/* flush media frame, 4:3 documentary crop; the image zooms, never the card */
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }

/* trait 3 + 2: work-order index "01" with the ground-streak leader (>= 10px from the number) */
.card-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  font-variant-numeric: lining-nums tabular-nums;
  color: color-mix(in srgb, var(--action) 60%, transparent);
}
.card-index::after {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  background: linear-gradient(to top left, currentColor 50%, transparent 50%);
  pointer-events: none;
}
@media (max-width: 767px) { .card-index { display: none; } }

@media (hover: hover) {
  .card:is(a, :has(a)):hover { transform: translateY(-4px); box-shadow: var(--elev-raise); }
  .card:is(a, :has(a)):hover .card-media > img { transform: scale(1.04); }
  .card:is(a, :has(a)):hover .with-arrow .arrow { transform: var(--arrow-nudge, translateX(4px)); }
  .card:is(a, :has(a)):hover .link-more { background-size: 100% 1px; }
}
.card:is(a, :has(a)):active { transform: translateY(-1px); }
.card:focus-visible, .card a:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
/* a stretched card link draws its ring on the card, not on the tiny label */
.card:has(a.card-link:focus-visible) { outline: 2px solid var(--action); outline-offset: 3px; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }

/* dark band: surface step + light hairline, no shadow (trait 5) */
:is([data-tone="dark"], .on-dark) .card {
  background: var(--surface-dark-2);
  color: var(--on-dark);
  border-color: color-mix(in srgb, var(--on-dark) 12%, transparent);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease-out;
}
:is([data-tone="dark"], .on-dark) :is(.card-body, .card-title) { color: var(--on-dark); }
:is([data-tone="dark"], .on-dark) .card-body > p { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
:is([data-tone="dark"], .on-dark) .card-media { background: var(--surface-dark); }
@media (hover: hover) {
  :is([data-tone="dark"], .on-dark) .card:is(a, :has(a)):hover {
    box-shadow: none;
    border-color: color-mix(in srgb, var(--on-dark) 30%, transparent);
  }
}

/* ── Small markers: tab label (trait 1), tag pill (Kernel move 2), step badge ── */
/* tab label: sits flat on an edge (e.g. the bottom of .card-media), never interactive */
.tab-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-dark);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, 0.12em);
  font-variant-caps: var(--eyebrow-caps, normal);
  pointer-events: none;
}
:is([data-tone="dark"], .on-dark) .tab-label { background: var(--accent); color: var(--accent-contrast); }

/* service tag: outline pill, no fill; max 4 per section */
.tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 32px;
  padding: 6px 16px;
  border: var(--border-width) solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}
a.tag, button.tag { cursor: pointer; }
@media (hover: hover) {
  :is(a, button).tag:hover { border-color: var(--action); background-color: var(--surface-2); }
}
:is(a, button).tag:active { background-color: var(--surface); }
:is(a, button).tag:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
:is(a, button).tag[aria-current], :is(a, button).tag[aria-pressed="true"] { border-color: var(--action); }
:is([data-tone="dark"], .on-dark) .tag { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 30%, transparent); }
@media (hover: hover) {
  :is([data-tone="dark"], .on-dark) :is(a, button).tag:hover { border-color: var(--on-dark); background-color: var(--surface-dark-2); }
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) {
  .tag-row { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tag-row::-webkit-scrollbar { display: none; }
}

/* numbered process step: tab-shaped marker (trait 1), optically centred digits */
.step-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-dark);
  color: var(--on-dark);
}
.step-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
:is([data-tone="dark"], .on-dark) .step-badge { background: var(--accent); color: var(--accent-contrast); }

/* ── Ground-streak rule (trait 2): row/list divider, never directly under a heading ── */
.rule {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  border: 0;
  background: linear-gradient(to top left, var(--border) 50%, transparent 50%);
}
:is([data-tone="dark"], .on-dark) .rule { background: linear-gradient(to top left, color-mix(in srgb, var(--on-dark) 18%, transparent) 50%, transparent 50%); }

/* ── Form fields: tab silhouette (trait 1) + ground-streak focus line (trait 2) ── */
.field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px 13px;
  border: var(--border-width) solid var(--border);
  border-bottom-color: color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background-color: var(--white);
  background-image: linear-gradient(to top left, var(--action) 50%, transparent 50%);
  background-position: 0 100%;
  background-size: 0% 3px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 180ms ease-out, background-size 220ms ease-out;
}
textarea.field { min-height: 128px; resize: vertical; }
.field::placeholder { color: var(--ink-soft); opacity: 1; }
@media (hover: hover) {
  .field:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
}
.field:focus { outline: none; border-color: var(--action); background-size: 100% 3px; }
.field:focus-visible { outline: 2px solid color-mix(in srgb, var(--action) 25%, transparent); outline-offset: 2px; }
.field:user-invalid { border-color: var(--danger); background-image: linear-gradient(to top left, var(--danger) 50%, transparent 50%); background-size: 100% 3px; }
.field:disabled { background-color: var(--surface-2); color: var(--ink-soft); border-color: var(--border); cursor: not-allowed; }
.field-label { display: grid; gap: 6px; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); }
:is([data-tone="dark"], .on-dark) .field {
  background-color: var(--surface-dark-2);
  color: var(--on-dark);
  border-color: color-mix(in srgb, var(--on-dark) 14%, transparent);
  border-bottom-color: color-mix(in srgb, var(--on-dark) 40%, transparent);
}
:is([data-tone="dark"], .on-dark) .field::placeholder { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
:is([data-tone="dark"], .on-dark) .field:focus { border-color: var(--action); }
:is([data-tone="dark"], .on-dark) .field-label { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }

/* ── Content icon: monochrome mask, paint steered ONLY via --icon-color (resolved per band above) ── */
.svc-icon {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  background-color: var(--icon-color, var(--action));
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 180ms ease-out;
}

/* ── Hover vocabulary (utilities) ── */
/* 1. powiększenie: icons/media only, never a box with text */
.hover-scale { transition: transform 200ms ease-out; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }
.media { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }
@media (hover: hover) { .media:hover > img { transform: scale(1.05); } }

/* 2. uniesienie: same step as .card */
.hover-lift { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease-out; }
@media (hover: hover) { .hover-lift:hover { transform: translateY(-4px); box-shadow: var(--elev-raise); } }
.hover-lift:active { transform: translateY(-1px); }
:is([data-tone="dark"], .on-dark) .hover-lift:hover { box-shadow: none; }

/* 3. zmiana koloru: up to chip/row size only, never a whole card or panel */
.hover-fill { transition: background-color 180ms ease-out, color 180ms ease-out; }
@media (hover: hover) { .hover-fill:hover { background-color: var(--action-fill); color: var(--action-ink); } }
.hover-fill:active { background-color: color-mix(in srgb, var(--action-fill) 88%, var(--action-ink)); }
.hover-tint { transition: border-color 180ms ease-out, color 180ms ease-out; }
@media (hover: hover) { .hover-tint:hover { border-color: var(--action); color: var(--action); } }
:is(.hover-scale, .hover-lift, .hover-fill, .hover-tint):is(a, button):focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* 4. ruchoma strzałka: layout only; the arrow shape + nudge come from the hub (tokens.css) */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
:where(.with-arrow) .arrow { display: inline-flex; flex: none; transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { :where(.with-arrow):hover .arrow { transform: var(--arrow-nudge, translateX(4px)); } }
:where(.with-arrow):focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

/* 5. dodanie podkreślenia: .link-underline / .link-more above */

/* ── Missing dashboard data ── */
.data-placeholder { opacity: 0.55; font-style: italic; font-weight: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* hub: straż poziomu — nic nie poszerza strony w bok (base-stylesheet.ts) */
html, body { overflow-x: clip; }
