/* =====================================================================
   Asetli — landing page (makieta: TOLINO_046 PLATFORMY PROMOCYJNE_ASETLI)
   Jednostki: rem, 1rem = 10px (html font-size 62.5%). Makieta: 1920 px,
   siatka treści 387–1527 px => kontener 114rem.
   ===================================================================== */

:root {
  --black: #131314;
  --lime: #bccf02;
  --lime-video: #c2d723;
  --lime-pale: #fdffdf;
  --gray: #d8d8d8;
  --white: #ffffff;
  --muted: #7f7f7f;
  --grad-lime: linear-gradient(to top, #c6d71c, #e2ef64);

  --content: 114rem;
  --title-size: 5.5rem;
  --text-size: 1.9rem;
  --font-head: 'Raleway', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 7.7rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.35;
  letter-spacing: -0.012em;            /* Inter w przeglądarce jest minimalnie szerszy niż w PSD */
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* clip (nie hidden) — nie robi z sekcji kontenera scrolla, więc nie psuje sticky */
section, .site-footer { position: relative; overflow: clip; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; }
p { margin: 0; }
button { font: inherit; }

.container {
  position: relative;
  z-index: 1;
  width: var(--content);
  max-width: calc(100% - 8rem);
  margin: 0 auto;
}

.section--dark { background: var(--black); color: var(--white); }

.section-title {
  font-size: var(--title-size);
  line-height: 1.08;
}
.section-title--center { text-align: center; }
.section-title--tight { letter-spacing: -0.055rem; }

/* ---------- Przyciski ---------- */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23.2rem;
  height: 5.8rem;
  padding: 0 2.4rem;
  border-radius: 2.7rem;
  border: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover::before { transform: scaleX(1); }
.btn--lime { background: var(--grad-lime); }
.btn--solid { background: var(--lime); }
.btn--solid::before { background: #d3e43b; }
.btn--outline { background: var(--white); border: 0.1rem solid var(--lime); }
.btn--outline::before { background: var(--lime-pale); }

/* ---------- Dekoracyjne linie (symbol #lines) ----------
   --x: przesunięcie środka linii względem środka strony
   --y: środek linii od góry sekcji
   --r: obrót (wszystko policzone z transform box smart objectu w PSD) */
.lines {
  position: absolute;
  z-index: 0;
  width: 125.7rem;
  height: 113.6rem;
  left: calc(50% + var(--x) - 62.85rem);
  top: calc(var(--y) - 56.8rem);
  transform: rotate(var(--r));
  pointer-events: none;
  fill: none;
  stroke-width: 1;
  stroke-miterlimit: 10;
  overflow: visible;
}
.lines path { vector-effect: non-scaling-stroke; }
.lines--mirror { transform: rotate(var(--r)) scaleY(-1); }
.lines--lime { stroke: var(--lime); }
.lines--white { stroke: var(--white); }
.lines--faint { stroke: var(--white); opacity: 0.1; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 0.7rem 11.4rem rgba(179, 199, 3, 0.13);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 7.7rem;
}
.header__logo img { width: 8.2rem; height: auto; }
.header__menu { display: contents; }   /* desktop: nav i CTA są zwykłymi elementami flexa */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
}
.header__burger span {
  display: block;
  height: 0.25rem;
  border-radius: 0.2rem;
  background: var(--black);
  transition: transform .25s ease, opacity .2s ease;
}
.site-header.nav-open .header__burger span:nth-child(1) { transform: translateY(0.75rem) rotate(45deg); }
.site-header.nav-open .header__burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .header__burger span:nth-child(3) { transform: translateY(-0.75rem) rotate(-45deg); }
html.nav-lock,
html.nav-lock body { overflow: hidden; }

.header__nav {
  display: flex;
  gap: 3.4rem;
  margin-left: 5.7rem;
  font-size: 1.4rem;
  font-weight: 500;
}
.header__nav a { transition: color .2s ease; }
.header__nav a:hover { color: #8c9a00; }
.header__cta {
  margin-left: auto;
  min-width: 17.3rem;
  height: 4.1rem;
  border-radius: 1.9rem;
  font-size: 1.4rem;
}
/* w makiecie przełącznik wystaje poza siatkę (x 1608) — świadomie trzymamy go w kontenerze,
   żeby prawa krawędź nagłówka zgadzała się z treścią */
.header__lang {
  margin-left: 3.2rem;
  display: flex;
  gap: 0.5rem;
  font-size: 1.4rem;
  white-space: nowrap;
}
.header__lang .is-active { color: var(--lime); font-weight: 600; }
.header__lang a:hover { color: var(--lime); }

/* =====================================================================
   1. HERO
   ===================================================================== */
.hero { padding: 9.6rem 0 12.5rem; }
.hero::before {                         /* limonkowa poświata za grafiką */
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(50% + 45rem - 48.7rem);
  top: calc(36rem - 48.7rem);
  width: 97.4rem;
  height: 97.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 207, 2, 0.16) 0%, rgba(188, 207, 2, 0.06) 40%, rgba(188, 207, 2, 0) 70%);
  pointer-events: none;
}
.hero__text { width: 66rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  height: 4.5rem;
  padding: 0 2rem 0 1.4rem;
  border: 0.1rem solid #e9e9e9;
  border-radius: 2rem;
  font-size: 1.15rem;
  margin: 0 0 4.1rem 0.3rem;
}
.hero__badge img { width: 2.4rem; height: 2.4rem; }
.hero__title {
  font-size: 5rem;
  line-height: 1.12;
  margin-bottom: 2.6rem;
}
.hero__subtitle {
  font-size: 2.9rem;
  line-height: 1.2;
  margin: 0 0 3.8rem 0.6rem;
}
.hero__lead {
  font-size: var(--text-size);
  line-height: 1.33;
  margin: 0 0 4.1rem 0.5rem;
}
.hero__cta { display: flex; gap: 1.7rem; }

.hero__media {
  position: absolute;
  z-index: 1;
  left: calc(50% - 57rem + 67.6rem);   /* x 1063 w makiecie */
  top: 5.7rem;
  width: 107.3rem;
  aspect-ratio: 1073 / 620;
  pointer-events: none;
}
/* pozycje w % pudełka 1073×620 => cała kompozycja skaluje się z szerokością */
.hero__media img { position: absolute; max-width: none; height: auto; }
.hero__dashboard {
  position: absolute;
  left: 20.41%; top: 0; width: 79.59%;
  aspect-ratio: 967.688 / 702;            /* strona PDF dashboardu z PSD (pt) */
}
.hero__comment   { left: 0;      top: 16.94%; width: 29.45%; }
.hero__packshot  {
  left: 6.62%; top: 50.48%; width: 24.88%;
  filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.12));
}

