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

:root {
  /* Colors */
  --white: #ffffff;
  --light2: #dbdedf;
  --black3: #0a1721;
  --brand: #e1322f;
  --black2: #12222f;
  --black1: #5a606c;
  --light1: #f2f4f5;
  --light3: #c0c2c3;
  --icon-color: #e1322f;
  --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-accent {
  font-family: "Alexandria", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 22.4px;
  letter-spacing: 0.02em;
}

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

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

.text-64px-title {
  font-family: "Playfair Display", sans-serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 72px;
}

.text-16px-text {
  font-family: "Alexandria", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 22.4px;
}

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

.text-48px-title {
  font-family: "Playfair Display", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 57.6px;
}

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA = WHITE pill (90px radius) with a 2px brand-red (--brand #e1322f) outline and a
      dark (--black3) SemiBold label, carrying a trailing brand-red FILLED disc (~42px) that holds a
      white → arrow, flush to the right edge (padding 24px left / 8px right, gap 16px).
   2) Secondary CTA = transparent pill (90px radius) with a 2px NEUTRAL light-grey (--light3)
      outline and NO arrow; the label colour follows the band (dark on light, white on dark) so it
      always reads as lower priority than the red-accented primary.
   3) Cards keep ONE small 8px radius on ALL FOUR corners (never mixed/dropped corners), a hairline
      border tuned to the surface (--light2 on white, white@10% on dark) PLUS a soft two-layer
      ambient shadow dropping straight down (one light source, from above).
   4) Emphasis = ONE solid brand-red card, fully inverted (white text + white icons/arrows), sitting
      among otherwise neutral white cards — the brand's colour-inversion accent moment.
   5) Type signature = Playfair Display serif for titles and oversized brand-red serif step numerals;
      Alexandria SemiBold with negative tracking (-0.02em) for every button / label. */

:root {
  /* Accent (CTA colour) — the design's conversion red is --brand; the primary pill is white but every
     accent affordance (its border, its arrow disc, active states, the emphasis card) is this red. */
  --accent: var(--brand);               /* #e1322f */
  --accent-2: var(--brand);             /* CTA is NOT a gradient → second stop = the same red */
  --accent-contrast: var(--white);      /* readable text/icon on the accent */

  /* Separation */
  --border: var(--light2);              /* hairline on light surfaces (#dbdedf) */
  --ink: var(--black3);                 /* shadow-tint + body ink base (#0a1721) */

  /* Radius scale — design rounds by role: inputs small, cards 8px (the Figma token), big panels
     larger, buttons a 90px near-pill. */
  --radius-sm: 6px;                     /* inputs / small chips */
  --radius-md: var(--border-radius, 8px); /* cards / tiles — the design's 8px */
  --radius-lg: 16px;                    /* large containers / the hero lead-form card */
  --radius-pill: 999px;                 /* icon buttons / discs */
  --btn-radius: 90px;                   /* the primary button's REAL radius (also shapes Slider arrows) */

  /* Button geometry — from the close-ups (~55px tall, 18px SemiBold label, negative tracking) */
  --btn-height: 55px;
  --btn-height-sm: 42px;
  --btn-pad-inline: 32px;
  --btn-font-size: 18px;
  --btn-weight: 600;
  --btn-tracking: -0.02em;
  --btn-shadow: none;                   /* the design's primary pill is flat (no resting shadow) */

  /* Elevation — tinted (never pure black), one light source from above, blur > y-offset */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
               0 4px 10px -4px color-mix(in srgb, var(--ink) 10%, transparent);
  --shadow-md: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent),
               0 14px 28px -12px color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow-lg: 0 8px 16px -6px color-mix(in srgb, var(--ink) 10%, transparent),
               0 25px 50px -12px color-mix(in srgb, var(--ink) 22%, transparent);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: var(--btn-height, 55px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 32px);
  border: 2px solid transparent;
  border-radius: var(--btn-radius, var(--radius-pill, 999px));
  font-family: "Alexandria", sans-serif;
  font-size: var(--btn-font-size, 18px);
  font-weight: var(--btn-weight, 600);
  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, filter 200ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent, var(--brand));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — white pill, brand outline, dark label, trailing brand-red arrow disc (signature #1).
   A section may recolour it on a coloured band via --btn-bg / --btn-fg / --btn-accent. */
.btn-primary {
  background-color: var(--btn-bg, var(--white));
  color: var(--btn-fg, var(--black3));
  border-color: var(--btn-accent, var(--accent, var(--brand)));
  padding-inline: 24px 8px;             /* room for the flush-right disc */
  box-shadow: var(--btn-shadow, none);
}
.btn-primary .arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill, 999px);
  background: var(--btn-accent, var(--accent, var(--brand)));
  color: var(--accent-contrast, var(--white));
}
.btn-primary .arrow > svg,
.btn-primary .arrow > img {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 200ms ease;
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent, var(--brand)) 45%, transparent);
  }
  .btn-primary:hover .arrow > svg,
  .btn-primary:hover .arrow > img { transform: var(--arrow-nudge, translateX(4px)); }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); }

