/* 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: #0d1b2a;
  /* — paleta z zakładki Branding — */
  --palette-1: #1d3557;
  --palette-2: #0f1f38;
  --palette-3: #ffffff;
  --palette-4: #f4f5f7;
  --palette-5: #0d1b2a;
  --palette-6: #152233;
  --palette-7: #0c0c0c;
  --palette-8: #4b5563;
  --palette-9: #f0f4f8;
  --palette-10: #dde1e7;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #1d3557;
  --brand-2: #15263f;
  --black2: #0c0c0c;
  --white: #ffffff;
  --light2: #ffffff;
  --light3: #f0f0f0;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "General Sans", 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: #1d3557;
  --accent-2: #15263f;
  --accent-contrast: #ffffff;
  --accent-strong: #0f1f38;
  --accent-soft: #8a9fbc;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-dark: #0d1b2a;
  --surface-dark-2: #152233;
  --ink: #0c0c0c;
  --ink-soft: #4b5563;
  --on-dark: #f0f4f8;
  --border: #dde1e7;
  --heading-accent: #1d3557;
  --heading-accent-on-dark: #1d3557;
  --heading-line-color: #1d3557;
  --heading-line-color-on-dark: #1d3557;
  --brand-el-watermark-color: #1d3557;
  --brand-el-watermark-color-on-dark: #1d3557;
  --brand-el-watermark-opacity: 0.08;
  --border-width: 1px;
  --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: none;
  --brand-el-mascot-signet: none;
  --brand-el-bg-photo: block;
  --brand-el-marquee-slogan: none;
  --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--text-divider { display: none !important; }
.brand-el--mascot-signet { display: none !important; }
.brand-el--marquee-slogan { 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) Roof-apex (∧ „Szczyt Kalenicy") glyph REPLACES every arrow — the logo's ridge chevron, drawn
      as an SVG mask (--motif-apex), is the primary CTA's trailing mark and the .with-arrow „więcej"
      mark; on hover it nudges UP (rising ridge), and the original → is removed, never layered on top.
   2) Hard zero corners, no pill — every control uses border-radius:0 (var(--radius-*) = 0px from the
      operator's „Ostre (0)" choice); the icon button is a hard square; --btn-radius = var(--radius-md).
      Technical-drawing precision, never softened.
   3) Flat navy monolith primary CTA — solid var(--accent) #1d3557 fill, white negative UPPERCASE
      label, --btn-shadow:none, NO gradient; hover deepens to var(--accent-strong) + a 2px lift, never
      a soft glow. „Siła marki pochodzi z pewności" — confidence through flatness (faktura: brak).
   4) Wersaliki + wide tracking as the shared label treatment — every button variant (one font,
      General Sans 700) and the .eyebrow use text-transform:uppercase + letter-spacing:0.16em; nav
      links follow the same convention. The uppercase-tracked treatment is the through-line.
   5) Navy hairline as connective tissue + ∧ section-tick — cards & inputs rest on a 1px var(--border)
      that swaps to var(--accent) on hover/focus; the link-underline is a 2px navy line (echo of the
      shape-divider's accent stroke) growing from the left; cards reveal a small navy ∧ apex tick on
      hover — the „szczyt kalenicy" section-opener applied at component scale. */

/* tokens.css OWNS --accent, --accent-strong, --accent-contrast, --radius-*, --border(-width),
   --surface*, --ink*, --on-dark, --shadow-* and the fonts — base.css only REFERENCES them so a
   brand edit restyles the whole site live. Below: only the button-signature aliases tokens doesn't own. */
:root {
  --btn-radius: var(--radius-md);   /* = 0 (sharp). Shared Slider arrows read this too → hard squares. */
  --btn-height: 52px;
  --btn-height-sm: 40px;
  --btn-shadow: none;               /* flat monolith at rest — the brand carries no resting shadows */
  --track: 0.16em;                  /* wersaliki tracking for every control/label */
  /* logo motif — the roof apex (∧), traced from the ridge geometry; a recolorable alpha mask */
  --motif-apex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5 21 14 18.2 16.8 12 10.6 5.8 16.8 3 14Z' fill='%23000'/%3E%3C/svg%3E");
}

/* Headings consume the brand ink at zero specificity so sections still override freely. */
:where(h1, h2, h3, h4, h5, h6) { color: var(--ink); }

/* ============================================================================
   BUTTONS — one shape, one font; only colour varies per band (--btn-bg/-fg/-accent)
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height);
  padding-block: 0;
  padding-inline: 30px;
  border: var(--border-width) solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--track);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 180ms 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 — flat navy monolith (no gradient, no resting shadow); hover deepens + lifts. */
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--btn-bg, var(--accent-strong));
    transform: translateY(-2px);
  }
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — distinct, lower-priority NEUTRAL treatment: ink outline → fills ink-black on hover.
   Deliberately NOT the navy accent, so it never reads as a second primary. */