/* ---------- animacja hero: z chaosu do porządku (wg GIF-a klientki, 158 kl. @25 fps) ----------
   Pole kafelków = wnętrze panelu (24–943 × 16–670 pt), kafelek 209.4 × 200.5 pt.
   Kafelki jadą ruchem jednostajnym jak w GIF-ie: 0–1.40 s zjazd do siatki,
   4.84–6.20 s powrót do chaosu; packshot i komentarz wsuwają się z prawej w przerwie. */
.hero__panel { left: 0; top: 0; width: 100%; }
.hero__tiles {
  position: absolute;
  left: 2.479%; top: 2.295%; width: 95.009%; height: 93.132%;
  border-radius: 0 0 1.305% 1.305% / 0 0 1.835% 1.835%;
  overflow: hidden;
}
.hero__media .hero__tile {
  left: var(--x); top: var(--y); width: 22.777%;
  border-radius: 3.05% / 3.18%;
  box-shadow: 0 0.4rem 1.6rem rgba(19, 19, 20, 0.05);
  will-change: transform;
}

/* === TRYB JEDNORAZOWY (domyślny, decyzja 2026-11-12) ===
   Jeden przebieg: chaos -> siatka (0–1.40 s), packshot (1.60–2.20 s), komentarz (2.20–2.80 s)
   i zostaje ułożony stan z makiety. Startuje, gdy hero wejdzie w widok (main.js: .is-playing).
   >>> PĘTLA JAK W GIF-ie: dopisz klasę hero__media--loop do .hero__media w app/pages/home.php
       (reguły trybu pętli są niżej, nic więcej nie trzeba zmieniać). */
