/* Baza wspólna dla obu motywów. Kolory, kroje i rozmiary nagłówków przychodzą z motywu (motyw-*.css).
   Układ: jedna kolumna na telefonie, jeden ekran = jedna myśl. Na komputerze naprzemienne pary obraz i tekst, bez siatek jednakowych kart. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: var(--f-tekst);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--akcent);
  scrollbar-color: var(--linia-mocna) var(--tlo);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--tlo);
}
::selection { background: var(--akcent); color: var(--na-akcencie); }

img, video { max-width: 100%; }
p, figure, h1, h2, h3, ul, ol { margin: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--f-glowa);
  font-weight: var(--glowa-waga);
  font-stretch: var(--glowa-szer);
  letter-spacing: var(--glowa-rozstaw);
  text-transform: var(--glowa-transform);
  text-wrap: balance;
  color: var(--tekst);
}
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); line-height: 1.25; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.przeskok {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--akcent); color: var(--na-akcencie); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.przeskok:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--fokus); outline-offset: 3px; border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--szer, 1200px);
  margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* ---------- Pasek górny ---------- */
.pasek {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--tlo); border-bottom: 1px solid var(--linia);
}
.pasek-wnetrze { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.nav .nav-cta { display: none; }
.marka {
  margin-right: auto; color: var(--tekst); text-decoration: none; white-space: nowrap;
  font-family: var(--f-glowa); font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--tekst-2); text-decoration: none; font-size: .9375rem; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--tekst); }
.nav-link[aria-current="page"] { color: var(--tekst); background: var(--tlo-2); }
.menu-przycisk { display: none; }

@media (max-width: 980px) {
  .menu-przycisk {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--linia-mocna); border-radius: 12px; background: transparent; color: var(--tekst); cursor: pointer;
  }
  .menu-przycisk path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .25s; transform-origin: 12px 12px; }
  .pasek[data-otwarte] .m1 { transform: translateY(4px) rotate(45deg); }
  .pasek[data-otwarte] .m2 { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--tlo); border-bottom: 1px solid var(--linia);
    padding: 4px max(22px, env(safe-area-inset-right, 0px)) 18px max(22px, env(safe-area-inset-left, 0px));
  }
  .pasek[data-otwarte] .nav { display: flex; }
  .nav-link { border-radius: 0; padding: 15px 0; font-size: 1.0625rem; color: var(--tekst); border-top: 1px solid var(--linia); }
  .nav-link[aria-current="page"] { background: none; color: var(--akcent-tekst); }
  .nav .nav-cta { display: flex; margin-top: 14px; }
}
@media (max-width: 400px) { .pasek .btn-maly { display: none; } }

/* ---------- Przyciski i linki ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--r-btn); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-glowny { background: var(--akcent); color: var(--na-akcencie); }
.btn-glowny:hover { background: var(--akcent-hover); }
.btn-drugi { background: transparent; color: var(--tekst); border-color: var(--linia-mocna); }
.btn-drugi:hover { border-color: var(--tekst-2); }
.btn-maly { min-height: 40px; padding: 8px 14px; font-size: .9375rem; white-space: nowrap; }

.dalej {
  display: inline-flex; align-items: center; gap: 8px; padding-block: 6px;
  color: var(--akcent-tekst); font-weight: 600; text-decoration: none;
}
.dalej::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.dalej:hover::after { transform: translateX(3px); }
.dalej:hover { text-decoration: underline; }

/* ---------- Sekcje ---------- */
.sekcja { padding-block: clamp(60px, 11vw, 136px); }
.sekcja-ciasna { padding-top: 0; }
.sekcja > .wrap > h2 { max-width: 22ch; }
.sekcja-dopisek { margin-top: 28px; max-width: 62ch; font-size: .9375rem; color: var(--tekst-3); }
.sekcja-dopisek a { color: var(--akcent-tekst); font-weight: 600; white-space: nowrap; }
.waski { display: flex; flex-direction: column; gap: 18px; }
.waski > * { max-width: 46rem; }
.waski p { color: var(--tekst-2); }

