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

:root {
  /* Colors */
  --white: #ffffff;
  --light2: #d8d8d8;
  --black3: #171717;
  --black1: #737373;
  --brand: #c9232a;
  --brand-2: #9e0007;
  --light1: #f2f4f5;
  --light3: #b5b5b5;
  --text-white: #FFFFFF;
  --bia-y: #ffffff;
  --dark-2: #03111f;
  --black2: #272728;
  --dark-graphite: #252525;

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

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

/* 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-24px-title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 31.2px;
  letter-spacing: -0.02em;
}

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

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

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

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

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

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

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

.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) ZERO radius everywhere — every button, card, input, stat box and image tile has hard 90° corners (the design is uniformly sharp; nothing rounded, no pills).
   2) Primary CTA = a horizontal RED GRADIENT (var(--brand) #c9232a → var(--brand-2) #9e0007), white semibold uppercase-style label, fixed 58px tall, with a trailing red triangle "play" arrow.
   3) HARD 0-blur drop shadow offset straight down under every button (0 3px 0 #821217 darker-red for the primary; 0 3px 0 var(--brand) red under the dark secondary) — a printed bottom edge, never a soft blur; it deepens on hover and collapses on press.
   4) SECONDARY = a dark var(--black3) box with a thin neutral var(--black1) top/side border + white text, set apart from the primary only by its red hard-shadow bottom edge — a distinctly lower-priority, non-red treatment.
   5) RED is the recolour accent — monochrome brand-red icons (via mask), a small uppercase red eyebrow label above headings, and media framed by an offset red rectangle border. */

/* ----------------------------------------------------------------------------
   Semantic aliases — derived from the design, layered over tokens.css.
   tokens.css carries the raw palette/spacing/type; these turn them into the
   contract every component references. The design's PRIMARY CTA is the red
   gradient brand→brand-2, so --accent IS --brand. The whole design is RADIUS-0
   (the #1 signature), so the scale is uniformly 0 — kept in one place so no
   component can re-round itself.
---------------------------------------------------------------------------- */
:root {
  --accent: var(--brand);             /* CTA / button fill / active / icon paint = brand red */
  --accent-2: var(--brand-2);         /* darker end of the CTA gradient */
  --accent-contrast: var(--white);    /* readable label on the red accent */
  --accent-shadow: #821217;           /* the hard 0-blur shadow under the primary CTA (darker red) */

  --radius-sm: var(--border-radius, 0px);   /* inputs / chips — sharp */
  --radius-md: var(--border-radius, 0px);   /* cards / tiles — sharp */
  --radius-lg: var(--border-radius, 0px);   /* large containers — sharp */
  --radius-pill: var(--border-radius, 0px); /* buttons / icon buttons — sharp (this design has NO pills) */

  --btn-height: 58px;                 /* ONE button height site-wide (from the design's primary CTA) */
  --btn-height-sm: 44px;              /* the one deliberate compact button height */
}

/* ============================================================================
   BUTTONS — ONE invariant shape (height/radius/padding/label-type). Only COLOUR
   varies per band. Primary = red gradient + hard down-shadow; secondary = dark
   box + red hard-shadow bottom edge.
============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;                          /* room for the trailing triangle arrow */
  box-sizing: border-box;
  min-height: var(--btn-height, 58px);
  padding-block: 0;
  padding-inline: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill, var(--border-radius, 0px));
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  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(--brand);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — red gradient fill, white label, hard down-shadow (signature #2 + #3).
   A section on a coloured band may recolour it with a solid --btn-bg / --btn-fg. */
.btn-primary {
  background-color: var(--btn-bg, var(--accent, var(--brand)));
  background-image: var(--btn-bg, linear-gradient(90deg, var(--accent, var(--brand)), var(--accent-2, var(--brand-2))));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  border-color: transparent;
  box-shadow: 0 3px 0 var(--accent-shadow);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--accent-shadow);   /* lift + the hard edge deepens */
    filter: brightness(0.96);
  }
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-shadow);     /* pressed flat onto the edge */
  filter: brightness(0.94);
}

