/* 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: v5 */
:root {
  /* — kolory z PLIKU logo (źródło prawdy) — */
  --logo-1: #f70117;
  /* — paleta z zakładki Branding — */
  --palette-1: #f70117;
  --palette-2: #cc000f;
  --palette-3: #f9f9fb;
  --palette-4: #f1f3f6;
  --palette-5: #0c0f14;
  --palette-6: #161b24;
  --palette-7: #111318;
  --palette-8: #6b7280;
  --palette-9: #eef1f6;
  --palette-10: #dde1e8;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #f70117;
  --brand-2: #b20111;
  --black2: #0c0f14;
  --white: #ffffff;
  --light2: #f9f9fb;
  --light3: #eaeaec;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Russo One", sans-serif;
  --font-body: "Switzer", sans-serif;
  /* — layout — */
  --padding-horizontal: 24px;
  --section-pad-block: 96px;
  --border-radius: 0px;
}
@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: #f70117;
  --accent-2: #b20111;
  --accent-contrast: #ffffff;
  --accent-strong: #cc000f;
  --accent-soft: #e9b3b7;
  --surface: #f9f9fb;
  --surface-2: #f1f3f6;
  --surface-dark: #0c0f14;
  --surface-dark-2: #161b24;
  --ink: #111318;
  --ink-soft: #6b7280;
  --on-dark: #eef1f6;
  --border: #dde1e8;
  --heading-accent: #f70117;
  --heading-accent-on-dark: #f70117;
  --heading-line-color: #f70117;
  --heading-line-color-on-dark: #f70117;
  --border-width: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;
  --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);
}

/* 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: none;
  --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; }
.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; }

/* UI signature — derived from the brand kit; every component honours these:
   1) THE INCISION IS THE BRAND. The logo's single diagonal cut (a shallow ~4° red hairline that
      slices the mark, echoed by the shape-divider's 5px #f70117 line and the photo-frame's clipped
      corners) is the ONE recurring motif — reused as a red slanted bar under headings (.brand-cut),
      a corner accent stripe on cards, and the animated link underline. Repeated with variation,
      never as generic blobs/waves.
   2) PRIMARY CTA = a flat, full-blooded red block (solid var(--accent) #f70117, --btn-shadow:none) —
      zero gradient, zero grain, zero drop shadow (faktura: brak). Force comes from saturation + the
      hard rectangle, not from ornament. Hover darkens to --accent-strong and lifts 2px, nothing more.
   3) EVERY interactive label is Russo One UPPERCASE (var(--font-heading)) with letter-spacing — one
      button font across all variants (primary/secondary/ghost/icon), condensed industrial caps like
      the marquee segments. Buttons never switch to the body face.
   4) THE PHOTO/MEDIA FRAME carries the incision literally: .brand-frame clips images with the exact
      approved polygon(0 0, 82% 0, 100% 22%, 100% 100%, 18% 100%, 0 78%) — the top-right + bottom-left
      angular cut from the brand's photo-frame element. Images cut along the motif line, not a rectangle.
   5) HARD ORTHOGONAL GEOMETRY: zero-radius corners (buttons/inputs/cards squared — NO pills, NO
      circles; the step badge is a squared block, the icon button a plain square), flat resting
      surfaces, and the red used sparingly as a hit (60/30/10) — surfaces dominate, red is the punch. */

:root {
  /* Only the button-signature aliases the token system does NOT own. tokens.css owns
     --accent / --accent-strong / --accent-contrast / --accent-2 / --radius-* / --surface* / --ink* / --shadow-*.
     The CTA is a SOLID flat block (no gradient), so no --accent-2 override is needed here. */
  --btn-shadow: none;               /* flat brand (faktura: brak) — the primary button carries no resting shadow */
  --btn-radius: var(--radius-sm);   /* buttons + Slider arrows: square 0-radius corners, never a pill */
  --btn-height: 52px;               /* ONE button height across the whole site */
  --btn-height-sm: 42px;
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS — one family: Russo One uppercase, flat, hard-edged. Only colour varies per band.
   ───────────────────────────────────────────────────────────────────────── */
.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: 28px;
  border: 0;
  border-radius: var(--btn-radius, var(--radius-sm, 0px));
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — the flat red block. Per-band recolour via --btn-bg / --btn-fg. */
.btn-primary {
  position: relative;
  color: var(--btn-fg, var(--accent-contrast, #ffffff));
  background-color: var(--btn-bg, var(--accent));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--btn-bg-hover, var(--accent-strong));
    transform: translateY(-2px);
  }
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — DISTINCT, lower-priority neutral: dark ink outline, no fill until hover. */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-accent, var(--ink));
  box-shadow: inset 0 0 0 2px var(--btn-accent, var(--ink));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--ink));
    color: var(--btn-fg, var(--surface));
    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)) 12%, transparent); }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — squared (radius 0, never a circle) to keep the orthogonal register. */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  min-height: 0;
  border: 0;
  border-radius: var(--btn-radius, var(--radius-sm, 0px));
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast, #ffffff));
  transition: transform 180ms ease, background-color 180ms ease;
}
@media (hover: hover) { .btn-icon:hover { background-color: var(--accent-strong); transform: translateY(-2px); } }
.btn-icon:active { transform: translateY(0) scale(0.97); }
.btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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, 42px); padding-inline: 18px; font-size: 0.8125rem; }

