/* 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: #3f3f3e;
  --logo-2: #ea1622;
  /* — paleta z zakładki Branding — */
  --palette-1: #ea1622;
  --palette-2: #c41420;
  --palette-3: #fafbfc;
  --palette-4: #f3f4f6;
  --palette-5: #2a2a29;
  --palette-6: #1a1a19;
  --palette-7: #2a2a29;
  --palette-8: #62625f;
  --palette-9: #f8f9fa;
  --palette-10: #d1d5db;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #ea1622;
  --brand-2: #a81018;
  --black2: #1a1a19;
  --white: #ffffff;
  --light2: #fafbfc;
  --light3: #ebeced;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Source Sans 3", 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: #ea1622;
  --accent-2: #a81018;
  --accent-contrast: #ffffff;
  --accent-strong: #c41420;
  --accent-soft: #e6bdbf;
  --surface: #fafbfc;
  --surface-2: #f3f4f6;
  --surface-dark: #2a2a29;
  --surface-dark-2: #1a1a19;
  --ink: #2a2a29;
  --ink-soft: #62625f;
  --on-dark: #f8f9fa;
  --border: #d1d5db;
  --heading-accent: #ea1622;
  --heading-accent-on-dark: #ea1622;
  --heading-line-color: #ea1622;
  --heading-line-color-on-dark: #ea1622;
  --brand-el-watermark-color: #ea1622;
  --brand-el-watermark-color-on-dark: #ea1622;
  --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: #ea1622;
  --grad-to: #ea1622;
  --grad-accent-contrast: #ffffff;
  --grad-accent: linear-gradient(var(--accent), var(--accent));
  --grad-accent-soft: linear-gradient(#e6bdbf, #e6bdbf);
  --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: none;
  --heading-line-below: block;
  --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--above { display: none !important; }
.heading-mark--img { display: none !important; }
.heading-line-mask { display: none !important; }
/* #7: wybrany plik narysowano pod przeciwne umiejscowienie — motyw odwrócony w pionie: */
.heading-line--below .heading-line-img, .heading-line--below .heading-line-mask, .heading-line--below.heading-line-img, .heading-line--below.heading-line-mask { scale: 1 -1 !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; }
/* #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 0 3px rgba(255,255,255,.35)) drop-shadow(0 6px 18px rgba(0,0,0,.30)); }
: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: radial-gradient(90% 80% at 100% 100%, var(--brand-bg-color, #ea1622), transparent 65%), linear-gradient(color-mix(in srgb, var(--brand-bg-color, #ea1622) 35%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand-bg-color, #ea1622) 35%, transparent) 1px, transparent 1px); background-size: cover, 40px 40px, 40px 40px; }

/* ═══ STYL INTERAKCJI (Branding → „Styl interakcji”) — generowany przez hub, nie edytuj. ═══ */
/* ── Styl interakcji: przycisk „Strzałka Nurtu" — kształt bubble, wypełnienie solid, hover lift — hub (interaction-style). */
/*    NADRZĘDNY nad .btn z base.css: wygląd, hover, focus i strzałka są TYLKO tutaj. */
:root:root {
  --btn-height: 52px;
  --btn-height-sm: 41px;
  --btn-pad-inline: 20px;
  --btn-radius: 999px;
  --btn-corners: 999px;
  --btn-weight: 600;
  --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: transparent; color: var(--btn-accent, var(--btn-ink)); border: var(--btn-line) solid color-mix(in srgb, var(--btn-accent, var(--btn-ink)) 50%, transparent); }
: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); }
:root:root :is(.btn-primary, .btn-secondary) { --btn-pad-e: max(0px, var(--btn-block) + 4px - var(--btn-px)); }
:root:root :is(.btn-primary, .btn-secondary)::after { content: ""; position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: calc(var(--btn-block) - 12px); height: calc(var(--btn-block) - 12px); border-radius: 50%; background: currentColor; -webkit-mask: var(--btn-arrow) center / 42% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: var(--btn-arrow) center / 42% no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
:root:root :is(.btn-primary, .btn-secondary).with-arrow .arrow { display: none; }
:root:root .lead-form-submit::after { content: none; }
@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 :is(.btn-primary, .btn-secondary):hover::after { transform: translateX(3px); }
  :root:root .btn-primary:hover { transform: translateY(-2px); --btn-elev: 0 10px 20px -10px color-mix(in srgb, var(--btn-bg, var(--accent)) 70%, transparent); }
  :root:root .btn-secondary:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--btn-ink)) 8%, transparent); transform: translateY(-2px); }
}
: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 „Kreska nad" — 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 { content: none; }
: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; left: 0; right: 0; top: calc(50% - 0.95em - 2px); height: 2px; background: var(--nav-accent, var(--accent)); transform: scaleX(0); transform-origin: center; transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); }
: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)::after { transform: scaleX(1); }
}
:root:root :is(.menu-link, .nav-dropdown-trigger):focus-visible::after { transform: scaleX(1); }
:root:root :is(.menu-link, .nav-dropdown-trigger):is([aria-current="page"], .is-active)::after { transform: scaleX(1); }