/* ---------- Pierwszy ekran ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-tlo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-tlo canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-wnetrze {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding-block: clamp(56px, 10vw, 120px) clamp(40px, 6vw, 80px);
}
.hero h1 { max-width: 19ch; }
.hero-podstrona h1 { max-width: 16ch; }
.lead { max-width: 40rem; color: var(--tekst-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.akcje { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.film-hero { width: 100%; margin-top: clamp(20px, 4vw, 44px); }
.hero-bez-tla .hero-wnetrze { padding-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 560px) {
  .akcje { width: 100%; }
  .akcje .btn { flex: 1 1 100%; }
}

/* ---------- Filmy ---------- */
.film { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film-ramka {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  border-radius: var(--r-duzy); border: 1px solid var(--linia); background: var(--tlo-2);
}
.film-wideo { display: block; width: 100%; height: 100%; object-fit: cover; }
.film figcaption { max-width: 62ch; font-size: .875rem; line-height: 1.5; color: var(--tekst-3); }
.film-przyciski { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.film-przycisk {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--linia-mocna); color: var(--tekst);
  background: color-mix(in srgb, var(--tlo) 78%, transparent);
}
.film-przycisk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film-przycisk:hover { background: var(--tlo-2); }

/* ---------- Wyniki ---------- */
.wyniki { display: grid; margin-top: clamp(36px, 5vw, 64px); }
.wynik { display: grid; gap: 24px; padding-block: clamp(32px, 5vw, 52px); border-top: 1px solid var(--linia); }
.wynik:last-child { border-bottom: 1px solid var(--linia); }
.wynik-tekst { display: flex; flex-direction: column; gap: 10px; max-width: 40rem; }
.wynik-tekst p { color: var(--tekst-2); }
.wynik-tekst .wynik-kto { font-size: .875rem; color: var(--tekst-3); }
@media (min-width: 860px) {
  .wynik { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
}

.wykres-paski { display: grid; gap: 14px; min-width: 0; }
.wykres-tytul { font-size: .875rem; font-weight: 600; color: var(--tekst-2); margin-top: 6px; }
.pasek-wiersz { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr) 4.4rem; align-items: center; gap: 12px; font-size: .9375rem; }
.pasek-etykieta { color: var(--tekst-2); }
.pasek-tor { height: 12px; border-radius: 999px; background: var(--tlo-3); overflow: hidden; }
.pasek-wypelnienie { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--tekst-3); }
.pasek-po .pasek-wypelnienie { background: var(--akcent); }
.pasek-po .pasek-etykieta { color: var(--tekst); }
.pasek-wartosc { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.wykres-duzy { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-duzy); border: 1px solid var(--linia); background: var(--tlo-2); }

.kropki { display: grid; grid-template-columns: repeat(19, minmax(0, 1fr)); gap: 7px; max-width: 460px; }
.kropki i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--akcent); }
.kropki i.x { background: transparent; box-shadow: inset 0 0 0 2px var(--zle); }
.wykres-podpis { margin-top: 16px; font-size: .9375rem; color: var(--tekst-2); }
.wykres-podpis strong { color: var(--tekst); font-variant-numeric: tabular-nums; }

/* ---------- Kroki ---------- */
.kroki { list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 64px); display: grid; }
.krok {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 14px; row-gap: 6px;
  padding-block: 26px; border-top: 1px solid var(--linia);
}
.krok > :not(.krok-nr) { grid-column: 2; }
.krok-nr {
  grid-row: 1 / span 3; font-family: var(--f-glowa); font-size: 2.25rem; line-height: 1;
  font-weight: 500; color: var(--akcent-tekst); font-variant-numeric: tabular-nums;
}
.krok-cena { font-weight: 650; color: var(--tekst); }
.krok p:not(.krok-cena) { color: var(--tekst-2); }
@media (min-width: 900px) {
  .kroki { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }

  .krok { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
  .krok-nr { font-size: 3rem; margin-bottom: 6px; }
}

/* ---------- Etapy na stronie cen ---------- */
.etapy { list-style: none; padding: 0; display: grid; }
.etap { display: grid; gap: 14px; padding-block: 32px; border-top: 1px solid var(--linia); }
.etap-glowa { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: baseline; }
.etap-glowa .krok-nr { grid-row: 1 / span 2; }
.etap-glowa h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); }
.etap-cena { grid-column: 2; font-weight: 650; font-size: 1.125rem; color: var(--akcent-tekst); }
.etap-tresc { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; }
.etap-tresc p { color: var(--tekst-2); }

.etap-wyrozniony { padding: 28px clamp(20px, 4vw, 36px); border: 1px solid var(--linia-mocna); border-radius: var(--r-duzy); background: var(--tlo-2); margin-block: 8px; }
.etap-wyrozniony + .etap { border-top: 0; }

@media (min-width: 860px) {
  .etap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }

}

/* ---------- Pary tekst i obraz ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split-tekst { display: flex; flex-direction: column; gap: 16px; max-width: 40rem; min-width: 0; }
.split-tekst p { color: var(--tekst-2); }
.split-tekst .przypis { font-size: .9375rem; color: var(--tekst-3); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); }
  .split-odwrotny > :first-child { order: 2; }
}

/* ---------- Listy ze znacznikiem ---------- */
.lista-znaczniki { list-style: none; padding: 0; display: grid; gap: 16px; }
.lista-znaczniki li { position: relative; padding-left: 34px; color: var(--tekst-2); }
.lista-znaczniki li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; background: var(--akcent-tekst);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dane { display: grid; gap: 32px; }
@media (min-width: 900px) { .dane { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: start; } }

