/* 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: v6 */
:root {
  /* — kolory z PLIKU logo (źródło prawdy) — */
  --logo-1: #1c4c8a;
  --logo-2: #45a6d9;
  --logo-3: #414b53;
  --logo-4: #4eacdf;
  --logo-5: #285694;
  --logo-6: #aedef5;
  --logo-7: #3f95c8;
  /* — paleta z zakładki Branding — */
  --palette-1: #2e8ec8;
  --palette-2: #1b5490;
  --palette-3: #ffffff;
  --palette-4: #f4f7fa;
  --palette-5: #111518;
  --palette-6: #1c2229;
  --palette-7: #0f1923;
  --palette-8: #5c6772;
  --palette-9: #edf3f7;
  --palette-10: #dde3ea;
  /* — gradienty z logo (stopy) — */
  --logo-grad-1-a: #4eacdf;
  --logo-grad-1-b: #285694;
  --logo-grad-2-a: #aedef5;
  --logo-grad-2-b: #285694;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #2e8ec8;
  --brand-2: #216690;
  --black2: #111518;
  --white: #ffffff;
  --light2: #ffffff;
  --light3: #f0f0f0;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Rowdies", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  /* — layout — */
  --padding-horizontal: 24px;
  --section-pad-block: 96px;
  --border-radius: 4px;
}
@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: #2e8ec8;
  --accent-2: #216690;
  --accent-contrast: #ffffff;
  --accent-strong: #1b5490;
  --accent-soft: #bbd1de;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-dark: #111518;
  --surface-dark-2: #1c2229;
  --ink: #0f1923;
  --ink-soft: #5c6772;
  --on-dark: #edf3f7;
  --border: #dde3ea;
  --heading-accent: #2e8ec8;
  --heading-accent-on-dark: #2e8ec8;
  --heading-line-color: #2e8ec8;
  --heading-line-color-on-dark: #2e8ec8;
  --brand-el-watermark-color: #2e8ec8;
  --brand-el-watermark-color-on-dark: #2e8ec8;
  --brand-el-watermark-opacity: 0.08;
  --border-width: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 28px rgba(0,0,0,0.14);
}

/* 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-text-accent: block;
  --brand-el-watermark: block;
  --brand-el-text-divider: block;
  --brand-el-mascot-signet: none;
  --brand-el-bg-photo: block;
  --brand-el-marquee-slogan: block;
  --brand-el-seam-decor: 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--mascot-signet { display: none !important; }
.heading-line--above { display: none !important; }
.heading-mark--img { display: none !important; }
.heading-line-mask { display: none !important; }

/* #6 Znak wodny — kolor i krycie LIVE z zakładki Branding (bez przebudowy sekcji). */
.brand-el--watermark { opacity: var(--brand-el-watermark-opacity) !important; }
.brand-el--watermark { background-color: var(--brand-el-watermark-color) !important; -webkit-mask: url("/brand/el-watermark.webp") center / contain no-repeat !important; mask: url("/brand/el-watermark.webp") center / contain no-repeat !important; }
/* wariant „kontener + <img> w środku”: chowamy piksele obrazka, pudełko zostaje */
.brand-el--watermark img { visibility: hidden !important; }
/* wariant „element JEST <img>”: piksele wypychamy poza kadr, żeby tło pozostało */
img.brand-el--watermark { object-fit: none !important; object-position: -99999px -99999px !important; overflow: hidden !important; }
/* na ciemnych płaszczyznach ten sam kolor, rozjaśniony tylko gdy by zniknął */
[data-tone="dark"] .brand-el--watermark, .on-dark .brand-el--watermark { background-color: var(--brand-el-watermark-color-on-dark) !important; }