@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) RED RIBBON RAIL - the logo's red ribbon running beside the anthracite one becomes a 4px
      var(--accent) rail on the LEFT edge of every .card (Kernel "Karta z Akcentem Bocznym"),
      clipped by the card's single 8px radius. Hover grows it to 6px (scaleX, zero reflow) and
      slides the card 2px left - no lift, no shadow. .field:focus reuses the same 4px rail.
   2) BUBBLE + DISC language from the chosen button "Strzalka Nurtu": anything that is a control
      or a chip is round - .btn-icon is the button's disc on its own (48px circle), .tag is a pill
      led by a 6px var(--accent) disc, .step-badge is a disc. Boxes (cards, media, fields) stay
      rectangular on the token radii (--radius-md / --radius-sm), one radius on all four corners.
   3) FLAT + HAIRLINE depth - no gradients, no resting shadows anywhere. Separation is a 1px
      var(--border) hairline or a --surface-2 step; the only soft shadow is the ink-tinted
      two-layer hover of .hover-lift (one elevation step, same light source as the CTA lift).
   4) NURT CURVE - the top curve of the logo flame, abstracted into ONE arc stroke (never the
      flame itself - the flame lives only in the logo), is the bullet of .list-nurt.
   5) THERMAL TYPE - slab (--font-heading) only for headings, eyebrow, card titles and the 96px
      anthracite stat number (tracking -0.03em); every control in --font-body; labels are 13px
      uppercase, tracking 0.12em; red appears as a single pulse (.accent-word), never as copy. */

:root {
  --btn-shadow: none;            /* flat brand: the CTA has no resting shadow */
  --rail-w: 4px;                 /* signature 1: card / field rail at rest */
  --rail-w-hover: 6px;           /* signature 1: card rail on hover (Kernel) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  --lift-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 7%, transparent),
                 0 10px 22px -6px color-mix(in srgb, var(--ink) 14%, transparent);
  /* signature 4: the flame's top curve as a single arc stroke (mask, painted by background-color) */
  --motif-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13.5C3.5 7.5 7.5 3.5 13.5 3' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Type floor (zero specificity: sections override freely) ───────────────── */
/* Alfa Slab One ships ONE weight - weight 400 stops the browser faking a bold. */
:where(h1, h2, h3, h4, h5, h6) { font-weight: 400; color: var(--ink); font-synthesis: none; }
:where(h1) {
  text-transform: var(--heading-transform, none);
  letter-spacing: var(--heading-tracking, -0.03em);
  font-variant-caps: var(--heading-caps, normal);
}
:where(h2) {
  text-transform: var(--heading-transform, none);
  letter-spacing: var(--heading-tracking, -0.01em);
  font-variant-caps: var(--heading-caps, normal);
}
:where(h3, h4, h5, h6) {
  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); }

/* One key word per section in the brand colour - the typographic pulse. */
.accent-word { color: var(--heading-accent); }
:is([data-tone="dark"], .on-dark) .accent-word { color: var(--heading-accent-on-dark); }

/* ── Eyebrow (label above a heading) ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--heading-accent);
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, 0.12em);
  font-variant-caps: var(--eyebrow-caps, normal);
}
:is([data-tone="dark"], .on-dark) .eyebrow { color: var(--heading-accent-on-dark); }
/* Empty shell: no motif of its own. Paints ONLY when a section sets --mark: url(...);
   the transparent fallback mask renders nothing. tokens.css owns display/visibility. */
