/* =========================================================
   presentlab.one — style
   ========================================================= */

:root {
  --navy: #011329;
  --navy-2: #021a38;
  --black: #020202;
  --blue: #0157fd;       /* kolor marki z pliku logo */
  --blue-hover: #3378ff;
  --white: #fef8fc;
  --muted: rgba(254, 248, 252, 0.72);
  --line: rgba(254, 248, 252, 0.45);

  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1520px;
  --s: 1;              /* mnożnik rozmiarów na dużych ekranach */
  --gutter: calc(clamp(16px, 2.8vw, 40px) * var(--s));
  --section-y: calc(clamp(64px, 8vw, 96px) * var(--s));
  --header-h: calc(92px * var(--s));

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --motion-150: 150ms;
  --motion-200: 200ms;
  --motion-300: 300ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--blue); }

/* ---------- Typografia wspólna ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(18px * var(--s));
  font-size: calc(15px * var(--s));
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: calc(clamp(36px, 5vw, 56px) * var(--s));
}
.eyebrow::after {
  content: "";
  width: calc(50px * var(--s));
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow--dark { color: var(--navy); }

.h2 {
  font-size: calc(clamp(30px, 3.2vw, 36px) * var(--s));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(34px * var(--s));
  padding: calc(6px * var(--s)) calc(20px * var(--s));
  border-radius: 999px;
  font-size: calc(16px * var(--s));
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible,
.nav__link:focus-visible,
.logo:focus-visible,
.burger:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}
/* Tło nagłówka na osobnej warstwie: backdrop-filter na samym .header
   zamykał w nim pełnoekranowe menu mobilne (fixed) po przewinięciu strony. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(1, 19, 41, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(254, 248, 252, .08);
  opacity: 0;
  transition: opacity var(--motion-300) var(--ease);
}
.header.is-scrolled::before { opacity: 1; }

/* pasek postępu przewijania */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.is-scrolled .header__inner { height: 72px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(12px * var(--s));
  color: var(--white);
}
.logo__img { display: block; height: auto; }
.header .logo__img { width: calc(210px * var(--s)); transition: width .3s var(--ease); }
.header.is-scrolled .logo__img { width: calc(168px * var(--s)); }

.logo--stacked {
  flex-direction: column;
  gap: calc(4px * var(--s));
}
.logo--stacked .logo__img { width: calc(122px * var(--s)); }

.nav { display: flex; align-items: center; gap: calc(58px * var(--s)); }
.nav__list { display: flex; gap: calc(56px * var(--s)); }
.nav__link {
  position: relative;
  font-size: calc(16px * var(--s));
  font-weight: 400;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav .nav__wa { display: none; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--white);
}
.burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("img/hero-poster.jpg") right center / cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 19, 41, .55) 0%, rgba(1, 19, 41, 0) 40%),
    linear-gradient(180deg, rgba(1, 19, 41, .35) 0%, rgba(1, 19, 41, 0) 18%);
}
.hero__content {
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: 80px;
}
.hero .eyebrow { margin-bottom: calc(44px * var(--s)); }
.hero__title {
  font-size: calc(clamp(44px, 5.4vw, 72px) * var(--s));
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: calc(52px * var(--s));
}
.hero__lead {
  max-width: calc(410px * var(--s));
  font-size: calc(18px * var(--s));
  line-height: 1.75;
  color: var(--white);
}

/* film z płynącymi chmurami w hero (zdjęcie w tle zostaje jako zapas) */
.hero__video,
.contact__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
.contact__video { object-position: left center; }


/* =========================================================
   O NAS
   ========================================================= */
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--navy); }
.section--light { background: var(--white); color: var(--navy); }

