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

:root {

}

/* 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); } }

/* UI signature - derived from the design; every component honours these:
   1) Primary CTA = a glossy VERTICAL 4-stop blue gradient bar (#4BA9FF top -> #0085FF ->
      #0076E4 -> #004B90 bottom), radius 8px (NOT a pill), no outer shadow at rest, 44px tall,
      Inter SemiBold 16px UPPERCASE white label followed (16px gap) by a thin line arrow "->".
   2) Everything sits on charcoal: page #252525, raised cards/bands #302F30, radius 16px on all
      four corners, NO border, and the design's directional drop shadow 3px 6px 12px - light
      from the top-left, so every shadow on the site keeps x = y / 2.
   3) The secondary CTA has NO chrome: a white UPPERCASE label + the same line arrow
      ("WIĘCEJ WPISÓW ->") standing next to the gradient primary; hover only recolours it to
      light blue while the arrow slides along its own direction.
   4) Inputs are HOLLOW on dark: transparent fill, 2px light-grey (#D6D6D6) outline, radius 8px,
      light Inter text and placeholder; focus swaps the outline to accent blue + a soft blue
      ring. 2px is the ONE border width of the whole site.
   5) Blue = action or step: process tiles are SOLID #0085FF tiles (radius 16px) with a white
      mono icon and a white UPPERCASE label (.card--accent), icon buttons are solid blue discs
      with a white chevron (.btn-icon). Blue never fills body copy or a whole band. */

:root {
  /* Palette pinned from the design pixels. This file's Figma variable export is EMPTY
     (tokens.css `:root {}`), so these are the only colour sources. Components and sections
     use the SEMANTIC aliases below, never the --pal-* values directly. */
  --pal-blue: #e3000b;            /* MobilTir: czerwień z logo (było #0085ff) */
  --pal-blue-light: #ff3b42;
  --pal-blue-mid: #c4000a;
  --pal-blue-deep: #7d0006;
  --pal-charcoal: #121212;        /* MobilTir: czerń z logo (było #252525) */
  --pal-charcoal-2: #1e1e1e;
  --pal-title: #f9f9f9;
  --pal-text: #d6d6d6;
  --pal-white: #ffffff;
  --pal-black: #000000;
  --pal-error: #ff6b6b;

  /* Accent = the primary CTA colour (blue gradient, solid stop #0085FF). */
  --accent: var(--pal-blue);
  --accent-2: var(--pal-blue-deep);          /* dark END of the CTA gradient */
  --accent-light: var(--pal-blue-light);     /* accent TEXT/hover on charcoal (6:1) */
  --accent-on-light: var(--pal-blue-mid);    /* accent TEXT on a white band (4.6:1) */
  --accent-contrast: var(--pal-white);
  --brand: var(--accent);                   /* komponenty huba czytają --brand (zapas: niebieski) */
  --brand-2: var(--accent-2);
  --accent-gradient: linear-gradient(180deg, var(--pal-blue-light) 0%, var(--pal-blue) 31.5%, var(--pal-blue-mid) 49.5%, var(--pal-blue-deep) 100%);

  /* Surfaces + ink. The site is DARK by default: --ink is the light text on --surface. */
  --surface: var(--pal-charcoal);
  --surface-2: var(--pal-charcoal-2);
  --surface-dark: var(--pal-charcoal);
  --surface-dark-2: var(--pal-charcoal-2);
  --surface-light: var(--pal-white);
  --ink: var(--pal-title);
  --ink-soft: var(--pal-text);
  --on-dark: var(--pal-title);
  --on-dark-soft: var(--pal-text);
  --on-light: var(--pal-black);
  --border-width: 2px;
  --border: color-mix(in srgb, var(--on-dark) 14%, transparent);
  --focus-ring: var(--accent-light);

  /* Radius scale read off the design: inputs/buttons 8, cards/tiles/photos 16, big panels 32. */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --btn-radius: var(--radius-sm);            /* the CTA is an 8px bar, not a pill */

  /* Button geometry (Figma: 44px bar, label 16px Inter 600 uppercase, 16px label-arrow gap). */
  --btn-height: 44px;
  --btn-height-sm: 36px;
  --btn-pad-inline: 40px;
  --btn-pad-inline-sm: 24px;
  --btn-gap: 16px;
  --btn-font: "Inter", var(--font-body, sans-serif);
  --btn-font-size: 16px;
  --btn-weight: 600;
  --btn-shadow: none;                        /* the design's CTA has no resting shadow */
  --btn-ink: var(--on-dark);                 /* secondary / ghost label */
  --btn-ink-hover: var(--accent-light);      /* secondary / ghost hover label */
  /* The design's CTA arrow: a thin line "->" (13 x 8.7), painted by <Button arrow> as a mask. */
  --btn-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h12.5M9.5 1l4 4-4 4'/%3E%3C/svg%3E");

  /* Inputs */
  --field-bg: transparent;
  --field-fg: var(--on-dark);
  --field-border: var(--on-dark-soft);
  --field-border-hover: var(--on-dark);

  /* Depth: ONE light source top-left (x = y / 2), two layers, tinted to the charcoal. */
  --shadow-sm: 1px 2px 3px rgb(10 9 10 / 0.18), 3px 6px 12px rgb(10 9 10 / 0.25);
  --shadow-md: 2px 4px 6px rgb(10 9 10 / 0.2), 5px 10px 24px -4px rgb(10 9 10 / 0.42);
  --shadow-lg: 3px 6px 10px rgb(10 9 10 / 0.22), 10px 20px 48px -8px rgb(10 9 10 / 0.5);
  --shadow-cta: 1px 2px 3px color-mix(in srgb, var(--accent-2) 45%, transparent), 4px 8px 18px -4px color-mix(in srgb, var(--accent) 50%, transparent);

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

  accent-color: var(--accent);               /* native checkbox / radio (consent box) */
}