.eyebrow-mark:not(img) {
  height: 25px;
  flex: none;
  background-color: var(--heading-accent);
  -webkit-mask: var(--mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
          mask: var(--mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
}
:is([data-tone="dark"], .on-dark) .eyebrow-mark:not(img) { background-color: var(--heading-accent-on-dark); }
img.eyebrow-mark { height: 25px; width: auto; flex: none; object-fit: contain; }

/* ── Buttons: MINIMAL FALLBACK ─────────────────────────────────────────────── */
/* The look (shape, disc + arrow, hover, active, focus) is the hub's STYL INTERAKCJI in
   tokens.css (:root:root, wins). This only keeps a sane button if that block is absent.
   No signature decoration and no pseudo-elements on .btn here. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 52px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 20px);
  border: var(--border-width) solid transparent;
  border-radius: var(--btn-radius, var(--radius-pill));
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--btn-weight, 700);
  line-height: 1.1;
  text-transform: var(--btn-transform, none);
  letter-spacing: var(--btn-tracking, normal);
  font-variant-caps: var(--btn-caps, normal);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out,
              border-color var(--dur) ease-out, transform var(--dur) var(--ease-out),
              box-shadow var(--dur) ease-out;
}
.btn:focus-visible { outline: 2px solid var(--btn-ring, var(--accent)); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--btn-accent, var(--ink));
  border-color: color-mix(in srgb, var(--btn-accent, var(--ink)) 50%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--btn-fg, var(--ink));
  padding-inline: 10px;
}
:is([data-tone="dark"], .on-dark) :is(.btn-secondary, .btn-ghost) { color: var(--btn-accent, var(--on-dark)); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--btn-bg, var(--accent-strong)); transform: translateY(-2px); }
  .btn-secondary:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--ink)) 8%, transparent); }
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-fg, var(--ink)) 8%, transparent); }
}
.btn:active { transform: translateY(0); }
.btn--sm { min-height: var(--btn-height-sm, 41px); padding-inline: 14px; font-size: 0.9375rem; }

/* ── Icon button (signature 2: the CTA's disc on its own) ──────────────────── */
/* Not covered by the hub. Geometry is fed through the hub's own variables so its .btn
   rule sizes the disc correctly (48px circle, zero inline padding). */
.btn-icon {
  --btn-height: 48px;
  --btn-height-sm: 40px;
  --btn-pad-inline: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: var(--btn-height);
  block-size: var(--btn-height);
  min-height: var(--btn-height);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--btn-bg, var(--btn-neutral, var(--surface-2)));
  color: var(--btn-fg, var(--btn-ink, var(--ink)));
  cursor: pointer;
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out;
}
.btn-icon.btn--sm { inline-size: var(--btn-height-sm); block-size: var(--btn-height-sm); }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; flex: none; }
@media (hover: hover) {
  .btn-icon:hover {
    background-color: var(--btn-ink, var(--ink));
    color: var(--btn-paper, var(--surface));
  }
}
.btn-icon:active { background-color: color-mix(in srgb, var(--btn-ink, var(--ink)) 82%, var(--btn-paper, var(--surface))); }
.btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-icon:is(:disabled, [aria-disabled="true"]) { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Links ─────────────────────────────────────────────────────────────────── */
/* .menu-link and the .link-underline HOVER are the hub's STYL INTERAKCJI (tokens.css).
   Only the resting structure + keyboard ring live here. */
.link-underline { color: inherit; text-decoration: none; }
.link-underline:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Moving arrow: structure only - the arrow shape, colour (currentColor) and the nudge
   come from the hub (.brand-arrow + .with-arrow:hover .arrow). */
.with-arrow { display: inline-flex; align-items: center; gap: 0.5em; }
.with-arrow .arrow { flex: none; }

/* "Read more / See details" - ink text, the brand arrow nudges, text warms to accent-strong. */
.link-more {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) ease-out;
}
@media (hover: hover) {
  .link-more:hover { color: var(--accent-strong); }
  :is([data-tone="dark"], .on-dark) .link-more:hover { color: var(--accent-soft); }
}
.link-more:active { color: var(--ink); }
.link-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:is([data-tone="dark"], .on-dark) .link-more { color: var(--on-dark); }

