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

:root {
  /* Colors */
  --black3: #1b1a19;
  --white: #ffffff;
  --brand: #f5d108;
  --light1: #f2f4f5;
  --black1: #444548;
  --light2: #dbdedf;
  --light3: #c0c2c3;
  --black2: #272728;
  --dark-graphite: #252525;

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

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

/* 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-nav {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: 0.01em;
}

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

.text-64px-title {
  font-family: "Teko", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 0.92;
}

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

.text-36px-title {
  font-family: "Teko", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 38.4px;
}

.text-18-px-button {
  font-family: "Teko", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.text-52px-title {
  font-family: "Teko", sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 57.6px;
}

.text-28px-title {
  font-family: "Teko", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 31.2px;
}

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

.text-32px-title {
  font-family: "Teko", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 27.4px;
}

/* UI signature - derived from the design; every component honours these:
   1) Primary CTA = FLAT solid brand yellow (--brand #f5d108) with a near-black (--black3) label,
      condensed Teko SemiBold 18px UPPERCASE, 58px tall, 32px side padding, 4px corners, NO shadow,
      optional trailing 16px icon at a 10px gap. Yellow is never a text colour on white.
   2) Icons live in a filled near-black square CHIP (--black3, 2px corners) - the header phone CTA
      is a yellow button with a 50px black chip inset 4px on the left (pl 4 / pr 24 / gap 16) holding
      a white phone glyph. Content icons use the same chip with the glyph painted yellow.
   3) Sharp, flat geometry: 2px / 4px corners, no pills, no soft blurred shadows anywhere. Surfaces
      separate with ONE 1px neutral hairline (--light2 / --light3 on white, like the hero badge).
   4) The yellow EDGE BAR: the hero closes with a thick 10px brand-yellow bottom border. At
      component scale this is the depth language - on hover a card / tile rises 4px onto a hard
      0-blur yellow ledge (0 4px 0 --accent); a button rises 2px onto a hard 2px ink ledge.
   5) Uppercase UI voice with a highlighter: nav = Manrope 16px UPPERCASE, 0.01em tracking, ink,
      the current page in Bold; nav / text-link hover = a yellow marker block sweeping in from the
      left BEHIND the ink text (ink on yellow stays readable, unlike a yellow underline). */

:root {
  /* Accent = the colour of the drawn CTA ("Bezpłatna wycena", phone CTA): Brand yellow. */
  --accent: var(--brand, #f5d108);
  --accent-2: var(--accent);                     /* solid CTA, no gradient */
  --accent-contrast: var(--black3, #1b1a19);     /* ink label on yellow (white on yellow fails) */

  /* Semantic neutrals (palette tokens by name, Figma values as fallback). */
  --ink: var(--black3, #1b1a19);
  --ink-soft: var(--black1, #444548);
  --surface: var(--white, #ffffff);
  --surface-2: var(--light1, #f2f4f5);
  --on-dark: var(--white, #ffffff);
  --border: var(--light2, #dbdedf);              /* card / divider hairline */
  --border-strong: var(--light3, #c0c2c3);       /* input outline, hero badge outline */
  --border-width: 1px;                           /* ONE border width site-wide */
  --focus-ring: var(--ink);

  /* Radius scale - the design is sharp: 2px chips, 4px everything interactive. */
  --radius-xs: 2px;                              /* icon chip inside a button */
  --radius-sm: 4px;                              /* inputs, badges, icon buttons */
  --radius-md: 4px;                              /* cards / tiles (Figma Border-radius = 4) */
  --radius-lg: 8px;                              /* large containers, big form panels */
  --radius-pill: 999px;                          /* not used by the brand; kept for the contract */
  --btn-radius: 4px;                             /* the primary CTA's real radius (also slider arrows) */

  /* Button geometry (from Figma: h 58, px 32, gap 10, Teko SemiBold 18 uppercase). */
  --btn-height: 58px;
  --btn-height-sm: 44px;
  --btn-pad-inline: 32px;
  --btn-gap: 10px;
  --btn-font-size: 18px;
  --btn-weight: 600;
  --btn-shadow: none;                            /* flat at rest - the design draws no shadow */
  --btn-ledge: var(--ink);                       /* hard hover ledge under a lifted button */

  /* Depth: hard 0-blur ledges only (flat brand - never mixed with soft blur). */
  --lift-card: -4px;
  --ledge-card: 0 4px 0 var(--accent);
  --ledge-btn: 0 2px 0 var(--btn-ledge);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-in: 200ms;
  --t-out: 150ms;
}

/* Dark bands (hero, footer, dark CTA strips): recolour the controls, never reshape them. */
[data-tone="dark"] {
  --btn-accent: var(--on-dark);
  --btn-fg: var(--ink);
  --btn-ledge: var(--light3, #c0c2c3);
  --btn-icon-bg: var(--on-dark);
  --btn-icon-fg: var(--ink);
  --focus-ring: var(--accent);
  --link-hover-fg: var(--ink);
  --marker-h: 100%;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap, 10px);
  box-sizing: border-box;
  min-height: var(--btn-height, 58px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 32px);
  border: var(--border-width, 1px) solid transparent;
  border-radius: var(--btn-radius, 4px);
  font-family: var(--btn-font, var(--font-heading, "Teko", sans-serif));
  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);
  font-variant-caps: var(--btn-caps, normal);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--t-out) ease,
    color var(--t-out) ease,
    border-color var(--t-out) ease,
    transform var(--t-out) ease,
    box-shadow var(--t-out) ease;
}
/* Optical centring of the condensed caps label (the design trims to cap height). */
.btn__label {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
@media (hover: hover) {
  .btn:hover {
    transition-duration: var(--t-in);
    transition-timing-function: ease-out;
  }
}

/* Primary - flat yellow, ink label, no resting shadow. Hover: rises 2px onto a hard ink ledge. */
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--ledge-btn);
  }
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow, none);
  transition-duration: 100ms;
}

/* Secondary - neutral ink outline (no secondary is drawn; never a second yellow).
   Hover: fills with ink, label flips to white (button-size inversion only). */
.btn-secondary {
  background-color: transparent;
  color: 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(--on-dark));
  }
}
.btn-secondary:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}

/* Ghost / text - no chrome until hover, then a faint neutral tint. */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-accent, var(--ink));
  padding-inline: 12px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background-color: color-mix(in srgb, var(--btn-accent, var(--ink)) 8%, transparent);
  }
}
.btn-ghost:active {
  background-color: color-mix(in srgb, var(--btn-accent, var(--ink)) 14%, transparent);
  transition-duration: 100ms;
}