/* UI signature — derived from the brand kit; every component honours these:
   1) CHEVRON NA CTA — przycisk .btn-primary niesie za etykietą czysty chevron „›” (TEN SAM glif
      co przycisk ikonowy i strzałki slidera), w kolorze etykiety; na hover przesuwa się w prawo
      (ruchoma strzałka). Motyw pikselowego rozkruszenia niosą punktory .pixel-marker/.pixel-list.
   2) SKOŚNY SZEW KROPLI (gradient) — każda .card niesie 2px górny szew w gradiencie logo
      (var(--accent)→var(--accent-2)), a animowane .link-underline to TA SAMA cienka linia
      gradientowa — echo rozdzielacza ze skośną, ciągłą krawędzią kropli.
   3) MIKROSIATKA PROTOKOŁU — karty niosą bardzo delikatną kwadratową siatkę 13px (~5%),
      dokładnie w rozmiarze tekstury z marquee („papier milimetrowy” / mierzalny protokół).
   4) KWADRATOWY PIKSEL-ZNACZNIK — punktory/markery (.pixel-marker) to twarde KWADRATY w
      akcencie (nigdy okrągłe kropki) z jednym mniejszym odrywającym się pikselem — atom crumble.
   5) TECHNICZNIE OSTRA GEOMETRIA + ZWARTY RUCH — skala promieni 2/4/6px z wyboru 4px, ZERO
      pillów (krawędzie zostają ostre dla technicznej marki), ruch 140–160ms, gradient-kropli
      ciemnieje na kliknięcie (:active). */

/* tokens.css OWNS the palette/radius/border/surface/ink/shadow variables and is rewritten live
   when the operator edits the brand — so every rule below REFERENCES those tokens (var(--…)) and
   never re-declares them. This :root holds ONLY the button-signature aliases tokens.css doesn't own. */
:root {
  /* darker END of the CTA droplet-gradient (logo grad #4eacdf→#285694 ≈ accent→accent-strong) */
  --accent-2: var(--accent-strong);
  /* primary button RESTING shadow — soft, brand-tinted, layered (mood: techniczny/precyzyjny) */
  --btn-shadow: 0 3px 10px -4px color-mix(in srgb, var(--accent) 45%, transparent);
  /* ONE button height for the whole site; radius alias also consumed by Slider.astro arrows */
  --btn-height: 52px;
  --btn-height-sm: 40px;
  --btn-radius: var(--radius-md);       /* 4px — crisp/technical, NOT pill; Slider arrows match */
  /* faint square protocol-grid line (mikrosiatka), size 13px to match the marquee texture */
  --grid-line: color-mix(in srgb, var(--ink) 3%, transparent);
  --grid-line-dark: color-mix(in srgb, var(--on-dark) 4%, transparent);
}

/* ============================ BUTTONS ============================ */
/* ONE family of controls: same font/weight/tracking, differ only in colour/fill/border. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--btn-height, 52px);
  padding-block: 0;
  padding-inline: 26px;
  border: var(--border-width, 1px) solid transparent;
  border-radius: var(--btn-radius, var(--radius-md));
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease,
              border-color 160ms ease, transform 160ms ease,
              box-shadow 160ms ease, filter 160ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — the droplet gradient CTA (accent → accent-2) with a soft brand-tinted resting shadow */
.btn-primary {
  background: var(--btn-bg, linear-gradient(90deg, var(--accent), var(--accent-2)));
  color: var(--btn-fg, var(--accent-contrast, #ffffff));
  box-shadow: var(--btn-shadow, none);
}
/* trailing chevron — the SAME "›" glyph as the icon button and slider arrows; inherits the label colour */
.btn-primary::after {
  content: "\203A";
  margin-left: 2px;
  flex: 0 0 auto;
  font-size: 1.25em;
  transition: transform 160ms ease;
}
/* a section that slots its own arrow (.with-arrow) opts out of the auto chevron */
.btn-primary.with-arrow::after { content: none; }
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent);
    filter: brightness(0.97);
  }
  .btn-primary:hover::after { transform: translateX(4px); }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.92); }

/* Secondary — DISTINCT, lower-priority NEUTRAL box (never a second accent clone) */
.btn-secondary {
  background-color: var(--btn-bg, var(--surface-2));
  color: var(--btn-fg, var(--ink));
  border-color: var(--btn-border, var(--border));
}
@media (hover: hover) {
  .btn-secondary:hover {
    border-color: var(--btn-accent, var(--accent));
    color: var(--btn-accent, var(--accent));
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--ink));
  padding-inline: 10px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 10%, transparent); }
}
.btn-ghost:active { background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 16%, transparent); }