/* ── Tag / chip (signature 2: pill led by the disc) ────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  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);
  white-space: nowrap;
  text-decoration: none;
}
.tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}
:is([data-tone="dark"], .on-dark) .tag {
  background-color: color-mix(in srgb, var(--on-dark) 10%, transparent);
  color: var(--on-dark);
}
:is(a, button).tag { cursor: pointer; transition: background-color var(--dur) ease-out, color var(--dur) ease-out; }
@media (hover: hover) {
  :is(a, button).tag:hover { background-color: var(--surface-dark); color: var(--on-dark); }
  :is([data-tone="dark"], .on-dark) :is(a, button).tag:hover { background-color: var(--on-dark); color: var(--ink); }
}
:is(a, button).tag:active { background-color: var(--surface-dark-2); color: var(--on-dark); }
:is(a, button).tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { :is(a, button).tag { min-height: 44px; } }

/* ── Cards (signature 1: the red ribbon rail) ──────────────────────────────── */
/* ONE card style site-wide. Padless; text goes in .card-body. Flush media reaches the edges. */
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--ink);
  border: var(--border-width) solid var(--border);
  border-left-width: 0;                         /* the rail IS the left edge */
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur) ease-out;
}
.card::before {
  content: "";
  position: absolute;
  z-index: 2;                                   /* above flush media */
  inset-block: 0;
  left: 0;
  width: var(--rail-w-hover);
  background-color: var(--accent);
  transform: scaleX(calc(4 / 6));               /* = --rail-w at rest */
  transform-origin: left center;
  pointer-events: none;
  transition: transform var(--dur) ease-out;
}
:is([data-tone="dark"], .on-dark) .card,
.card:is([data-tone="dark"], .on-dark) {
  background-color: color-mix(in srgb, var(--on-dark) 5%, var(--surface-dark));
  border-color: color-mix(in srgb, var(--on-dark) 12%, transparent);
  color: var(--on-dark);
}
.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--surface-2);
}
.card-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px calc(24px + var(--rail-w));
  color: inherit;
}
.card-body > .link-more:last-child,
.card-body > .with-arrow:last-child { margin-top: auto; align-self: flex-start; padding-top: 4px; }
.card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--ink);
  text-transform: var(--subheading-transform, none);
  letter-spacing: var(--subheading-tracking, -0.005em);
  font-variant-caps: var(--subheading-caps, normal);
}
.card-text { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
:is([data-tone="dark"], .on-dark) :is(.card-title),
.card:is([data-tone="dark"], .on-dark) .card-title { color: var(--on-dark); }
:is([data-tone="dark"], .on-dark) .card-text,
.card:is([data-tone="dark"], .on-dark) .card-text { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }

/* Whole-card link: put .card-link on the card's one link (usually the title or "read more");
   it stretches over the card, so hovering anywhere also drives its .with-arrow nudge. */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
a.card:focus-visible,
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .card-link:focus-visible { outline: none; }
.card a:not(.card-link):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (hover: hover) {
  .card:hover::before { transform: scaleX(1); }
}
@media (hover: hover) and (min-width: 768px) {
  .card:hover { transform: translateX(-2px); }
  .card:active { transform: translateX(-1px); }
}

/* ── Media frame (image zoom lives INSIDE the frame) ───────────────────────── */
.media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: var(--media-ratio, 4 / 3);
  background-color: var(--surface-2);
}
.media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }
.card .media { border-radius: 0; }