/* A white band (the slanted "dlaczego my" bars, any light panel) flips the neutral
   controls; the gradient primary stays as it is. */
[data-tone="light"] {
  --btn-ink: var(--on-light);
  --btn-ink-hover: var(--accent-on-light);
  --field-bg: var(--surface-light);
  --field-fg: var(--on-light);
  --field-border: color-mix(in srgb, var(--on-light) 30%, transparent);
  --field-border-hover: color-mix(in srgb, var(--on-light) 60%, transparent);
  --focus-ring: var(--accent-on-light);
}

/* ================================ BUTTONS ================================ */

.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap, 16px);
  min-height: var(--btn-height, 44px);
  max-width: 100%;
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 40px);
  border: var(--border-width, 2px) solid transparent;
  border-radius: var(--btn-radius, var(--radius-sm, 8px));
  font-family: var(--btn-font, "Inter", sans-serif);
  font-size: var(--btn-font-size, 16px);
  font-weight: var(--btn-weight, 600);
  line-height: 1;
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-tracking, normal);
  font-variant-caps: var(--btn-caps, normal);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-out, 150ms) ease,
    box-shadow var(--dur-out, 150ms) ease,
    color var(--dur-out, 150ms) ease,
    background-color var(--dur-out, 150ms) ease;
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary: the glossy vertical blue gradient bar (trait 1). */
.btn-primary {
  background: var(--btn-bg, var(--accent-gradient));
  background-origin: border-box;
  color: var(--btn-fg, var(--accent-contrast, #fff));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transition-duration: var(--dur-in, 200ms);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta);
  }
}
.btn-primary:active {
  transition-duration: var(--dur-press, 100ms);
  transform: translateY(0);
  box-shadow: var(--btn-shadow, none);
}

/* Secondary: chrome-less text CTA (trait 3). The 2px border stays reserved + transparent. */
.btn-secondary {
  padding-inline: 16px;
  background-color: transparent;
  color: var(--btn-fg, var(--btn-ink, var(--on-dark)));
}
@media (hover: hover) {
  .btn-secondary:hover {
    transition-duration: var(--dur-in, 200ms);
    color: var(--btn-accent, var(--btn-ink-hover, var(--accent-light)));
  }
}
.btn-secondary:active {
  transition-duration: var(--dur-press, 100ms);
  transform: scale(0.98);
}

/* Ghost: tertiary action (cancel, close, "more" inside a dense row). No arrow, tint on hover. */
.btn-ghost {
  padding-inline: 12px;
  background-color: transparent;
  color: var(--btn-fg, var(--btn-ink, var(--on-dark)));
}
@media (hover: hover) {
  .btn-ghost:hover {
    transition-duration: var(--dur-in, 200ms);
    background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 16%, transparent);
  }
}
.btn-ghost:active {
  transition-duration: var(--dur-press, 100ms);
  background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 24%, transparent);
}