.about { overflow: hidden; }
.about__bg {
  position: absolute;
  inset: 0;
  background: url("img/about.jpg") right center / cover no-repeat;
}
.about__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(1, 19, 41, .85) 40%, rgba(1, 19, 41, 0) 70%);
}
.about__inner { position: relative; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, calc(380px * var(--s))) minmax(0, calc(410px * var(--s)));
  gap: calc(clamp(32px, 6vw, 72px) * var(--s));
  margin-bottom: calc(72px * var(--s));
}
.about__text {
  font-size: calc(18px * var(--s));
  line-height: 1.72;
  font-weight: 300;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, calc(200px * var(--s))));
  gap: calc(30px * var(--s));
}
.stat { display: flex; flex-direction: column; gap: calc(10px * var(--s)); }
.stat__num {
  font-size: calc(clamp(30px, 3vw, 36px) * var(--s));
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: calc(18px * var(--s));
  line-height: 1.4;
  font-weight: 300;
  max-width: calc(150px * var(--s));
}

/* =========================================================
   OFERTA
   ========================================================= */
.offer .h2 { margin-bottom: calc(32px * var(--s)); color: var(--navy); }
.offer { padding-bottom: calc(var(--section-y) * .8); }
.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: calc(16px * var(--s));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 201 / 315;
  padding: calc(20px * var(--s)) calc(18px * var(--s));
  border-radius: calc(8px * var(--s));
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(1, 19, 41, .55);
}
.card__num {
  font-size: calc(24px * var(--s));
  font-weight: 300;
  color: var(--blue);
  line-height: 1.2;
}
.card__title {
  font-size: calc(26px * var(--s));
  font-weight: 500;
  line-height: 1.15;
  margin: calc(8px * var(--s)) 0 calc(14px * var(--s));
}
.card__text {
  font-size: calc(13.5px * var(--s));
  line-height: 1.5;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 19, 41, .96) 0%, rgba(1, 19, 41, .82) 38%, rgba(1, 19, 41, 0) 66%);
}
.card:hover .card__img { transform: scale(1.05); }
/* dłuższy opis (Strony www): ciemne tło sięga niżej, żeby tekst nie wchodził na zdjęcie */
.card--long::before {
  background: linear-gradient(180deg, rgba(1, 19, 41, .96) 0%, rgba(1, 19, 41, .9) 48%, rgba(1, 19, 41, 0) 80%);
}

/* =========================================================
   NASZ PROCES
   ========================================================= */
.process__inner {
  display: grid;
  grid-template-columns: minmax(0, calc(360px * var(--s))) minmax(0, 1fr);
  gap: calc(clamp(32px, 7vw, 100px) * var(--s));
}
.process__inner > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.process__inner { row-gap: calc(clamp(36px, 5vw, 56px) * var(--s)); }
.process__intro .h2 { margin-bottom: calc(44px * var(--s)); }
.process__lead {
  font-size: calc(18px * var(--s));
  line-height: 1.72;
  font-weight: 300;
  max-width: calc(300px * var(--s));
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: start;
  /* środek kropek na wysokości pierwszej linii „Od pomysłu” */
  margin-top: calc(clamp(30px, 3.2vw, 36px) * var(--s) * 1.2 / 2 - 10px);
}
.step {
  position: relative;
  padding-top: 32px;
  padding-right: 20px;
}
.step::before,
.step::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 18px;
  right: 0;
  height: 2px;
}
.step::before { background: rgba(254, 248, 252, .25); }
.step::after {
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--step-dur) linear calc(var(--i) * var(--step-dur) + var(--step-dur) * .45);
}
.step:last-child::before,
.step:last-child::after { display: none; }

.steps { --step-dur: .7s; }

.step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(254, 248, 252, .55);
  background: var(--navy);
  transition:
    border-color .3s var(--ease) calc(var(--i) * var(--step-dur)),
    background-color .3s var(--ease) calc(var(--i) * var(--step-dur)),
    box-shadow .5s var(--ease) calc(var(--i) * var(--step-dur));
}
.step__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform .3s var(--ease) calc(var(--i) * var(--step-dur) + .1s);
}
.step__num,
.step__title,
.step__text {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i) * var(--step-dur) + .1s);
}
.step__title { transition-delay: calc(var(--i) * var(--step-dur) + .18s); }
.step__text  { transition-delay: calc(var(--i) * var(--step-dur) + .26s); }

.steps.is-running .step::after { transform: scaleX(1); }
.steps.is-running .step__dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(1, 87, 253, .18);
}
.steps.is-running .step__dot::after { transform: scale(1); }
.steps.is-running .step__num,
.steps.is-running .step__title,
.steps.is-running .step__text { opacity: 1; transform: none; }