/* ─────────────────────────────────────────────────────────────────────────
   LINKS — animated red incision underline, grows from the left.
   ───────────────────────────────────────────────────────────────────────── */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 220ms ease, color 180ms ease;
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 2px; color: var(--accent); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; color: var(--accent); }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent); }
.link-underline-center { background-position: 50% 100%; }

/* ─────────────────────────────────────────────────────────────────────────
   CARDS / TILES — flat surface, tight radius, red incision corner stripe.
   ───────────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  background: var(--white, #ffffff);
  color: var(--ink);
  border-radius: var(--radius-md, 0px);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
/* the incision: a red slanted bar cut into the top-left corner — the "service label + red" move */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 6px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  z-index: 2;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card:hover::before { width: 108px; }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* PADLESS card → text lives in a padded inner wrapper. */
.card-body {
  padding: 24px var(--padding-horizontal, 24px);
  color: var(--ink);
}
.card-body p, .card-body li { color: var(--ink-soft); }

/* ─────────────────────────────────────────────────────────────────────────
   MEDIA — plain fixed frame (zoom on hover) + the brand incision frame.
   ───────────────────────────────────────────────────────────────────────── */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md, 0px);
}
.media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
@media (hover: hover) { .media:hover img { transform: scale(1.06); } }

/* .brand-frame — images cut along the logo incision (exact approved photo-frame polygon). */
.brand-frame {
  position: relative;
  display: block;
  overflow: hidden;
  -webkit-clip-path: polygon(0 0, 82% 0, 100% 22%, 100% 100%, 18% 100%, 0 78%);
          clip-path: polygon(0 0, 82% 0, 100% 22%, 100% 100%, 18% 100%, 0 78%);
}
.brand-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
@media (hover: hover) { .brand-frame:hover img { transform: scale(1.05); } }

/* ─────────────────────────────────────────────────────────────────────────
   INPUTS — borderless, fill-based (border-width: 0 brand). Red ring on focus.
   ───────────────────────────────────────────────────────────────────────── */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-sm, 0px);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.4;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.field::placeholder { color: var(--ink-soft); opacity: 1; }
@media (hover: hover) { .field:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); } }
.field:focus {
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent), inset 0 -2px 0 0 var(--accent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; }
.field:user-invalid { box-shadow: 0 0 0 3px color-mix(in srgb, #e5484d 26%, transparent), inset 0 -2px 0 0 #e5484d; }
textarea.field { min-height: 140px; resize: vertical; }

/* ─────────────────────────────────────────────────────────────────────────
   HOVER VOCABULARY (reusable utilities) — combine per component.
   ───────────────────────────────────────────────────────────────────────── */
/* 1. Powiększenie — scale */
.hover-scale { transition: transform 180ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

/* 2. Uniesienie — lift + shadow */
.hover-lift { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease; }
@media (hover: hover) { .hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); } }
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — colour swap */
.hover-fill { transition: background-color 180ms ease, color 180ms ease; }
@media (hover: hover) { .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast, #ffffff); } }
.hover-tint { transition: color 180ms ease, box-shadow 180ms ease; }
@media (hover: hover) { .hover-tint:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); } }

/* 4. Ruchoma strzałka — moving arrow (nudge, and a subtle continuous loop) */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.with-arrow .arrow { transition: transform 180ms 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 — see .link-underline above. */

/* ─────────────────────────────────────────────────────────────────────────
   BRAND ACCENT — the incision as a heading rule (the "linia nad/pod nagłówkiem").
   ───────────────────────────────────────────────────────────────────────── */
.brand-cut {
  display: inline-block;
  width: 64px; height: 6px;
  background: var(--accent);
  /* slanted red bar = the logo's diagonal incision */
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTENT ICONS — monochrome mask, recoloured ONLY via --icon-color.
   ───────────────────────────────────────────────────────────────────────── */
.svc-icon {
  display: inline-block;
  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 180ms ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   STEP BADGE — squared block (orthogonal register), optically-centred number.
   ───────────────────────────────────────────────────────────────────────── */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm, 0px);
  background: var(--accent);
  color: var(--accent-contrast, #ffffff);
  font-family: var(--font-heading, system-ui, sans-serif);
}
.step-num {
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

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

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