/* ---------- O mnie ---------- */
.omnie { display: grid; gap: 32px; align-items: center; }
.omnie-zdjecie { display: block; width: 100%; max-width: 380px; height: auto; aspect-ratio: 900 / 1117; object-fit: cover; border-radius: var(--r-duzy); }
.omnie-tekst { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 40rem; }
.omnie-tekst p { color: var(--tekst-2); }
@media (min-width: 860px) { .omnie { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); } }

/* ---------- Pytania ---------- */
.pytania { display: grid; gap: 28px; }
.faq { border-bottom: 1px solid var(--linia); }
.faq details { border-top: 1px solid var(--linia); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding-block: 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--tekst-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--akcent-tekst); }
.faq details p { padding-bottom: 22px; max-width: 62ch; color: var(--tekst-2); }
.faq details p a { color: var(--akcent-tekst); font-weight: 600; }
@media (min-width: 900px) { .pytania { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; } }

/* ---------- Kontakt ---------- */
.kontakt { padding-top: 0; }
.kontakt-panel {
  display: grid; gap: 32px; padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-duzy); background: var(--panel); color: var(--panel-tekst); border: 1px solid var(--panel-linia);
}
.kontakt-panel h2 { color: var(--panel-tekst); }
.kontakt-tekst { display: flex; flex-direction: column; gap: 14px; }
.kontakt-tekst p { color: var(--panel-tekst-2); max-width: 34rem; }
.formularz { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pole { display: flex; flex-direction: column; gap: 8px; }
.pole label { font-weight: 600; font-size: .9375rem; }
.opcja { font-weight: 400; color: var(--panel-tekst-2); }
.pole input, .pole textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--panel-tekst);
  background: var(--pole-tlo); border: 1px solid var(--pole-linia); border-radius: 12px; padding: 13px 15px;
}
.pole textarea { resize: vertical; min-height: 96px; }
.pole input::placeholder, .pole textarea::placeholder { color: var(--panel-tekst-2); opacity: .85; }
.pole input:focus-visible, .pole textarea:focus-visible { outline: 2px solid var(--panel-fokus); outline-offset: 1px; }
.pole input[aria-invalid="true"] { border-color: var(--panel-blad); }
.kontakt-panel .btn-glowny { background: var(--panel-btn); color: var(--panel-btn-tekst); align-self: flex-start; }
.kontakt-panel .btn-glowny:hover { background: var(--panel-btn-hover); }
.kontakt-panel :focus-visible { outline-color: var(--panel-fokus); }
.formularz-status { min-height: 1.5em; font-size: .9375rem; color: var(--panel-tekst); }
.kontakt-formularz { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.formularz-tally iframe { display: block; width: 100%; min-height: 420px; border: 0; color-scheme: normal; }
.formularz-zgoda { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.formularz-zgoda p { font-size: .9375rem; line-height: 1.55; color: var(--panel-tekst-2); max-width: 34rem; }
.formularz-zgoda a { color: var(--panel-tekst); }
.formularz-awaria { color: var(--panel-tekst); font-size: .9375rem; margin-bottom: 14px; }
.formularz-awaria a, .kontakt-rodo a { color: var(--panel-tekst); }
.kontakt-rodo { font-size: .8125rem; line-height: 1.5; color: var(--panel-tekst-2); max-width: 36rem; }
@media (min-width: 900px) { .kontakt-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
@media (max-width: 560px) { .kontakt-panel .btn-glowny { align-self: stretch; } }

/* ---------- Stopka ---------- */
.stopka { border-top: 1px solid var(--linia); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); }
.stopka-wnetrze { display: grid; gap: 28px; }
.stopka-marka { display: flex; flex-direction: column; gap: 8px; max-width: 30rem; }
.stopka-marka p { color: var(--tekst-3); font-size: .9375rem; }
.stopka-linki { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 24px; }
.stopka-linki a { color: var(--tekst-2); text-decoration: none; padding-block: 6px; font-size: .9375rem; }
.stopka-linki a:hover { color: var(--tekst); text-decoration: underline; }

.stopka-firma { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--linia); }
.stopka-firma p { font-size: .8125rem; line-height: 1.55; color: var(--tekst-3); max-width: 62rem; }
.stopka-firma a { color: var(--tekst-2); display: inline-block; padding-block: 6px; }
.stopka-firma a:hover { color: var(--tekst); }
@media (min-width: 900px) { .stopka-wnetrze { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }  .stopka-firma { grid-column: 1 / -1; } }

/* Polityka prywatności: tekst do czytania, tabela odbiorców */
.sekcja > .wrap.polityka > h2 { max-width: none; font-size: var(--t-h3); margin-top: 20px; text-transform: none; font-stretch: 106%; letter-spacing: -.005em; }
.polityka h3 { font-size: 1.0625rem; text-transform: none; margin-top: 4px; }
.polityka ul { display: flex; flex-direction: column; gap: 6px; padding-left: 1.2em; color: var(--tekst-2); }
.polityka a { color: var(--akcent-tekst); }
.tabela-ramka { overflow-x: auto; max-width: 46rem; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tabela th, .tabela td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--linia); vertical-align: top; }
.tabela th { color: var(--tekst); font-weight: 600; }
.tabela td { color: var(--tekst-2); }