/* Small - the one deliberate compact size: only height + inline padding shrink. */
.btn--sm {
  min-height: var(--btn-height-sm, 44px);
  padding-inline: 20px;
}

/* Chip CTA (header / footer phone button): yellow button with a black icon chip inset 4px.
   <Button variant="primary" class="btn-chip"><span slot="icon" class="btn__chip">svg</span>…</Button> */
.btn-chip {
  padding-inline: 4px 24px;
  gap: 16px;
}
.btn__chip {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--btn-height, 58px) - 8px);
  height: calc(var(--btn-height, 58px) - 8px);
  border-radius: var(--radius-xs, 2px);
  background-color: var(--ink);
  color: var(--on-dark);
}
.btn__chip > svg,
.btn__chip > img {
  width: 64%;
  height: 64%;
  display: block;
}
.btn--sm .btn__chip {
  width: calc(var(--btn-height-sm, 44px) - 8px);
  height: calc(var(--btn-height-sm, 44px) - 8px);
}

/* Icon button - a black square chip (slider arrows, lightbox close). Hover: swaps to yellow. */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius, 4px);
  background-color: var(--btn-icon-bg, var(--ink));
  color: var(--btn-icon-fg, var(--on-dark));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-out) ease, color var(--t-out) ease, transform var(--t-out) ease;
}
.btn-icon > svg,
.btn-icon > img {
  width: 42%;
  height: 42%;
  display: block;
}
@media (hover: hover) {
  .btn-icon:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
    transition-duration: var(--t-in);
  }
}
.btn-icon:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}
.btn-icon:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}
.btn-icon:disabled,
.btn-icon[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================================
   LINKS
   ========================================================================= */

/* Nav link - Manrope UPPERCASE, current page in Bold (as drawn); hover = yellow marker. */
.menu-link {
  color: inherit;
  text-decoration: none;
  text-transform: var(--nav-transform, uppercase);
  letter-spacing: var(--nav-tracking, 0.01em);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0% var(--marker-h, 40%);
  transition: background-size var(--t-out) ease, color var(--t-out) ease;
}
.menu-link[aria-current="page"] {
  font-weight: 700;
}
@media (hover: hover) {
  .menu-link:hover {
    background-size: 100% var(--marker-h, 40%);
    color: var(--link-hover-fg, inherit);
    transition-duration: var(--t-in);
    transition-timing-function: var(--ease-out);
  }
}
.menu-link:active {
  background-size: 100% var(--marker-h, 40%);
  color: var(--link-hover-fg, inherit);
}
.menu-link:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 4px;
  border-radius: var(--radius-xs, 2px);
}