.hero__media { --hero-delay: 0.8s; }   /* pauza przed startem: najpierw hero się pokazuje (AOS 0.8 s) */
.hero__media .hero__tile { animation: hero-tile-once 1.4s linear var(--hero-delay) both paused; }
.hero__packshot { animation: hero-overlay-once 0.6s ease-out calc(var(--hero-delay) + 1.6s) both paused; --from: 100%; }
.hero__comment  { animation: hero-overlay-once 0.6s ease-out calc(var(--hero-delay) + 2.2s) both paused; --from: 75%; }
.hero__media.is-playing .hero__tile,
.hero__media.is-playing .hero__packshot,
.hero__media.is-playing .hero__comment { animation-play-state: running; }
@keyframes hero-tile-once {
  from { transform: translate(var(--dx), var(--dy)); }
  to   { transform: none; }
}
@keyframes hero-overlay-once {
  from { opacity: 0; transform: translateX(var(--from)); }
  to   { opacity: 1; transform: none; }
}

/* === TRYB PĘTLI (.hero__media--loop) — wierna kopia GIF-a, 6.32 s w kółko === */
.hero__media--loop .hero__tile { animation: hero-tile 6.32s linear infinite; }
.hero__media--loop .hero__packshot { animation: hero-packshot 6.32s infinite; }
.hero__media--loop .hero__comment  { animation: hero-comment 6.32s infinite; }
@keyframes hero-tile {
  0%, 98.1%, 100% { transform: translate(var(--dx), var(--dy)); }
  22.15%, 76.58% { transform: none; }
}
@keyframes hero-packshot {
  0%, 25.3%   { opacity: 0; transform: translateX(100%); animation-timing-function: ease-out; }
  34.8%, 51.3% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  59.5%, 100% { opacity: 0; transform: translateX(80%); }
}
@keyframes hero-comment {
  0%, 34.8%   { opacity: 0; transform: translateX(75%); animation-timing-function: ease-out; }
  44.3%, 58.2% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  69%, 100%   { opacity: 0; transform: translateX(85%); }
}
/* hero poza ekranem — main.js dokłada klasę, żeby nie mielić animacji w tle */
.hero__media.is-paused .hero__tile,
.hero__media.is-paused .hero__comment,
.hero__media.is-paused .hero__packshot { animation-play-state: paused; }

/* =====================================================================
   2. CO ASETLI ZMIENI
   ===================================================================== */
.why { padding: 10.6rem 0 10.5rem; }
.why::before {                          /* poświata przy lewej krawędzi */
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(50% - 101.3rem - 48.7rem);
  top: calc(39.8rem - 48.7rem);
  width: 97.4rem;
  height: 97.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 207, 2, 0.75) 0%, rgba(188, 207, 2, 0.25) 35%, rgba(188, 207, 2, 0) 68%);
  pointer-events: none;
}
.why__media {
  position: absolute;
  z-index: 1;
  left: calc(50% - 57rem - 24.9rem);   /* x 138 */
  top: 15.2rem;
  width: 78.1rem;
  aspect-ratio: 781 / 498;
}
/* pozycje w % pudełka 781×498 */
.why__media img { position: absolute; max-width: none; height: auto; }
.why__win--1 { left: 0;      top: 11.85%; width: 71.57%; }
.why__win--2 { left: 6.27%;  top: 22.49%; width: 71.57%; filter: drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.35)); }
.why__win--3 { left: 12.42%; top: 35.34%; width: 82.71%; filter: drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.35)); }
.why__reviews { left: 39.18%; top: 0; width: 60.82%; z-index: 2; }

.why__text {
  margin-left: 61.3rem;
  width: 66rem;
  /* może wyjść poza siatkę (jak w PSD), ale nie bliżej niż 4rem od prawej krawędzi okna */
  max-width: calc(100% - 61.3rem + (100vw - 100%) / 2 - 4rem);
}   /* x 1000; tekst w PSD wychodzi poza siatkę do x 1651 */
.why__title { font-size: 5rem; line-height: 1.1; margin-bottom: 7rem; }

.steps { list-style: none; margin: 0 0 6rem; padding: 0; }
.step { display: flex; gap: 3.2rem; }
.step + .step { margin-top: 3.4rem; }
.step__num {
  flex: none;
  width: 6.6rem;
  height: 6.6rem;
  border: 0.1rem solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
}
.step__body { padding-top: 0.2rem; }
.step__body h3 {
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 700;
  margin-bottom: 2.2rem;
}
.step__body p { font-weight: 300; }

/* =====================================================================
   3. VIDEO
   ===================================================================== */