/* ---------- Kalkulator ---------- */
.kalkulator { display: grid; gap: 32px; align-items: start; }
.kalk-tekst { display: flex; flex-direction: column; gap: 16px; max-width: 34rem; }
.kalk-tekst p { color: var(--tekst-2); }
.kalk {
  display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 4vw, 36px);
  border-radius: var(--r-duzy); border: 1px solid var(--linia-mocna); background: var(--tlo-2);
}
.kalk-etykieta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.kalk-etykieta label { font-weight: 600; font-size: .9375rem; }
.kalk-etykieta output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--akcent-tekst); white-space: nowrap; }
:is(.kalk, .modele) input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--akcent); background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
:is(.kalk, .modele) input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--akcent) var(--wyp, 50%), var(--tlo-3) var(--wyp, 50%)); }
:is(.kalk, .modele) input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--akcent) 30%, transparent); }
:is(.kalk, .modele) input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tlo-3); }
:is(.kalk, .modele) input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--akcent); }
:is(.kalk, .modele) input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--akcent) 30%, transparent); }
.kalk-wynik { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--linia); }
.kalk-wiersz { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--tekst-2); }
.kalk-wiersz strong { color: var(--tekst); font-variant-numeric: tabular-nums; }
.kalk-liczba { font-family: var(--f-glowa); font-weight: 760; font-stretch: var(--glowa-szer); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.1; color: var(--tekst); font-variant-numeric: tabular-nums; }
.kalk-uwaga { font-size: .8125rem; color: var(--tekst-3); }
.kalk .btn { align-self: flex-start; }
@media (min-width: 900px) { .kalkulator { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
@media (max-width: 560px) { .kalk .btn { align-self: stretch; } }

/* ---------- Demo czatu ---------- */
.czat { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-duzy); border: 1px solid var(--linia-mocna); background: var(--tlo-2); }
.czat-glowa { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linia); font-weight: 600; font-size: .9375rem; }
.czat-kropka { width: 8px; height: 8px; border-radius: 50%; background: #6fe6b0; box-shadow: 0 0 0 4px rgba(111, 230, 176, .15); }
.czat-okno { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 380px; padding: 18px; overflow-y: auto; }
.czat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.45; }
.czat-ai { align-self: flex-start; background: var(--tlo-3); border-bottom-left-radius: 4px; }
.czat-ja { align-self: flex-end; background: var(--akcent); color: var(--na-akcencie); border-bottom-right-radius: 4px; }
.czat-system { align-self: center; max-width: 100%; padding: 6px 12px; font-size: .8125rem; color: var(--zle); border: 1px dashed color-mix(in srgb, var(--zle) 60%, transparent); border-radius: 999px; }
.czat-zrodlo { display: block; margin-top: 6px; font-size: .8125rem; color: var(--akcent-tekst); }
.czat-pytania { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--linia); }
.czat-pyt {
  min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--linia-mocna);
  background: transparent; color: var(--tekst); font: inherit; font-size: .9375rem; cursor: pointer; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.czat-pyt:hover { border-color: var(--akcent-tekst); background: color-mix(in srgb, var(--akcent) 10%, transparent); }
.czat-pyt:disabled { opacity: .4; cursor: default; }
.czat-pisze { display: inline-flex; gap: 5px; padding-block: 4px; }
.czat-pisze i { width: 7px; height: 7px; border-radius: 50%; background: var(--tekst-2); animation: pisanie 1s infinite ease-in-out; }
.czat-pisze i:nth-child(2) { animation-delay: .15s; }
.czat-pisze i:nth-child(3) { animation-delay: .3s; }
@keyframes pisanie { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Lista wszystkich usług ---------- */
.grupa-uslug { display: grid; gap: 24px; }
.lista-uslug { display: grid; }
.pozycja { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 22px; border-top: 1px solid var(--linia); }
.pozycja:last-child { border-bottom: 1px solid var(--linia); }
.pozycja p { max-width: 62ch; color: var(--tekst-2); }
@media (min-width: 900px) { .grupa-uslug { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; } }

/* ---------- Zakładki z przykładami procesów (strona główna) ---------- */
[hidden] { display: none !important; }
.procesy-zakladki { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 4vw, 40px); }
.zakladka {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--linia-mocna);
  background: transparent; color: var(--tekst-2); font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.zakladka:hover { color: var(--tekst); border-color: var(--tekst-2); }