/* po zakończeniu: delikatne podświetlenie kroku pod kursorem */
.steps.is-done .step__dot { transition-delay: 0s; }
.steps.is-done .step:hover .step__dot { box-shadow: 0 0 0 10px rgba(1, 87, 253, .22); }

.step__num {
  display: block;
  font-size: calc(36px * var(--s));
  font-weight: 400;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: calc(8px * var(--s));
}
.step__title {
  font-size: calc(24px * var(--s));
  font-weight: 500;
  margin-bottom: calc(18px * var(--s));
}
.step__text {
  font-size: calc(12px * var(--s));
  line-height: 1.5;
  font-weight: 300;
  max-width: calc(160px * var(--s));
}

/* =========================================================
   PRZEJŚCIA MIĘDZY SEKCJAMI
   ========================================================= */
/* jasne przerwy między ciemnymi sekcjami — jak w projekcie */
.about,
.process,
.contact,
.footer { margin-top: 14px; }
.offer + .process { margin-top: 30px; }

/* zdjęcia w tle: przybliżenie przy wejściu sekcji + lekka paralaksa */
.about__bg,
.contact__bg {
  --shift: 0px;
  will-change: transform;
}
.about__bg, .contact__bg { translate: 0 var(--shift); }
.about__bg,
.contact__bg { scale: 1.16; opacity: 0; transition: scale 1.5s var(--ease), opacity 1.2s var(--ease); }
.about.in-view .about__bg,
.contact.in-view .contact__bg { scale: 1.06; opacity: 1; }
.contact__bg { transform: scaleX(-1); }

/* sekcja wjeżdża lekko od dołu z zaokrąglonymi rogami, które się prostują */
.about,
.process,
.contact {
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 1s var(--ease);
}
.js .about:not(.in-view),
.js .process:not(.in-view),
.js .contact:not(.in-view) {
  clip-path: inset(0 2.5% 0 2.5% round 24px);
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact {
  background: var(--black);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background: url("img/contact.jpg") left center / cover no-repeat;
  /* w projekcie reflektor świeci w lewo — odbicie w poziomie (transform niżej) */
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* po odbiciu lewa strona sekcji to prawa strona obrazka */
  background: linear-gradient(270deg, var(--black) 0%, rgba(2, 2, 2, .7) 30%, rgba(2, 2, 2, 0) 55%);
}
.contact__content { position: relative; }
.contact .h2 { margin-bottom: calc(44px * var(--s)); }
.contact__lead {
  max-width: calc(380px * var(--s));
  font-size: calc(18px * var(--s));
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: calc(40px * var(--s));
}

/* =========================================================
   STOPKA
   ========================================================= */
.footer {
  background: var(--navy);
  padding-block: 48px 24px;
}
.footer__inner {
  display: grid;
  /* boczne kolumny równe -> hasło dokładnie na środku strony */
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: calc(40px * var(--s)) calc(48px * var(--s));
}
.footer__inner > .logo { justify-self: start; }
.footer__claim {
  font-size: calc(clamp(26px, 2.6vw, 36px) * var(--s));
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: calc(2px * var(--s));
  font-style: normal;
  font-size: calc(13px * var(--s));
  align-self: end;
  justify-self: end;
}
.footer__wa {
  display: inline-grid;
  place-items: center;
  width: calc(42px * var(--s));
  height: calc(42px * var(--s));
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  transition: background-color var(--motion-150) var(--ease-out), transform var(--motion-150) var(--ease-out);
}
.footer__wa svg { width: 62%; height: 62%; }
.footer__contact .footer__wa:hover { background: #1ebe5a; color: #fff; transform: translateY(-1px); }
.footer__wa:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 3px; }
.footer__nip { color: var(--muted); }
.footer__contact a:hover { color: var(--blue-hover); }
.footer__copy {
  margin-top: 32px;
  font-size: calc(12px * var(--s));
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   Animacje pojawiania
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Nagłówki: słowa wysuwają się spod maski, jedno po drugim */
.reveal[data-split] { opacity: 1; transform: none; }
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* miejsce na ogonki ą, ę, j */
  padding: 0 .04em .14em;
  margin: 0 -.04em -.14em;
}
.w__i {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: left bottom;
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}
.is-visible .w__i { transform: none; }

/* Akapit "O nas": słowa rozjaśniają się w rytm przewijania */
[data-scrub] .sw {
  opacity: .22;
  transition: opacity var(--motion-200) var(--ease-out);
}
[data-scrub] .sw.on { opacity: 1; }

/* Karty i statystyki: płynniejsze wejście z lekkim przybliżeniem */
.card.reveal { transform: translateY(40px) scale(.96); }
.card.reveal.is-visible { transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-6px); }
.stat.reveal { transform: translateY(28px); }
.stat.reveal.is-visible { transform: none; }

