/* Generated from Figma variables. Do not edit by hand — re-sync & regenerate from the Tokens tab. */

:root {
  /* Colors */
  --black3: #212222;
  --black1: #737373;
  --white: #ffffff;
  --brand: #e23d18;
  --brand-secondary: #2f5ea4;
  --icon-color: #e23d18;
  --light1: #f2f4f5;
  --light2: #dbdedf;
  --black2: #282827;
  --light3: #c0c2c3;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --cards-gap: 20px;
  --section-gap: 48px;
  --section-padding: 100px;

  /* Radius */
  --border-radius: 8px;
}

/* Section vertical rhythm — the ONE canonical top/bottom padding every <section>
   uses (padding-block: var(--section-pad-block)). A single site-wide ladder keeps
   the gaps between sections identical and steps them down on tablet/phone. Desktop
   seeds from the Figma --section-padding token when present, else 96px. */
:root { --section-pad-block: var(--section-padding, 96px); }
@media (max-width: 1023px) { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.7); } }
@media (max-width: 767px)  { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.5); } }

/* Typography */
.text-16px-text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

.text-18-px-button {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 23.4px;
  letter-spacing: -0.02em;
}

.text-20px-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 31.2px;
  letter-spacing: -0.02em;
}

.text-48px-title {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.02em;
}

.text-18px-text {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 23.4px;
}

.text-40px-title {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.02em;
}

.text-24px-title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 31.2px;
  letter-spacing: -0.02em;
}

.text-14px-text {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.text-20px-text {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.text-64px-title {
  font-family: "Poppins", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 70.4px;
  letter-spacing: -0.02em;
}

.text-28px-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 27.4px;
  letter-spacing: -0.02em;
}

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a FLAT solid orange (var(--brand) #e23d18) block, 8px radius (squared, not a pill),
      white UPPERCASE SemiBold label, with a trailing SOLID filled triangle (►) glyph — zero shadow at rest.
   2) Secondary CTA is the lower-priority treatment: transparent fill + 2px orange OUTLINE + dark (var(--black3))
      label + a rounder 12px radius + a filled triangle — never a second solid-orange clone of the primary.
   3) Eyebrow/section labels are a small SHARP-cornered SOLID orange tag with white uppercase text, flanked by
      angular chevron ticks; on dark bands the tag flips to a dark box with a 2px orange border.
   4) Image tiles are flush photos with EQUAL 8px radius on all four corners, a dark bottom gradient + white
      title, and a small ORANGE SQUARE badge in the bottom-right holding a white arrow — tiles are FLAT at rest.
   5) The language is sharp + flat industrial: 8px radius throughout, flat solid fills, two-tone UPPERCASE
      headlines (last phrase orange), NO blur shadows at rest — separation comes from surface steps
      (white / light1 / black3) and thin borders, not from soft blur. */

:root {
  /* Accent (CTA colour) — the design's primary button is solid orange = --brand. Solid, no gradient. */
  --accent: var(--brand);               /* #e23d18 — CTAs, active states, links, small marks */
  --accent-2: var(--brand);             /* solid CTA → gradient end == accent (no gradient) */
  --accent-contrast: var(--white);      /* readable label on the accent */
  --btn-shadow: none;                   /* primary button is FLAT at rest — the brand has no CTA shadow */

  /* Ink / surfaces — body text + separation language (surface steps, not blur) */
  --ink: var(--black3);                 /* #212222 primary text */
  --ink-soft: var(--black1);            /* #737373 secondary text */
  --on-dark: var(--white);              /* text on black3 bands */
  --surface: var(--white);
  --surface-2: var(--light1);           /* #f2f4f5 stepped-up surface */
  --surface-dark: var(--black3);
  --border: var(--light2);              /* #dbdedf quiet separator on light */
  --border-strong: var(--light3);       /* #c0c2c3 input outline */
  --border-width: 1px;

  /* Radius scale — this brand is SQUARED: 8px dominates (cards, inputs, primary btn); secondary is rounder (12px). */
  --radius-sm: 8px;                     /* inputs, primary button, cards (the design's dominant corner) */
  --radius-md: 12px;                    /* secondary button, medium containers */
  --radius-lg: 16px;                    /* large / hero containers */
  --radius-pill: 999px;                 /* dots, fully-round chips */
  --btn-radius: 8px;                    /* the PRIMARY button's REAL radius — also shapes the shared slider arrows */

  /* Button geometry — from the primary CTA close-up (height ~55px, pad 16px 32px, 18px SemiBold uppercase) */
  --btn-height: 55px;
  --btn-height-sm: 44px;
  --btn-pad-inline: 32px;
  --btn-font-size: 18px;
  --btn-weight: 600;
  --btn-transform: uppercase;
  --btn-tracking: -0.02em;

  /* Elevation — used only on hover/overlay; rest is flat. Tinted with ink, one light source (from above). */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-md: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent),
               0 14px 28px -12px color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-lg: 0 4px 8px color-mix(in srgb, var(--ink) 8%, transparent),
               0 24px 48px -16px color-mix(in srgb, var(--ink) 24%, transparent);
}