.video { padding: 10.3rem 0 13.3rem; }
.video__title { margin-bottom: 5.2rem; }
.video__box {
  display: block;
  position: relative;
  width: 114.6rem;
  max-width: 100%;
  aspect-ratio: 1140 / 680;            /* faktyczna szerokość = kontener 114rem */
  margin: 0 auto;
  border-radius: 2.9rem;
  background:
    radial-gradient(ellipse 45% 18% at 50% 100%, rgba(240, 246, 196, 0.95) 0%, rgba(240, 246, 196, 0) 100%),
    var(--lime-video);
  box-shadow: 0 0 1rem rgba(193, 241, 36, 0.6), 0 2.5rem 5rem rgba(214, 230, 120, 0.35);
  overflow: hidden;
}
.video__player {
  position: absolute;
  left: 50%;
  top: 5.59%;
  transform: translateX(-50%);
  width: 74.91%;                       /* 854 / 1140 */
  aspect-ratio: 854 / 620;
  max-width: none;
  object-fit: contain;
}
.video__play {
  position: absolute;
  left: calc(50% - 3.9rem + 0.9rem);   /* środek x 969 */
  top: calc(50% - 3.9rem + 0.3rem);
  width: 7.8rem;
  height: 7.8rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #bccf02 0%, #d6e646 100%);
  box-shadow: 0 0.6rem 2rem rgba(120, 135, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.video__box:hover .video__play,
.video__box:focus-visible .video__play { transform: scale(1.08); }
.video__box:focus-visible { outline: 0.3rem solid var(--black); outline-offset: 0.4rem; }

/* GLightbox: film z YouTube */
.glightbox-container .gslide-video { border-radius: 1.6rem; overflow: hidden; }
.glightbox-clean .gclose { background: rgba(19, 19, 20, 0.6); border-radius: 50%; }
.glightbox-clean .gclose:hover { background: var(--lime); }
.plyr { --plyr-color-main: #bccf02; }
.glightbox-container .gprev.disabled,
.glightbox-container .gnext.disabled { display: none; }   /* jeden film = bez strzałek */
.video__play img { width: 2.6rem; height: auto; margin-left: 0.4rem; }

/* =====================================================================
   4 + 6. PORÓWNANIA (VS)
   ===================================================================== */
.compare { padding: 11.2rem 0 11rem; }
.compare .section-title { line-height: 1.07; }
.compare__lead {
  max-width: 116rem;
  margin: 4.4rem auto 5.4rem;
  text-align: center;
  line-height: 1.17;
}

.vs { display: flex; flex-direction: column; gap: 1.8rem; }
.vs__heads, .vs__row {
  display: grid;
  grid-template-columns: minmax(0, 49rem) minmax(6rem, 1fr) minmax(0, 49rem);
  align-items: center;
}
.vs__heads { margin-bottom: 2.8rem; }
.vs__head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--lime);
  text-align: center;
  line-height: 1;
}
.vs__vs { text-align: center; font-size: var(--text-size); }
.vs__pill {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 9.1rem;
  padding: 1.5rem 2rem;
  border-radius: 4.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--black);
}
.vs__pill--bad  { background: var(--gray); }
.vs__pill--good { background: var(--white); }

.mark {
  flex: none;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
}
.mark--x     { background-color: var(--white); background-image: url(../assets/img/no-icon.svg); background-size: 2.6rem auto; }
.mark--check { background-color: var(--lime);  background-image: url(../assets/img/yes-icon.svg); background-size: 3.4rem auto; }
.mark--num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
}
.mark--num-light { background: var(--white); color: var(--lime); }

/* 6: tło z globem (wycięte z PSD: grupa bg sekcji 6) */
.compare--drive {
  background: var(--black) url(../assets/img/globe-bg.webp) no-repeat center bottom / 192rem auto;
}

/* =====================================================================
   5. BENEFITY — akordeon
   ===================================================================== */