/* Secondary — neutral light-grey outline pill, no arrow, label follows the band (signature #2). */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-fg, var(--black2));
  border-color: var(--btn-accent, var(--light3));
}
@media (hover: hover) {
  .btn-secondary:hover {
    border-color: var(--btn-fg, var(--black2));
    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(--black1, currentColor));
  border-color: transparent;
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — brand-red disc with a white glyph (matches the primary's arrow disc) */
.btn-icon {
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: none;
  border-radius: var(--radius-pill, 999px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg, var(--accent, var(--brand)));
  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); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--accent, var(--brand)); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small — only height + inline padding shrink */
.btn--sm { min-height: var(--btn-height-sm, 42px); padding-inline: 20px; }

/* ============================================================================
   HOVER UTILITIES (the standard vocabulary)
   ============================================================================ */
/* 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); }

/* media zoom inside a clipped frame */
.media { overflow: hidden; border-radius: var(--radius-md, var(--border-radius)); }
.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) */
.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 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent, var(--brand)); 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, var(--brand)); border-color: var(--accent, var(--brand)); }
}

/* 4 — ruchoma strzałka (moving arrow) */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.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) — inline text links */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent, var(--brand)), var(--accent, var(--brand)));
  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, var(--brand)); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent, var(--brand)); }
.link-underline-center { background-position: 50% 100%; }

/* ============================================================================
   CARDS / TILES
   ============================================================================ */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--border, var(--light2));
  border-radius: var(--radius-md, var(--border-radius)); /* ONE radius, all four corners */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  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, var(--brand)); outline-offset: 2px; }

/* padless card → padded inner wrapper for text so content never touches the edges */
.card-body { padding: 24px var(--padding-horizontal, 24px); }

/* Emphasis card — fully inverted brand-red tile among neutral cards (signature #4) */
.card--accent {
  background: var(--accent, var(--brand));
  border-color: transparent;
  color: var(--accent-contrast, var(--white));
}
.card--accent .svc-icon { --icon-color: var(--accent-contrast, var(--white)); }

/* ============================================================================
   INPUTS
   ============================================================================ */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #c0c2c3);
  border-radius: var(--radius-sm, var(--border-radius, 8px));
  background: var(--white);
  color: var(--black3);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3); }
.field:hover { border-color: var(--accent, var(--brand)); }
.field:focus {
  outline: none;
  border-color: var(--accent, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }

/* ============================================================================
   CONTENT ICONS (monochrome mask, recolourable)
   ============================================================================ */
.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;
}

/* soft tinted icon tile (the why-us feature marker) */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--light2, #dbdedf) 60%, transparent);
}

/* ============================================================================
   NUMBERED STEP MARKERS (process) — oversized brand-red serif numerals (signature #5)
   ============================================================================ */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill, 999px);
}
.step-num {
  font-family: "Playfair Display", serif;
  color: var(--accent, var(--brand));
  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; }