/* Icon button — square-ish (technical brand → --radius-md, not a circle) */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
  color: var(--btn-fg, var(--accent-contrast, #ffffff));
  border: none; cursor: pointer;
  box-shadow: var(--btn-shadow, none);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.06); filter: brightness(0.97); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — only height + inline padding shrink; radius/typography unchanged */
.btn--sm { min-height: var(--btn-height-sm, 40px); padding-inline: 18px; font-size: 14px; }

/* ============================ HOVER VOCABULARY ============================ */

/* 1. Powiększenie — scale up */
.hover-scale { transition: transform 160ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

/* image inside a fixed frame — zoom the image, clip the box */
.media { overflow: hidden; border-radius: var(--radius-md); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover;
             transition: transform 320ms ease; }
@media (hover: hover) { .media:hover img { transform: scale(1.06); } }

/* 2. Uniesienie — lift + shadow (cards, tiles, primary buttons) */
.hover-lift {
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms ease;
}
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, 0 16px 32px -12px rgba(0, 0, 0, 0.22));
  }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — colour swap */
.hover-fill { transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast, #ffffff); }
}
.hover-tint { transition: color 160ms ease, border-color 160ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--accent); border-color: var(--accent); }
}

/* 4. Ruchoma strzałka — moving arrow (for slotted arrow icons / read-more) */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.with-arrow .arrow { transition: transform 160ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }
.arrow-loop { animation: arrow-nudge 1.4s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* 5. Dodanie podkreślenia — animated underline = the droplet gradient seam */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 200ms ease, color 160ms ease;
  padding-bottom: 2px;
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 2px; color: var(--accent); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent); }
.link-underline-center { background-position: 50% 100%; }

/* ============================ PIXEL-CRUMBLE MARKER (motif) ============================ */
/* Hard square module in the accent, with one smaller pixel breaking off — the crumble atom.
   Use it as a bullet/marker instead of a round dot. */
.pixel-marker {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.pixel-marker::after {
  content: "";
  position: absolute;
  top: -4px; right: -5px;
  width: 3px; height: 3px;
  background: var(--accent);
}
/* list whose bullets are pixel-markers */
.pixel-list { list-style: none; margin: 0; padding: 0; }
.pixel-list > li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
}
.pixel-list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.pixel-list > li::after {
  content: "";
  position: absolute;
  left: 10px; top: calc(0.5em - 4px);
  width: 3px; height: 3px;
  background: var(--accent);
}

/* ============================ CONTENT ICONS (recolorable) ============================ */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-color: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 160ms ease;
}

/* ============================ STEP NUMBER BADGE ============================ */
/* Square (technical brand → --radius-md, not a disc), grid-centred, uniform digits. */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast, #ffffff);
  box-shadow: var(--btn-shadow, none);
}
.step-num {
  font-family: var(--font-heading, var(--font-body, system-ui, sans-serif));
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ============================ CARDS / TILES ============================ */
.card {
  position: relative;
  z-index: 1;
  background-color: var(--surface);
  /* mikrosiatka protokołu — faint 13px square grid behind content */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 13px 13px;
  color: var(--ink);
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms ease;
}
/* skośny szew kropli — 2px gradient seam along the top edge (the divider's droplet slant, echoed) */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg, 0 16px 32px -12px rgba(0,0,0,0.22)); }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 320ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* padless card → padded inner wrapper for text */
.card-body {
  padding: 24px var(--padding-horizontal, 24px);
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
}
.card-body :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading, var(--font-body, system-ui, sans-serif));
  color: var(--ink);
}
.card-body p { color: var(--ink-soft); }

/* ============================ INPUTS ============================ */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field::placeholder { color: var(--ink-soft); opacity: 0.85; }
.field:hover { border-color: var(--accent); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; color: var(--ink-soft); }
.field:user-invalid { border-color: #e5484d; }

/* ============================ MISSING-DATA PLACEHOLDER ============================ */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
  color: var(--ink-soft);
}

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