/* ===== Black Tur — style (ciemne i jasne sekcje na przemian) ===== */
:root {
  --blue: #0b5be0;          /* kolor z logo */
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* Jasne sekcje (lekko chłodna biel, nie czysta) */
.light, body {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --line: #dfe6f1;
  --text: #0f1729;
  --muted: #56627b;
  --accent-text: #0b5be0;
  --blue-soft: #e6eeff;
  --blue-glow: rgba(11, 91, 224, .22);
  --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 10px 30px rgba(15, 23, 41, .07);
}
.light { background: var(--bg); color: var(--text); }
.light--alt { --bg: #e9eef7; }

/* Ciemne sekcje (granat z logo) */
.dark {
  --bg: #070c18;
  --surface: #101a30;
  --line: rgba(255, 255, 255, .1);
  --text: #eef2fa;
  --muted: #9aa6bf;
  --accent-text: #6ea0ff;
  --blue-soft: rgba(11, 91, 224, .15);
  --blue-glow: rgba(11, 91, 224, .4);
  --shadow: none;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: #070c18;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.accent {
  background: linear-gradient(90deg, #3d82ff, #8ab6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }

/* ----- Przyciski ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 28px var(--blue-glow); }
.btn--primary:hover { background: #2a72f0; transform: translateY(-2px); box-shadow: 0 14px 36px var(--blue-glow); }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn--sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }

/* ----- Nawigacja ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 12, 24, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.nav__logo img { height: 45px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ----- Hero z wideo ----- */
/* Wideo na całe tło; ruch dzieje się po prawej, tekst stoi po lewej, wysoko */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 156px 0 0; overflow: hidden;
}
/* pierwsze wideo przesunięte w prawo: ruch obok tekstu, lewa krawędź wtapia się w granat */
.hero__video {
  position: absolute; top: 0; left: 44%; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%), linear-gradient(0deg, transparent 0%, #000 20%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%), linear-gradient(0deg, transparent 0%, #000 20%);
  mask-composite: intersect;
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,12,24,.7) 0%, rgba(7,12,24,0) 50%);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,91,224,.3), transparent 65%);
  top: -380px; right: -250px; pointer-events: none; filter: blur(20px);
}
.hero__copy { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 56px; }
.hero h1 { max-width: 640px; font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 24px; text-shadow: 0 2px 30px rgba(7,12,24,.7); }
.hero .lead { color: #d3dbea; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Pasek faktów na dole hero */
.hero__bar {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(7,12,24,.55); backdrop-filter: blur(10px);
}
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__facts > div { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.hero__facts > div:first-child { border-left: 0; padding-left: 0; }
.hero__facts i {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11,91,224,.18); border: 1px solid rgba(110,160,255,.25);
}
.hero__facts svg { width: 22px; height: 22px; fill: none; stroke: #8ab6ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero__facts b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.hero__facts span { color: var(--muted); font-size: .88rem; line-height: 1.45; }


/* ----- Sekcje ----- */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { margin-bottom: 18px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.ticks li { position: relative; padding-left: 26px; margin-top: 9px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) scale(.8);
}
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px;
}

/* Przełącznik biuro / firma */
.switch {
  display: inline-flex; margin-top: 30px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.switch button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 0; background: none; color: var(--muted);
  padding: 11px 22px; border-radius: 999px; transition: background .25s, color .25s;
}
.switch button[aria-selected="true"] { background: var(--blue); color: #fff; }

/* Znasz to? — dwie kolumny: nagłówek z przełącznikiem | cytaty */
.pains-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.pains-intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.08; margin-bottom: 20px; }
.pains-intro > p { color: var(--muted); font-size: 1.12rem; }
.pains-intro .switch { margin-top: 28px; }
.pains { display: grid; gap: 16px; }
.pains:not([hidden]) .pain { animation: fadeUp .45s both; }
.pains .pain:nth-child(2) { animation-delay: .07s; }
.pains .pain:nth-child(3) { animation-delay: .14s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pain {
  position: relative; padding: 24px 28px 22px 76px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s;
}
.pain:hover { border-color: rgba(11,91,224,.35); transform: translateX(4px); }
.pain::before {
  content: "\201E"; position: absolute; left: 24px; top: 6px;
  font-family: var(--font-head); font-size: 3.6rem; line-height: 1; color: var(--blue); opacity: .9;
}
.pain p { font-size: 1.12rem; line-height: 1.5; font-weight: 500; color: var(--text); }
.pain a { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pain small { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pain b { font-weight: 600; font-size: .95rem; color: var(--accent-text); }

/* Jak to działa: animacja */
.flowsec { padding-bottom: 60px; overflow: hidden; }
.flowsec h2 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.08; }
.engine { position: relative; height: 380px; }
.engine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.engine__label {
  position: absolute; bottom: 18px; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.engine__label--in { left: 6%; }
.engine__label--out { right: 6%; color: var(--accent-text); }

/* Narzędzia */
.featured {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center;
  padding: 44px; margin-bottom: 22px;
  border-radius: 24px; background: #070c18; color: #eef2fa;
  --muted: #9aa6bf; --accent-text: #6ea0ff; --blue-soft: rgba(11,91,224,.2); --line: rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(7,12,24,.25);
  position: relative; overflow: hidden;
}
.featured::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px;
  background: radial-gradient(circle, rgba(11,91,224,.35), transparent 65%); pointer-events: none;
}
.featured__copy { position: relative; }
.featured h3 { font-size: 2rem; margin: 16px 0 14px; }
.featured p { color: var(--muted); }
.featured .ticks { margin-top: 20px; }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product {
  position: relative; padding: 34px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
}
.product::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(11,91,224,.07), transparent 60%);
}
.product:hover { border-color: rgba(11,91,224,.35); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,41,.12); }
.product:hover::after { opacity: 1; }
.product .tag { margin-top: 22px; }
.product h3 { margin: 12px 0 12px; }
.product p { color: var(--muted); font-size: .97rem; }
.product .ticks { margin-top: 18px; }
.product__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue); box-shadow: 0 10px 24px var(--blue-glow);
}
.product__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Mockup aplikacji */
.app {
  position: relative;
  background: linear-gradient(180deg, #16223d, #0e1830);
  color: #e8ecf5; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.app__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.app__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.app__bar em { font-style: normal; font-size: .75rem; color: #9aa6bf; margin-left: 10px; }
.app__body { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 22px 18px; }
.doc { background: #fff; color: #1b2233; border-radius: 10px; padding: 14px 13px; font-size: .68rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.doc--src { opacity: .75; }
.doc--out { box-shadow: 0 0 0 2px var(--blue), 0 10px 40px rgba(11,91,224,.4); }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e3e7ef; }
.doc__head b { font-family: var(--font-head); font-size: .8rem; letter-spacing: .04em; }
.doc__head small { color: #7a8499; font-size: .62rem; }
.doc__row, .doc__total { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.doc__row span:first-child { color: #4a5368; }
.doc__total { border-top: 1px solid #e3e7ef; margin-top: 6px; padding-top: 8px; font-weight: 700; }
.doc--out .doc__total { color: var(--blue); }
.featured:not(.in) .type { animation-play-state: paused; }
.type { opacity: 0; animation: typeIn .5s forwards; animation-delay: .6s; }
.type.d2 { animation-delay: 1s; } .type.d3 { animation-delay: 1.4s; } .type.d4 { animation-delay: 1.8s; }
@keyframes typeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.flow { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.flow__line { position: absolute; left: 6px; right: 6px; height: 2px; background: rgba(110,160,255,.25); overflow: hidden; border-radius: 2px; }
.flow__line i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #6ea0ff, transparent); animation: flow 1.6s linear infinite; }
@keyframes flow { to { left: 100%; } }
.flow__chip { position: relative; font-size: .58rem; font-weight: 600; background: var(--blue); color: #fff; padding: 4px 6px; border-radius: 6px; white-space: nowrap; transform: translateY(-22px); }
.app__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.status { display: flex; align-items: center; gap: 8px; color: #7ee2a8; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.pill { color: #6ea0ff; border: 1px solid rgba(110,160,255,.35); padding: 3px 10px; border-radius: 999px; }

/* Szkolenia */
.training { overflow: hidden; }
.training::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,91,224,.28), transparent 65%); pointer-events: none;
}
.training__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.training__copy h2 { margin-bottom: 18px; }
.training__copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.training__list { display: grid; gap: 16px; }
.training__list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.training__list i {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11,91,224,.18); border: 1px solid rgba(110,160,255,.25);
}
.training__list svg { width: 22px; height: 22px; fill: none; stroke: #8ab6ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.training__list b { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.training__list span { color: var(--muted); font-size: .94rem; }

/* Współpraca */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding-top: 72px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; color: #fff;
  background: var(--blue); box-shadow: 0 8px 22px var(--blue-glow); z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: -22px; height: 2px; background: linear-gradient(90deg, var(--blue), transparent); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Kontakt */
.contact { overflow: hidden; }
.hero__glow--contact { top: auto; bottom: -500px; left: -300px; right: auto; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact__copy h2 { margin-bottom: 34px; }
.contact__copy > p { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }
.contact__data li { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__data span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact__data a { font-family: var(--font-head); font-size: 1.25rem; }
.contact__data a:hover { color: var(--accent-text); }

.form { display: grid; gap: 18px; padding: 38px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.form label { display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.form textarea { resize: vertical; }
.form__note { font-size: .9rem; color: #7ee2a8; min-height: 1em; }

/* Stopka */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer__inner img { height: 36px; width: auto; }
.footer__copy { margin-left: auto; }
.footer__contact a { color: var(--text); }
.footer__contact a:hover { color: var(--accent-text); }

/* Animacja pojawiania */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .type { opacity: 1; transform: none; }
}

/* ===== Responsywność ===== */
/* Menu rozwijane na tablecie i telefonie */
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,12,24,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
}

@media (max-width: 1024px) {
  .hero__video { left: 0; width: 100%; opacity: .5; -webkit-mask-image: linear-gradient(0deg, transparent 10%, #000 60%); mask-image: linear-gradient(0deg, transparent 10%, #000 60%); }
  .hero__shade { background: linear-gradient(0deg, rgba(7,12,24,.95) 0%, rgba(7,12,24,.55) 60%, rgba(7,12,24,.35) 100%); }
  .featured { grid-template-columns: 1fr; gap: 36px; }
  .products { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
  .steps li::after { display: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 50px; }
  .training__inner { grid-template-columns: 1fr; gap: 44px; }
  .pains-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts > div { border-left: 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .hero__facts > div:first-child { border-top: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__inner { height: 76px; }
  .nav__logo img { height: 34px; }
  .nav__links { top: 76px !important; }
  .container { padding: 0 16px; }
  .hero { padding-top: 124px; }
  .hero__shade { background: linear-gradient(0deg, rgba(7,12,24,.95) 0%, rgba(7,12,24,.55) 60%, rgba(7,12,24,.35) 100%); }
  .hero__copy { padding-bottom: 40px; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 80px 0; }
  .switch { display: flex; flex-direction: column; border-radius: 18px; width: 100%; }
  .switch button { border-radius: 14px; }
  .products, .steps { grid-template-columns: 1fr; }
  .pain { padding: 20px 20px 18px 60px; }
  .pain::before { left: 18px; font-size: 3rem; }
  .engine { height: 300px; }
  .engine__label { font-size: .62rem; letter-spacing: .08em; }
  .engine__label--in { left: 16px; top: 8px; bottom: auto; }
  .engine__label--out { right: 16px; bottom: 10px; }
  .eyebrow { letter-spacing: .1em; font-size: .72rem; }
  .steps { gap: 26px; }
  .steps li { padding-top: 0; padding-left: 64px; min-height: 48px; }
  .steps li::before { top: 0; }
  .featured { padding: 28px 18px; }
  .app__body { grid-template-columns: 1fr; gap: 10px; }
  .flow { height: 40px; }
  .flow__line { left: 50%; right: auto; width: 2px; height: 100%; }
  .flow__line i { display: none; }
  .flow__chip { transform: none; }
  .form { padding: 28px 22px; }
  .footer__copy { margin-left: 0; }
}

/* ===== Stopka rozbudowana ===== */
.footer { padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__grid img { height: 36px; width: auto; margin-bottom: 16px; }
.footer__grid h4 { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer__grid p, .footer__grid li { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.footer__grid a, .footer__grid button { color: var(--muted); transition: color .2s; }
.footer__grid a:hover, .footer__grid button:hover { color: var(--accent-text); }
.footer__grid button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.todo { background: rgba(255, 200, 40, .2); color: #ffd666; padding: 0 4px; border-radius: 4px; }
.light .todo { color: #8a5a00; background: #fff1c2; }

/* ===== Zgoda w formularzu ===== */
.form__consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-size: .84rem !important; line-height: 1.5; }
.form__consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--blue); padding: 0; }
.form__consent a, .form__info a { color: var(--accent-text); text-decoration: underline; }
.form__info { font-size: .78rem; color: var(--muted); line-height: 1.55; }

/* ===== Baner cookies ===== */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 100; max-width: 440px;
  padding: 22px 22px 18px; border-radius: 16px;
  background: #101a30; color: #eef2fa; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  --text: #eef2fa; --line: rgba(255,255,255,.18); --accent-text: #6ea0ff;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.cookie.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie__title { font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
.cookie__text { font-size: .86rem; color: #b8c3d9; line-height: 1.55; }
.cookie__text a { color: #8ab6ff; text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie__actions .btn { flex: 1 1 auto; }

.cookie-modal { position: fixed; inset: 0; z-index: 110; background: rgba(4,8,16,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.cookie-modal__box {
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  background: #101a30; color: #eef2fa; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px;
  --text: #eef2fa; --line: rgba(255,255,255,.18); --accent-text: #6ea0ff;
}
.cookie-modal__box h2 { font-size: 1.4rem; margin-bottom: 10px; }
.cookie-modal__box > p { color: #b8c3d9; font-size: .9rem; margin-bottom: 18px; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.cookie-opt b { display: block; font-size: .95rem; }
.cookie-opt small { display: block; color: #9aa6bf; font-size: .82rem; line-height: 1.5; }
.cookie-opt input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }

/* ===== Podstrony prawne ===== */
.legal-page { background: #f3f6fb; }
.legal-head { background: #070c18; padding: 22px 0; }
.legal-head .container { display: flex; align-items: center; justify-content: space-between; }
.legal-head img { height: 36px; width: auto; }
.legal-head a.back { color: #9aa6bf; font-size: .92rem; }
.legal-head a.back:hover { color: #fff; }
.legal { padding: 70px 0 90px; color: #0f1729; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .meta { color: #56627b; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #2c3850; line-height: 1.75; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal a { color: #0b5be0; text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .92rem; background: #fff; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid #dfe6f1; vertical-align: top; color: #2c3850; }
.legal th { background: #e9eef7; font-family: var(--font-head); font-weight: 600; color: #0f1729; }
.legal .box { background: #fff; border: 1px solid #dfe6f1; border-radius: 14px; padding: 20px 24px; margin: 16px 0; }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .legal table { display: block; overflow-x: auto; }
  .legal-head img { height: 28px; }
  .legal-head a.back { font-size: .85rem; white-space: nowrap; }
  .legal { padding: 44px 0 64px; }
}
