/* Travel Gallery - strona glowna (index.php): "podroz przez strone" - sekcje to przystanki na trasie rysowanej
   przy przewijaniu, dok z sekcjami, tasmy i talia zrzutow. Kolory jak w aplikacji (ciemny motyw, akcent #4ea3ff).
   privacy.php zostaje na style.css. Animacje wejscia (.rv) tylko z JS (klasa .js na <html>), bez JS wszystko widac. */
:root {
  --bg: #0f1217;
  --bg2: #151a21;
  --bg3: #1c222b;
  --line: #2a323d;
  --txt: #e8edf3;
  --txt2: #aab4c0;
  --txt3: #7d8896;
  --acc: #4ea3ff;
  --acc2: #2b7fd4;
  --green: #3ecf8e;
  --orange: #ff9f43;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--txt2); }
.small { font-size: .86rem; }
.acc { color: var(--acc); }
.ic { width: 22px; height: 22px; flex: none; }

.by { display: inline-flex; align-items: center; gap: 7px; color: var(--txt3); font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.by > a { display: inline-flex; align-items: center; gap: 7px; color: var(--txt2); }
.by > a:hover { color: var(--txt); text-decoration: none; }
.by img { flex: none; }
.by b { font-weight: 650; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px;
  background: var(--bg3); color: var(--txt); border: 1px solid var(--line);
  font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; border-color: var(--acc); transform: translateY(-2px); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #04121f; box-shadow: 0 8px 24px rgba(78, 163, 255, .25); }
.btn.primary:hover { background: #6cb4ff; box-shadow: 0 12px 32px rgba(78, 163, 255, .4); }
.btn.green { background: var(--green); border-color: var(--green); color: #04170e; }
.btn .ic { width: 19px; height: 19px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  padding: 2px 8px 2px 6px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  color: var(--orange); background: rgba(255, 159, 67, .12); border: 1px solid rgba(255, 159, 67, .3);
}
.badge .ic { width: 12px; height: 12px; }
.feat-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(78, 163, 255, .12); color: var(--acc); border: 1px solid rgba(78, 163, 255, .25);
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--txt2); }
.checks .ic { color: var(--green); width: 19px; height: 19px; margin-top: 3px; }
.sha { display: grid; gap: 2px; font-size: .78rem; color: var(--txt3); }
.sha code { word-break: break-all; color: var(--txt2); }

/* animacja wejscia (bez JS - patrz html:not(.js) na koncu) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.rv-l { transform: translateX(-34px); }
.rv.rv-r { transform: translateX(34px); }
.rv.rv-s { transform: scale(.92); }
.rv.in { opacity: 1; transform: none; }
/* boczne wejscia na waskim ekranie wystawalyby poza strone - tam tylko z dolu */
@media (max-width: 900px) { .rv.rv-l, .rv.rv-r { transform: translateY(26px); } .rv.rv-l.in, .rv.rv-r.in { transform: none; } }
html, body { overflow-x: clip; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 10, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 50px 64px; animation: lbIn .25s ease; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-height: calc(100vh - 140px); width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lb img.lb-anim { animation: lbImg .35s var(--ease); }
.lb figcaption { color: var(--txt2); text-align: center; max-width: 60em; font-size: .95rem; }
.lb figcaption strong { color: var(--txt); }
.lb button { position: absolute; background: rgba(28, 34, 43, .85); border: 1px solid var(--line); color: var(--txt); width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.lb button:hover { border-color: var(--acc); }
.lb-x { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .lb { padding: 50px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- strona ---------- */
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.05rem; }
.center { text-align: center; }
.kicker { color: var(--acc); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.kicker.green { color: var(--green); }
.lead2 { color: var(--txt2); font-size: 1.04rem; max-width: 46em; margin-top: 10px; }
.btn.sm { padding: 9px 15px; font-size: .92rem; margin-top: 12px; }
.btn.disabled { opacity: .55; cursor: default; transform: none; }
.num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--acc); color: #04121f; font-weight: 750; position: relative; z-index: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 18px 0 70px;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(78, 163, 255, .22), transparent 60%),
    radial-gradient(700px 420px at -10% 40%, rgba(62, 207, 142, .11), transparent 60%);
}
.topbar { display: flex; align-items: center; gap: 14px; height: 52px; margin-bottom: 34px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--txt); font-weight: 650; font-size: 1.2rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.lang { margin-left: auto; border: 1px solid var(--line); color: var(--txt); padding: 5px 12px; border-radius: 999px; font-size: .88rem; white-space: nowrap; transition: border-color .2s; }
.lang:hover { border-color: var(--acc); text-decoration: none; }
.guides-link { display: inline-flex; align-items: center; gap: 6px; }
.guides-link .ic { width: 16px; height: 16px; color: var(--acc); }
.guides-link + .lang { margin-left: 0; }
@media (max-width: 480px) { .guides-link span { display: none; } .guides-link { padding: 5px 9px; } }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); font-weight: 760; margin-bottom: 20px; }
.hero h1 .line { display: block; }
.hero h1 .line + .line .w { color: var(--acc); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); animation: wIn .75s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .1s); }
@keyframes wIn { to { opacity: 1; transform: none; } }
.lead { color: var(--txt2); font-size: 1.08rem; max-width: 36em; opacity: 0; animation: fadeUp .8s var(--ease) .75s forwards; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; opacity: 0; animation: fadeUp .8s var(--ease) .95s forwards; }
.note { color: var(--txt3); font-size: .9rem; opacity: 0; animation: fadeUp .8s var(--ease) 1.1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.collage { perspective: 1500px; padding: 30px 0 50px; opacity: 0; animation: fadeUp 1s var(--ease) .4s forwards; }
.tilt {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -11deg));
  transition: transform .6s var(--ease);
}
.browser { background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser .bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 11px; background: #12161c; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4350; }
.browser .bar i:first-child { background: #ff6b6b; } .browser .bar i:nth-child(2) { background: #ffc94d; } .browser .bar i:nth-child(3) { background: var(--green); }
.c-web { transform: translateZ(0); }
.c-ph {
  position: absolute; width: 27%; border-radius: 20px; padding: 5px; background: #0a0c10; border: 1px solid #333c48;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.c-ph img { border-radius: 15px; }
.c-ph1 { right: -4%; bottom: -16%; transform: translateZ(70px); animation: float 6s ease-in-out infinite; }
.c-ph2 { left: -6%; bottom: -10%; width: 22%; transform: translateZ(40px); animation: float 7s ease-in-out 1s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.c-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62, 207, 142, .6); transform: translateZ(90px); animation: ping 2.4s ease-out infinite; }
.c-pin.p1 { left: 36%; top: 34%; }
.c-pin.p2 { left: 58%; top: 52%; animation-delay: .8s; background: var(--acc); }
.c-pin.p3 { left: 48%; top: 20%; animation-delay: 1.6s; background: var(--orange); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(78, 163, 255, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(78, 163, 255, 0); } }
.hero-route { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.hero-route path { fill: none; stroke: rgba(78, 163, 255, .35); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; animation: dash 40s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }

/* ---------- statystyki ---------- */
.stats { padding: 0 0 20px; }
.stat-row {
  list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.stat-row li { padding: 20px 22px; border-left: 1px solid var(--line); }
.stat-row li:first-child { border-left: 0; }
.stat-row b { display: block; font-size: 2rem; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, #9ccbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row span { color: var(--txt2); font-size: .9rem; }

/* ---------- trasa ---------- */
.journey { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.route { position: absolute; left: -84px; top: 0; width: 84px; height: 100%; overflow: visible; pointer-events: none; }
.r-ahead { fill: none; stroke: #2f3844; stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.r-done { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(78, 163, 255, .6)); transition: stroke-dashoffset .12s linear; }
.r-dot { fill: #fff; stroke: var(--acc); stroke-width: 3; filter: drop-shadow(0 0 8px var(--acc)); transition: opacity .3s; }
.pins { position: absolute; left: -84px; top: 0; width: 84px; height: 100%; pointer-events: none; }
.pin {
  position: absolute; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid #33404f; color: var(--txt3);
  transform: scale(.55); transition: transform .5s cubic-bezier(.34, 1.8, .5, 1), background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.pin .ic { width: 17px; height: 17px; }
.pin.on { transform: scale(1); background: var(--acc); border-color: var(--acc); color: #04121f; box-shadow: 0 0 0 5px rgba(78, 163, 255, .18); }
.pin.cur { background: var(--green); border-color: var(--green); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); } 100% { box-shadow: 0 0 0 16px rgba(62, 207, 142, 0); } }

.stop { padding: 56px 0 8px; }
.stop-head { margin-bottom: 26px; position: relative; }
.stop-num { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .2em; color: var(--acc); opacity: .8; margin-bottom: 6px; }

/* ---------- beta ---------- */
.beta-stop { padding-top: 40px; }
.beta {
  border: 1px solid rgba(62, 207, 142, .45); border-radius: 20px; padding: 28px;
  background: linear-gradient(150deg, rgba(62, 207, 142, .12), rgba(78, 163, 255, .06) 45%, var(--bg2) 80%);
}
.beta-head { margin-bottom: 22px; }
.beta-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.beta-steps li { background: rgba(15, 18, 23, .55); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.beta-steps .num { background: var(--green); margin-bottom: 10px; }
.beta-steps h3 { margin-bottom: 6px; }
.beta-steps p { color: var(--txt2); font-size: .92rem; }

/* ---------- funkcje: tasma ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 290px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fcard {
  scroll-snap-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.fcard:hover { transform: translateY(-5px); border-color: rgba(78, 163, 255, .55); box-shadow: 0 16px 36px rgba(0, 0, 0, .4), 0 0 0 1px rgba(78, 163, 255, .15); }
.fcard.prem { background: linear-gradient(180deg, rgba(255, 159, 67, .07), var(--bg2) 40%); }
.fcard h3 { margin: 14px 0 8px; }
.fcard p { color: var(--txt2); font-size: .92rem; }
.rail-ctl { display: flex; align-items: center; gap: 14px; }
.rbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--txt);
  font-size: 22px; line-height: 1; cursor: pointer; flex: none; transition: border-color .2s, transform .2s;
}
.rbtn:hover { border-color: var(--acc); transform: scale(1.06); }
.rail-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.rail-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--acc), var(--green)); transition: left .15s; }

/* ---------- tryby: obracane karty ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flip { perspective: 1200px; height: 230px; cursor: pointer; outline: none; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip:focus-visible .face { border-color: var(--acc); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 22px;
  background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.front { justify-content: flex-end; background: radial-gradient(240px 160px at 85% 10%, rgba(78, 163, 255, .16), transparent 70%), var(--bg2); }
.front .feat-ic { position: absolute; top: 22px; left: 22px; width: 54px; height: 54px; }
.front .feat-ic .ic { width: 28px; height: 28px; }
.front h3 { font-size: 1.5rem; }
.flip-hint { position: absolute; top: 26px; right: 22px; color: var(--txt3); transition: transform .3s; }
.flip:hover .flip-hint { transform: translateX(4px); color: var(--acc); }
.mode-tag { color: var(--acc); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.back { transform: rotateY(180deg); justify-content: center; background: linear-gradient(160deg, #1a2330, var(--bg2)); border-color: rgba(78, 163, 255, .4); }
.back h3 { margin-bottom: 10px; color: var(--acc); }
.back p { color: var(--txt2); font-size: .93rem; }
.flip.main .face { border-color: rgba(62, 207, 142, .55); }
.flip.main .front { background: radial-gradient(240px 160px at 85% 10%, rgba(62, 207, 142, .2), transparent 70%), var(--bg2); }
.flip.main .front .feat-ic { color: var(--green); background: rgba(62, 207, 142, .12); border-color: rgba(62, 207, 142, .3); }
.flip.main .mode-tag, .flip.main .back h3 { color: var(--green); }

/* ---------- premium ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.plan h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.plan-sub { color: var(--txt3); font-size: .9rem; margin: 4px 0 16px; }
.plan .checks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--k) * 70ms + .35s); font-size: .95rem; }
.plan.in .checks li { opacity: 1; transform: none; }
.plan.premium { border-color: transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, conic-gradient(from var(--ang, 0deg), var(--orange), var(--acc), var(--green), var(--orange)) border-box; border: 1.5px solid transparent; animation: spin 6s linear infinite; }
.plan.premium h3 { color: var(--orange); }
.plan.premium .checks .ic { color: var(--orange); }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.plan-note { margin-top: 14px; max-width: 60em; }

/* ---------- filmy ---------- */
.vtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 18px; }
.vtab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 16px; border-radius: 999px; color: var(--txt2); cursor: pointer; font-weight: 600; transition: background .25s, color .25s; }
.vtab .ic { width: 18px; height: 18px; }
.vtab.on { background: var(--acc); color: #04121f; }
.vpane { display: none; margin: 0; }
.vpane.on { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(220px, 1fr); gap: 28px; align-items: center; animation: fadeUp .5s var(--ease); }
.vpane video { display: block; width: 100%; background: #000; }
.vpane .browser { max-width: none; }
.vphone { width: 300px; max-width: 100%; border-radius: 26px; padding: 6px; background: #0a0c10; border: 1px solid #333c48; box-shadow: var(--shadow); }
.vphone video { border-radius: 20px; }
.vpane[data-kind="android"].on { grid-template-columns: auto 1fr; }
.vpane figcaption { color: var(--txt2); font-size: .93rem; max-width: 60em; }
.vpane figcaption strong { display: block; color: var(--txt); font-size: 1rem; margin-bottom: 4px; }

/* ---------- android: tasma telefonow ---------- */
.marquee {
  overflow: hidden; margin: 0 -16px; padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mq-track { display: flex; gap: 18px; width: max-content; animation: mq 70s linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 9px)); } }
.phone {
  position: relative; width: 190px; flex: none; padding: 5px; border-radius: 22px; background: #0a0c10; border: 1px solid #333c48;
  cursor: zoom-in; transition: transform .4s var(--ease), border-color .3s; overflow: hidden; text-align: left;
}
.phone img { border-radius: 17px; }
.phone:hover, .phone:focus-visible { transform: translateY(-8px) scale(1.03); border-color: var(--acc); outline: none; }
.ph-cap {
  position: absolute; left: 5px; right: 5px; bottom: 5px; border-radius: 0 0 17px 17px; padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(8, 10, 14, .92) 45%); display: grid; gap: 2px;
}
.ph-cap strong { font-size: .9rem; }
.ph-cap span { font-size: .78rem; color: var(--txt2); line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s; }
.phone:hover .ph-cap span, .phone:focus-visible .ph-cap span { max-height: 9em; opacity: 1; }

/* ---------- web: talia kart ---------- */
.deck-wrap { display: grid; grid-template-columns: 1.65fr 1fr; gap: 40px; align-items: center; }
.deck { position: relative; aspect-ratio: 16 / 11.2; }
.dcard { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; transform-origin: 50% 0; cursor: pointer;
  transform: translateY(calc(var(--k) * -13px)) scale(calc(1 - var(--k) * .045)); transition: transform .55s var(--ease), opacity .45s; }
.dcard .browser { height: 100%; display: flex; flex-direction: column; }
.dcard:not(.top) .browser { filter: brightness(calc(1 - var(--k) * .14)); }
.dimg { flex: 1; min-height: 0; border: 0; padding: 0; background: #000; cursor: zoom-in; display: block; }
.dcard:not(.top) .dimg { cursor: pointer; pointer-events: none; }
.dimg img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dcard.out { animation: deckOut .52s var(--ease) forwards; }
.dcard.out-r { animation: deckBack .52s var(--ease); }
@keyframes deckOut { to { transform: translate(-115%, 30px) rotate(-12deg); opacity: 0; } }
@keyframes deckBack { from { transform: translate(18%, -10px) rotate(5deg); } }
.deck-cap.swap { animation: fadeUp .45s var(--ease); }
.deck-cap h3 { font-size: 1.35rem; margin-bottom: 8px; }
.deck-cap p { color: var(--txt2); }
.deck-ctl { display: flex; align-items: center; gap: 14px; margin: 20px 0 14px; }
.deck-ctl span { color: var(--txt3); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
.deck-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.deck-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: #33404f; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.deck-dots button.on { width: 26px; background: var(--acc); }

/* ---------- serwer ---------- */
.server { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.server-text .stop-head { margin-bottom: 18px; }
.server-shot { margin: 0; }
.win { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; background: #000; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .5s var(--ease); display: block; }
.win:hover { transform: perspective(1200px) rotateY(-4deg) scale(1.02); }
.server-shot figcaption { color: var(--txt2); font-size: .88rem; margin-top: 10px; }
.server-shot figcaption strong { color: var(--txt); }

/* ---------- jak to dziala ---------- */
.how { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.how-line { position: absolute; left: 0; right: 0; top: 12px; width: 100%; height: 10px; overflow: visible; }
.how-line path { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.how.in .how-line path { stroke-dashoffset: 0; }
.how li { text-align: center; padding: 0 6px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k) * .45s + .2s); }
.how.in li { opacity: 1; transform: none; }
.how .num { margin: 0 auto 12px; box-shadow: 0 0 0 6px var(--bg); }
.how h3 { margin-bottom: 6px; }
.how p { color: var(--txt2); font-size: .93rem; }
.privacy { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(120deg, rgba(62, 207, 142, .09), var(--bg2) 60%); border: 1px solid rgba(62, 207, 142, .35); border-radius: 16px; padding: 20px; }
.privacy .feat-ic { color: var(--green); background: rgba(62, 207, 142, .12); border-color: rgba(62, 207, 142, .3); }
.privacy h3 { margin-bottom: 6px; }
.privacy p { color: var(--txt2); font-size: .95rem; }

/* ---------- pobieranie ---------- */
.dl { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: 16px; align-items: start; }
.dl-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; justify-items: start; transition: transform .35s var(--ease), border-color .3s; }
.dl-card:hover { transform: translateY(-4px); border-color: rgba(78, 163, 255, .5); }
.win-card { border-color: rgba(78, 163, 255, .45); background: radial-gradient(300px 180px at 100% 0, rgba(78, 163, 255, .14), transparent 70%), var(--bg2); }
.dl-card h3 { font-size: 1.15rem; }
.dl-card .checks li { font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
.qa { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s; }
.qa.open { border-color: rgba(78, 163, 255, .5); }
.q { width: 100%; display: flex; align-items: center; gap: 12px; justify-content: space-between; text-align: left; background: none; border: 0; padding: 15px 18px; cursor: pointer; font-weight: 600; }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--acc); transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.a > div { overflow: hidden; }
.a p { color: var(--txt2); padding: 0 18px 16px; font-size: .95rem; }
.qa.open .a { grid-template-rows: 1fr; }

/* ---------- stopka ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 22px 0 90px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; flex-wrap: wrap; }
.copy { color: var(--txt3); font-weight: 400; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--txt2); }

/* ---------- dok ---------- */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 80; display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(21, 26, 33, .88); border: 1px solid var(--line); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: var(--shadow); transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock-bar { position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; overflow: hidden; }
.dock-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--acc), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }
.dk { display: flex; align-items: center; gap: 0; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; color: var(--txt2); transition: background .3s, color .3s, gap .3s; }
.dk:hover { background: var(--bg3); color: var(--txt); text-decoration: none; }
.dk .ic { width: 20px; height: 20px; }
.dk span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .88rem; font-weight: 600; transition: max-width .45s var(--ease); }
.dk:hover span { max-width: 9em; }
.dk.on { background: var(--acc); color: #04121f; gap: 8px; }
.dk.on span { max-width: 9em; }
.dk:hover { gap: 8px; }
.dk.home { padding: 0 9px; }

/* ---------- responsywnie ---------- */
@media (max-width: 1360px) {
  .journey { max-width: 1260px; padding-left: 96px; }
  .route, .pins { left: 6px; }
}
@media (max-width: 1080px) {
  .flip { height: 260px; }
  .dock { top: 10px; bottom: auto; left: 16px; right: 16px; transform: translateY(-140%); justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .dock.show { transform: none; }
  .dock::-webkit-scrollbar { display: none; }
  .dock-bar { top: auto; bottom: -1px; }
  .dk span, .dk.on span, .dk:hover span { max-width: 0; }
  .dk.on, .dk:hover { gap: 0; }
  .dk { padding: 0 9px; flex: none; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .collage { max-width: 620px; margin: 0 auto; width: 100%; }
  .journey { padding-left: 34px; }
  .route, .pins { left: 0; width: 30px; }
  .pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-width: 1.5px; }
  .pin .ic { width: 11px; height: 11px; }
  .r-done { stroke-width: 2; }
  .r-dot { r: 5; }
  .modes, .plans, .server, .deck-wrap, .vpane.on { grid-template-columns: 1fr; }
  .vpane[data-kind="android"].on { grid-template-columns: auto 1fr; }
  .dl { grid-template-columns: 1fr 1fr; }
  .dl .req { grid-column: 1 / -1; }
  .beta-steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row li:nth-child(3) { border-left: 0; }
  .stat-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .deck { max-width: 640px; }
}
@media (max-width: 640px) {
  .topbar .by { display: none; }
  .flip { height: auto; perspective: none; cursor: default; }
  .flip-in, .flip.flipped .flip-in, .flip:hover .flip-in { transform: none !important; }
  .face { position: relative; backface-visibility: visible; }
  .front { padding-top: 90px; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .back { transform: none; border-radius: 0 0 18px 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
  .flip .back h3, .flip-hint { display: none; }
  .modes { gap: 14px; }
  .vpane[data-kind="android"].on { grid-template-columns: 1fr; justify-items: center; }
  .how { grid-template-columns: 1fr; gap: 18px; }
  .how-line { display: none; }
  .how li { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
  .how .num { grid-row: span 2; margin: 0; }
  .faq, .dl { grid-template-columns: 1fr; }
  .phone { width: 160px; }
  .stat-row b { font-size: 1.6rem; }
  .stat-row li { padding: 16px; }
  .c-ph1 { right: 0; } .c-ph2 { left: 0; }
  .foot { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .lead, .ctas, .note, .collage { opacity: 1; transform: none; animation: none; }
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; }
  .plan .checks li, .how li { opacity: 1; transform: none; }
  .how-line path { stroke-dashoffset: 0; }
}

/* ---------- zrzuty: przycisk powiekszenia, ramka zastepcza (brak pliku w screenshots/) ---------- */
button.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
figure.phone { margin: 0; }
.phone:focus-within { transform: translateY(-8px) scale(1.03); border-color: var(--acc); }
.phone:focus-within .ph-cap span { max-height: 9em; opacity: 1; }
.phone .zoom:focus-visible { outline: none; }
.ph {
  display: grid; place-content: center; gap: 6px; text-align: center; padding: 14px; color: var(--txt3); font-size: .85rem;
  background: repeating-linear-gradient(135deg, var(--bg2) 0 12px, var(--bg3) 12px 24px); border-radius: 10px; min-height: 160px;
}
.phone .ph { aspect-ratio: 9 / 20; border-radius: 17px; }
.dcard .ph { height: 100%; border-radius: 0; }
.ph code { color: var(--txt2); word-break: break-all; }

/* ---------- bez JS: wszystko widoczne, odpowiedzi FAQ otwarte, talia jako lista ---------- */
html:not(.js) .rv, html:not(.js) .plan .checks li, html:not(.js) .how li { opacity: 1; transform: none; }
html:not(.js) .how-line path { stroke-dashoffset: 0; }
html:not(.js) .a { grid-template-rows: 1fr; }
html:not(.js) .pm, html:not(.js) .route, html:not(.js) .pins, html:not(.js) .rail-ctl, html:not(.js) .deck-side, html:not(.js) .vtabs { display: none; }
html:not(.js) .vpane { display: grid; margin-bottom: 24px; }
html:not(.js) .deck { aspect-ratio: auto; display: grid; gap: 16px; }
html:not(.js) .dcard { position: static; transform: none; }
html:not(.js) .dcard .browser { filter: none; }
html:not(.js) .dcard .dimg { pointer-events: auto; }
html:not(.js) .dock { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1080px) { html:not(.js) .dock { transform: none; } html:not(.js) .hero { padding-top: 64px; } }