/* Inline text link - 1px ink hairline at rest; hover sweeps the yellow marker in behind it. */
.link-underline {
  color: inherit;
  text-decoration: none;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 90%, 0 100%;
  background-size: 0% var(--marker-h, 40%), 100% 1px;
  transition: background-size var(--t-out) ease, color var(--t-out) ease;
}
@media (hover: hover) {
  .link-underline:hover {
    background-size: 100% var(--marker-h, 40%), 100% 1px;
    color: var(--link-hover-fg, inherit);
    transition-duration: var(--t-in);
    transition-timing-function: var(--ease-out);
  }
}
.link-underline:active {
  background-size: 100% var(--marker-h, 40%), 100% 1px;
  color: var(--link-hover-fg, inherit);
}
.link-underline:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
  border-radius: var(--radius-xs, 2px);
}
.link-underline[aria-current="page"] {
  background-size: 100% var(--marker-h, 40%), 100% 1px;
  color: var(--link-hover-fg, inherit);
}
.link-underline-center {
  background-position: 50% 90%, 0 100%;
}

/* =========================================================================
   CARDS / TILES
   ========================================================================= */
.card {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--radius-md, 4px);
  overflow: hidden;
  transition: transform var(--t-out) ease, box-shadow var(--t-out) ease;
}
.card-body {
  padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px);
}
/* Media inside a card zooms within its clipped frame; icons / logos (plain img in the body) don't. */
.card > img,
.card :is(.media, .card-media) img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.card .media {
  border-radius: 0;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(var(--lift-card, -4px));
    box-shadow: var(--ledge-card);
    transition-duration: var(--t-in);
    transition-timing-function: var(--ease-out);
  }
  .card:hover > img,
  .card:hover :is(.media, .card-media) img {
    transform: scale(1.05);
  }
  .card:hover .arrow {
    transform: var(--arrow-nudge, translateX(4px));
  }
}
.card:active {
  transform: translateY(-1px);
  transition-duration: 100ms;
}
a.card:focus-visible,
.card a:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}
/* Decoration never overlaps a control: a section-added corner motif on a card yields
   automatically when the card carries its own control. The base itself ships no motif. */
.card::before {
  pointer-events: none;
}
.card:has(:is(.btn, .btn-icon, button, [class*="badge"], [class*="arrow"]))::before {
  content: none;
}