/* ── Form fields (signature 1: focus = the card rail) ──────────────────────── */
.field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;                              /* 16px: no iOS zoom on focus */
  line-height: 1.4;
  box-shadow: inset 0 0 0 transparent;
  transition: border-color var(--dur) ease-out, box-shadow var(--dur) ease-out;
}
.field::placeholder { color: var(--ink-soft); opacity: 1; }
textarea.field { min-height: 140px; resize: vertical; line-height: 1.55; }
select.field {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
@media (hover: hover) {
  .field:hover { border-color: var(--ink-soft); }
}
.field:focus {
  outline: 2px solid transparent;               /* forced-colors safety */
  border-color: var(--ink);
  box-shadow: inset var(--rail-w) 0 0 var(--accent);
}
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field:user-invalid { border-color: var(--accent-strong); box-shadow: inset var(--rail-w) 0 0 var(--accent-strong); }
.field:disabled { background-color: var(--surface-2); color: var(--ink-soft); cursor: not-allowed; }
:is([data-tone="dark"], .on-dark) .field {
  background-color: color-mix(in srgb, var(--on-dark) 6%, var(--surface-dark));
  border-color: color-mix(in srgb, var(--on-dark) 18%, transparent);
  color: var(--on-dark);
}
:is([data-tone="dark"], .on-dark) .field::placeholder { color: color-mix(in srgb, var(--on-dark) 62%, transparent); }
:is([data-tone="dark"], .on-dark) .field:focus { border-color: var(--on-dark); }

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.field-hint { margin-top: 6px; font-family: var(--font-body); font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
.field-error { margin-top: 6px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--accent-strong); }
.field-check { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; font-family: var(--font-body); color: var(--ink); cursor: pointer; }
.field-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.field-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is([data-tone="dark"], .on-dark) :is(.field-label, .field-check) { color: var(--on-dark); }
:is([data-tone="dark"], .on-dark) .field-hint { color: color-mix(in srgb, var(--on-dark) 70%, transparent); }

/* ── List with the Nurt curve bullet (signature 4) ─────────────────────────── */
.list-nurt { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink); }
.list-nurt > li { position: relative; padding-left: 28px; font-family: var(--font-body); line-height: 1.5; }
.list-nurt > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  -webkit-mask: var(--motif-arc) center / contain no-repeat;
          mask: var(--motif-arc) center / contain no-repeat;
  pointer-events: none;
}
:is([data-tone="dark"], .on-dark) .list-nurt { color: var(--on-dark); }

/* ── Stat block (Kernel "Antracytowy Blok Liczby", signature 5) ────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: grid; gap: 10px; max-width: 310px; }
.stat__value {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3.5rem, 2rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: var(--heading-tracking, -0.03em);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.stat__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, 0.1em);
  font-variant-caps: var(--eyebrow-caps, normal);
}
:is([data-tone="dark"], .on-dark) .stat__value { color: var(--on-dark); }
:is([data-tone="dark"], .on-dark) .stat__label { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

/* ── Content icon (monochrome, recolour ONLY via --icon-color) ─────────────── */
.svc-icon {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  background-color: var(--icon-color, var(--accent));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--dur) ease-out;
}
:is([data-tone="dark"], .on-dark) .svc-icon { --icon-color: var(--on-dark); }

/* ── Step number badge (signature 2: a disc) ───────────────────────────────── */
.step-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-dark);
  color: var(--on-dark);
}
:is([data-tone="dark"], .on-dark) .step-badge { background-color: var(--on-dark); color: var(--ink); }
.step-num {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

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

/* ── Hover vocabulary (utilities) ──────────────────────────────────────────── */
/* 1. Powiekszenie - an icon/avatar scales itself; a .media frame zooms its image. */
.hover-scale { transition: transform var(--dur) ease-out; }
/* 2. Uniesienie - the ONE soft shadow in the system, one step up from flat. */
.hover-lift { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease-out; }
/* 3. Zmiana koloru - chip/row-sized fill swap to anthracite (red stays reserved for CTAs). */
.hover-fill { transition: background-color var(--dur) ease-out, color var(--dur) ease-out; }
.hover-tint { transition: color var(--dur) ease-out, border-color var(--dur) ease-out; }
@media (hover: hover) {
  .hover-scale:not(.media):hover { transform: scale(1.06); }
  .media.hover-scale:hover > img { transform: scale(1.05); }
  .hover-lift:hover { transform: translateY(-4px); box-shadow: var(--lift-shadow); }
  .hover-fill:hover { background-color: var(--surface-dark); color: var(--on-dark); }
  :is([data-tone="dark"], .on-dark) .hover-fill:hover { background-color: var(--on-dark); color: var(--ink); }
  .hover-tint:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
}
.hover-scale:not(.media):active { transform: scale(1); }
.hover-lift:active { transform: translateY(-1px); }
.hover-fill:active { background-color: var(--surface-dark-2); color: var(--on-dark); }
:is(.hover-scale, .hover-lift, .hover-fill, .hover-tint):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* 4. Ruchoma strzalka - .with-arrow above (nudge by the hub). Standalone loop indicator: */
.arrow-loop { animation: arrow-nudge 1.6s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
/* 5. Dodanie podkreslenia - .link-underline (hover by the hub). */

@media (max-width: 767px) {
  .card-body { padding: 20px 20px 24px calc(20px + var(--rail-w)); }
}

@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; }