/* ============================================================================
   BUTTONS — one invariant shape site-wide; 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, 55px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 32px);
  border: var(--border-width, 1px) solid transparent;
  border-radius: var(--btn-radius, var(--radius-sm, 8px));
  font: inherit;
  font-size: var(--btn-font-size, 18px);
  font-weight: var(--btn-weight, 600);
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-tracking, -0.02em);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 200ms ease, box-shadow 200ms 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 solid orange + white label (the brand CTA). Per-band recolour via --btn-bg / --btn-fg. */
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--btn-bg, color-mix(in srgb, var(--accent) 90%, black));
  }
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — transparent + 2px orange outline + dark label, rounder (12px). Lower priority, NOT a second fill. */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-fg, var(--ink));
  border: 2px solid var(--btn-accent, var(--accent));
  border-radius: var(--radius-md, 12px);
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--accent));
    color: var(--btn-fg-hover, var(--accent-contrast, var(--white)));
  }
}
.btn-secondary:active { transform: scale(0.99); }

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

/* Icon button — squared orange chip (matches the brand's square corner badge), white glyph */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  border-radius: var(--radius-sm, 8px);
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}
@media (hover: hover) {
  .btn-icon:hover { transform: scale(1.08); background-color: color-mix(in srgb, var(--accent) 90%, black); }
}
.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 stay */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 20px; }

/* ============================================================================
   HOVER UTILITIES — the standard vocabulary (powiększenie / uniesienie / kolor / strzałka / podkreślenie)
   ========================================================================== */

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

/* Image inside a clipped frame — zoom the image, not the box */
.media { overflow: hidden; border-radius: var(--radius-sm, 8px); }
.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); } }

/* 2. Uniesienie — lift + shadow (rest is flat, so the shadow appears only on hover) */
.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 — fill / tint swap */
.hover-fill { transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast, var(--white)); }
}
.hover-tint { transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--accent); border-color: var(--accent); }
}

/* 4. Ruchoma strzałka — the trailing filled triangle (►) points RIGHT, so it nudges right */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: var(--arrow-nudge, 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 for inline text links (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;
  transition: background-size 220ms ease, color 200ms 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%; }

/* ============================================================================
   CARDS / TILES — flush image, equal 8px corners, FLAT at rest; lift + soft shadow on hover.
   The brand's orange square corner-badge is added BY SECTIONS (.card has no ::before motif → no collision).
   ========================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* .card is PADLESS so flush photos reach its edges — text content goes in this padded inner wrapper */
.card-body { padding: 24px var(--padding-horizontal, 24px); }

/* ============================================================================
   INPUTS (forms — hero / contact)
   ========================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: var(--border-width, 1px) solid var(--border-strong, #c0c2c3);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms 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) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }
.field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================================
   CONTENT ICONS — monochrome masks, recoloured ONLY via --icon-color
   ========================================================================== */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-color: var(--icon-color, var(--accent, var(--brand)));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* ============================================================================
   STEP NUMBER BADGE — optically-centred number in a disc
   ========================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent);
  color: var(--accent-contrast, var(--white));
}
.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;
}

/* ============================================================================
   Reduced motion
   ========================================================================== */
@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; }