/* Media frame utility - clip + zoom the image, never the box. */
.media {
  overflow: hidden;
  border-radius: var(--radius-md, 4px);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
@media (hover: hover) {
  .media:hover img {
    transform: scale(1.05);
  }
}

/* =========================================================================
   INPUTS
   ========================================================================= */
.field {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--btn-height, 58px);           /* lines up with the CTA in one row */
  padding: 16px;
  border: var(--border-width, 1px) solid var(--border-strong);
  border-radius: var(--radius-sm, 4px);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--t-out) ease, box-shadow var(--t-out) ease;
}
textarea.field {
  min-height: 120px;
  resize: vertical;
}
.field::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 80%, var(--surface));
  opacity: 1;
}
@media (hover: hover) {
  .field:hover {
    border-color: var(--ink-soft);
  }
}
.field:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);      /* the yellow edge bar, inside the box */
}
.field:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}
.field:disabled {
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.field:user-invalid {
  border-color: var(--error, #c8341c);
}

/* =========================================================================
   HOVER VOCABULARY (utilities)
   ========================================================================= */

/* 1. Powiększenie - icons / media only, never a box with text. */
.hover-scale {
  transition: transform var(--t-out) ease;
}
@media (hover: hover) {
  .hover-scale:hover {
    transform: scale(1.04);
    transition-duration: var(--t-in);
  }
}
.hover-scale:active {
  transform: scale(1);
}

/* 2. Uniesienie - rises 4px onto the hard yellow edge bar (signature 4). */
.hover-lift {
  transition: transform var(--t-out) ease, box-shadow var(--t-out) ease;
}
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(var(--lift-card, -4px));
    box-shadow: var(--ledge-card);
    transition-duration: var(--t-in);
    transition-timing-function: var(--ease-out);
  }
}
.hover-lift:active {
  transform: translateY(-1px);
}

/* 3. Zmiana koloru - fill swap to yellow with ink text (chip / row / button size only). */
.hover-fill {
  transition: background-color var(--t-out) ease, color var(--t-out) ease;
}
@media (hover: hover) {
  .hover-fill:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
    transition-duration: var(--t-in);
  }
}
.hover-fill:active {
  background-color: color-mix(in srgb, var(--accent) 90%, var(--ink));
  color: var(--accent-contrast);
}
/* Outline chips: hairline turns ink (colour only, width reserved at rest). */
.hover-tint {
  transition: border-color var(--t-out) ease, color var(--t-out) ease;
}
@media (hover: hover) {
  .hover-tint:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}
:is(.hover-scale, .hover-lift, .hover-fill, .hover-tint):focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}

/* 4. Ruchoma strzałka - the arrow moves along the direction it points (--arrow-nudge). */
.with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.with-arrow .arrow {
  display: inline-block;
  transition: transform var(--t-out) ease;
}
@media (hover: hover) {
  .with-arrow:hover .arrow {
    transform: var(--arrow-nudge, translateX(4px));
    transition-duration: var(--t-in);
  }
}
.with-arrow:active .arrow {
  transform: translateX(0);
}
.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 (marker + hairline) and .menu-link above. */

/* =========================================================================
   SMALL SHARED PIECES
   ========================================================================= */

/* Content icon (monochrome mask) - paint ONLY via --icon-color. */
.svc-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: var(--icon-color, var(--ink));
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--t-out) ease;
}
/* Signature 2: the black icon chip; the glyph inside is yellow. */
.icon-chip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs, 2px);
  background-color: var(--ink);
  --icon-color: var(--accent);
  color: var(--accent);
}
.icon-chip > svg,
.icon-chip > img,
.icon-chip > .svc-icon {
  width: 64%;
  height: 64%;
  display: block;
}

/* Step number badge - square (sharp brand), yellow, ink digits. */
.step-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm, 4px);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-heading, "Teko", sans-serif);
  font-weight: 600;
  font-size: 28px;
}
.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;
}

/* Eyebrow (hero: Manrope 16px UPPERCASE, 16px icon at an 8px gap). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 16px;
  line-height: 1.4;
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, 0.01em);
  font-variant-caps: var(--eyebrow-caps, normal);
}
/* Heading marks: EMPTY shells. Nothing renders until a section sets --mark: url(<picked file>). */
.eyebrow-mark,
.heading-mark--mask,
.heading-line {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  background-color: var(--mark-color, var(--accent));
  -webkit-mask: var(--mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
  mask: var(--mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
  pointer-events: none;
}
.heading-line {
  display: block;
  width: 140px;
  -webkit-mask-position: left center;
  mask-position: left center;
}

/* Missing dashboard value placeholder. */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* =========================================================================
   MOBILE + MOTION GUARDS
   ========================================================================= */
@media (max-width: 640px) {
  :root {
    --btn-pad-inline: 24px;
  }
  .card-body {
    padding: 20px;
  }
}

@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; }