.benefits { padding: 8.3rem 0 8.2rem; }
.benefits__inner { display: flex; align-items: flex-start; }
.accordion {
  flex: none;
  width: 36.3rem;
  margin-left: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.benefits__text {
  margin-left: 7.7rem;                 /* x 825 */
  flex: none;
  width: 72.6rem;
  /* jak w PSD wychodzi 2rem poza siatkę, ale nie bliżej niż 4rem od krawędzi okna */
  max-width: calc(100% - 43.5rem + (100vw - 100%) / 2 - 4rem);
  padding-top: 1.6rem;
}
.benefits__lead { margin: 4.4rem 0 5.6rem; line-height: 1.17; }

.acc-item {
  border: 0.1rem solid transparent;
  border-radius: 1.5rem;
  background: var(--lime-pale);
  transition: background .3s ease, border-color .3s ease;
}
.acc-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.5rem;
  align-items: start;
  padding: 2.1rem 2.3rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-chevron {
  width: 2rem;
  height: 1.2rem;
  align-self: center;
  margin-left: 1rem;
  background: url(../assets/img/acc-down.svg) no-repeat center / contain;
}
.acc-panel {
  padding: 0 2.3rem 3rem;
  color: var(--white);
  line-height: 1.45;
}
.acc-item[open] { background: var(--black); border-color: var(--black); }
.acc-item[open] .acc-head { color: var(--lime); padding-bottom: 1.4rem; }
.acc-item[open] .acc-chevron { background-image: url(../assets/img/acc-up.svg); }

/* =====================================================================
   7. JEDEN SYSTEM — zakładki (sticky) + panele
   ===================================================================== */
.system { padding: 9.9rem 0 9.3rem; }
/* Poświata z PSD (Warstwa 1666) jedzie w tle przez całą sekcję:
   .system__bg to „rynna” na całą wysokość, a glow jest w niej sticky. */
.system__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.system__glow {
  position: sticky;
  top: calc(50vh - 73.5rem);           /* środek poświaty = środek ekranu */
  width: 113.5rem;
  height: 147rem;
  margin: -28.3rem 0 0 calc(50% - 44.4rem);   /* start jak w PSD: x 516, y 5170 */
  /* kolor i spadek alfy próbkowane z warstwy PSD, ale bez jej ściętych krawędzi */
  background: radial-gradient(closest-side,
    rgba(187, 205, 39, 0.44) 0%,
    rgba(187, 205, 39, 0.30) 35%,
    rgba(187, 205, 39, 0.13) 65%,
    rgba(187, 205, 39, 0) 100%);
}

.system__inner {
  position: relative;
  z-index: 1;
  width: 141rem;                       /* x 255–1665: ta sekcja wychodzi poza siatkę */
  max-width: calc(100% - 8rem);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}
.system__side {
  position: sticky;
  top: 12rem;
  flex: none;
  width: 47.5rem;
}
.system__lead { width: 52rem; margin: 4.4rem 0 4.3rem 0.4rem; line-height: 1.17; }
.system__tabs { display: flex; flex-direction: column; gap: 1.5rem; margin-left: 0.6rem; }
.system__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 7.6rem;
  padding: 0 3.7rem 0 8rem;
  border-radius: 1.5rem;
  background: var(--lime-pale);
  font-weight: 600;
  transition: background .3s ease;
}
.system__tab:hover { background: #f4f9b8; }
.system__tab.is-active { background: var(--grad-lime); }
.system__tab-icon {
  position: absolute;
  left: 2.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.system__tab-icon img { width: 2.6rem; height: auto; }

.system__panels {
  margin-left: 6.4rem;                 /* panele od x 794 */
  padding-top: 3.6rem;
  flex: 0 1 80rem;
  min-width: 0;
}
.system__panel { scroll-margin-top: 4.3rem; }   /* + scroll-padding 7.7rem z html = 12rem, czyli top przyklejonej kolumny */
.system__panel + .system__panel { margin-top: 19rem; }
.system__panel img { height: auto; max-width: none; margin-bottom: -1.5rem; }
.system__panel h3,
.system__panel p { margin-left: 8.2rem; max-width: 59rem; }   /* tekst od x 876 */
.system__panel h3 {
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 700;
  margin-bottom: 2.6rem;
}
.system__panel p { line-height: 1.17; }
/* szerokości i wcięcia w % kolumny 80rem */
.system__panel--1 img { width: 93.13%; margin-left: 1%; }
.system__panel--2 img { width: 99.63%; margin-bottom: 0; }
.system__panel--3 img { width: 89%;    margin-left: 6.75%; margin-bottom: 4.3rem; }
.system__panel--4 img { width: 87.75%; margin-left: 6.5%;  margin-bottom: 3rem; }

/* =====================================================================
   8. WDROŻENIE + DEMO
   ===================================================================== */
.impl {
  padding: 12rem 0 12rem;
  background:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%),
    var(--lime);
}
.impl .section-title { margin-left: -0.5rem; }

.impl-list { list-style: none; margin: 5.5rem 0 6.2rem; padding: 0; }
.impl-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 69.8rem) minmax(0, 1fr);
  align-items: center;
  min-height: 9.8rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.65);
}
.impl-row:last-child { border-bottom: 0.1rem solid rgba(255, 255, 255, 0.65); }
.impl-row__icon {
  width: 5.2rem;
  height: 5.2rem;
  margin-left: -0.7rem;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.impl-row__icon img { width: 2.8rem; height: auto; }
.impl-row__title { font-size: 3.5rem; line-height: 1.1; }
.impl-row__desc { line-height: 1.17; }

.demo-banner {
  background: var(--white);
  border-radius: 2.9rem;
  padding: 5.4rem 2rem 5.6rem;
  text-align: center;
}
.demo-banner h2 {
  font-size: 7.7rem;
  line-height: 1;
  margin-bottom: 3.6rem;
}
.demo-form__pill {
  display: inline-flex;
  align-items: center;
  width: 49.2rem;
  max-width: 100%;
  height: 6.1rem;
  padding: 0.2rem;
  border-radius: 2.7rem;
  background: var(--lime-pale);
}
.demo-form__pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 3.4rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--black);
}
.demo-form__pill input::placeholder { color: var(--black); }
.demo-form__pill button {
  flex: none;
  width: 17rem;
  height: 5.7rem;
  border: none;
  border-radius: 2.7rem;
  background: var(--grad-lime);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: filter .2s ease;
}
.demo-form__pill button:hover { filter: brightness(0.95); }
.demo-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.demo-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 49.2rem;                       /* szerokość pigułki z e-mailem */
  max-width: 100%;
  font-size: 1.35rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.demo-form__consent input {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0.1rem 0 0;
  accent-color: var(--lime);
  cursor: pointer;
}
.demo-form__consent a { color: inherit; text-decoration: underline; white-space: nowrap; }
.demo-form__consent a:hover { text-decoration-color: var(--lime); }
.demo-form__pill button:disabled { opacity: 0.6; cursor: wait; }