/* Icon button: solid blue disc + white glyph (trait 5). */
.btn-icon {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background-color: var(--btn-icon-bg, var(--accent));
  color: var(--btn-icon-fg, var(--accent-contrast, #fff));
  cursor: pointer;
  transition:
    transform var(--dur-out, 150ms) ease,
    background-color var(--dur-out, 150ms) ease;
}
.btn-icon > svg,
.btn-icon > img {
  width: 42%;
  height: 42%;
  display: block;
}
@media (hover: hover) {
  .btn-icon:hover {
    transition-duration: var(--dur-in, 200ms);
    transform: scale(1.06);
    background-color: color-mix(in srgb, var(--btn-icon-bg, var(--accent)) 88%, black);
  }
}
.btn-icon:active {
  transition-duration: var(--dur-press, 100ms);
  transform: scale(0.96);
}
.btn-icon:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.btn-icon:disabled,
.btn-icon[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* The ONE compact size (header CTA scale): only height + inline padding shrink. */
.btn--sm {
  min-height: var(--btn-height-sm, 36px);
  padding-inline: var(--btn-pad-inline-sm, 24px);
}

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

/* Inline "read more" / text link: animated underline growing from the left. */
.link-underline {
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition:
    background-size var(--dur-out, 150ms) ease,
    color var(--dur-out, 150ms) ease;
}
@media (hover: hover) {
  .link-underline:hover {
    transition-duration: 220ms, var(--dur-in, 200ms);
    background-size: 100% 2px;
    color: var(--btn-ink-hover, var(--accent-light));
  }
}
.link-underline:active { color: var(--btn-ink-hover, var(--accent-light)); }
.link-underline:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 3px;
  border-radius: 2px;
  background-size: 100% 2px;
}
.link-underline[aria-current="page"] { background-size: 100% 2px; }

/* Nav link: the menu hover of this brand = a 2px blue underline growing from the left. */
.menu-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  text-transform: var(--nav-transform, uppercase);
  letter-spacing: var(--nav-tracking, normal);
  font-variant-caps: var(--nav-caps, normal);
  transition:
    background-size var(--dur-out, 150ms) ease,
    color var(--dur-out, 150ms) ease;
}
@media (hover: hover) {
  .menu-link:hover {
    transition-duration: 220ms;
    background-size: 100% 2px;
  }
}
.menu-link:active { color: var(--accent-light); }
.menu-link:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 4px;
  border-radius: 2px;
}
.menu-link[aria-current="page"] {
  background-size: 100% 2px;
  color: var(--accent-light);
}

/* Eyebrow over a heading: Montserrat Bold, accent blue, uppercase (20px is large text: 4:1 ok). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--accent);
  text-transform: var(--eyebrow-transform, uppercase);
  letter-spacing: var(--eyebrow-tracking, normal);
  font-variant-caps: var(--eyebrow-caps, normal);
}

/* ============================= HOVER UTILITIES ============================= */

/* 1. Powiększenie - for media / icons only, never a box with text in it. */
.hover-scale { transition: transform var(--dur-out, 150ms) ease; }
@media (hover: hover) {
  .hover-scale:hover { transition-duration: var(--dur-in, 200ms); transform: scale(1.04); }
}
.hover-scale:active { transition-duration: var(--dur-press, 100ms); transform: scale(0.99); }

/* Image inside a clipped frame (gallery tile, card photo). */
.media {
  overflow: hidden;
  border-radius: var(--radius-md, 16px);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease-out;
}
@media (hover: hover) {
  .media:hover img { transform: scale(1.05); }
}