/* Secondary — dark box, neutral top/side border, red hard-shadow bottom edge (signature #4).
   A section may recolour it on a coloured band via --btn-bg (fill), --btn-fg (label),
   --btn-accent (border). */
.btn-secondary {
  background-color: var(--btn-bg, var(--black3, #171717));
  color: var(--btn-fg, var(--white));
  border-color: var(--btn-accent, var(--black1, #737373));
  box-shadow: 0 3px 0 var(--accent, var(--brand));
}
@media (hover: hover) {
  .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--accent, var(--brand));
    border-color: var(--accent, var(--brand));
  }
}
.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent, var(--brand));
}

/* Ghost / text — no chrome until hover; goes red on hover */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black2, currentColor));
  border-color: transparent;
  box-shadow: none;
  padding-inline: 12px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background-color: color-mix(in srgb, var(--btn-accent, var(--brand)) 10%, transparent);
    color: var(--btn-accent, var(--brand));
  }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — square (sharp, per signature #1), red gradient fill, hard shadow */
.btn-icon {
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  gap: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill, var(--border-radius, 0px));
  background-color: var(--btn-bg, var(--accent, var(--brand)));
  background-image: var(--btn-bg, linear-gradient(90deg, var(--accent, var(--brand)), var(--accent-2, var(--brand-2))));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  border: none;
  box-shadow: 0 3px 0 var(--accent-shadow);
}
@media (hover: hover) { .btn-icon:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--accent-shadow); } }
.btn-icon:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-shadow); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* A slotted icon/SVG sized to the square & centred (the shared <Button> slots a raw <svg>). */
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

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

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

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

/* image-in-frame zoom (clip so neighbours don't shift) */
.media { overflow: hidden; border-radius: var(--radius-md, var(--border-radius, 0px)); }
.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 (translateY + 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: 0 16px 32px -12px rgba(0, 0, 0, 0.35);
  }
}
.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(--brand); border-color: var(--brand); }
}

/* 4. Ruchoma strzałka — moving arrow (the red triangle on the CTA, "read more", etc.) */
.with-arrow { display: inline-flex; align-items: center; gap: 14px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: 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 — left-growing animated RED underline (nav links + inline links) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--brand), 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(--brand); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--brand); }
.link-underline-center { background-position: 50% 100%; }

/* ============================================================================
   CONTENT ICONS (monochrome, recolorable via CSS mask) — the brand-red icons
   in why-us / process. Paint via background-color; flip to --accent-contrast on
   a dark/red band.  (signature #5)
============================================================================ */
.svc-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-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;
}

/* ============================================================================
   CARDS / TILES — sharp corners (radius 0), NO outer shadow at rest (signature
   #1). Lift + shadow + inner zoom + arrow nudge all fire from the SAME hover.
============================================================================ */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--light2, #d8d8d8);  /* flat grey hairline, NO outer shadow at rest (signature #5) */
  border-radius: var(--radius-md, var(--border-radius, 0px));
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 200ms ease, border-color 200ms ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--accent, var(--brand));
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35);
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

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

/* Offset red rectangle frame behind a photo (hero / why-us / about-us motif, signature #5).
   Wrap the image element; the frame sits up-right behind it. */
.frame-accent { position: relative; }
.frame-accent::after {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;          /* offset toward the top-right, as drawn */
  border: 2px solid var(--accent, var(--brand));
  pointer-events: none;
  z-index: -1;
}

/* ============================================================================
   INPUTS — white box, sharp corners, light-grey border; red border + ring on
   focus (signature #1 + #5). Used in the hero quote bar and contact form.
============================================================================ */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #b5b5b5);
  border-radius: var(--radius-sm, var(--border-radius, 0px));
  background: var(--white);
  color: var(--black3, #171717);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3, #b5b5b5); }
.field:hover { border-color: var(--brand); }
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; }
.field:user-invalid { border-color: #e5484d; }

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