/* Hero odpływa przy przewijaniu */
.hero__content {
  transform: translate3d(0, var(--hero-y, 0px), 0);
  opacity: var(--hero-o, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* bez ruchu — zostaje samo płynne pojawianie się */
  .reveal,
  .card.reveal, .stat.reveal,
  .step__num, .step__title, .step__text { transform: none; }
  .w__i { transform: none; opacity: 0; transition: opacity var(--motion-300) var(--ease-out); }
  .is-visible .w__i { opacity: 1; }
  [data-scrub] .sw { opacity: 1; }
  .hero__content { transform: none; opacity: 1; }
  .card, .card__img, .header, .header__inner { transition: none; }
  .about__bg, .about.in-view .about__bg,
  .contact__bg, .contact.in-view .contact__bg { scale: 1; }
  .js .about:not(.in-view), .js .process:not(.in-view), .js .contact:not(.in-view) { clip-path: none; }
  .steps { --step-dur: .35s; }
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card { aspect-ratio: 4 / 5; padding: 24px 22px; }
  .card__title { font-size: 28px; }
  .card__text { font-size: 15px; max-width: 280px; }
}

@media (max-width: 1200px) {
  .nav, .nav__list { gap: 36px; }
}

@media (max-width: 1024px) {
  .process__inner { grid-template-columns: 1fr; }
  .steps { margin-top: 8px; }
  .process__intro .h2 { margin-bottom: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 220px)); row-gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header .logo__img, .header.is-scrolled .logo__img { width: 150px; }

  .burger { display: block; position: relative; z-index: 2; }
  .header .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 96px 24px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    /* wyjście: 150 ms ease-in */
    transition:
      opacity var(--motion-150) var(--ease-in),
      transform var(--motion-150) var(--ease-in),
      visibility 0s linear var(--motion-150);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    /* wejście: 200 ms ease-out */
    transition:
      opacity var(--motion-200) var(--ease-out),
      transform var(--motion-200) var(--ease-out),
      visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: center; gap: 24px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--blue); }
  .nav .nav__wa { display: inline-grid; width: 54px; height: 54px; margin-top: -8px; }
  .nav .nav__wa:hover { background: #1ebe5a; }
  .nav__link { font-size: 26px; }
  .nav__cta { font-size: 18px; padding: 12px 28px; }

  .hero__bg { opacity: .6; background-position: 70% center; }
  .hero__video { object-position: 70% center; }
  .hero__bg::after {
    background: linear-gradient(90deg, rgba(1,19,41,.9) 0%, rgba(1,19,41,.3) 100%);
  }

  .about__grid { grid-template-columns: 1fr; margin-bottom: 56px; }
  .about.in-view .about__bg { opacity: .35; }

  .contact.in-view .contact__bg { opacity: .55; }
  .contact__bg::after { background: linear-gradient(270deg, rgba(2,2,2,.85) 0%, rgba(2,2,2,.2) 100%); }

}