/* komunikat po wysyłce (AJAX albo ?lead= bez JS) */
.form-feedback {
  display: none;
  width: 49.2rem;
  max-width: 100%;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: left;
}
.form-feedback.is-ok  { display: block; background: rgba(188, 207, 2, 0.18); color: #4a5400; }
.form-feedback.is-err { display: block; background: #fdecec; color: #b3261e; }

/* 404 */
.err404 { padding: 16rem 0 18rem; text-align: center; }
.err404 .section-title { font-size: 12rem; color: var(--lime); }
.err404__lead { margin-top: 2.4rem; }
.err404__lead a { text-decoration: underline; }
.err404__lead a:hover { color: #8c9a00; }

/* =====================================================================
   STOPKA
   ===================================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 7.1rem 0 4.2rem;
}
.footer__logo { width: 9.6rem; height: auto; }
.footer__title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin: 6.6rem 0 6.6rem -0.3rem;
}
.footer__cols { display: flex; }
.footer__col { line-height: 1.15; }
.footer__col:nth-child(1) { width: 29.2rem; }
.footer__col:nth-child(2) { width: 39rem; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  display: flex;
  align-items: center;
  margin-top: 4.2rem;
  padding-top: 4.4rem;
  border-top: 0.1rem solid var(--lime);
  font-size: 1.4rem;
  font-weight: 600;
}
.footer__copy { color: var(--muted); width: 68.2rem; }
.footer__legal { display: flex; justify-content: space-between; flex: 1; }
.footer__legal a:hover { color: var(--lime); }

/* =====================================================================
   RWD — makieta jest tylko desktopowa (1920); progi jak w Promotli
   ===================================================================== */

@media (max-width: 1440px) {
  :root { --title-size: 5rem; }
  .hero__title, .why__title { font-size: 4.6rem; }
  .system__side { width: 42rem; }
  .system__lead { width: auto; }
  .system__lead br { display: none; }
  .system__panels { margin-left: 4rem; }
}

/* ---------- jedna kolumna w hero i „Co Asetli zmieni” ---------- */
@media (max-width: 1200px) {
  .header__nav { gap: 2.4rem; margin-left: 4rem; }

  .hero { padding-bottom: 8rem; }
  .hero__text { width: auto; max-width: 66rem; }
  .hero__media {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 8rem);
    max-width: 90rem;
    margin: 6rem auto 0;
  }
  .hero::before { left: calc(50% - 48.7rem); top: auto; bottom: -20rem; }

  .why { display: flex; flex-direction: column; }
  .why__media {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    width: calc(100% - 8rem);
    max-width: 78.1rem;
    margin: 6rem auto 0;
  }
  .why::before { left: -60rem; top: auto; bottom: -40rem; }
  .why__text { margin-left: 0; width: auto; max-width: 72rem; }
  .why__title { margin-bottom: 5rem; }

  .benefits__text { margin-left: 5rem; }

  .footer__copy { width: auto; flex: 1; }
  .footer__legal { flex: none; gap: 4rem; }
}

/* ---------- tablet: burger, wszystko w jednej kolumnie ---------- */
@media (max-width: 1080px) {
  :root { --title-size: 4.4rem; --text-size: 1.8rem; }
  .hero__title, .why__title { font-size: 4.4rem; }

  /* burger + rozwijane menu na pełny ekran */
  /* logo po lewej; PL|EN i burger po prawej (wolne miejsce zbiera auto-margines na .header__lang) */
  .header__burger { display: flex; order: 2; position: relative; z-index: 3; margin-right: -0.9rem; }
  .header__lang { order: 1; margin-left: auto; margin-right: 1.6rem; }
  .header__logo { position: relative; z-index: 3; }
  .header__menu {
    position: fixed;
    top: 7.7rem;
    left: 0;
    right: 0;
    height: calc(100vh - 7.7rem);
    height: calc(100dvh - 7.7rem);
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
    padding: 3rem 4rem 4rem;
    overflow-y: auto;
    background: var(--white);
  }
  .site-header.nav-open .header__menu { display: flex; }
  .header__nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-left: 0;
    font-family: var(--font-head);
    font-size: 3.6rem;
    font-weight: 700;
  }
  .header__nav a { padding: 1.4rem 0; }
  .header__cta { margin-left: 0; min-width: 23.2rem; height: 5.8rem; border-radius: 2.7rem; font-size: 1.5rem; }

  /* benefity: tekst nad akordeonem */
  .benefits__inner { flex-direction: column; gap: 5rem; }
  .benefits__text { order: -1; margin-left: 0; padding-top: 0; width: auto; max-width: 72.6rem; }
  .accordion { width: 100%; margin-left: 0; }

  /* jeden system: bez przyklejonej kolumny i zakładek, panele jeden pod drugim */
  .system { padding: 9rem 0; }
  .system__inner { flex-direction: column; max-width: calc(100% - 8rem); }
  .system__side { position: static; width: auto; }
  .system__lead { margin-bottom: 0; }
  .system__tabs { display: none; }
  .system__panels { margin-left: 0; width: 100%; max-width: 80rem; flex: none; padding-top: 5rem; }
  .system__panel + .system__panel { margin-top: 9rem; }
  .system__panel h3,
  .system__panel p { margin-left: 0; }
  .system__glow { margin-left: calc(50% - 56.75rem); }

  .impl { padding: 9rem 0; }
  .impl-row { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 28rem); column-gap: 1rem; padding: 2rem 0; }
  .impl-row__title { font-size: 3rem; }
  .demo-banner h2 { font-size: 5.6rem; }
}