.zakladka[aria-selected="true"] { background: var(--akcent); border-color: var(--akcent); color: var(--na-akcencie); }
.proces { display: grid; gap: 28px; align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.proces-tekst { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 34rem; min-width: 0; }

 .proces > .czat, .proces > .film { min-width: 0; }
@media (min-width: 900px) { .proces { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 80px); } }
@media (prefers-reduced-motion: no-preference) {
  .proces:not([hidden]) { animation: proces-wejscie .5s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes proces-wejscie { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Pierwszy ekran z filmem w tle (podstrona o agentach) ---------- */
.hero-wideo-tlo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  /* 16.11: wideo wygasa w tło strony zamiast kończyć się ostrą krawędzią (komentarz Nicolasa o „chamskim ucięciu”). */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .18) 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .18) 86%, transparent 100%);
}
.hero-wideo-tlo video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.hero-wideo-cichy video { opacity: .5; }
.hero-wideo-tlo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 48% at 50% 58%, rgba(5, 7, 13, .72) 0%, rgba(5, 7, 13, .35) 55%, rgba(5, 7, 13, 0) 100%),
    linear-gradient(to bottom, rgba(5, 7, 13, .3) 0%, rgba(5, 7, 13, .12) 45%, rgba(5, 7, 13, .8) 100%);
}
.hero-wideo h1, .hero-wideo .lead { text-shadow: 0 2px 18px rgba(5, 7, 13, .95), 0 0 2px rgba(5, 7, 13, .8); }
.hero-wideo .lead { color: var(--tekst); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Pokazy do klikania na stronie głównej (15.11): agent w kilku programach, test przed zakupem, koszt i model ----------
   Bez kroju mono i bez wyglądu terminala (zasady 2 i 4). Nazwy programów zwykłym tekstem, bez chipów (zasada 5).
   Bez skryptu każdy pokaz stoi w stanie końcowym. */
:root { --czlowiek: #f2c46d; }
.proces > .pokaz-ramka { min-width: 0; }
.pokaz-ramka { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pokaz-podpis { font-size: .8125rem; line-height: 1.5; color: var(--tekst-3); }
.pokaz {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: clamp(18px, 3.4vw, 28px); border-radius: var(--r-duzy);
  border: 1px solid var(--linia-mocna); background: var(--tlo-2);
}

/* Agent: wybór sprawy, kroki z paskiem i statusem, dziennik */
.agent-wybor { display: inline-flex; align-self: flex-start; max-width: 100%; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid var(--linia); background: var(--tlo); }
.agent-sprawa {
  min-height: 44px; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent;
  color: var(--tekst-2); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.agent-sprawa:hover { color: var(--tekst); }
.agent-sprawa[aria-pressed="true"] { background: var(--tlo-3); color: var(--tekst); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .7); }
.agent-kroki { list-style: none; padding: 0; margin: 0; display: grid; }
.agent-krok {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 14px; row-gap: 8px; padding-block: 10px; color: var(--tekst-3); transition: color .3s;
}
.agent-krok::before {
  content: ""; position: absolute; left: 11px; top: 39px; bottom: -7px; width: 2px; border-radius: 1px;
  background: var(--linia); transition: background-color .4s;
}
.agent-krok:last-child::before { display: none; }
.agent-ikona {
  grid-column: 1; grid-row: 1; position: relative; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; border: 2px solid var(--linia-mocna); background: var(--tlo-2);
  transition: border-color .3s, background-color .3s;
}
.agent-opis { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.agent-opis b { font-weight: 600; font-size: 1rem; color: inherit; }
.agent-program { font-size: .8125rem; color: var(--tekst-3); }
.agent-status { grid-column: 3; grid-row: 1; margin-top: 3px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.agent-pasek { grid-column: 2 / 4; grid-row: 2; height: 3px; border-radius: 2px; background: var(--tlo-3); overflow: hidden; }
.agent-pasek i { display: block; height: 100%; background: var(--akcent); transform: scaleX(0); transform-origin: left; }
.agent-czlowiek .agent-pasek { display: none; }
.agent-zatwierdz {
  grid-column: 2 / 4; grid-row: 2; justify-self: start; min-height: 44px; padding: 8px 20px;
  border-radius: var(--r-btn); border: 1px solid var(--czlowiek); background: color-mix(in srgb, var(--czlowiek) 14%, transparent);
  color: var(--tekst); font: inherit; font-size: .9375rem; font-weight: 650; cursor: pointer; transition: background-color .2s;
}
.agent-zatwierdz:hover { background: color-mix(in srgb, var(--czlowiek) 28%, transparent); }
.agent-krok[data-stan] { color: var(--tekst); }
.agent-krok[data-stan="w-toku"] .agent-ikona { border-color: var(--akcent-tekst); border-right-color: transparent; animation: agent-krec .8s linear infinite; }
.agent-krok[data-stan="w-toku"] .agent-status { color: var(--akcent-tekst); }
.agent-krok[data-stan="w-toku"] .agent-pasek i { transform: scaleX(1); transition: transform var(--t, 1100ms) cubic-bezier(.45, 0, .2, 1); }
.agent-krok[data-stan="gotowe"] .agent-ikona { border-color: var(--akcent); background: var(--akcent); }
.agent-krok[data-stan="gotowe"] .agent-ikona::after {
  content: ""; position: absolute; inset: 3px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.agent-krok[data-stan="gotowe"] .agent-status { color: var(--tekst-3); font-weight: 500; }
.agent-krok[data-stan="gotowe"] .agent-pasek i { transform: scaleX(1); background: color-mix(in srgb, var(--akcent) 50%, var(--tlo-3)); }
.agent-krok[data-stan="gotowe"]::before { background: color-mix(in srgb, var(--akcent) 70%, transparent); }
.agent-krok[data-stan="czlowiek"] .agent-ikona { border-color: var(--czlowiek); }
.agent-krok[data-stan="czlowiek"] .agent-ikona::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--czlowiek); animation: agent-czeka 1.6s ease-in-out infinite; }
.agent-krok[data-stan="czlowiek"] .agent-status { color: var(--czlowiek); }
.agent-bez-przejsc, .agent-bez-przejsc * { transition: none !important; }
.agent-dziennik { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--linia); }
.agent-dziennik-glowa { font-size: .8125rem; font-weight: 600; color: var(--tekst-3); }
.agent-wpisy { list-style: none; padding: 0; margin: 0; display: grid; align-content: start; gap: 6px; font-size: .875rem; min-height: calc(4 * 1.45em + 18px); }
.agent-wpisy li { position: relative; padding-left: 16px; line-height: 1.45; color: var(--tekst-2); animation: agent-wpis .45s var(--e, ease-out) both; }
.agent-wpisy li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--akcent-tekst); }
.agent-wpisy li[data-rodzaj="czlowiek"]::before { background: var(--czlowiek); }
@keyframes agent-krec { to { transform: rotate(360deg); } }
@keyframes agent-czeka { 50% { opacity: .3; } }
@keyframes agent-wpis { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 420px) {
  .agent-krok { column-gap: 12px; }
  .agent-status { max-width: 5.6rem; white-space: normal; text-align: right; line-height: 1.3; }
}

/* Test przed zakupem: 20 pytań, wynik, błędne odpowiedzi obok dobrych */
.test-glowa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.test-start[aria-disabled="true"] { opacity: .55; cursor: progress; }
.test-licznik { font-size: .9375rem; color: var(--tekst-2); font-variant-numeric: tabular-nums; }
.test-licznik b { margin-right: 4px; font-family: var(--f-glowa); font-stretch: var(--glowa-szer); font-weight: 760; font-size: 1.5rem; color: var(--tekst); }
.test-siatka { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.test-siatka li { position: relative; aspect-ratio: 1; border-radius: 6px; transition: background-color .25s, box-shadow .25s; }
.test-siatka li[data-w="ok"], .test-znak[data-w="ok"] { background: var(--akcent); }
.test-siatka li[data-w="zle"], .test-znak[data-w="zle"] { background: transparent; box-shadow: inset 0 0 0 2px var(--zle); }
.test-siatka li[data-w="czlowiek"], .test-znak[data-w="czlowiek"] { background: color-mix(in srgb, var(--czlowiek) 22%, transparent); box-shadow: inset 0 0 0 2px var(--czlowiek); }
.test-siatka li[data-w="zle"]::after {
  content: ""; position: absolute; inset: 26%; background: var(--zle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.test-js .test-siatka li:not(.pokazane) { background: var(--tlo-3); box-shadow: none; }
.test-js .test-siatka li:not(.pokazane)::after { display: none; }
.test-js:not(.test-gotowy) .test-wynik, .test-js:not(.test-gotowy) .test-bledy { display: none; }
.test-gotowy .test-wynik, .test-gotowy .test-bledy { animation: agent-wpis .5s var(--e, ease-out) both; }
.test-wynik { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.test-wynik p { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--tekst-2); }
.test-wynik b { font-weight: 700; color: var(--tekst); font-variant-numeric: tabular-nums; }
.test-znak { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.test-bledy { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.test-bledy li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--linia); font-size: .9375rem; }
.test-pytanie { font-weight: 600; color: var(--tekst); }
.test-ai { color: var(--zle); }
.test-dobrze { color: var(--akcent-tekst); }

/* Koszt i model: suwak i tabela z testu 14 modeli */
.modele-tabela { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.modele-tabela th, .modele-tabela td { padding: 12px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--linia); }
.modele-tabela th:first-child, .modele-tabela td:first-child { padding-left: 0; }
.modele-tabela th:last-child, .modele-tabela td:last-child { padding-right: 0; width: 40%; }
.modele-tabela thead th { padding-top: 0; border-top: 0; font-size: .8125rem; font-weight: 600; color: var(--tekst-3); }
.modele-tabela tbody th { font-weight: 600; color: var(--tekst); }
.modele-tabela td { color: var(--tekst-2); }
.modele-koszt { display: block; font-weight: 700; color: var(--tekst); }
.modele-pasek { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--tlo-3); overflow: hidden; }
.modele-pasek i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--akcent); }

/* Wyniki i o mnie */
.wykres-koszt .pasek-wiersz { grid-template-columns: 7.6rem minmax(0, 1fr) 5.4rem; }
.omnie-linki { display: flex; flex-wrap: wrap; gap: 12px 28px; }

@media (prefers-reduced-motion: reduce) {
  .agent-ikona, .agent-ikona::after, .agent-wpisy li, .test-gotowy .test-wynik, .test-gotowy .test-bledy { animation: none !important; }
}

/* ---------- 5 kroków i lista usług pod zakładkami (15.11 późnym wieczorem) ---------- */
@media (min-width: 900px) {
  .kroki-piec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .kroki-piec { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
}
.uslugi-inne {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--linia);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.uslugi-inne p { max-width: 62ch; color: var(--tekst-2); }
.uslugi-inne ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.uslugi-inne li a {
  color: var(--tekst); text-decoration: underline; text-decoration-color: var(--linia);
  text-underline-offset: 5px; text-decoration-thickness: 1px; display: inline-block; padding-block: 6px;
}
.uslugi-inne li a:hover { color: var(--akcent-tekst); text-decoration-color: currentColor; }
.uslugi-inne li a:focus-visible { outline: 2px solid var(--akcent-tekst); outline-offset: 3px; border-radius: 4px; }
.agent-wybor { flex-wrap: wrap; }

/* ---------- Nowe podstrony usług (16.11) ---------- */
.wyniki-stos { display: grid; gap: 32px; min-width: 0; align-content: center; }
.grupa-wstep { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.grupa-wstep p { color: var(--tekst-2); max-width: 40ch; }


/* Motyw Vexon: głęboki granat, halo cząsteczek nad nagłówkiem, nagłówki wersalikami w szerokim Archivo.
   Jedna rodzina (Archivo) w dwóch szerokościach: nagłówki 118%, tekst 100%. Bez gradientu w tekście, bez szkła. */
/* Archivo z własnego serwera (zrodla/fonty, SIL OFL), zakresy znaków jak w Google Fonts v25 */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
  src: url("archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
  src: url("archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --tlo: #05070d;
  --tlo-2: #0c111d;
  --tlo-3: #161d2e;
  --linia: rgba(222, 230, 255, .11);
  --linia-mocna: rgba(222, 230, 255, .26);
  --tekst: #f1f3fa;
  --tekst-2: #b0b6ca;
  --tekst-3: #8f96ad;
  --akcent: #2f63f0;
  --akcent-hover: #4073ff;
  --na-akcencie: #ffffff;
  --akcent-tekst: #94b1ff;
  --fokus: #94b1ff;
  --zle: #ff8d7d;

  --panel: #0c111d;
  --panel-linia: rgba(222, 230, 255, .16);
  --panel-tekst: #f1f3fa;
  --panel-tekst-2: #b0b6ca;
  --panel-btn: #2f63f0;
  --panel-btn-tekst: #ffffff;
  --panel-btn-hover: #4073ff;
  --panel-fokus: #94b1ff;
  --panel-blad: #ff8d7d;
  --pole-tlo: #05070d;
  --pole-linia: rgba(222, 230, 255, .24);

  --f-glowa: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-tekst: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --glowa-waga: 760;
  --glowa-rozstaw: -.012em;
  --glowa-transform: uppercase;
  --glowa-szer: 118%;
  --t-h1: clamp(1.875rem, 1.1rem + 3.3vw, 4.125rem);
  --t-h2: clamp(1.5rem, 1.12rem + 1.5vw, 2.5rem);
  --t-h3: 1.1875rem;
  --r-duzy: 8px;
  --r-btn: 8px;
  --szer: 1240px;
}
h3, .etap-glowa h2, .faq summary { text-transform: none; font-stretch: 106%; letter-spacing: -.005em; }
.hero-wnetrze { align-items: center; text-align: center; padding-top: clamp(150px, 26vw, 300px); }
.hero-podstrona .hero-wnetrze { padding-top: clamp(120px, 20vw, 230px); }
.hero-bez-tla .hero-wnetrze { padding-top: clamp(56px, 10vw, 120px); }
.hero .lead { margin-inline: auto; }
.hero .akcje { justify-content: center; }
.hero h1 { max-width: 20ch; }
.hero .film figcaption { margin-inline: auto; text-align: center; }
.marka { text-transform: uppercase; font-stretch: 118%; font-weight: 760; letter-spacing: .02em; font-size: .9375rem; }
.krok-nr { font-stretch: 118%; font-weight: 700; }

/* ---------- Tło strony i animacje (14.11 wieczorem) ----------
   Tło rysuje anim-vexon.js na stałym płótnie pod treścią: jaśnieje ku dołowi, poświata i pył schodzą z góry w dół.
   Wszystko, co ukrywane do animacji, ukrywa się tylko przy klasie js-anim (ustawianej w <head>), więc bez skryptu treść jest widoczna. */
:root { --e: cubic-bezier(.16, 1, .3, 1); }
.tlo-strony { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.pasek, body::before { background: var(--tlo-pasek, var(--tlo)); transition: background-color .3s linear; }
:root { --panel: #0e1630; }

.btn-glowny { box-shadow: 0 10px 28px -14px rgba(47, 99, 240, .75); transition: background-color .2s, box-shadow .3s var(--e), transform .3s var(--e); }
.btn-glowny:hover { box-shadow: 0 14px 34px -12px rgba(64, 115, 255, .9); transform: translateY(-1px); }
.btn-drugi { transition: border-color .2s, background-color .2s; }
.btn-drugi:hover { background: rgba(222, 230, 255, .05); }

@media (prefers-reduced-motion: no-preference) {
  /* wejście pierwszego ekranu: czysty CSS, rusza przy pierwszym wyświetleniu, bez czekania na skrypt.
     Słowa nagłówka (span.slowo, --i) i liczbę słów (--n na sekcji .hero) wstawia build.py. */
  .js-anim .hero h1 .slowo { display: inline-block; animation: wejscie-slowo .95s var(--e) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
  .js-anim .hero-wnetrze > :not(h1) { animation: wejscie-hero 1.05s var(--e) both; animation-delay: calc(260ms + var(--n, 0) * 55ms + var(--k, 0) * 110ms); }
  .js-anim .hero-wnetrze > :nth-child(3) { --k: 1; }
  .js-anim .hero-wnetrze > :nth-child(4) { --k: 2; }
  .js-anim .hero-wnetrze > :nth-child(5) { --k: 3; }

  /* odsłanianie sekcji */
  .js-anim .czeka { opacity: 0; transform: translateY(34px); }
  .js-anim .czeka.widac {
    opacity: 1; transform: none;
    transition: opacity .9s var(--e) var(--d, 0ms), transform 1.05s var(--e) var(--d, 0ms), letter-spacing 1.2s var(--e) var(--d, 0ms);
  }
  .js-anim h2.czeka { letter-spacing: .06em; }
  .js-anim h2.czeka.widac { letter-spacing: var(--glowa-rozstaw); }
  .js-anim .czeka-obraz { opacity: 0; clip-path: inset(24% 0 0 0 round var(--r-duzy)); transform: translateY(26px) scale(1.02); }
  .js-anim .czeka-obraz.widac {
    opacity: 1; clip-path: inset(0 0 0 0 round var(--r-duzy)); transform: none;
    transition: opacity .7s var(--e) var(--d, 0ms), clip-path 1.25s var(--e) var(--d, 0ms), transform 1.25s var(--e) var(--d, 0ms);
  }

  /* wykresy */
  .js-anim .wykres-czeka .pasek-wypelnienie { width: 0; }
  .js-anim .wykres-gra .pasek-wypelnienie { width: var(--w); transition: width 1.5s var(--e) var(--d, 0ms); }
  .js-anim .wykres-czeka .kropki i { background: var(--tlo-3); }
  .js-anim .wykres-czeka .kropki i.x { background: transparent; box-shadow: inset 0 0 0 2px transparent; }
  .js-anim .wykres-gra .kropki i { background: var(--akcent); transition: background-color .35s linear var(--d, 0ms), box-shadow .35s linear var(--d, 0ms); }
  .js-anim .wykres-gra .kropki i.x { background: transparent; box-shadow: inset 0 0 0 2px var(--zle); }
}
/* ---------- Płynne przejścia między podstronami (przeglądarki z View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .pasek { view-transition-name: pasek; }
  .tlo-strony { view-transition-name: tlo-strony; }
  ::view-transition-old(root) { animation: vt-wyjscie .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-wejscie .55s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes wejscie-hero { from { opacity: 0; transform: translateY(18px); } }
@keyframes wejscie-slowo { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } }
@keyframes vt-wyjscie { to { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
@keyframes vt-wejscie { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