@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { aspect-ratio: 5 / 8; padding: 16px 14px; }
  .card__title { font-size: 20px; }
  .card__text { font-size: 13px; margin-bottom: 14px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 40px; }
  .step::before,
  .step::after { top: 20px; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .step::after { transform: scaleY(0); transform-origin: center top; }
  .steps.is-running .step::after { transform: scaleY(1); }
  .js .about:not(.in-view),
  .js .process:not(.in-view),
  .js .contact:not(.in-view) { clip-path: inset(0 0 0 0 round 0); }
  .step:last-child { padding-bottom: 0; }
  .step__text { max-width: none; font-size: 15px; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 13px; }
  .hero__lead, .about__text, .process__lead, .contact__lead { font-size: 16px; }
  .cards { gap: 10px; }
  .card { padding: 12px; }
  .card__title { font-size: 18px; }
  .card__text { font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .stat__label { font-size: 16px; }
}

/* =========================================================
   DUŻE EKRANY (QHD, 4K): treść zajmuje 3/4 szerokości ekranu,
   a typografia i odstępy rosną proporcjonalnie
   ========================================================= */
@media (min-width: 1921px) {
  :root { --s: 1.1; }
  /* 3/4 ekranu, ale nigdy węziej niż na zwykłym monitorze */
  .container { max-width: max(75vw, calc(var(--container) + var(--gutter) * 2)); }
}
@media (min-width: 2240px) { :root { --s: 1.2; } }
@media (min-width: 2560px) { :root { --s: 1.38; } }
@media (min-width: 3000px) { :root { --s: 1.6; } }
@media (min-width: 3440px) { :root { --s: 1.8; } }
@media (min-width: 3840px) { :root { --s: 2; } }

/* =========================================================
   STOPKA — link do polityki
   ========================================================= */
.footer__policy {
  margin-top: calc(6px * var(--s));
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(254, 248, 252, .35);
}
.footer__policy:hover,
.footer__policy[aria-current="page"] { color: var(--white); }

/* =========================================================
   PODSTRONA: POLITYKA PRYWATNOŚCI
   ========================================================= */
.page-policy { background: var(--white); }
.policy {
  color: var(--navy);
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: var(--section-y);
}
.policy__inner { max-width: calc(860px * var(--s) + var(--gutter) * 2); }
.policy__back {
  display: inline-block;
  font-size: calc(15px * var(--s));
  color: var(--blue);
  margin-bottom: calc(40px * var(--s));
}
.policy__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.policy .eyebrow { margin-bottom: calc(24px * var(--s)); }
.policy__title {
  font-size: calc(clamp(32px, 4.2vw, 52px) * var(--s));
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: calc(40px * var(--s));
}
.policy__toc {
  border: 1px solid rgba(1, 19, 41, .12);
  border-radius: calc(10px * var(--s));
  padding: calc(22px * var(--s)) calc(26px * var(--s));
  margin-bottom: calc(48px * var(--s));
  background: #fff;
}
.policy__toc-title {
  font-size: calc(13px * var(--s));
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: calc(12px * var(--s));
  opacity: .7;
}
.policy__toc ol {
  list-style: decimal;
  padding-left: 1.3em;
  columns: 2;
  column-gap: calc(40px * var(--s));
  font-size: calc(16px * var(--s));
  line-height: 1.9;
}
.policy__toc a { color: var(--navy); }
.policy__toc a:hover { color: var(--blue); }

.policy__content {
  font-size: calc(17px * var(--s));
  line-height: 1.75;
  font-weight: 400;
}
.policy__content h2 {
  font-size: calc(clamp(22px, 2.2vw, 28px) * var(--s));
  font-weight: 500;
  line-height: 1.25;
  margin: calc(56px * var(--s)) 0 calc(18px * var(--s));
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.policy__content h2:first-child { margin-top: 0; }
.policy__num { color: var(--blue); margin-right: .2em; }
.policy__content p { margin: 0 0 1em; }
.policy__content ol,
.policy__content ul { padding-left: 1.4em; margin: 0 0 1em; }
.policy__content ol { list-style: decimal; }
.policy__content ol ol { list-style: lower-alpha; margin-top: .5em; }
.policy__content ul { list-style: disc; margin-top: .5em; }
.policy__content li { margin-bottom: .55em; }
.policy__content li::marker { color: var(--blue); }
.policy__content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.policy__settings {
  margin-top: calc(56px * var(--s));
  padding-top: calc(28px * var(--s));
  border-top: 1px solid rgba(1, 19, 41, .12);
  font-size: calc(16px * var(--s));
}
.link-btn {
  font: inherit;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:focus-visible,
.policy a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 700px) {
  .policy__toc ol { columns: 1; }
  .policy__content { font-size: 16px; }
}

/* =========================================================
   BANER COOKIES (chowa się do przycisku w lewym dolnym rogu)
   ========================================================= */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(460px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px 24px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid rgba(254, 248, 252, .9);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  font-size: 14px;
  line-height: 1.55;
  /* zwinięty do rogu, z którego wyrasta przycisk */
  transform-origin: left bottom;
  transform: scale(.12);
  opacity: 0;
  transition:
    transform var(--motion-300) var(--ease-in),
    opacity var(--motion-200) var(--ease-in);
}
.cookie.is-open {
  transform: none;
  opacity: 1;
  transition:
    transform var(--motion-300) var(--ease-out),
    opacity var(--motion-200) var(--ease-out);
}
.cookie__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cookie__text { color: rgba(254, 248, 252, .82); margin-bottom: 18px; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cookie__text a:hover { color: var(--blue-hover); }

.cookie__details {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
}
.cookie__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(254, 248, 252, .05);
  cursor: pointer;
}
.cookie__opt-text { display: flex; flex-direction: column; gap: 2px; }
.cookie__opt-text strong { font-weight: 600; font-size: 14px; }
.cookie__opt-text small { font-size: 12px; color: rgba(254, 248, 252, .65); line-height: 1.45; }
.cookie__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie__switch {
  flex-shrink: 0;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(254, 248, 252, .25);
  transition: background-color var(--motion-200) var(--ease-out);
}
.cookie__switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--motion-200) var(--ease-out);
}
.cookie__opt input:checked + .cookie__switch { background: var(--blue); }
.cookie__opt input:checked + .cookie__switch::after { transform: translateX(18px); }
.cookie__opt input:disabled + .cookie__switch { opacity: .6; }
.cookie__opt input:focus-visible + .cookie__switch { outline: 2px solid var(--blue-hover); outline-offset: 2px; }