/* ---------- telefon ---------- */
@media (max-width: 768px) {
  :root { --title-size: 3.6rem; --text-size: 1.7rem; }
  .container,
  .system__inner { max-width: calc(100% - 4rem); }
  .header__menu { padding: 2rem 2rem 4rem; }
  .header__nav { font-size: 3rem; }

  /* ręczne łamania z makiety nie mają sensu przy wąskim ekranie */
  main br { display: none; }

  .btn { min-width: 0; width: 100%; }
  .header__cta { width: auto; }

  .hero { padding: 5rem 0 6rem; }
  .hero__badge { height: auto; padding: 1rem 1.6rem 1rem 1.2rem; margin-bottom: 3rem; line-height: 1.3; }
  .hero__title { font-size: 3.6rem; }
  .hero__subtitle { font-size: 2.2rem; margin: 0 0 2.4rem; }
  .hero__lead { margin: 0 0 3.2rem; }
  .hero__cta { flex-direction: column; gap: 1.2rem; }
  .hero__media { width: calc(100% - 4rem); margin-top: 4rem; }

  .why { padding: 7rem 0; }
  .why__title { font-size: 3.6rem; margin-bottom: 4rem; }
  .why__media { width: calc(100% - 4rem); margin-top: 4rem; }
  .step { gap: 2rem; }
  .step__num { width: 5rem; height: 5rem; font-size: 2rem; }
  .step__body h3 { margin-bottom: 1rem; }
  .steps { margin-bottom: 4rem; }

  .video { padding: 7rem 0; }
  .video__title { margin-bottom: 3.6rem; }
  .video__box { border-radius: 1.6rem; }
  .video__play { width: 5.6rem; height: 5.6rem; left: calc(50% - 2.8rem); top: calc(50% - 2.8rem); }
  .video__play img { width: 1.9rem; }

  /* VS jak w Promotli: pary 1 vs 1 — każdy wiersz to osobny blok
     [etykieta złe] [złe] VS. [etykieta dobre] [dobre]; etykiety z data-bad/data-good (i18n) */
  .compare { padding: 7rem 0; }
  .compare__lead { margin: 2.6rem auto 4rem; }
  .vs { gap: 0; }
  .vs__heads { display: none; }
  .vs__row { display: flex; flex-direction: column; gap: 1.2rem; }
  .vs__row + .vs__row { margin-top: 4.5rem; }
  .vs__row + .vs__row:not([data-good]) { margin-top: 1.2rem; }   /* dysk: dalsze „dobre” bez pary */
  .vs__row > span:empty { display: none; }
  .vs__row[data-bad]::before,
  .vs__row[data-good]::after {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--lime);
    text-align: center;
  }
  .vs__row[data-bad]::before { content: attr(data-bad); order: 0; margin-bottom: 0.4rem; }
  .vs__pill--bad { order: 1; }
  .vs__vs { order: 2; padding: 0.4rem 0; }
  .vs__row[data-good]::after { content: attr(data-good); order: 3; margin-bottom: 0.4rem; }
  .vs__pill--good { order: 4; }
  .vs__pill { width: 100%; min-height: 7rem; padding: 1.2rem 1.6rem 1.2rem 1.2rem; gap: 1.4rem; font-size: 1.6rem; }
  .mark { width: 4.6rem; height: 4.6rem; }
  .mark--x { background-size: 2rem auto; }
  .mark--check { background-size: 2.6rem auto; }
  .mark--num { font-size: 3rem; }
  .compare--drive { background-size: 140rem auto; }

  .benefits { padding: 7rem 0; }
  .benefits__lead { margin: 2.6rem 0 3.2rem; }
  .acc-head { padding: 1.8rem; }
  .acc-panel { padding: 0 1.8rem 2.4rem; }

  .system { padding: 7rem 0; }
  .system__lead { margin: 2.6rem 0 0; }
  .system__panels { padding-top: 4rem; }
  .system__panel + .system__panel { margin-top: 6rem; }
  .system__panel h3 { margin-bottom: 1.2rem; }

  .impl { padding: 7rem 0; }
  .impl-list { margin: 4rem 0; }
  .impl-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "icon desc";
    column-gap: 1.6rem;
    row-gap: 0.6rem;
    padding: 2.2rem 0;
  }
  .impl-row__icon { grid-area: icon; align-self: start; margin-left: 0; width: 4.6rem; height: 4.6rem; }
  .impl-row__icon img { width: 2.4rem; }
  .impl-row__title { grid-area: title; font-size: 2.4rem; }
  .impl-row__desc { grid-area: desc; font-size: 1.6rem; }

  .demo-banner { padding: 4rem 1.8rem 4.4rem; border-radius: 2rem; }
  .demo-banner h2 { font-size: 3.6rem; margin-bottom: 2.6rem; }
  .demo-form__pill { width: 100%; }
  .demo-form__pill input { padding: 0 1.4rem 0 1.8rem; font-size: 1.4rem; }
  .demo-form__pill button { width: 10rem; }

  .site-footer { padding: 5rem 0 3.4rem; }
  .footer__title { font-size: 3rem; margin: 4rem 0; }
  .footer__cols { flex-direction: column; gap: 3rem; }
  .footer__col:nth-child(n) { width: auto; }
  .footer__col h4 { margin-bottom: 1.2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-top: 4rem; padding-top: 3rem; }
  .footer__legal { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  :root { --title-size: 3.2rem; }
  .hero__title, .why__title { font-size: 3.2rem; }
  .header__nav { font-size: 2.6rem; }
  .demo-banner h2 { font-size: 3.2rem; }
  .vs__pill { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before, .acc-item, .system__tab, .video__play { transition: none; }
  /* hero bez ruchu: ułożona siatka + obie nakładki, jak w makiecie */
  .hero__media .hero__tile, .hero__media .hero__comment, .hero__media .hero__packshot { animation: none; }
}