/* 2. Uniesienie - lift + one elevation step. */
.hover-lift {
  transition:
    transform var(--dur-out, 150ms) var(--ease-out),
    box-shadow var(--dur-out, 150ms) ease;
}
@media (hover: hover) {
  .hover-lift:hover {
    transition-duration: var(--dur-in, 200ms);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
}
.hover-lift:active { transition-duration: var(--dur-press, 100ms); transform: translateY(-2px); }

/* 3. Zmiana koloru - fill swap to the accent (chips / rows, never a large panel). */
.hover-fill {
  transition:
    background-color var(--dur-out, 150ms) ease,
    color var(--dur-out, 150ms) ease;
}
@media (hover: hover) {
  .hover-fill:hover {
    transition-duration: var(--dur-in, 200ms);
    background-color: var(--accent);
    color: var(--accent-contrast, #fff);
  }
}
.hover-fill:active { background-color: color-mix(in srgb, var(--accent) 88%, black); }

/* 4. Ruchoma strzałka - the arrow slides along the direction it points (-> = right). */
.with-arrow { display: inline-flex; align-items: center; gap: var(--btn-gap, 16px); }
.with-arrow .arrow {
  display: inline-block;
  transition: transform var(--dur-out, 150ms) ease;
}
@media (hover: hover) {
  .with-arrow:hover .arrow {
    transition-duration: var(--dur-in, 200ms);
    transform: var(--arrow-nudge, translateX(4px));
  }
}
.with-arrow:focus-visible .arrow { transform: var(--arrow-nudge, translateX(4px)); }
.with-arrow:active .arrow { transform: translateX(1px); }

/* Standalone looping hint (scroll-down chevron). */
.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 / .menu-link above. Centre-out variant: */
.link-underline-center { background-position: 50% 100%; }

/* ================================= CARDS ================================= */

/* Charcoal slab, 16px on all four corners, no border, directional shadow (trait 2). */
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, var(--surface-2));
  color: var(--card-fg, var(--on-dark));
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform var(--dur-out, 150ms) var(--ease-out),
    box-shadow var(--dur-out, 150ms) ease;
}
.card img {
  display: block;
  transition: transform 220ms ease-out;
}
@media (hover: hover) {
  .card:hover {
    transition-duration: var(--dur-in, 200ms);
    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:active { transition-duration: var(--dur-press, 100ms); transform: translateY(-2px); }
.card:focus-visible,
.card a:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
/* A purely informative card (not a link, no control inside) does not move. */
.card--static,
.card--static:hover,
.card--static:active { transform: none; box-shadow: var(--shadow-sm); }
.card--static:hover img { transform: none; }

/* Padded body: Figma offer card = 24px side inset, CTA pinned to the bottom, full width. */
.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}
.card-body > .btn:last-child {
  margin-top: auto;
  width: 100%;
}

/* Accent tile (process step): solid blue, white icon + white uppercase label, flat at rest. */
.card--accent {
  --card-bg: var(--accent);
  --card-fg: var(--accent-contrast, #fff);
  --icon-color: var(--accent-contrast, #fff);
  --focus-ring: var(--on-dark);
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: none;
}
.card--accent.card--static,
.card--accent.card--static:hover { box-shadow: none; }

/* ============================ CONTENT PRIMITIVES ============================ */

/* Mono icon painted by --icon-color (never set background-color directly). */
.svc-icon {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  background-color: var(--icon-color, var(--accent, currentColor));
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--dur-out, 150ms) ease;
}

/* Numbered step badge: solid blue disc, white number, optically centred. */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill, 999px);
  background-color: var(--accent);
  color: var(--accent-contrast, #fff);
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 24px;
}
.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 dashboard value ("[ telefon ]"): plain text, never inside an <a>. */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ================================= INPUTS ================================= */

/* Hollow on dark: transparent fill, 2px light outline, 8px radius (trait 4). */
.field {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: var(--border-width, 2px) solid var(--field-border);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--field-bg);
  color: var(--field-fg);
  font-family: "Inter", var(--font-body, sans-serif);
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color var(--dur-out, 150ms) ease,
    box-shadow var(--dur-out, 150ms) ease;
}
textarea.field { resize: vertical; min-height: 120px; }
.field::placeholder {
  color: color-mix(in srgb, var(--field-fg) 72%, transparent);
  opacity: 1;
}
@media (hover: hover) {
  .field:hover {
    transition-duration: var(--dur-in, 200ms);
    border-color: var(--field-border-hover);
  }
}
.field:focus,
.field:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field:user-invalid { border-color: var(--pal-error); }
.field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================================= MOBILE ================================= */

@media (max-width: 640px) {
  :root { --btn-pad-inline: 28px; }
  .card-body { padding: 24px 20px 20px; }
}

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

/* MobilTir: nagłówek podstron (O nas, Kontakt, Blog, polityka) ze zdjęciem w tle zamiast jasnego gradientu. */
:root {
  --page-hero-bg: linear-gradient(90deg, rgb(0 0 0 / 0.88) 0%, rgb(0 0 0 / 0.6) 55%, rgb(0 0 0 / 0.4) 100%), url("/tla/hero-tiry.webp") center 60% / cover no-repeat, #121212;
  --page-hero-fg: #ffffff;
  --page-hero-subtitle-fg: var(--pal-text);
}