.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--motion-150) var(--ease-out), border-color var(--motion-150) var(--ease-out);
}
.cookie__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(254, 248, 252, .35);
}
.cookie__btn--ghost:hover { border-color: var(--white); }
.cookie__btn--primary {
  flex-basis: 100%;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.cookie__btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.cookie__btn:focus-visible,
.cookie-fab:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 3px; }

/* okrągły przycisk po akceptacji — lewy dolny róg */
.cookie-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(254, 248, 252, .2);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  cursor: pointer;
  opacity: 0;
  transform: scale(.6);
  transition:
    opacity var(--motion-200) var(--ease-out),
    transform var(--motion-200) var(--ease-out),
    background-color var(--motion-150) var(--ease-out);
}
.cookie-fab.is-visible { opacity: 1; transform: none; }
.cookie-fab:hover { background: var(--blue); }

@media (max-width: 520px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px 18px 16px; }
  .cookie-fab { left: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie, .cookie.is-open, .cookie-fab { transition: none; }
}
.cookie[hidden],
.cookie__details[hidden],
.cookie-fab[hidden] { display: none; }

/* stopka: poniżej 1100 px wszystko jedno pod drugim, wyśrodkowane */
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer__inner > .logo { justify-self: center; }
  .footer__contact { align-self: auto; justify-self: center; align-items: center; font-size: 15px; gap: 6px; }
}

/* =========================================================
   WHATSAPP — prawy dolny róg, lustrzanie do przycisku cookies
   ========================================================= */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  transition:
    background-color var(--motion-150) var(--ease-out),
    transform var(--motion-150) var(--ease-out),
    opacity var(--motion-200) var(--ease-out);
}
.wa-fab svg { width: 58%; height: 58%; }
.wa-fab:hover { background: #1ebe5a; transform: translateY(-2px); }
.wa-fab:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 3px; }
/* gdy otwarte jest menu mobilne, WhatsApp jest w menu — przycisk w rogu chowamy */
html.menu-open .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 520px) {
  .wa-fab { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab:hover { transform: none; }
}