.btn-secondary {
  background-color: var(--btn-bg, transparent);
  color: var(--btn-fg, var(--btn-accent, var(--ink)));
  border-color: 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));
  border-color: transparent;
  padding-inline: 10px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    color: var(--btn-accent, var(--accent));
    background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 8%, transparent);
  }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — hard square (radius 0), navy fill; used for slider arrows, lightbox glyphs. */
.btn-icon {
  width: var(--btn-height);
  height: var(--btn-height);
  padding: 0;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}
@media (hover: hover) {
  .btn-icon:hover { background-color: var(--btn-bg, var(--accent-strong)); transform: translateY(-2px); }
}
.btn-icon:active { transform: translateY(0); }
.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 — the ONE smaller control; only height + inline padding shrink. */
.btn--sm { min-height: var(--btn-height-sm); padding-inline: 20px; }

/* ============================================================================
   MOVING ARROW = the brand's ∧ roof-apex (never a generic →)
   ============================================================================ */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
.arrow {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: none;
  background-color: currentColor;   /* inherits the label colour: white on primary, navy on links */
  -webkit-mask: var(--motif-apex) center / contain no-repeat;
          mask: var(--motif-apex) center / contain no-repeat;
  transition: transform 180ms ease;
}
@media (hover: hover) {
  .with-arrow:hover .arrow,
  .btn:hover .arrow { transform: translateY(-3px); }   /* rising ridge */
}
/* Continuous loop (standalone hint — „scroll", hero cue). Keep it subtle. */
.arrow-loop { animation: apex-nudge 1.4s ease-in-out infinite; }
@keyframes apex-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ============================================================================
   HOVER VOCABULARY (utilities)
   ============================================================================ */
/* 1 — powiększenie (scale) */
.hover-scale { transition: transform 180ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.03); } }
.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); line-height: 0; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
@media (hover: hover) { .media:hover img { transform: scale(1.05); } }

/* roof-pitch clip — the logo apex, matching the approved photo-frame (--bx-pitch:15%) */
.roof-clip {
  -webkit-clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 15%, 50% 0%, 100% 15%, 100% 100%, 0% 100%);
}

/* 2 — uniesienie (lift + shadow); shadow is interaction feedback only (rest stays flat) */
.hover-lift { transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease; }
@media (hover: hover) {
  .hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3 — zmiana koloru (fill / tint 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); }
}
.hover-tint { transition: color 180ms ease, border-color 180ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--accent); border-color: var(--accent); }
}

/* 5 — dodanie podkreślenia (animated 2px navy underline, grows from 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;
  transition: background-size 200ms ease, color 180ms ease;
  padding-bottom: 3px;
}
@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%; }

/* ============================================================================
   CARDS / TILES — flat, hairline border; hover lifts + reveals the ∧ section-tick
   ============================================================================ */
.card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  color: var(--ink);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 180ms ease, border-color 180ms ease;
}
/* ∧ apex tick — the „szczyt kalenicy" opener at component scale; hidden until hover */
.card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 24px;
  height: 12px;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background-color: var(--accent);
  -webkit-mask: var(--motif-apex) top center / contain no-repeat;
          mask: var(--motif-apex) top center / contain no-repeat;
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
  }
  .card:hover::before { opacity: 1; transform: translateX(-50%) scaleY(1); }
  .card:hover img { transform: scale(1.04); }
  .card:hover .arrow { transform: translateY(-3px); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* .card is padless so flush media reaches the edges; text lives in a padded inner wrapper. */
.card-body { padding: 24px var(--padding-horizontal); color: var(--ink); }

/* ============================================================================
   INPUTS
   ============================================================================ */
.field {
  width: 100%;
  padding: 14px 16px;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field::placeholder { color: var(--ink-soft); }
.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) 22%, transparent);
}
.field:user-invalid { border-color: #e5484d; }

/* ============================================================================
   CONTENT ICONS (monochrome, recolored via --icon-color only)
   ============================================================================ */
.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 NUMBER BADGE — hard square (sharp brand), optically centred digits
   ============================================================================ */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-heading);
}
.step-num {
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ============================================================================
   BRAND ORNAMENTS (derived from the logo motif — use sparingly, a few well-placed)
   ============================================================================ */
/* eyebrow / label — wersaliki, tracked, in the heading face */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
/* standalone ∧ section-opener marker */
.section-tick {
  display: block;
  width: 34px;
  height: 16px;
  background-color: var(--accent);
  -webkit-mask: var(--motif-apex) center / contain no-repeat;
          mask: var(--motif-apex) center / contain no-repeat;
}
/* potrójny separator (— — —) as a section closer */
.tri-rule { display: inline-flex; align-items: center; gap: 10px; }
.tri-rule > i { display: block; width: 22px; height: 2px; background: var(--accent); }

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

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